/*
Theme Name: Cocoon Child
Template: cocoon-master
Version: 4.0.0
Description: お金の森 - 金融ツールプラットフォーム（童話の森 × お金の図書館）
*/

/* ============================================
   0. カラー／フォント／形 変数
   UI = Webアプリ、背景 = 絵本世界 の分離を実現するため
   木・紙・本・看板を想起させるトーンで統一
   ============================================ */
:root {
  /* 森グリーン */
  --mf-green-deep:   #2E5D3A;
  --mf-green-main:   #4E8D5A;
  --mf-green-light:  #8DBE85;
  --mf-green-pale:   #C7DFB8;
  --mf-green-mist:   #E4F0D9;
  /* 木ブラウン */
  --mf-wood-dark:    #5B3A24;
  --mf-wood-main:    #8B5E3B;
  --mf-wood-light:   #B88A5E;
  --mf-wood-pale:    #E8D4B8;
  /* 紙・羊皮紙 */
  --mf-paper:        #FBF4E1;
  --mf-paper-deep:   #F0E3C2;
  --mf-paper-edge:   #D9C49A;
  /* 背景・強調 */
  --mf-bg-base:      #FAF7EE;
  --mf-bg-cream:     #F3EDD9;
  --mf-accent-warm:  #E6A24C;
  --mf-accent-red:   #C06540;

  /* テキスト */
  --mf-text:         #3B2C1D;
  --mf-text-mid:     #6A5842;
  --mf-text-mute:    #9B8A70;

  --mf-shadow-soft:  0 3px 12px rgba(91, 58, 36, 0.12);
  --mf-shadow-hover: 0 8px 24px rgba(91, 58, 36, 0.22);

  --mf-radius-sm:    10px;
  --mf-radius-md:    18px;
  --mf-radius-lg:    26px;
  --mf-radius-pill:  999px;

  --mf-font-head:    'Zen Maru Gothic', 'M PLUS Rounded 1c', sans-serif;
  --mf-font-body:    'Noto Sans JP', 'Hiragino Sans', 'Meiryo', sans-serif;
}

/* ============================================
   1. ベース
   ============================================ */
body {
  font-family: var(--mf-font-body);
  background-color: var(--mf-bg-base);
  color: var(--mf-text);
  line-height: 1.75;
}

h1, h2, h3, h4, h5, h6,
.mf-hero__title,
.mf-heading__title,
.mf-tool-card__title,
.mf-article-card__title,
.mf-char-card__name,
.mf-map-card__title,
.mf-featured-card__title,
.mf-soudan__title,
.mf-list-card__title,
.mf-stage-card__label {
  font-family: var(--mf-font-head);
  letter-spacing: 0.02em;
}

.front-page-wrap {
  max-width: 100%;
  overflow-x: hidden;
}

/* 共通セクション */
.mf-section {
  position: relative;
  padding: 56px 16px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.mf-section__inner {
  position: relative;
  z-index: 2;
  max-width: 1080px;
  margin: 0 auto;
}

/* 絵本背景の上に白紙のヴェールを敷いてUI可読性を確保 */
.mf-section__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(251,244,225,0.90) 0%, rgba(251,244,225,0.78) 60%, rgba(251,244,225,0.92) 100%);
  z-index: 1;
  pointer-events: none;
}

.mf-section__scrim--soft {
  background: linear-gradient(180deg, rgba(251,244,225,0.65) 0%, rgba(251,244,225,0.55) 60%, rgba(251,244,225,0.70) 100%);
}

/* 見出し */
.mf-heading {
  text-align: center;
  margin-bottom: 32px;
  position: relative;
}
.mf-heading__num {
  display: inline-block;
  font-family: var(--mf-font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--mf-wood-main);
  background: var(--mf-paper);
  border: 1px solid var(--mf-paper-edge);
  border-radius: var(--mf-radius-pill);
  padding: 3px 12px;
  margin-bottom: 10px;
}
.mf-heading__title {
  font-size: clamp(1.35rem, 4.5vw, 1.9rem);
  font-weight: 700;
  color: var(--mf-green-deep);
  margin: 0 0 8px;
  line-height: 1.5;
}
.mf-heading__sub {
  font-size: 0.9rem;
  color: var(--mf-text-mid);
  margin: 0;
}
.mf-heading--on-dark .mf-heading__num   { background: rgba(251,244,225,0.92); }
.mf-heading--on-dark .mf-heading__title { color: var(--mf-paper); text-shadow: 0 2px 6px rgba(0,0,0,0.35); }
.mf-heading--on-dark .mf-heading__sub   { color: var(--mf-paper-edge); text-shadow: 0 1px 4px rgba(0,0,0,0.25); }

