@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/

/************************************
** ヘッダー
************************************/

.tagline {
  margin:0 30px 20px;
  line-height:140%;
  font-size:15px;
}

.logo-text {
  padding: 20px 30px 10px;
}

/************************************
** 見出し（H1-6）
************************************/

.article h1,
.article h2,
.article h3,
.article h4,
.article h5,
.article h6 {
  color:#003682;
}

.article h2 {
  border-left:5px solid #003682;
  padding: 25px;
  background-color: #f5f6f7;
  border-radius: 0;
}

.article  h3 {
  border-left: 0;
  border-right: 0;
  border-top: 0;
  border-bottom:5px solid;
}

.article  h4{
  border-top: 0;
  border-bottom:5px solid #eee;
}

/************************************
** 見出し（ＬＰ用）
************************************/

.post-110 h1 {
  display:none;
}

.post-193 h1 {
  display:none;
}

.post-359 h1 {
  display:none;
}

.post-392 h1 {
  display:none;
}

/************************************
** お問い合わせボタン
************************************/

.offer-button {
  display: block;
  width: 80%;
  height: 108px;
  font-size: 2em;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  /* line-height: 108px; */
  outline: none;
  margin: auto;
  margin-bottom: 30px;
}
/*
.offer-button::before,
.offer-button::after {
  position: absolute;
  z-index: -1;
  display: block;
  content: '';
}

.offer-button,
.offer-button::before,
.offer-button::after {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-transition: all .3s;
  transition: all .3s;
}
*/
.offer-button {
  /* position: relative; */
  background-color: #003682;
  border-radius: 8px;
  color: #fff;
  line-height: 108px;
  -webkit-transition: none;
  transition: none;
}
.offer-button:hover {
  background-color: #5778ba;
  color: #fff;
}
.offer-button:active {
  top: 3px;
}

/************************************
** 本文の幅を狭くする
************************************/

.txt_box {
    margin: 20px auto 0;
    padding: 0 0 0 28px;
    /* font-size: 20px;
    line-height: 1.8; */
    text-align: left;
    max-width: 680px;
    width: 90%;
}

/************************************
** 雑誌の紹介記事
************************************/
/* ボックスを並べる */

@media screen and (min-width: 641px) {

    .magazine-list{
        display: flex;
        justify-content: space-between;
    }

    .magazine {
        flex: 0 1 32%;
        padding: 0 20px;
    }

    .magazine-head {
        margin-bottom: 0!important;
        padding-top: 20px;
        padding-bottom: 0;
        font-size: 15px;
        font-weight: bold;
        text-align: center;
    }

    .magazine-date {
        margin-top: 0;
        padding-top: 0;
        font-size: 14px;
        text-align: center;
    }

    #photo-01 {
        float: right;
        padding: 0 0 20px 20px;
    }

}

@media screen and (max-width: 640px) {

    .magazine {
        padding: 0 20px 40px;
    }

    .magazine img {
    width: auto;
    }

    .magazine-head {
        margin-bottom: 0!important;
        padding-top: 20px;
        padding-bottom: 0;
        font-size: 15px;
        font-weight: bold;
        text-align: center;
    }

    .magazine-date {
        margin-top: 0;
        padding-top: 0;
        font-size: 14px;
        text-align: center;
    }

    #photo-01 img {
        display: block;
        margin: auto;
        padding: 0 20px 20px;
    }

}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){

}
/*834px以下*/
@media screen and (max-width: 834px){

}

/*480px以下*/
@media screen and (max-width: 480px){

 
}

/************************************
** banner
************************************/
/* 画像にホバーしたとき半透明にする */

.banner_opacity:hover {
  opacity: 0.5;
}

/************************************
** リスト
************************************/
/* リストのマークをチェックマークにする */

ul.checkmark li {
  line-height: 3;
  font-weight:bold;
  position: relative;
  list-style: none;
}

ul.checkmark li::before {
  display: block;
  content: '';
  position: relative;
  top: 1.6em;
  left: -1.5em;
  width: 9px;
  height: 4px;
  border-left: 4px solid #3498db;
  border-bottom: 4px solid #3498db;
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

/* リストの子要素のマークをドットにする */

ul.dotmark li {
  line-height: 2;
  font-weight:bold;
  position: relative;
  list-style: none;
}

ul.dotmark li::before {
  display: block;
  content: '・';
  top: 0.5em;
  left: -1.5em;
  width: 9px;
  height: 1px;
  position: relative;
  border: none;
}

/************************************
** 送信ボタン
************************************/

input.wpcf7-submit {
  border: 1px solid #003682;
  background-color: #003682;
  color: #fff;
  font-size: 18px;
}

/************************************
** テーブル
************************************/

#HP01_table {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
#HP01_table th{
  white-space: pre;
}
#HP01_table th:nth-child(1){
  width: 54px;
}
#HP01_table td:nth-child(3){
  width: 70px;
}
.tb-left td{
  text-align: left;
  vertical-align: top;
}
.tb-center td{
  text-align: center;
}
.tb-center th{
  text-align: center;
}

