@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
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){	
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}





/*メインビジュアル対応*/
#appeal {
    height: calc(100vw * 0.2);
}



/*------------------------------
  画像付き吹き出し(会話)
------------------------------*/
/* 吹き出し 全体*/
.talking {
      margin-bottom:2em;
      position:relative;
}
 
.talking:before , .talking:after {
      clear:both;
      content:"";
      display:block;
}
 
/*アイコン*/
.talking figure {
      width:60px;     /*アイコンの横幅*/
      height:60px;    /*アイコンの縦幅*/
}
 
.talking-left_icon {
      float:left;
      margin-right:20px;    /*アイコンの右の余白(左の吹き出し)*/
}
 
.talking-right_icon {
      float:right;
      margin-left:20px;    /*アイコンの左の余白(右の吹き出し)*/
}
 
.talking figure img {
      width:100%;
      height:100%;
      margin:0;
      border:0px solid #aaa;
      border-radius:0%;    /*アイコンの角丸*/
}
 
/*アイコンの下の名前*/
.talking-left_icon figcaption ,
.talking-right_icon figcaption ,
.think-left_icon figcaption ,
.think-right_icon figcaption {
      padding:2px 0 0;
      font-size:12px;
      text-align:center;
}
 
/*吹き出しのセリフ部分*/
.talking-leftr , .talking-left , .talking-right  {
      position:relative;
      padding:10px;
      border-style:solid;    /*枠線の線種*/
      border-radius:10px;    /*セリフを入れる部分の角丸*/
      max-width: calc(90% - 80px);
}
 
.talking p {
      margin:0;
}
 
.talking p :last-child {
      margin:0;
}
 
/*---左の吹き出し---*/
.talking-left {
      float:left;
      border-width:1px;         /*枠線の太さ*/
      border-color:#20B97B;   /*枠線の色*/
      background:#fffffb;    /*背景色*/
}
 
/*左の吹き出し 三角*/
.talking-left:before {
      position: absolute;
      content: '';
      border: 10px solid transparent;
      border-right: 10px solid #20B97B;  /*三角の線になる部分*/
      top: 15px;
      left: -20px;
}
 
.talking-left:after {
      position: absolute;
      content: '';
      border: 10px solid transparent;
      border-right: 10px solid #fffffb;
      top: 15px;
      left: -19px;
}

/*---左の吹き出し・赤---*/
.talking-leftr {
      float:left;
      border-width:1px;         /*枠線の太さ*/
      border-color:#C7448B;   /*枠線の色*/
      background:#fffffb;    /*背景色*/
}

/*左の吹き出し・赤 三角*/
.talking-leftr:before {
      position: absolute;
      content: '';
      border: 10px solid transparent;
      border-right: 10px solid #C7448B;  /*三角の線になる部分*/
      top: 15px;
      left: -20px;
}
 
.talking-leftr:after {
      position: absolute;
      content: '';
      border: 10px solid transparent;
      border-right: 10px solid #fffffb;
      top: 15px;
      left: -19px;
}


/*---右の吹き出し---*/
.talking-right {
      float:right;
      border-width:1px;      /*枠線の太さ*/
      border-color:#20B97B;    /*枠線の色*/
      background:#20B97B;    /*背景色*/
}
 
/*右の吹き出し 三角*/
.talking-right:before {
      position: absolute;
      content: '';
      border: 10px solid transparent;
      border-left: 10px solid #20B97B;  /*三角の線になる部分*/
      top: 15px;
      right: -20px;
}
 
.talking-right:after {
      position: absolute;
      content: '';
      border: 10px solid transparent;
      border-left: 10px solid #20B97B;
      top: 15px;
      right: -19px;
}

/*------------------------------
  考えごと
------------------------------*/
/*考えごと アイコン*/
.think-left_icon {
      float:left;
      margin-right:32px;
}

think-right_icon {
      float:right;
      margin-left:32px;
}
 
/*考えごと風の吹き出しセリフ部分*/
.think-left , .think-right {
      position:relative;
      padding:10px;    /*内側の余白*/
      border-style:solid;    /*枠線の線種*/
      border-radius:30px;
      max-width: calc(100% - 100px);
}

/*---左の考えごと風の吹き出し---*/
.think-left {
      float:left;
      border-width:2px;    /*枠線の太さ*/
      border-color:#aaa;  /*枠線の色*/
      background:#fff;    /*背景色*/
}
 