/* 共通ボタン */
.mf-btn {
  display: inline-block;
  padding: 14px 30px;
  font-family: var(--mf-font-head);
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--mf-radius-pill);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
  letter-spacing: 0.06em;
  line-height: 1.3;
}
.mf-btn--primary {
  background: linear-gradient(150deg, var(--mf-wood-main) 0%, var(--mf-wood-dark) 100%);
  color: var(--mf-paper);
  box-shadow: 0 4px 14px rgba(91, 58, 36, 0.35), inset 0 1px 0 rgba(255,255,255,0.2);
}
.mf-btn--primary:hover,
.mf-btn--primary:focus {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(91, 58, 36, 0.45), inset 0 1px 0 rgba(255,255,255,0.25);
  color: var(--mf-paper);
  text-decoration: none;
}
.mf-btn--ghost {
  background: rgba(251,244,225,0.92);
  color: var(--mf-green-deep);
  border: 2px solid var(--mf-green-deep);
}
.mf-btn--ghost:hover,
.mf-btn--ghost:focus {
  background: var(--mf-green-deep);
  color: var(--mf-paper);
  transform: translateY(-2px);
  text-decoration: none;
}
.mf-btn--wide { width: 100%; max-width: 360px; padding-left: 0; padding-right: 0; }

/* 空状態 */
.mf-empty {
  padding: 32px 20px;
  text-align: center;
  background: var(--mf-paper);
  border: 1.5px dashed var(--mf-paper-edge);
  border-radius: var(--mf-radius-md);
  color: var(--mf-text-mid);
}
.mf-empty__sub { font-size: 0.82rem; color: var(--mf-text-mute); margin-top: 6px; }
.mf-empty--on-dark { background: rgba(251,244,225,0.92); }

/* ============================================
   2. ① ファーストビュー
   背景イラスト → 上に白紙カードUI、キャラは左右に重ねる
   仕様：イラスト直置き文字は禁止
   ============================================ */
.mf-hero {
  position: relative;
  background-size: cover;
  background-position: center 30%;
  padding: 48px 16px 72px;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.mf-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(46, 93, 58, 0.18) 0%, rgba(46, 93, 58, 0.05) 50%, rgba(251, 244, 225, 0.75) 100%);
  pointer-events: none;
  z-index: 1;
}
.mf-hero__inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}

.mf-hero__card {
  background: var(--mf-paper);
  border: 2px solid var(--mf-paper-edge);
  border-radius: var(--mf-radius-lg);
  padding: 28px 24px 26px;
  text-align: center;
  box-shadow: 0 14px 34px rgba(46,93,58,0.22), inset 0 1px 0 rgba(255,255,255,0.6);
  position: relative;
}
/* 羊皮紙の四隅留め金風アクセント */
.mf-hero__card::before,
.mf-hero__card::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid var(--mf-wood-main);
  border-radius: 3px;
  background: var(--mf-paper-deep);
}
.mf-hero__card::before { top: 10px; left: 10px; border-right: none; border-bottom: none; }
.mf-hero__card::after  { bottom: 10px; right: 10px; border-left: none; border-top: none; }

.mf-hero__eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--mf-wood-main);
  background: var(--mf-paper-deep);
  border-radius: var(--mf-radius-pill);
  padding: 3px 14px;
  margin: 0 0 16px;
}
.mf-hero__title {
  font-size: clamp(1.8rem, 7vw, 2.6rem);
  line-height: 1.4;
  font-weight: 700;
  color: var(--mf-green-deep);
  margin: 0 0 16px;
}
.mf-hero__title-accent {
  display: inline-block;
  position: relative;
  padding: 0 4px;
}
.mf-hero__title-accent::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 8px;
  background: rgba(230, 162, 76, 0.35);
  border-radius: 4px;
  z-index: -1;
}
.mf-hero__lead {
  font-size: 0.95rem;
  color: var(--mf-text-mid);
  line-height: 1.9;
  margin: 0 0 22px;
}
.mf-hero__ctas {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ヒーロー左右キャラ（モバイルでは小さく配置） */
.mf-hero__char {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  width: 28vw;
  max-width: 180px;
  bottom: 6px;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.18));
}
.mf-hero__char--left  { left: -2vw; }
.mf-hero__char--right { right: -2vw; }

