.forest-board {
  padding: 0;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #e6e9b9;
  color: #492811;
  font-family: var(--font-rounded);
}
.forest-board::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("/assets/top-closing-forest-path.webp?v=2") center / cover no-repeat;
}
/* 中身が入るまで、森の絵が見える高さを保つ */
.forest-board:empty { min-height: clamp(240px, 30vw, 420px); }
/* サイトの最後の呼びかけ。左に言葉とボタン、右にリスたち。ボタンの見た目はファーストビューと同じ */
.forest-board-cta {
  --fv-green: #4e8a2c;
  --fv-green-dark: #3f7322;
  --fv-brown: #492811;
  position: relative;
  isolation: isolate;
  display: grid;
}
/* 文字の後ろに敷く楕円のぼかし。ボタンの上あたりで消える */
.forest-board-cta::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -44px -64px 96px;
  background: radial-gradient(ellipse farthest-side, rgb(255 251 233 / 82%) 40%, rgb(255 251 233 / 50%) 70%, transparent 100%);
}
.forest-board-line {
  margin: 0;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
/* 読点と句点の右の余白だけを詰める(このフォントは halt が効かない) */
.forest-board-line-punct { margin-right: -0.4em; }
.forest-board-text {
  margin: 14px 0 26px;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.8;
  word-break: auto-phrase;
  text-wrap: pretty;
}
/* 最後のボタンは縦に並べる */
.forest-board-cta .fv-actions {
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  width: min(280px, 100%);
  margin: 0;
}
.forest-board-team { position: relative; z-index: 1; isolation: isolate; }
.forest-board-team img { display: block; width: 100%; height: 100%; }
/* 足元の影 */
.forest-board-team::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 6%;
  right: 2%;
  bottom: -1%;
  height: 11%;
  border-radius: 50%;
  background: rgb(73 40 17 / 32%);
  filter: blur(12px);
}
/* 絵の上の文字に、ファーストビューと同じ明るいぼかしの縁をつけて読みやすくする */
.forest-board-line,
.forest-board-text {
  text-shadow:
    0 0 2px rgba(255, 253, 242, 0.95),
    0 0 6px rgba(255, 253, 242, 0.9),
    0 0 12px rgba(255, 253, 242, 0.85),
    0 0 20px rgba(255, 253, 242, 0.7);
}
/* 中身は880pxの箱の中で、左に言葉とボタン、右にリスたち */
@media (min-width: 1024px) {
  /* 絵の木の間(横52%あたり)を文字の後ろへ。左右の木が文字にかからない大きさと位置にする */
  .forest-board { container-type: inline-size; }
  .forest-board::before {
    --inner-width: min(880px, 100cqw - 48px);
    --text-center: calc((100cqw - var(--inner-width)) / 2 + 195px);
    --bg-width: max(3000px, calc((100cqw - var(--text-center)) / .48));
    background-size: var(--bg-width) auto;
    background-position: calc(var(--text-center) - .52 * var(--bg-width)) 50%;
  }
  .forest-board-inner {
    position: relative;
    display: flex;
    align-items: center;
    width: min(880px, 100% - 48px);
    height: 560px;
    margin-inline: auto;
  }
  /* 左の木にかからないよう、少しだけ右へ。背景の位置は動かさない */
  .forest-board-cta { justify-items: start; width: min(390px, 100%); margin-left: 24px; }
  .forest-board-team {
    position: absolute;
    right: 0;
    bottom: 40px;
    height: 75%;
    aspect-ratio: 1200 / 1146;
  }
}
/* 狭い画面:リスたちを上に、言葉とボタンを下に。絵は真ん中の道を中心に */
@media (max-width: 1023px) {
  .forest-board::before { background-position: 52% 50%; }
  .forest-board-inner { display: grid; justify-items: center; padding: 32px 16px 36px; }
  /* セリフ、リスたち、説明文、ボタンの順に並べるので、言葉とボタンのまとまりをほどく */
  .forest-board-cta { display: contents; }
  .forest-board-cta::before { content: none; }
  .forest-board-line { order: 1; margin-bottom: 14px; text-align: center; }
  .forest-board-team { order: 2; width: min(75%, 370px); aspect-ratio: 1200 / 1146; margin-bottom: 18px; }
  .forest-board-text { order: 3; margin: 0 0 24px; font-size: .9375rem; text-align: center; }
  .forest-board-cta .fv-actions { order: 4; width: min(300px, 100%); }
  /* 楕円のぼかしは、セリフと説明文のそれぞれの後ろに */
  .forest-board-line,
  .forest-board-text { position: relative; isolation: isolate; }
  .forest-board-line::before,
  .forest-board-text::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -22px -44px;
    background: radial-gradient(ellipse farthest-side, rgb(255 251 233 / 82%) 40%, rgb(255 251 233 / 50%) 70%, transparent 100%);
  }
}
.forest-board-heading {
  position: relative;
  isolation: isolate;
  display: flow-root;
}
.forest-board-heading::before {
  content: "";
  position: absolute;
  inset: -26px 0 -12px;
  z-index: -1;
  background: radial-gradient(ellipse farthest-side, rgb(255 252 240 / 80%) 35%, rgb(255 252 240 / 55%) 70%, transparent 100%);
}
.forest-board-lead { margin: 0 0 4px; }
.forest-board-sign { max-width: 800px; margin-inline: auto; padding-top: 16px; }
.forest-board-frame {
  position: relative;
  border: clamp(15px, 3vw, 34px) solid transparent;
  border-image: url("/assets/top-board-frame.webp") 50 fill stretch;
  padding: clamp(10px, 2vw, 24px);
}
#forest-board-title,
.forest-board-frame h3 { font-family: "Zen Kaku Gothic New", sans-serif; margin: 0; }
#forest-board-title { margin-bottom: 6px; text-align: center; font-size: clamp(24px, 3vw, 34px); }
.forest-board-controls[hidden], .forest-board-slides article[hidden] { display: none; }
.forest-board-slides a {
  padding: 8px 14px;
  color: inherit;
  background: #fff5e1;
  border: 1px solid #ad875d;
  border-radius: 999px;
  font: inherit;
  cursor: pointer;
}
.forest-board-slides article { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(12px, 3vw, 36px); }
.forest-board-slides img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #fff; }
.forest-board-slides a { display: inline-block; text-decoration: none; }
.forest-board-kind { color: #436b2c; font-size: .875rem; margin: 0 0 6px; }
/* 前へ・次へは看板の下、2本の脚のあいだに置く(2026-11-05 りささん) */
.forest-board-stand { display: grid; }
.forest-board-stand > * { grid-area: 1 / 1; }
.forest-board-stand > .forest-board-controls { align-self: center; }
.forest-board-legs { display: flex; justify-content: space-between; padding-inline: 2%; }
.forest-board-legs img { width: 27%; height: auto; object-fit: contain; align-self: start; }
@media (max-width: 680px) {
  .forest-board-slides article { grid-template-columns: minmax(0, 1fr); }
  /* 脚のあいだに収まらない幅では、脚の下に置く */
  .forest-board-stand > .forest-board-controls { grid-area: 2 / 1; margin-top: 8px; }
}

.forest-board-intro { margin: 0 0 18px; text-align: center; line-height: 1.6; }

.forest-board-new { margin-inline-start: 6px; padding: 2px 6px; border-radius: 4px; background: #436b2c; color: white; font-size: .75rem; }