/*左の考えごと 小さい丸*/
.think-left:before {
      position:absolute;
      content: '';
      width:8px;
      height:8px;
      border:2px solid #aaa;  /*丸の枠線の太さ 線種 色*/
      border-radius:50%;
      top:22px;
      left:-27px;
      background:#fff;    /*背景色*/
}
 
/*左の考えごと 大きい丸*/
.think-left:after {
      position:absolute;
      content: '';
      width:15px;
      height:15px;
      border:2px solid #aaa;  /*丸の枠線の 線種 色*/
      border-radius:50%;
      top:12px;
      left:-18px;
      background:#fff;    /*背景色*/
}

/*---右の考えごと風の吹き出し---*/
.think-right {
      float:right;
      border-width:2px;    /*枠線の太さ*/
      border-color:#aaa;  /*枠線の色*/
      background:#fff;    /*背景色*/
}

 
/*右の考えごと 小さい丸*/
.think-right:before {
      position:absolute;
      content: '';
      width:8px;
      height:8px;
      border:2px solid #aaa;  /*丸の枠線の太さ 線種 色*/
      border-radius:50%;
      top:22px;
      right:-27px;
      background:#fff;    /*背景色*/
}
 
/*右の考えごと 大きい丸*/
.think-right:after {
      position:absolute;
      content: '';
      width:15px;
      height:15px;
      border:2px solid #aaa;  /*丸の枠線の 線種 色*/
      border-radius:50%;
      top:12px;
      right:-18px;
      background:#fff;    /*背景色*/
}


/* 見出しh1の変更・基本 */
.article h1 {
color: #453D36;/*文字色*/
border-bottom:5px solid #453D36;
margin-top:30px;
margin-bottom:20px;
font-size: 24px;
line-height:117%;
}


/* 見出しh1の変更・緑 */
.article h1.green {
color: #453D36;/*文字色*/
border-bottom:5px solid #20B97B;
margin-top:30px;
margin-bottom:20px;
font-size: 22px;
line-height:117%;
}

/* 見出しh1の変更・黄色 */
.article h1.yellow {
color: #453D36;/*文字色*/
border-bottom:5px solid #C49A27;
margin-top:30px;
margin-bottom:20px;
font-size: 22px;
line-height:117%;
}

/* 見出しh1の変更・青色 */
.article h1.blue {
color: #453D36;/*文字色*/
border-bottom:5px solid #235A9F;
margin-top:30px;
margin-bottom:20px;
font-size: 22px;
line-height:117%;
}

/* 見出しh1の変更・赤色 */
.article h1.red {
color: #453D36;/*文字色*/
border-bottom:5px solid #C7448B;
margin-top:30px;
margin-bottom:20px;
font-size: 22px;
line-height:117%;
}

/* 見出しh2の変更・基本 */
.article h2 {
margin-top:70px;
margin-bottom:20px;
padding:10px 0px;
font-size:22px;
}

/* 見出しh2の変更・緑 */
.article h2.green {
margin: 40px -29px 20px;
padding:5px 10px;
margin-left:3px;
border-left:5px solid #20B97B;
border-bottom: 1px solid #D4EEE1;
background: #F9FDFB;
color:#20B97B;
font-size:20px;
}

/* 見出しh2の変更・黄色 */
.article h2.yellow {
margin: 40px -29px 20px;
padding:5px 10px;
margin-left:3px;
border-left:5px solid #C49A27;
border-bottom: 1px solid #D3BB52;
background: #F5F4F4;
color:#C49A27;
font-size:20px;
}

/* 見出しh2の変更・青色 */
.article h2.blue {
margin: 40px -29px 20px;
padding:5px 10px;
margin-left:3px;
border-left:5px solid #235A9F;
border-bottom: 1px solid #D3BB52;
background: #F5F4F4;
color:#235A9F;
font-size:20px;
}

/* 見出しh2の変更・赤色 */
.article h2.red {
margin: 40px -29px 20px;
padding:5px 10px;
margin-left:3px;
border-left:5px solid #C7448B;
border-bottom: 1px solid #D3BB52;
background: #F5F4F4;
color:#C7448B;
font-size:20px;
}

/* 見出しh3の変更・緑 */
.article h3.green,
#comment-area h3,
#related-entries h3 {
  font-size:18px;
padding:5px 10px;
  border-bottom:1px solid #20B97B;
  border-left:2px solid #20B97B;
}

/* 見出しh3の変更・黄色 */
.article h3.yellow,
#comment-area h3,
#related-entries h3 {
  color:#C49A27;
  font-size:18px;
padding:5px 10px;
  border-bottom:1px solid #C49A27;
  border-left:2px solid #C49A27;
}