/* ============================================
   3. ② 人生ステージナビ
   木の看板風カード（brown gradient）＋アイコン PNG
   ============================================ */
.mf-stages {
  padding-top: 60px;
  padding-bottom: 52px;
}
.mf-stage-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 520px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
}
.mf-stage-card {
  list-style: none;
}
.mf-stage-card__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 10px 14px;
  text-decoration: none;
  background: linear-gradient(165deg, var(--mf-wood-light) 0%, var(--mf-wood-main) 70%, var(--mf-wood-dark) 100%);
  color: var(--mf-paper);
  border-radius: var(--mf-radius-md);
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.22),
    inset 0 -3px 0 rgba(0,0,0,0.18),
    var(--mf-shadow-soft);
  border: 2px solid var(--mf-wood-dark);
  transition: transform .2s ease, box-shadow .2s ease;
  min-height: 128px;
}
.mf-stage-card__link:hover,
.mf-stage-card__link:focus {
  transform: translateY(-3px);
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.25),
    inset 0 -3px 0 rgba(0,0,0,0.22),
    var(--mf-shadow-hover);
  color: var(--mf-paper);
  text-decoration: none;
}
.mf-stage-card__icon-wrap {
  width: 62px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mf-paper);
  border-radius: 50%;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 2px 6px rgba(0,0,0,0.18);
  border: 2px solid var(--mf-paper-edge);
}
.mf-stage-card__icon-wrap img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}
.mf-stage-card__label {
  font-size: 0.92rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.05em;
  line-height: 1.3;
  color: var(--mf-paper);
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* ============================================
   4. ③ 人気ツール（横スクロールカルーセル）
   将来50〜100ツールでも崩れないのが要件
   ============================================ */
.mf-tools {
  background: var(--mf-bg-cream);
  padding: 56px 0 50px;
}
.mf-tools .mf-section__inner { padding: 0 16px; }

.mf-carousel {
  position: relative;
  margin: 0 -16px;
  padding: 4px 0 8px;
}
.mf-carousel__track {
  list-style: none;
  margin: 0;
  padding: 8px 16px 24px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 78%;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--mf-wood-light) transparent;
  -webkit-overflow-scrolling: touch;
}
.mf-carousel__track::-webkit-scrollbar { height: 8px; }
.mf-carousel__track::-webkit-scrollbar-track { background: transparent; }
.mf-carousel__track::-webkit-scrollbar-thumb { background: var(--mf-wood-light); border-radius: 4px; }

.mf-carousel__item { scroll-snap-align: start; }
.mf-carousel__hint {
  text-align: center;
  font-size: 0.76rem;
  color: var(--mf-text-mute);
  letter-spacing: 0.1em;
  margin: 4px 0 0;
}

/* ツールカード（CPTの主役） */
.mf-tool-card {
  display: flex;
  flex-direction: column;
  background: var(--mf-paper);
  border: 2px solid var(--mf-paper-edge);
  border-radius: var(--mf-radius-md);
  overflow: hidden;
  text-decoration: none;
  color: var(--mf-text);
  height: 100%;
  box-shadow: var(--mf-shadow-soft);
  transition: transform .22s ease, box-shadow .22s ease;
}
.mf-tool-card:hover,
.mf-tool-card:focus {
  transform: translateY(-4px);
  box-shadow: var(--mf-shadow-hover);
  color: var(--mf-text);
  text-decoration: none;
}
.mf-tool-card__thumb {
  aspect-ratio: 4 / 3;
  background: var(--mf-green-mist);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mf-tool-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mf-tool-card__body {
  padding: 14px 16px 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mf-tool-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--mf-green-deep);
  margin: 0;
  line-height: 1.4;
}
.mf-tool-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mf-tool-card__tags li {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 11px;
  background: var(--mf-green-mist);
  color: var(--mf-green-deep);
  border-radius: var(--mf-radius-pill);
  border: 1px solid var(--mf-green-pale);
}
.mf-tool-card__excerpt {
  font-size: 0.83rem;
  color: var(--mf-text-mid);
  line-height: 1.7;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mf-tool-card__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding: 11px 16px;
  border-top: 1px solid var(--mf-paper-edge);
  background: var(--mf-bg-cream);
  color: var(--mf-wood-dark);
  font-family: var(--mf-font-head);
  font-weight: 700;
  font-size: 0.88rem;
}
.mf-tool-card__cta::after {
  content: '→';
  transition: transform .15s;
}
.mf-tool-card:hover .mf-tool-card__cta::after {
  transform: translateX(4px);
}

