@charset "UTF-8";

@import url("https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@500;700&display=swap");

/*!
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){
  /*必要ならばここにコードを書く*/
}

/************************************
** カラーパレット・全体トーン（追加分）
************************************/
:root {
  --chokatsu-green: #7BA88A;
  --chokatsu-green-dark: #5F8B70;
  --chokatsu-beige: #F5F0E6;
  --chokatsu-offwhite: #FBF9F4;
}

body {
  line-height: 1.9;
}
.entry-content {
  font-size: 105%;
  line-height: 1.9;
}
.entry-content h2 {
  margin-top: 2.4em;
  margin-bottom: 1em;
  padding: 0.6em 1em;
  font-family: "Zen Maru Gothic", "Noto Sans JP", sans-serif;
}
.entry-content h3,
.entry-content h4 {
  font-family: "Zen Maru Gothic", "Noto Sans JP", sans-serif;
}
.entry-content p {
  margin-bottom: 1.6em;
}

/************************************
** Hero部分（トップページ先頭の見出し＋CTA）
************************************/
.home .entry-content > h2:first-of-type {
  text-align: center;
  font-size: 160%;
  border: none;
  background: none;
  padding: 0;
  margin-top: 0.5em;
  margin-bottom: 0;
  line-height: 1.6;
}
.home .entry-content > .cta-box:first-of-type {
  background: linear-gradient(135deg, var(--chokatsu-green) 0%, var(--chokatsu-beige) 100%);
  border-radius: 16px;
  padding: 3em 2em;
  margin-top: 1.5em;
  margin-bottom: 2.5em;
  box-shadow: 0 8px 24px rgba(123, 168, 138, 0.25);
}
.home .entry-content > .cta-box:first-of-type .cta-message {
  color: #fff;
  font-size: 105%;
  text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

/************************************
** 「悩みから探す」「カテゴリー一覧」BOXメニュー
** → アイコン付きカード型デザイン＋ホバーアニメーション
************************************/
.box-menus {
  gap: 16px;
  padding: 8px 0;
}
.box-menus .box-menu {
  width: calc(25% - 12px);
  min-height: 140px;
  background: var(--chokatsu-offwhite);
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(95, 139, 112, 0.12);
  border: 1px solid #ECE6D8;
  padding: 1.4em 1em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.box-menus .box-menu:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(95, 139, 112, 0.22);
}
.box-menus .box-menu-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--chokatsu-green);
  box-shadow: 0 2px 8px rgba(95, 139, 112, 0.15);
}
.box-menus .box-menu-icon img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}
.box-menus .box-menu-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--chokatsu-green-dark);
  margin-top: 4px;
}
.box-menus .box-menu-description {
  font-size: 11px;
  margin-top: 4px;
}