/*481px以上*/
@media screen and (min-width: 481px){

  #sv001-list th:nth-child(1){
  width: 252px;
  text-align: center;
  background-color: #003682;
  }

}

/*480px以下*/
@media screen and (max-width: 480px){

  #sv001-list th:nth-child(1){
  width: 163px;
  text-align: center;
  background-color: #003682;
  }

}

#sv001-list th:nth-child(1) a {
  display: block;
  width: 100%;
  height: 100%;
  color: #fff;
  text-decoration: none;
}

#sv001-list td{
  border: 1px solid #003682;
}

#sv001-list th:nth-child(1):hover {
  background-color: #5778ba;
}

/************************************
Contact Form 7のリスト項目をすべて縦並びに
************************************/

#form_item_01 {
    margin: 20px auto 0;
    padding: 0 0 0 28px;
    text-align: left;
    max-width: 680px;
    width: 90%;
}

#form_item_01 span.wpcf7-list-item {
  display: block;
  }

/************************************
Q&Aの形式
************************************/

.txt_box dl{
     /* width:650px;
     margin:80px;
     line-height:1.8em;
     font-size: 1.4em; */
     overflow: hidden;
     _zoom: 1;
}

.txt_box dl dd,
.txt_box dl dt{
     text-indent: -2.6em;   
     padding: 0 20px 0px 50px;
}

.txt_box dl dt{
     margin:20px 20px 0 0;
}

.txt_box dl dd:first-letter,
.txt_box dl dt:first-letter{
     font-size: 1.6em;
     font-weight: bold;
     margin-right:20px;
     padding:5px;
     font-family: 'Nunito', sans-serif;
}


.txt_box dl dd{
     margin: 20px 0 -1px 0;
     padding-bottom:15px;
     border-bottom: 1px #000 dotted;
}


.txt_box dl dt:first-letter{
     color: #003682;
}
.txt_box dl dd:first-letter{
     color: #f52323;
}

/************************************
レスポンシブ対応、PC 文章左 写真右、スマホ 写真上 文章下
************************************/

/* --- 共通の基本設定 --- */

.responsive-layout {
  display: flex; /* Flexboxを有効にする */
  /* 幅が広い時（PC）のデフォルト設定 */
  flex-direction: row; /* 子要素を横並びにする（左から右） */
  align-items: center; /* 垂直方向の中央揃え */
  gap: 10px; /* 子要素間のスペース */
  max-width: 1256px;
  margin: 0 auto 20px; /* 中央寄せ */
  /*
  padding: 20px;
  */
}

.media-part {
  /* 画像の配置（幅が広い時は右側に来るように順番を調整） */
  order: 2;
  flex: 1; /* 利用可能なスペースを占める */
  min-width: 0; /* Flexアイテムの最小幅をリセット */
  text-align: right;
}

.text-part {
  /* 文章の配置（幅が広い時は左側に来るように順番を調整） */
  order: 1;
  flex: 1; /* 利用可能なスペースを占める */
}

/* 画像がコンテナに合わせてレスポンシブに表示されるようにする */
.media-part img {
  display: block;
  max-width: 100%;
  height: auto;
  margin-left: auto;
  margin-right: 0;
}

/* --- 幅が狭い時（スマートフォン）のレイアウト切り替え --- */

@media (max-width: 768px) {
  .responsive-layout {
    flex-direction: column; /* 縦並び (上から下) */
    gap: 20px;
  }

  .media-part,
  .text-part {
    order: unset; /* ソースコードの順序に戻す */
    flex: none;
    width: 100%;
  }

  /* ★修正点 3: 幅が狭い時、写真コンテナ内の要素を中央に寄せる */
  .media-part {
    text-align: center;
  }
  
  /* ★修正点 4: ブロック要素である画像を中央寄せにするための設定 */
  .media-part img {
    /* 中央寄せの一般的な方法: 左右のmarginを auto にする */
    margin-left: auto;
    margin-right: auto;
  }
}