/* ============================================
   5. ④ 診断マップ（探索導線）
   看板のような分岐カード
   ============================================ */
.mf-map {
  padding-top: 56px;
  padding-bottom: 48px;
}
.mf-map-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 620px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
}
.mf-map-card {
  list-style: none;
}
.mf-map-card__link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: var(--mf-paper);
  border: 2px solid var(--mf-paper-edge);
  border-left: 6px solid var(--mf-green-main);
  border-radius: var(--mf-radius-md);
  text-decoration: none;
  color: var(--mf-text);
  box-shadow: var(--mf-shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease, border-left-color .2s ease;
}
.mf-map-card__link:hover,
.mf-map-card__link:focus {
  transform: translateX(4px);
  box-shadow: var(--mf-shadow-hover);
  border-left-color: var(--mf-accent-warm);
  color: var(--mf-text);
  text-decoration: none;
}
.mf-map-card__icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mf-green-mist);
  border-radius: 50%;
  border: 2px solid var(--mf-green-pale);
}
.mf-map-card__icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.mf-map-card__body { flex: 1; }
.mf-map-card__title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--mf-green-deep);
  margin: 0 0 2px;
}
.mf-map-card__sub {
  font-size: 0.82rem;
  color: var(--mf-text-mid);
  margin: 0;
}
.mf-map-card__arrow {
  font-size: 1.5rem;
  color: var(--mf-wood-main);
  flex-shrink: 0;
}

/* ============================================
   6. ⑤ モリガマの知恵袋（図書館背景の上）
   ============================================ */
.mf-wisdom {
  padding: 64px 16px 56px;
}
.mf-wisdom .mf-section__scrim {
  background: linear-gradient(180deg, rgba(46,93,58,0.55) 0%, rgba(91,58,36,0.55) 100%);
}
.mf-article-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 720px;
}
.mf-article-card {
  list-style: none;
}
.mf-article-card__link {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--mf-paper);
  border: 2px solid var(--mf-paper-edge);
  border-radius: var(--mf-radius-md);
  text-decoration: none;
  color: var(--mf-text);
  box-shadow: var(--mf-shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease;
}
.mf-article-card__link:hover,
.mf-article-card__link:focus {
  transform: translateY(-3px);
  box-shadow: var(--mf-shadow-hover);
  color: var(--mf-text);
  text-decoration: none;
}
.mf-article-card__thumb {
  width: 92px;
  height: 92px;
  flex-shrink: 0;
  border-radius: var(--mf-radius-sm);
  overflow: hidden;
  background: var(--mf-green-mist);
}
.mf-article-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.mf-article-card__body { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.mf-article-card__title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--mf-green-deep);
  margin: 0;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mf-article-card__excerpt {
  font-size: 0.8rem;
  color: var(--mf-text-mid);
  margin: 0;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mf-article-card__cta {
  margin-top: auto;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--mf-wood-main);
  align-self: flex-end;
}

/* ============================================
   7. ⑥ キャラクター紹介
   羊皮紙風カード。イラスト直置き文字禁止なので、文字はカード内の白地に置く
   ============================================ */