/************************************
** CTAボタン：角丸・柔らかい影・グリーン系配色・コンパクトサイズ
** （①ボタン色：Cocoonのボタンショートコード/ウィジェットは
** 　button_color="btn-red"等のクラスで背景色を指定する仕様のため、
** 　個々のbtn-red/btn-blue/btn-greenクラスより詳細度の高いこの
** 　セレクタでbackground-colorを上書きし、全CTAボタンをグリーンに統一）
** （②サイズ：Cocoon標準の.btn-lはdisplay:flexで横幅いっぱいに
** 　広がる仕様のため、display:inline-flexに変更し.cta-buttonで
** 　中央寄せすることでコンパクトな幅に調整）
************************************/
.cta-box .cta-button {
  text-align: center;
}
.cta-box .cta-button .btn {
  display: inline-flex;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(95, 139, 112, 0.25);
  padding: 0.8em 1.8em;
  border: none;
  background-color: var(--chokatsu-green);
  color: #fff;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.cta-box .cta-button .btn:hover {
  background-color: var(--chokatsu-green-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(95, 139, 112, 0.35);
}
.cta-box.cta-top-and-bottom {
  border-radius: 14px;
}

/************************************
** レスポンシブデザイン用のメディアクエリ（追加分）
************************************/
/*834px以下*/
@media screen and (max-width: 834px){
  .box-menus .box-menu {
    width: calc(50% - 8px);
  }
  .home .entry-content > h2:first-of-type {
    font-size: 130%;
  }
  .home .entry-content > .cta-box:first-of-type {
    padding: 2em 1.2em;
  }
}

/*480px以下*/
@media screen and (max-width: 480px){
  .box-menus .box-menu {
    width: 100%;
  }
}

/************************************
** ①フォローセクションの非表示
** （プロフィールウィジェットに自動付随する「〇〇をフォローする」を
** 　CSSで非表示化。Cocoon側に個別トグルが無いための対応。
** 　実SNS運用開始後、この1ブロックを削除すれば元に戻ります）
************************************/
.profile-follows.author-follows {
  display: none;
}

/************************************
** ②セクション間の余白を拡大
************************************/
.home .entry-content > h2 {
  margin-top: 3.4em;
}
.home .entry-content > h2:first-of-type {
  margin-top: 0.5em;
}
.home .entry-content > .wp-block-shortcode,
.home .entry-content > p {
  margin-bottom: 2em;
}

/************************************
** ②「悩みから探す」BOXメニュー：カテゴリーごとのアイコン色分け
** （⑦線画アイコン差し替えに伴い、塗りつぶし→リング色に変更）
************************************/
.box-menu.care-constipation .box-menu-icon { border-color: #E8973A; }
.box-menu.care-cold .box-menu-icon        { border-color: #5B9BD5; }
.box-menu.care-pms .box-menu-icon         { border-color: #E07A9E; }
.box-menu.care-sleep .box-menu-icon       { border-color: #8B7ECF; }
.box-menu.care-stress .box-menu-icon      { border-color: #E0C23A; }

/************************************
** ②「カテゴリー一覧」BOXメニュー：カテゴリーごとのアイコン色分け
** （⑦線画アイコン差し替えに伴い、塗りつぶし→リング色に変更）
************************************/
.box-menu.cat-guthealth .box-menu-icon    { border-color: var(--chokatsu-green); }
.box-menu.cat-bodytype .box-menu-icon     { border-color: #4FA89B; }
.box-menu.cat-constipation .box-menu-icon { border-color: #E8973A; }
.box-menu.cat-cold .box-menu-icon         { border-color: #5B9BD5; }
.box-menu.cat-pms .box-menu-icon          { border-color: #E07A9E; }
.box-menu.cat-sleep .box-menu-icon        { border-color: #8B7ECF; }
.box-menu.cat-supplements .box-menu-icon  { border-color: var(--chokatsu-green-dark); }

/************************************
** ②プロフィールセクション：装飾イラスト（東洋医学イメージのSVG）
** 外部画像取得ができないため、CSSのみで完結するインラインSVGで対応
************************************/
.home .entry-content > h2:nth-of-type(4) {
  position: relative;
  padding-left: 60px;
}
.home .entry-content > h2:nth-of-type(4)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Ccircle cx='32' cy='32' r='30' fill='%237BA88A' opacity='0.15'/%3E%3Cpath d='M32 12c-8 4-14 12-14 22a14 14 0 0 0 28 0c0-10-6-18-14-22z' fill='%235F8B70'/%3E%3Cpath d='M32 18v28' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3Ccircle cx='32' cy='22' r='2.5' fill='%23fff'/%3E%3Ccircle cx='32' cy='30' r='2.5' fill='%23fff'/%3E%3Ccircle cx='32' cy='38' r='2.5' fill='%23fff'/%3E%3C/svg%3E");
}

/************************************
** ②Hero：写真取得ができない間の暫定処理
** （UnsplashはBot検知チャレンジ、Pixabayは403でアクセス不可のため、
** 　実写真の代わりに柔らかい植物柄パターンを敷いています。仮対応）
************************************/
.home .entry-content > .cta-box:first-of-type {
  background-image:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,0.25) 0, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(255,255,255,0.2) 0, transparent 45%),
    linear-gradient(135deg, var(--chokatsu-green) 0%, var(--chokatsu-beige) 100%);
}

/*834px以下（追加分）*/
@media screen and (max-width: 834px){
  .home .entry-content > h2:nth-of-type(4) {
    padding-left: 50px;
  }
}

/************************************
** ②Hero：実写真を背景に設定（暫定パターンを上書き）
** オーバーレイ（ベージュ半透明）+ 写真の重ね合わせ
** （2026/7/6追記：文字色を薄いグリーンから濃いディープグリーン
** 　#2E4A3Aに変更し、白の縁取り影＋濃い影の二重text-shadowで
** 　写真の明暗どちらの領域でも視認性を確保）
************************************/
.home .entry-content > .cta-box:first-of-type {
  background-image:
    linear-gradient(rgba(245, 240, 230, 0.45), rgba(245, 240, 230, 0.45)),
    url("http://chokatsu-style.com/wp-content/uploads/2026/07/hero-temp.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.home .entry-content > .cta-box:first-of-type .cta-heading,
.home .entry-content > .cta-box:first-of-type .cta-message {
  color: #2E4A3A;
  text-shadow: 0 1px 2px rgba(255,255,255,0.4), 0 2px 8px rgba(0,0,0,0.4);
}
/* （2026/7/6追記②：見出しはtext-shadowだけでは視認性不足との
   フィードバックのため、ベージュ半透明プレートを主な視認性確保
   手段に変更。文字自体を囲む幅だけのプレートにするため
   inline-block化しflexコンテナ内で中央寄せ） */
.home .entry-content > .cta-box:first-of-type .cta-heading {
  display: inline-block;
  align-self: center;
  width: fit-content;
  max-width: 90%;
  background-color: rgba(245, 240, 230, 0.75);
  border-radius: 12px;
  padding: 0.5em 1.1em;
  text-align: center;
  text-shadow: 0 1px 2px rgba(255,255,255,0.3);
}

/************************************
** 表現ルール注意書きボックス（編集時のみ目立たせる用途）
** ※ 誤って公開されても通常本文と明確に区別できる配色にしている
************************************/
.expr-check-box {
  background: #FFF3CD;
  border: 3px dashed #D9534F;
  border-radius: 8px;
  padding: 1em 1.2em;
  margin: 1.5em 0;
}
.expr-check-box p {
  margin: 0.3em 0 !important;
  color: #7A1F1F;
}
.expr-check-box .expr-check-title {
  font-size: 1.1em;
  font-weight: 700;
  color: #D9534F;
}

/************************************
** ③BOXメニューの絞り込み：中央寄せで少し幅を狭め、
** 　4列でも間延びしないようにする
************************************/
.box-menus {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/************************************
** ④セクション背景の交互配色
** （トップページの見出し＋直後のブロックを1セクションとみなし、
** 　ベージュ背景セクションと素地セクションを交互に配置。
** 　対象：②悩みから探す/④プロフィール/⑥カテゴリー一覧/⑧腸活サプリ特集 の各セクション
** 　※現行のホーム本文の並び順・要素構成に合わせた固定指定のため、
** 　　本文の並び順や要素種別を変更した場合はこの範囲も見直しが必要
** 　（Hero直下の一文追加によりp:nth-of-typeが1つずれるため、
** 　　プロフィール本文=p(3)、腸活サプリ特集本文=p(4)を指定）
** 　（2026/7/6追記：③「体質チェックをしてみませんか？」セクション
** 　　（h2+cta-box 1組）を本文から削除したことに伴い、それより後ろの
** 　　h2・div.box-menusのnth-of-type位置が2つ／1つ前にずれたため、
** 　　カテゴリー一覧=h2(6→5)・box-menus(6→5)、腸活サプリ特集=h2(8→7)
** 　　に採番し直し。プロフィール(h2/cta-box=4番目)・悩みから探す
** 　　(h2/box-menus=2番目)は削除箇所より前なので変更なし）
************************************/
.home .entry-content > h2:nth-of-type(2),
.home .entry-content > h2:nth-of-type(4),
.home .entry-content > h2:nth-of-type(5),
.home .entry-content > h2:nth-of-type(7),
.home .entry-content > div.box-menus:nth-of-type(2),
.home .entry-content > div.cta-box:nth-of-type(4),
.home .entry-content > div.box-menus:nth-of-type(5),
.home .entry-content > p:nth-of-type(3),
.home .entry-content > p:nth-of-type(4) {
  background: var(--chokatsu-beige);
  border-radius: 12px;
}
.home .entry-content > h2:nth-of-type(2),
.home .entry-content > h2:nth-of-type(5),
.home .entry-content > h2:nth-of-type(7) {
  padding: 0.6em 1.2em;
}
.home .entry-content > h2:nth-of-type(4) {
  padding-top: 0.6em;
  padding-right: 1.2em;
  padding-bottom: 0.6em;
  /* padding-leftは②のプロフィール装飾アイコン用の60pxを維持 */
}
.home .entry-content > div.box-menus:nth-of-type(2),
.home .entry-content > div.cta-box:nth-of-type(4),
.home .entry-content > div.box-menus:nth-of-type(5),
.home .entry-content > p:nth-of-type(3),
.home .entry-content > p:nth-of-type(4) {
  padding: 1.2em 1.2em 0.2em;
}

/************************************
** ③「悩みから探す」BOXメニュー（5項目）をPC表示で1行に収める
** （box-menusクラスは「カテゴリー一覧」（7項目）とも共通のため、
** 　DOM構造上div.box-menusの2番目＝悩みから探すのみを
** 　nth-of-typeで個別指定。カテゴリー一覧側は従来の4列のまま維持。
** 　835px以上でのみ適用し、834px以下は既存のレスポンシブ折り返し
** 　（50%/100%）に委ねる）
************************************/
@media screen and (min-width: 835px){
  .home .entry-content > div.box-menus:nth-of-type(2) {
    max-width: 1000px;
  }
  .home .entry-content > div.box-menus:nth-of-type(2) .box-menu {
    width: calc(20% - 12.8px);
  }
}