/* 見出しh3の変更・青色 */
.article h3.blue,
#comment-area h3,
#related-entries h3 {
  color:#235A9F;
  font-size:18px;
padding:5px 10px;
  border-bottom:1px solid #235A9F;
  border-left:2px solid #235A9F;
}

/* 見出しh3の変更・赤色 */
.article h3.red,
#comment-area h3,
#related-entries h3 {
  color:#C7448B;
  font-size:18px;
padding:5px 10px;
  border-bottom:1px solid #C7448B;
  border-left:2px solid #C7448B;
}

/* 文字にアンダーラインを引く・黄色 */
.undery {
  background: linear-gradient(transparent 80%, #D3BB52 80%);
}
.underg {
  background: linear-gradient(transparent 80%, #20B97B 80%);
}
.underb {
  background: linear-gradient(transparent 80%, #235A9F 80%);
}
.underr {
  background: linear-gradient(transparent 80%, #C7448B 80%);
}


/* 画面の背景の白色を塗りつぶす */
.main,
.sidebar {
    background-color: #EEEBE6;
}



/* 年表 */
.timeline {
  position: relative;
  margin: 2rem 0;
  padding-left: 2rem;
  border-left: 3px solid #453D36;
}
.timeline-item {
  margin-bottom: 2rem;
  position: relative;
}
.timeline-date {
  font-weight: bold;
  color: #453D36;
  margin-bottom: 0.3rem;
}
.timeline-content {
  background: #EEEBE6;
  padding: 0rem;
  border-radius: 0px;
  box-shadow: 1px 1px 0 #20B97B;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.1rem;
  top: 0.3rem;
  width: 12px;
  height: 12px;
  background: #453D36;
  border-radius: 0%;
	  box-shadow: 1px 1px 0 #20B97B;
}


/* 囲ったものに影をつける・黄色 */
.boxy{
  margin: auto;
  background: #000;
  box-shadow: 1px 1px 0 #D3BB52;
}

/* 囲ったものに影をつける・緑 */
.boxg{
  margin: auto;
  background: #000;
  box-shadow: 1px 1px 0 #20B97B;
}

/* 囲ったものに影をつける・青 */
.boxb{
  margin: auto;
  background: #000;
  box-shadow: 1px 1px 0 #235A9F;
}

/* 囲ったものに影をつける・赤 */
.boxr{
  margin: auto;
  background: #000;
  box-shadow: 1px 1px 0 #C7448B;
}

/* 文字に影をつける・黄色 */
.shadowy{
    text-shadow: 1px 1px 0px #D3BB52;
}
.shadowg{
    text-shadow: 1px 1px 0px #20B97B;
}
.shadowb{
    text-shadow: 1px 1px 0px #235A9F;
}
.shadowr{
    text-shadow: 1px 1px 0px #C7448B;
}


/*引用的な背景をつける・黄色*/
.highlight-box {
  background-color: #D6CCC7	; /* ←背景色（仮） */
  padding: 1.5em;
 align-items: center; /* ←縦方向の中央寄せ */
  border-radius: 8px; /* ←角丸（任意） */
	  box-shadow: 1px 1px 0 #C49A27;
}

/*引用的な背景をつける・緑色*/
.highlight-boxg {
  background-color: #fffffb	; /* ←背景色（仮） */
  padding: 1.5em;
 align-items: center; /* ←縦方向の中央寄せ */
  border-radius: 8px; /* ←角丸（任意） */
	  box-shadow: 1px 1px 0 #20B97B;
}

/*引用的な背景をつける・青色*/
.highlight-boxb {
  background-color: #fffffb	; /* ←背景色（仮） */
  padding: 1.5em;
 align-items: center; /* ←縦方向の中央寄せ */
  border-radius: 8px; /* ←角丸（任意） */
	  box-shadow: 1px 1px 0 #235A9F;
}


/*引用的な背景をつける・お知らせ*/
.osirase {
  background-color: #fffffb	; /* ←背景色（仮） */
padding: 10px 10px 0px 30px;
 align-items: center; /* ←縦方向の中央寄せ */
  border-radius: 8px; /* ←角丸（任意） */
	  box-shadow: 1px 1px 0 #C49A27;
}

/* お知らせの各記事カードの下に区切り線を追加 */
.new-entry-card {
  border-bottom: 1px dashed #C49A27; /* 線の種類、太さ、色を調整 */
  padding-bottom: 1px; /* 線と次の記事カードの間の余白 */
  margin-bottom: 1px; /* 記事カードと線の間の余白 */
}

/* お知らせの記事カード内のすべてのリンクに下線を強引に表示 */
.new-entry-card-link {
  text-decoration: underline !important;
  text-decoration-color: #C49A27 !important; /* 例：赤色に設定 */
}

/*引用的な背景をつける・ブログ*/
.faq {
  background-color: #fffffb	; /* ←背景色（仮） */
padding: 10px 10px 0px 30px;
 align-items: center; /* ←縦方向の中央寄せ */
  border-radius: 8px; /* ←角丸（任意） */
	  box-shadow: 1px 1px 0 #C7448B;
}

/*引用的な背景をつける・お問い合わせ*/
.otoiawaseback {
  background-color: #453D36	; /* ←背景色（仮） */
padding: 10px 20px 10px 20px;
 align-items: center; /* ←縦方向の中央寄せ */
   border-radius: 8px;/* ←角丸（任意） */
	color:#fffffb;
}



/* メインビジュアル代わりの文字フォント大 */
.titlemojib {
  font-family: "Kaisei Tokumin", serif;
  font-weight: 700;
  font-style: normal;
	font-size: 1.7em;
}

/* メインビジュアル代わりの文字フォント小 */
.titlemoji {
  font-family: "Zen Old Mincho", serif;
  font-weight: 600;
  font-style: normal;
		font-size: 1.1em;
	    text-align: center; /* 親要素（p.titlemoji）を中央揃えにする */
}

.titlemoji .aligned-text {
    display: inline-block; /* インライン要素だがブロックのように振る舞い、幅を持つ */
    text-align: left;      /* この要素内のテキストを左揃えにする */
    /* 必要に応じて最大幅を設定し、テキストが収まるようにする */
    /* max-width: 300px; */ 
}

/* トップコンテンツのラッパー */
.top-content-wrapper {
    display: flex; /* Flexboxを有効にする */
    align-items: center; /* 垂直方向の中央揃え */
    justify-content: center; /* 水平方向の中央揃え (必要に応じて調整) */
    gap: 2px; /* 画像とテキストの間隔 */
    padding-top: 5px;   /* 上部のパディングのみ5pxに */
    padding-bottom: 20px; /* 下部は現状維持 */
    padding-left: 10px;  /* 左は現状維持 */
    padding-right: 20px; /* 右は現状維持 */
    flex-wrap: wrap; /* 要素が収まらない場合に折り返す */
	/*     margin-top: 0px; /* 上に10px分引き上げる（余白を詰める） */
}

/* 画像コンテナ */
.top-image-container {
    flex: 1.4;
    /* min-width: 300px;  ← この行を削除するか、もっと小さい値にする */
    min-width: 200px; /* 例: より小さい値に設定 */
    text-align: center;
	    padding-left: 2px;  /* 左のパディングを増やす（例: 20px） */
}

.top-image-container img {
    max-width: 100%; /* 親要素の幅に合わせて画像を縮小 */
    height: auto; /* 高さを自動調整し、アスペクト比を維持 */
    display: block; /* 画像の下に余計なスペースができないように */
}

/* テキストコンテナ */
.top-text-container {
    flex: 1; /* 利用可能なスペースを均等に分配 */
    min-width: 300px; /* テキストコンテナの最小幅 */
    padding-left: 80px;  /* 左のパディングを増やす（例: 20px） */
	    padding-right: 2px; /* 右のパディングを増やす（例: 20px） */
	
}

/* スマートフォン対応 (画面幅が768px以下の場合) */
@media (max-width: 768px) {
    .top-content-wrapper {
        flex-direction: column; /* 要素を縦並びにする */
        gap: 20px; /* 縦並びになった時の間隔 */
    }

    .top-image-container,
    .top-text-container {
        flex: none; /* Flexboxの比率指定を解除 */
        width: 100%; /* 幅を100%にする */
        min-width: unset; /* 最小幅を解除 */
    }
    
    .top-image-container {
        order: 1; /* スマートフォンで画像を先に表示 */
    }

    .top-text-container {
        order: 2; /* スマートフォンでテキストを次に表示 */
        text-align: center; /* スマートフォンでテキストを中央揃え */
		    padding-left: 10px;  /* 左のパディングを増やす（例: 20px） */
    }
}


/* トップページの項目名用フォント */
.koumoku {
  font-family: "Kaisei Tokumin", serif;
  font-weight: 800;
  font-style: normal;
	font-size: 1.3em;
	margin-top:70px;
margin-bottom:20px;
padding:10px 0px;
font-size:22px;
	/* text-align: center; 親要素（p.titlemoji）を中央揃えにする */
}