.mf-chars {
  padding: 56px 16px;
  background: var(--mf-bg-base);
}
.mf-chars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  max-width: 860px;
  margin: 0 auto;
  list-style: none;
}
.mf-char-card {
  display: flex;
  gap: 16px;
  padding: 18px 20px;
  background: var(--mf-paper);
  border: 2px solid var(--mf-paper-edge);
  border-radius: var(--mf-radius-lg);
  box-shadow: var(--mf-shadow-soft);
  position: relative;
}
.mf-char-card::before,
.mf-char-card::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border: 2px solid var(--mf-wood-main);
  background: var(--mf-paper-deep);
  border-radius: 2px;
}
.mf-char-card::before { top: 8px; left: 8px; border-right: none; border-bottom: none; }
.mf-char-card::after  { bottom: 8px; right: 8px; border-left: none; border-top: none; }

.mf-char-card__portrait {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mf-green-mist);
  border-radius: 50%;
  border: 3px solid var(--mf-paper-edge);
  overflow: hidden;
}
.mf-char-card__portrait img {
  width: 112%;
  height: 112%;
  object-fit: contain;
}
.mf-char-card__body { flex: 1; min-width: 0; }
.mf-char-card__role {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--mf-wood-main);
  margin: 0 0 2px;
}
.mf-char-card__name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--mf-green-deep);
  margin: 0 0 8px;
}
.mf-char-card__desc {
  font-size: 0.85rem;
  color: var(--mf-text-mid);
  line-height: 1.8;
  margin: 0;
}

/* ============================================
   8. ⑦ 新着記事
   ============================================ */
.mf-latest-posts {
  padding: 56px 16px;
  background: var(--mf-bg-cream);
}
.mf-list-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  max-width: 720px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
}
.mf-list-card { list-style: none; }
.mf-list-card__link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: var(--mf-paper);
  border: 1.5px solid var(--mf-paper-edge);
  border-radius: var(--mf-radius-md);
  text-decoration: none;
  color: var(--mf-text);
  box-shadow: 0 2px 8px rgba(91,58,36,0.08);
  transition: transform .2s ease, box-shadow .2s ease;
}
.mf-list-card__link:hover,
.mf-list-card__link:focus {
  transform: translateY(-2px);
  box-shadow: var(--mf-shadow-soft);
  color: var(--mf-text);
  text-decoration: none;
}
.mf-list-card__thumb {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: var(--mf-radius-sm);
  overflow: hidden;
  background: var(--mf-green-mist);
}
.mf-list-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.mf-list-card__body { flex: 1; min-width: 0; }
.mf-list-card__date {
  font-size: 0.72rem;
  color: var(--mf-wood-main);
  letter-spacing: 0.05em;
  font-weight: 700;
}
.mf-list-card__title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--mf-green-deep);
  margin: 2px 0 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================
   9. ⑧ 新着ツール（記事より目立たせる）
   ============================================ */
.mf-latest-tools {
  padding: 64px 16px 56px;
}
.mf-featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  max-width: 720px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
}
.mf-featured-card { list-style: none; }
.mf-featured-card__link {
  display: flex;
  flex-direction: column;
  background: var(--mf-paper);
  border: 2px solid var(--mf-green-pale);
  border-radius: var(--mf-radius-md);
  overflow: hidden;
  text-decoration: none;
  color: var(--mf-text);
  box-shadow: 0 4px 14px rgba(46,93,58,0.16);
  transition: transform .22s ease, box-shadow .22s ease;
  height: 100%;
}
.mf-featured-card__link:hover,
.mf-featured-card__link:focus {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(46,93,58,0.28);
  color: var(--mf-text);
  text-decoration: none;
}
.mf-featured-card__thumb {
  aspect-ratio: 4 / 3;
  position: relative;
  background: var(--mf-green-mist);
}
.mf-featured-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mf-featured-card__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--mf-accent-red);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  border-radius: var(--mf-radius-pill);
  box-shadow: 0 2px 6px rgba(192,101,64,0.4);
}
.mf-featured-card__body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.mf-featured-card__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--mf-green-deep);
  margin: 0;
  line-height: 1.4;
}
.mf-featured-card__meta {
  font-size: 0.74rem;
  color: var(--mf-wood-main);
  margin: 0;
}
.mf-featured-card__cta {
  margin-top: auto;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--mf-wood-dark);
  padding-top: 6px;
}

/* ============================================
  10. ⑨ 森の相談箱
   ============================================ */
.mf-soudan {
  padding: 64px 16px;
}
.mf-soudan .mf-section__scrim {
  background: linear-gradient(180deg, rgba(46,93,58,0.55) 0%, rgba(46,93,58,0.7) 100%);
}
.mf-soudan__card {
  position: relative;
  max-width: 540px;
  margin: 0 auto;
  padding: 36px 24px 26px;
  background: var(--mf-paper);
  border: 2px solid var(--mf-paper-edge);
  border-radius: var(--mf-radius-lg);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
  text-align: center;
}
.mf-soudan__gama {
  position: absolute;
  top: -44px;
  left: 50%;
  transform: translateX(-50%);
  width: 86px;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mf-paper);
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  border: 3px solid var(--mf-paper-edge);
}
.mf-soudan__gama img { width: 70px; height: 70px; object-fit: contain; }

.mf-soudan__eyebrow {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--mf-wood-main);
  margin: 12px 0 6px;
}
.mf-soudan__title {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--mf-green-deep);
  margin: 0 0 12px;
}
.mf-soudan__lead {
  font-size: 0.88rem;
  color: var(--mf-text-mid);
  line-height: 1.85;
  margin: 0 0 20px;
}
.mf-soudan__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
.mf-soudan__label {
  align-self: flex-start;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--mf-wood-dark);
}
.mf-soudan__form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--mf-paper-edge);
  background: var(--mf-paper-deep);
  border-radius: var(--mf-radius-sm);
  font-family: var(--mf-font-body);
  font-size: 0.92rem;
  color: var(--mf-text);
  resize: vertical;
}
.mf-soudan__form textarea:focus {
  outline: none;
  border-color: var(--mf-green-main);
  box-shadow: 0 0 0 3px rgba(78,141,90,0.18);
}
.mf-soudan__note {
  margin-top: 14px;
  font-size: 0.74rem;
  color: var(--mf-text-mute);
}

/* ============================================
  11. タブレット以上（600px〜）
   ============================================ */
@media (min-width: 600px) {
  .mf-section { padding: 72px 32px; }
  .mf-hero { padding: 64px 40px 88px; min-height: 600px; }

  .mf-stage-grid {
    grid-template-columns: repeat(5, 1fr);
    max-width: 720px;
    gap: 14px;
  }

  .mf-carousel__track {
    grid-auto-columns: 42%;
  }

  .mf-article-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .mf-article-card__link { flex-direction: column; }
  .mf-article-card__thumb { width: 100%; height: 140px; }

  .mf-chars-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .mf-list-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mf-featured-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .mf-hero__char { width: 22vw; max-width: 220px; }
}

/* ============================================
  12. デスクトップ（1024px〜）
   ============================================ */
@media (min-width: 1024px) {
  .mf-section { padding: 88px 40px; }
  .mf-hero { min-height: 640px; }

  .mf-carousel__track {
    grid-auto-columns: minmax(280px, 1fr);
    grid-auto-flow: column;
    overflow-x: auto;
  }

  .mf-list-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .mf-hero__char--left  { left: 2vw; bottom: 12px; }
  .mf-hero__char--right { right: 2vw; bottom: 12px; }
  .mf-hero__char        { max-width: 260px; width: 18vw; }
}

/* ============================================
  13. Cocoon 上書き（トップページで余白を作らない）
   ============================================ */
.home .site-content,
.front-page .site-content {
  padding: 0;
  max-width: 100%;
}
.home .main,
.front-page .main {
  padding: 0;
  width: 100%;
  max-width: 100%;
}
.home .breadcrumb,
.home .article-title,
.front-page .breadcrumb,
.front-page .article-title {
  display: none;
}

/* ヘッダー・フッター：森の世界観に合わせる */
#header {
  background: linear-gradient(100deg, var(--mf-green-pale) 0%, var(--mf-green-light) 100%) !important;
}
.navi-in > ul > li > a,
.navi-in > ul > li > span {
  color: var(--mf-green-deep) !important;
  font-family: var(--mf-font-head);
  font-weight: 700;
}
.navi-in > ul > li > a:hover {
  background: rgba(251,244,225,0.55) !important;
  border-radius: 6px;
  color: var(--mf-green-deep) !important;
}

#footer {
  background: var(--mf-green-deep) !important;
  color: rgba(251,244,225,0.85) !important;
}
#footer a { color: var(--mf-paper) !important; }
