/* =========================================================
   main.css
   コンポーネント別スタイル（モバイルファースト）
   ※ 色は必ず --stm-* 変数を使用（べた書き禁止）
   ========================================================= */

/* =========================================================
   背景パターン（やさしい模様）
   - .stm-bg-dots : 淡いアンバーのドット模様
   - .stm-bg-grid : 同系のやわらかい市松（任意）
   ※ 色は変数の色味に合わせた低彩度・低不透明度で、内容の邪魔をしない。
   ========================================================= */
.stm-bg-dots {
  background-color: var(--stm-wood-light);
  background-image: radial-gradient(rgba(245, 166, 35, 0.18) 2px, transparent 2px);
  background-size: 24px 24px;
  background-position: 0 0;
}

.stm-bg-soft {
  background-color: #FFFBF4;
  background-image: radial-gradient(rgba(245, 166, 35, 0.12) 2px, transparent 2px);
  background-size: 26px 26px;
}

/* =========================================================
   アニメーション（動きの演出）
   - スクロールで .stm-reveal がふわっと表示
   - JS有効時(.stm-js)のみ初期非表示にし、prefers-reduced-motion を尊重
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  .stm-js .stm-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    will-change: opacity, transform;
  }

  .stm-js .stm-reveal.is-visible {
    opacity: 1;
    transform: none;
  }

  /* グリッド内の順次表示（スタッガー） */
  .stm-js .stm-reveal.is-stagger:nth-child(2) { transition-delay: 0.1s; }
  .stm-js .stm-reveal.is-stagger:nth-child(3) { transition-delay: 0.2s; }
  .stm-js .stm-reveal.is-stagger:nth-child(4) { transition-delay: 0.3s; }
  .stm-js .stm-reveal.is-stagger:nth-child(5) { transition-delay: 0.4s; }

  /* ヒーローの文字を読み込み時にふわっと表示 */
  .stm-hero__content > * {
    animation: stmHeroIn 0.9s ease both;
  }
  .stm-hero__content > *:nth-child(2) { animation-delay: 0.15s; }
  .stm-hero__content > *:nth-child(3) { animation-delay: 0.3s; }

  @keyframes stmHeroIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: none; }
  }
}

/* =========================================================
   ヘッダー（header.php / 2段構成）
   上段：ロゴ＋アクション（CTA・ハンバーガー）
   下段：グローバルメニュー（スマホはドロワー）
   ========================================================= */
.stm-header {
  background: var(--stm-white);
  color: var(--stm-text);
  border-bottom: 1px solid var(--stm-border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* --- 上段バー --- */
.stm-header__bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.stm-header__logo {
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.3;
  white-space: nowrap;   /* 施設名を改行させない */
  flex-shrink: 0;
}

.stm-header__logo a {
  color: var(--stm-text);
  text-decoration: none;
}

/* カスタムロゴ画像（設定時） */
.stm-header__logo img,
.stm-header__logo .custom-logo {
  display: block;
  height: 40px;
  width: auto;
}

@media (min-width: 1024px) {
  .stm-header__logo img,
  .stm-header__logo .custom-logo {
    height: 48px;
  }
}

.stm-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ハンバーガーボタン（スマホのみ表示） */
.stm-header__toggle {
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.stm-header__toggle-bar {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--stm-text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ハンバーガー開時（×印） */
.stm-header__toggle[aria-expanded="true"] .stm-header__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.stm-header__toggle[aria-expanded="true"] .stm-header__toggle-bar:nth-child(2) {
  opacity: 0;
}
.stm-header__toggle[aria-expanded="true"] .stm-header__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* 上段CTA：スマホでは非表示（ドロワーと固定フッターに用意） */
.stm-header__cta {
  display: none;
  white-space: nowrap;
}

/* --- 下段ナビ（スマホ：上段の下に開くドロワー） --- */
.stm-header__nav {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--stm-white);
  border-bottom: 1px solid var(--stm-border);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
  display: none;
}

.stm-header__nav.is-open {
  display: block;
}

.stm-header__nav-inner {
  display: flex;
  flex-direction: column;
  padding-top: 8px;
  padding-bottom: 24px;
}

.stm-header__menu {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.stm-header__menu a {
  display: block;
  color: var(--stm-text);
  text-decoration: none;
  padding: 14px 4px;
  min-height: 44px;
  border-bottom: 1px solid var(--stm-border);
}

/* ドロワー内CTA：スマホのみ表示 */
.stm-header__cta-drawer {
  margin-top: 16px;
  width: 100%;
  text-align: center;
}

/* =========================================================
   PC（1024px〜）：下段メニューを横並び・上段CTAを常時表示
   ========================================================= */
@media (min-width: 1024px) {
  .stm-header__toggle {
    display: none;
  }

  /* 上段CTAを表示 */
  .stm-header__cta {
    display: inline-block;
  }

  /* 下段ナビを通常表示（ドロワー解除） */
  .stm-header__nav {
    position: static;
    display: block;
    width: auto;
    background: transparent;
    border-bottom: none;
    box-shadow: none;
    border-top: 1px solid var(--stm-border);
  }

  .stm-header__nav-inner {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px 24px;
    flex-wrap: wrap;
    padding-top: 0;
    padding-bottom: 0;
    min-height: 52px;
  }

  .stm-header__menu {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 24px;
  }

  .stm-header__menu a {
    padding: 6px 0;
    border-bottom: none;
    white-space: nowrap;
    font-size: 0.95rem;
  }

  /* ドロワー内CTAはPCでは非表示（上段に出すため） */
  .stm-header__cta-drawer {
    display: none;
  }
}

/* =========================================================
   フッター（footer.php）
   ※ スマホ固定CTAと重ならないよう下部に余白を確保
   ========================================================= */
.stm-footer {
  position: relative;
  background: var(--stm-wood-dark);
  color: var(--stm-white);
  margin-top: var(--stm-section);
  /* スマホ：固定CTA(64px)＋セーフエリア分の余白を確保 */
  padding-bottom: calc(64px + env(safe-area-inset-bottom));
}

/* 地面（土）：空→おもちゃ→前面の土 を重ねて埋まってる表現 */
.stm-footer__ground {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 76px;
  pointer-events: none;
}

.stm-footer__air,
.stm-footer__soil {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.stm-footer__air  { z-index: 1; }  /* 空（クリーム） */
.stm-footer__soil { z-index: 3; }  /* 前面の土（おもちゃの下を隠す） */

/* おもちゃ：空と土の間。頭がしっかり出るよう上寄せ＋土に少し埋まる */
.stm-footer__toys {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 100%;
  z-index: 2;
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  padding: 0 6%;
}

.stm-footer__toy {
  width: 34px;
  height: 34px;
  display: block;
  margin-top: 10px; /* 頭が土の上にしっかり出る位置 */
}

.stm-footer__toy svg { width: 100%; height: 100%; }

/* スマホでは端を間引く */
.stm-footer__toy:nth-child(5),
.stm-footer__toy:nth-child(6) { display: none; }

/* 右側に立つ木のおもちゃ（あそびの木） */
.stm-footer__tree {
  position: absolute;
  right: 5%;
  bottom: -18px;
  width: 56px;
  height: 124px;
  z-index: 2;
  display: none; /* スマホでは非表示 */
}
.stm-footer__tree svg { width: 100%; height: 100%; }

@media (min-width: 768px) {
  .stm-footer__ground { height: 120px; }
  .stm-footer__toy { width: 50px; height: 50px; margin-top: 18px; }
  .stm-footer__toy:nth-child(5),
  .stm-footer__toy:nth-child(6) { display: block; }
  .stm-footer__tree { display: block; }
}

.stm-footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-top: 88px; /* 上部の地面＋おもちゃ装飾の分を確保 */
  padding-bottom: 40px;
}

.stm-footer a {
  color: var(--stm-white);
}

.stm-footer__heading {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.stm-footer__name {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.stm-footer__lead {
  font-size: 0.85rem;
  opacity: 0.9;
  margin-bottom: 12px;
}

.stm-footer__sns,
.stm-footer__more {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}

.stm-footer__more {
  margin-top: 8px;
}

.stm-footer__menu {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.stm-footer__menu a {
  display: block;
  text-decoration: none;
  min-height: 40px;
  line-height: 40px;
  font-size: 0.9rem;
}

.stm-footer__dl {
  list-style: none;
  font-size: 0.88rem;
}

.stm-footer__dl li {
  display: flex;
  flex-direction: column; /* 館名と時間を縦に積む（変な改行を防ぐ） */
  gap: 1px;
  padding: 5px 0;
}

.stm-footer__dl-label {
  font-weight: 700;
  white-space: nowrap;
}

.stm-footer__dl-time {
  font-family: var(--stm-font-en);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
}

.stm-footer__note {
  font-size: 0.78rem;
  opacity: 0.85;
  margin-top: 8px;
}

.stm-footer__addr {
  font-size: 0.85rem;
  margin-bottom: 12px;
  line-height: 1.7;
}

.stm-footer__copy {
  background: var(--stm-wood-dark);
  text-align: center;
  font-size: 0.85rem;
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

@media (min-width: 768px) {
  .stm-footer {
    /* PCでは固定CTAが非表示のため余白不要 */
    padding-bottom: 0;
  }

  .stm-footer__inner {
    grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
    gap: 40px;
    padding-top: 136px; /* 地面＋おもちゃ装飾の分 */
    padding-bottom: 48px;
  }
}

/* =========================================================
   スマホ固定フッターCTA（fixed-footer-cta.php）
   仕様: docs/05_mobile.md
   ========================================================= */
.stm-fixed-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 64px;
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--stm-white);
  border-top: 1px solid var(--stm-border);
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06);
  display: flex;
  z-index: 9999;
}

.stm-fixed-cta__btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 44px;
  color: var(--stm-text);
  text-decoration: none;
  font-size: 0.7rem;
  border-right: 1px solid var(--stm-border);
}

.stm-fixed-cta__btn:last-child {
  border-right: none;
}

/* チケット予約ボタンは目立たせる */
.stm-fixed-cta__btn--ticket {
  background: var(--stm-primary);
  color: var(--stm-white);
  font-weight: 700;
}

/* LINE友だち追加（LINEグリーン） */
.stm-fixed-cta__btn--line {
  background: #06C755;
  color: var(--stm-white);
  font-weight: 700;
}

.stm-fixed-cta__icon {
  font-size: 1.2rem;
  line-height: 1;
}

/* タブレット以上では非表示 */
@media (min-width: 768px) {
  .stm-fixed-cta {
    display: none;
  }
}

/* =========================================================
   共通：セクション見出し
   ========================================================= */
.stm-section__title {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--stm-wood-dark);
  text-align: center;
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}

/* タイトル下の丸いアクセント（やわらかい印象） */
.stm-section__title::after {
  content: "";
  display: block;
  width: 44px;
  height: 6px;
  margin: 12px auto 0;
  border-radius: var(--stm-radius-pill);
  background: var(--stm-primary);
  opacity: 0.85;
}

@media (min-width: 768px) {
  .stm-section__title {
    font-size: 2rem;
    margin-bottom: 40px;
  }
}

/* =========================================================
   共通：エリアバッジ（docs/01_design-system.md）
   ========================================================= */
.stm-badge {
  display: inline-block;
  color: var(--stm-white);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  padding: 5px 10px;
  border-radius: var(--stm-radius-sm);
}

.stm-badge--east { background: var(--stm-blue); }   /* EAST館 */
.stm-badge--west { background: var(--stm-green); }  /* WEST館 */
.stm-badge--both { background: var(--stm-primary); } /* 両館 */
.stm-badge--bus  { background: var(--stm-wood-dark); } /* おもちゃバス */
.stm-badge--news { background: var(--stm-wood); }    /* お知らせ */

/* =========================================================
   ヒーロー（template-parts/hero.php）
   ========================================================= */
.stm-hero {
  position: relative;
  overflow: hidden;
}

/* ヒーロー下端のやわらかい波（次セクションへ溶け込む） */
.stm-hero__wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 4;
  line-height: 0;
  pointer-events: none;
}

.stm-hero__wave svg {
  display: block;
  width: 100%;
  height: 72px;
}

/* 多層の波：後ろほど半透明にして奥行きを出す */
.stm-hero__wave .stm-wave-back  { fill: var(--stm-cream); opacity: 0.35; }
.stm-hero__wave .stm-wave-mid   { fill: var(--stm-cream); opacity: 0.65; }
.stm-hero__wave .stm-wave-front { fill: var(--stm-cream); opacity: 1; }

@media (min-width: 768px) {
  .stm-hero__wave svg {
    height: 120px;
  }
}

/* スライダーは背景として全面に敷く（高さは中身が決める） */
.stm-hero__swiper {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.stm-hero__swiper,
.stm-hero__swiper .swiper-wrapper,
.stm-hero__swiper .swiper-slide {
  height: 100%;
}
.stm-hero__swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 画像オーバーレイ（文字の可読性確保） */
.stm-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.45));
  pointer-events: none;
}

/* ヒーローのページネーション（ドット）※波の上に表示 */
.stm-hero__pagination {
  position: absolute;
  bottom: 76px;
  left: 0;
  width: 100%;
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 8px;
}

@media (min-width: 768px) {
  .stm-hero__pagination {
    bottom: 128px;
  }
}

.stm-hero__pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: var(--stm-white);
  opacity: 0.6;
  border-radius: 50%;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.stm-hero__pagination .swiper-pagination-bullet-active {
  background: var(--stm-primary);
  opacity: 1;
  transform: scale(1.2);
}

/* 中身は通常フロー＋最小高さ（増えても はみ出さない） */
.stm-hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--stm-white);
  min-height: 78vh;
  padding: 56px 18px 104px; /* 下端は波(72px)＋果物の分を確保 */
  gap: 14px;
}

.stm-hero__title {
  font-size: clamp(1.3rem, 6vw, 1.7rem);
  line-height: 1.5;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.stm-hero__sub {
  font-size: clamp(0.85rem, 3.6vw, 0.98rem);
  line-height: 1.7;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

@media (min-width: 768px) {
  .stm-hero__content {
    /* 画面の高さに応じて、少なくとも中央まで伸ばす（vhベース） */
    min-height: 62vh;
    padding: 72px 24px 150px;
  }
  .stm-hero__title { font-size: clamp(2rem, 3.4vw, 2.6rem); }
  .stm-hero__sub   { font-size: 1.1rem; }
}

@media (min-width: 1024px) {
  .stm-hero__content {
    /* 大画面でも画面中央以上の高さを確保（vhで追従・下限/上限つき） */
    min-height: clamp(560px, 64vh, 880px);
  }
}

/* =========================================================
   年齢別ナビ（template-parts/age-nav.php）
   グリッド: 2列（スマホ）/ 4列（PC）
   ========================================================= */
.stm-age-nav__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.stm-age-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  min-height: 80px;
  padding: 24px 14px;
  background: var(--stm-white);
  border: 1px solid var(--stm-border);
  border-radius: var(--stm-radius-lg);
  box-shadow: var(--stm-shadow-sm);
  text-decoration: none;
  color: var(--stm-text);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stm-age-nav__item:hover {
  transform: translateY(-5px);
  box-shadow: var(--stm-shadow);
}

/* アイコンを丸い色付きバッジに */
.stm-age-nav__icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--stm-wood-light);
  color: var(--stm-primary);
  transition: transform 0.25s ease;
}

.stm-age-nav__icon svg {
  width: 34px;
  height: 34px;
}

.stm-age-nav__item:hover .stm-age-nav__icon {
  transform: scale(1.08) rotate(-4deg);
}

.stm-age-nav__label {
  font-family: var(--stm-font-round);
  font-weight: 700;
  font-size: 1.1rem;
}

.stm-age-nav__sub {
  font-size: 0.8rem;
  color: var(--stm-gray);
}

/* 年齢ごとの色分け（アイコン円） */
.stm-age-nav__item[data-age="baby"]      .stm-age-nav__icon { background: #FDE3D0; color: #E8742C; }
.stm-age-nav__item[data-age="toddler"]   .stm-age-nav__icon { background: #E4EFD3; color: #5C8A2B; }
.stm-age-nav__item[data-age="preschool"] .stm-age-nav__icon { background: #D9E7F3; color: #2D6FA8; }
.stm-age-nav__item[data-age="school"]    .stm-age-nav__icon { background: #FCE9C7; color: #D98A00; }

@media (min-width: 1024px) {
  .stm-age-nav__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}

/* =========================================================
   2館めぐりストーリー（template-parts/two-venue-story.php）
   ========================================================= */
.stm-story__steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stm-story__step {
  background: var(--stm-white);
  border: 1px solid var(--stm-border);
  border-radius: var(--stm-radius-md);
  padding: 24px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.stm-story__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--stm-primary);
  color: var(--stm-white);
  font-weight: 700;
  font-family: var(--stm-font-en);
}

.stm-story__title {
  font-size: 1.15rem;
  color: var(--stm-wood-dark);
}

@media (min-width: 768px) {
  .stm-story__steps {
    flex-direction: row;
  }
  .stm-story__step {
    flex: 1;
  }
}

/* =========================================================
   イベントグリッド＋カード（front-page / archive 共用）
   グリッド: 1列(スマホ)/2列(タブレット)/3列(PC)
   ========================================================= */
.stm-event-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.stm-event-card {
  background: var(--stm-white);
  border-radius: var(--stm-radius-md);
  overflow: hidden;
  box-shadow: var(--stm-shadow-sm);
}

.stm-event-card__link {
  display: block;
  text-decoration: none;
  color: var(--stm-text);
}

.stm-event-card__thumb {
  position: relative;
}

.stm-event-card__thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.stm-event-card__noimg {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--stm-wood-light);
}

.stm-event-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
}

.stm-event-card__body {
  padding: 16px;
}

.stm-event-card__date {
  font-size: 0.85rem;
  color: var(--stm-gray);
  font-family: var(--stm-font-en);
}

/* 複数日開催の「ほかN日」バッジ */
.stm-event-card__more {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 8px;
  font-size: 0.7rem;
  font-family: var(--stm-font-base);
  color: var(--stm-white);
  background: var(--stm-primary);
  border-radius: var(--stm-radius-pill);
  vertical-align: middle;
}

.stm-event-card__title {
  font-size: 1.1rem;
  margin: 4px 0;
  color: var(--stm-wood-dark);
}

.stm-event-card__target {
  font-size: 0.85rem;
  color: var(--stm-gray);
}

.stm-news__more,
.stm-news__empty {
  text-align: center;
  margin-top: 32px;
}

@media (min-width: 768px) {
  .stm-event-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .stm-event-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =========================================================
   ヒーロー：プレースホルダー（画像未登録時）
   ========================================================= */
.stm-hero__placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--stm-wood-light);
}

@media (min-width: 768px) {
  .stm-hero__placeholder {
    aspect-ratio: 21 / 9;
    max-height: 600px;
  }
}

/* =========================================================
   下層ページ共通：ページヒーロー（page-hero.php）
   ========================================================= */
.stm-page-hero {
  position: relative;
  overflow: hidden;
  background-color: var(--stm-wood-light);
  background-image: radial-gradient(rgba(245, 166, 35, 0.18) 2px, transparent 2px);
  background-size: 22px 22px;
  color: var(--stm-text);
  padding: 32px 0 56px;
  text-align: center;
}

/* 下端の波（cream） */
.stm-page-hero__wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 1;
  line-height: 0;
  pointer-events: none;
}

.stm-page-hero__wave svg {
  display: block;
  width: 100%;
  height: 44px;
}

.stm-page-hero__wave .stm-wave-back  { fill: var(--stm-cream); opacity: 0.35; }
.stm-page-hero__wave .stm-wave-mid   { fill: var(--stm-cream); opacity: 0.65; }
.stm-page-hero__wave .stm-wave-front { fill: var(--stm-cream); opacity: 1; }

/* ページごとの木のおもちゃ（見出し帯の右下） */
.stm-page-hero__toy {
  position: absolute;
  right: 5%;
  bottom: 26px;
  width: 52px;
  height: 52px;
  z-index: 2;
  display: block;
}

.stm-page-hero__toy svg {
  width: 100%;
  height: 100%;
}

@media (min-width: 768px) {
  .stm-page-hero {
    padding: 48px 0 72px;
  }
  .stm-page-hero__wave svg {
    height: 64px;
  }
  .stm-page-hero__toy {
    width: 68px;
    height: 68px;
    bottom: 34px;
    right: 8%;
  }
}

.stm-page-hero__title {
  font-size: 1.5rem;
  color: var(--stm-wood-dark);
}

.stm-page-hero__sub {
  font-size: 0.9rem;
  margin-top: 8px;
  color: var(--stm-gray);
}

@media (min-width: 768px) {
  .stm-page-hero {
    padding: 48px 0;
  }
  .stm-page-hero__title {
    font-size: 2rem;
  }
}

/* =========================================================
   本文コンテンツ（the_content 出力 / stm-content）
   ========================================================= */
.stm-content {
  max-width: 800px;
}

.stm-content h2 {
  font-size: 1.4rem;
  color: var(--stm-wood-dark);
  margin: 2em 0 0.6em;
}

.stm-content h3 {
  font-size: 1.15rem;
  color: var(--stm-wood-dark);
  margin: 1.6em 0 0.5em;
}

.stm-content p {
  margin-bottom: 1.2em;
}

.stm-content ul,
.stm-content ol {
  margin: 0 0 1.2em 1.4em;
}

.stm-content img {
  border-radius: var(--stm-radius-md);
}

.stm-content__badge {
  margin-bottom: 16px;
}

/* 写真サンプル（差し込み位置の目安。実写真に差し替えてください） */
.stm-sample {
  margin: 8px 0 24px;
}

.stm-sample img {
  width: 100%;
  border-radius: var(--stm-radius-md);
}

.stm-sample figcaption {
  font-size: 0.8rem;
  color: var(--stm-gray);
  margin-top: 6px;
}

/* =========================================================
   館内案内：コーナー（テーマ）カード（page-east / page-west）
   画像＋見出し＋説明。スマホ縦積み → PCは画像左・文章右の交互。
   ========================================================= */
.stm-floor {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.stm-floor__item {
  background: var(--stm-white);
  border: 1px solid var(--stm-border);
  border-radius: var(--stm-radius-md);
  overflow: hidden;
}

.stm-floor__img img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}

.stm-floor__body {
  padding: 18px 20px;
}

.stm-floor__title {
  font-size: 1.2rem;
  color: var(--stm-wood-dark);
  margin-bottom: 8px;
}

.stm-floor__text {
  font-size: 0.95rem;
}

@media (min-width: 768px) {
  .stm-floor__item {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 画像と文章を 50:50 に */
    align-items: stretch;
  }

  .stm-floor__img img {
    height: 100%;
  }

  .stm-floor__body {
    align-self: center;
    padding: 24px 28px;
  }

  /* 偶数番は画像を右側に（交互レイアウト） */
  .stm-floor__item:nth-child(even) .stm-floor__img {
    order: 2;
  }
}

/* =========================================================
   イベントカレンダー（template-parts/event-calendar.php）
   ========================================================= */
.stm-cal__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
}

.stm-cal__navbtn {
  display: inline-block;
  background: var(--stm-wood-light);
  color: var(--stm-text);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--stm-radius-pill);
  font-size: 0.85rem;
  min-height: 44px;
  line-height: 28px;
  white-space: nowrap;
}

.stm-cal__title {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--stm-wood-dark);
}

/* グリッド */
.stm-cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.stm-cal__wday {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 0;
  background: var(--stm-wood-dark);
  color: var(--stm-white);
  border-radius: var(--stm-radius-sm);
}

.stm-cal__wday.is-sun { background: #B5453A; }
.stm-cal__wday.is-sat { background: var(--stm-blue); }

.stm-cal__cell {
  min-height: 84px;
  background: var(--stm-white);
  border: 1px solid var(--stm-border);
  border-radius: var(--stm-radius-sm);
  padding: 4px;
  overflow: hidden;
}

.stm-cal__cell.is-empty {
  background: transparent;
  border: none;
}

.stm-cal__cell.is-today {
  border-color: var(--stm-primary);
  box-shadow: inset 0 0 0 1px var(--stm-primary);
}

.stm-cal__date {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--stm-font-en);
  margin-bottom: 2px;
}

.stm-cal__cell.is-sun .stm-cal__date { color: #B5453A; }
.stm-cal__cell.is-sat .stm-cal__date { color: var(--stm-blue); }

/* セル内のイベントチップ */
.stm-cal__event {
  display: block;
  font-size: 0.68rem;
  line-height: 1.3;
  color: var(--stm-white);
  text-decoration: none;
  padding: 2px 4px;
  margin-top: 2px;
  border-radius: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 当月イベント一覧 */
.stm-cal__listwrap {
  margin-top: 32px;
}

.stm-cal__listtitle {
  font-size: 1.1rem;
  color: var(--stm-wood-dark);
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--stm-wood-light);
}

.stm-cal__list {
  list-style: none;
}

.stm-cal__listitem {
  border-bottom: 1px solid var(--stm-border);
}

.stm-cal__listitem a {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 12px 4px;
  text-decoration: none;
  color: var(--stm-text);
  min-height: 44px;
}

.stm-cal__listdate {
  font-family: var(--stm-font-en);
  font-weight: 700;
  color: var(--stm-gray);
  flex: 0 0 auto;
  min-width: 5em;
  white-space: nowrap;
}

.stm-cal__empty {
  color: var(--stm-gray);
}

/* スマホでは日付番号のみ＋イベントは点で表現してもよいが、
   ここではチップを小さく表示。文字が小さいので一覧で補完する。 */
@media (max-width: 600px) {
  .stm-cal__cell {
    min-height: 56px;
  }
  .stm-cal__event {
    font-size: 0; /* セル内はテキストを隠し、色帯（点）で存在を示す */
    height: 6px;
    padding: 0;
    border-radius: 3px;
  }
}

/* =========================================================
   投稿リスト（お知らせ一覧 / archive-post.php・index.php）
   ========================================================= */
.stm-post-list {
  list-style: none;
  max-width: 800px;
  margin: 0 auto;
}

.stm-post-list__item {
  border-bottom: 1px solid var(--stm-wood-light);
}

.stm-post-list__item a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 4px;
  text-decoration: none;
  color: var(--stm-text);
  min-height: 44px;
}

.stm-post-list__item time {
  font-size: 0.8rem;
  color: var(--stm-gray);
  font-family: var(--stm-font-en);
}

.stm-post-list__title {
  font-weight: 500;
}

@media (min-width: 768px) {
  .stm-post-list__item a {
    flex-direction: row;
    align-items: baseline;
    gap: 24px;
  }
  .stm-post-list__item time {
    flex: 0 0 110px;
  }
}

/* ページネーション */
.stm-pagination {
  margin-top: 32px;
  text-align: center;
}

.stm-pagination .page-numbers {
  display: inline-block;
  min-width: 44px;
  min-height: 44px;
  line-height: 44px;
  padding: 0 8px;
  margin: 0 2px;
  border-radius: var(--stm-radius-sm);
  background: var(--stm-wood-light);
  color: var(--stm-text);
  text-decoration: none;
}

.stm-pagination .page-numbers.current {
  background: var(--stm-primary);
  color: var(--stm-white);
}

/* =========================================================
   FAQ アコーディオン（page-faq.php）
   ========================================================= */
.stm-faq {
  max-width: 800px;
}

.stm-faq__category {
  font-size: 1.2rem;
  color: var(--stm-wood-dark);
  margin: 32px 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--stm-wood-light);
}

.stm-faq__item {
  background: var(--stm-white);
  border: 1px solid var(--stm-border);
  border-radius: var(--stm-radius-sm);
  margin-bottom: 10px;
  overflow: hidden;
}

.stm-faq__q {
  list-style: none;
  cursor: pointer;
  padding: 16px 48px 16px 16px;
  font-weight: 700;
  position: relative;
  min-height: 44px;
}

/* デフォルトの三角マーカーを消す */
.stm-faq__q::-webkit-details-marker {
  display: none;
}

/* 開閉アイコン（＋ / −） */
.stm-faq__q::after {
  content: "＋";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--stm-primary);
  font-weight: 700;
}

.stm-faq__item[open] .stm-faq__q::after {
  content: "−";
}

.stm-faq__a {
  padding: 0 16px 16px;
  color: var(--stm-text);
}

/* =========================================================
   バス時刻表（bus-schedule.php）
   ========================================================= */
.stm-bus__notice {
  background: var(--stm-wood-light);
  border-left: 4px solid var(--stm-primary);
  padding: 12px 16px;
  border-radius: var(--stm-radius-sm);
  margin-bottom: 16px;
}

.stm-bus__table {
  width: 100%;
  border-collapse: collapse;
  background: var(--stm-white);
  border-radius: var(--stm-radius-md);
  overflow: hidden;
}

.stm-bus__table th,
.stm-bus__table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--stm-wood-light);
}

.stm-bus__table th {
  background: var(--stm-wood-dark);
  color: var(--stm-white);
  font-size: 0.9rem;
}

.stm-bus__time {
  font-family: var(--stm-font-en);
  font-weight: 700;
}

/* =========================================================
   館内ガイド：2館リンクカード（page-guide.php）
   ========================================================= */
.stm-venue-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.stm-venue-links__item {
  display: block;
  background: var(--stm-white);
  border-radius: var(--stm-radius-md);
  padding: 28px 24px;
  text-decoration: none;
  color: var(--stm-text);
  box-shadow: var(--stm-shadow-sm);
  transition: transform 0.2s ease;
}

.stm-venue-links__item:hover {
  transform: translateY(-3px);
}

.stm-venue-links__title {
  font-size: 1.25rem;
  margin: 10px 0 4px;
  color: var(--stm-wood-dark);
}

.stm-venue-links__desc {
  font-size: 0.9rem;
  color: var(--stm-gray);
}

@media (min-width: 768px) {
  .stm-venue-links {
    grid-template-columns: 1fr 1fr;
  }
}

/* =========================================================
   イベント詳細（single-event.php）
   ========================================================= */
.stm-event-single__thumb {
  margin-bottom: 24px;
}

.stm-event-single__thumb img {
  width: 100%;
  border-radius: var(--stm-radius-md);
}

.stm-event-single__info {
  display: grid;
  grid-template-columns: 6em 1fr;
  gap: 8px 16px;
  background: var(--stm-wood-light);
  border-radius: var(--stm-radius-md);
  padding: 20px;
  margin-bottom: 24px;
}

.stm-event-single__info dt {
  font-weight: 700;
  color: var(--stm-wood-dark);
}

.stm-event-single__cta {
  text-align: center;
  margin: 32px 0;
}

.stm-event-single__back {
  margin-top: 24px;
}

/* 汎用記事（index.php single） */
.stm-article {
  max-width: 800px;
  margin: 0 auto;
}

.stm-article__meta {
  color: var(--stm-gray);
  font-size: 0.85rem;
  margin-bottom: 16px;
}

/* =========================================================
   料金・チケットページ：外部予約CTA（page-ticket.php）
   ========================================================= */
.stm-ticket-cta {
  text-align: center;
  background: var(--stm-wood-light);
  border-radius: var(--stm-radius-md);
}

.stm-ticket-cta__lead {
  font-weight: 700;
  margin-bottom: 16px;
}

.stm-ticket-cta__btn {
  margin-bottom: 8px;
}

.stm-ticket-cta__note {
  font-size: 0.8rem;
  color: var(--stm-gray);
}

/* =========================================================
   パンくずリスト（stm_breadcrumb / page-hero 上部）
   ========================================================= */
.stm-breadcrumb {
  background: var(--stm-white);
  border-bottom: 1px solid var(--stm-border);
  font-size: 0.78rem;
  color: var(--stm-gray);
  padding: 8px 0;
}

.stm-breadcrumb a {
  color: var(--stm-primary-dark);
  text-decoration: none;
}

.stm-breadcrumb a:hover {
  text-decoration: underline;
}

.stm-breadcrumb__sep {
  margin: 0 6px;
  color: var(--stm-gray);
}

/* =========================================================
   ヒーロー：要点バッジ＋アクション（hero.php）
   ========================================================= */
.stm-hero__points {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 4px 0 4px;
}

.stm-hero__points li {
  background: rgba(255, 255, 255, 0.9);
  color: var(--stm-wood-dark);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--stm-radius-pill);
}

.stm-hero__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.stm-hero__sublink {
  color: var(--stm-white);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (min-width: 768px) {
  .stm-hero__actions {
    flex-direction: row;
    gap: 20px;
  }
}

/* =========================================================
   どんなところ？（about.php）
   ========================================================= */
.stm-about__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.stm-about__text p {
  margin-bottom: 1em;
}

.stm-about__links {
  margin-top: 8px;
}

@media (min-width: 768px) {
  .stm-about__inner {
    flex-direction: row;
    align-items: center;
    gap: 40px;
  }
  .stm-about__text {
    flex: 1 1 55%;
  }
  .stm-about__photo {
    flex: 1 1 45%;
    margin: 0;
  }
}

/* =========================================================
   館内あそびハイライト（floor-highlight.php）
   ========================================================= */
.stm-floor-hl__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.stm-floor-hl__item {
  display: block;
  background: var(--stm-white);
  border: 1px solid var(--stm-border);
  border-radius: var(--stm-radius-md);
  overflow: hidden;
  text-decoration: none;
  color: var(--stm-text);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stm-floor-hl__item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.stm-floor-hl__img {
  position: relative;
  display: block;
}

.stm-floor-hl__img img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}

.stm-floor-hl__badge {
  position: absolute;
  top: 8px;
  left: 8px;
}

.stm-floor-hl__title {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 12px;
}

.stm-floor-hl__more {
  text-align: center;
  margin-top: 28px;
}

@media (min-width: 768px) {
  .stm-floor-hl__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

/* =========================================================
   ご利用案内 要約カード（info-summary.php）
   ========================================================= */
.stm-info__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.stm-info__card {
  background: var(--stm-white);
  border: 1px solid var(--stm-border);
  border-radius: var(--stm-radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.stm-info__title {
  font-size: 1.15rem;
  color: var(--stm-wood-dark);
  border-bottom: 2px solid var(--stm-wood-light);
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.stm-info__list {
  list-style: none;
  margin-bottom: 10px;
}

.stm-info__list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
  border-bottom: 1px dotted var(--stm-border);
}

.stm-info__list li span {
  font-weight: 700;
  white-space: nowrap;
}

.stm-info__note {
  font-size: 0.8rem;
  color: var(--stm-gray);
  margin-bottom: 12px;
}

.stm-info__link {
  font-weight: 700;
  text-decoration: none;
  color: var(--stm-primary-dark);
  margin-top: auto; /* カード下端にそろえる */
}

.stm-info__link:hover {
  text-decoration: underline;
}

@media (min-width: 768px) {
  .stm-info__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

/* =========================================================
   404ページ（404.php）
   ========================================================= */
.stm-404 {
  text-align: center;
}

.stm-404__search {
  margin: 24px auto 32px;
  max-width: 480px;
}

/* WP標準の検索フォーム */
.stm-404__search .search-form,
.stm-search-form {
  display: flex;
  gap: 8px;
}

.stm-404__search input[type="search"],
.stm-404__search .search-field {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--stm-border);
  border-radius: var(--stm-radius-pill);
  font: inherit;
}

.stm-404__search input[type="submit"],
.stm-404__search .search-submit {
  background: var(--stm-primary);
  color: var(--stm-white);
  border: none;
  border-radius: var(--stm-radius-pill);
  padding: 10px 22px;
  font-weight: 700;
  cursor: pointer;
}

.stm-404__links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
  margin-top: 16px;
}

.stm-404__links a {
  display: inline-block;
  background: var(--stm-wood-light);
  color: var(--stm-text);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--stm-radius-pill);
  font-size: 0.9rem;
}

.stm-404__links a:hover {
  background: var(--stm-primary);
  color: var(--stm-white);
}

/* =========================================================
   アクセス（page-access.php）アイコン付き館別カード
   ========================================================= */
.stm-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  color: var(--stm-primary);
}

.stm-access__venues {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.stm-access__card {
  background: var(--stm-white);
  border: 1px solid var(--stm-border);
  border-radius: var(--stm-radius-md);
  box-shadow: var(--stm-shadow-sm);
  padding: 24px;
}

.stm-access__name {
  font-size: 1.2rem;
  color: var(--stm-wood-dark);
  margin: 10px 0 14px;
}

.stm-access__info {
  list-style: none;
}

.stm-access__info li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dotted var(--stm-border);
  font-size: 0.92rem;
  line-height: 1.7;
}

.stm-access__info li:last-child {
  border-bottom: none;
}

.stm-access__closed {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 900px;
  margin: 24px auto 0;
  background: var(--stm-wood-light);
  border-radius: var(--stm-radius-md);
  padding: 16px 18px;
  font-size: 0.9rem;
}

.stm-access__mapnote {
  max-width: 900px;
  margin: 16px auto 0;
  font-size: 0.8rem;
  color: var(--stm-gray);
}

@media (min-width: 768px) {
  .stm-access__venues {
    grid-template-columns: 1fr 1fr;
  }
}

/* =========================================================
   館内ガイド：2館 紹介カード（page-guide.php）
   ========================================================= */
.stm-guide-venues {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.stm-guide-venue {
  background: var(--stm-white);
  border: 1px solid var(--stm-border);
  border-radius: var(--stm-radius-lg);
  overflow: hidden;
  box-shadow: var(--stm-shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stm-guide-venue:hover {
  transform: translateY(-4px);
  box-shadow: var(--stm-shadow);
}

.stm-guide-venue__img {
  position: relative;
  display: block;
}

.stm-guide-venue__img img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.stm-guide-venue__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.85rem;
  padding: 5px 14px;
}

.stm-guide-venue__body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.stm-guide-venue__name {
  font-size: 1.3rem;
  color: var(--stm-wood-dark);
}

.stm-guide-venue__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 0.88rem;
  color: var(--stm-gray);
}

.stm-guide-venue__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.stm-guide-venue__corners {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stm-guide-venue__corners li {
  background: var(--stm-wood-light);
  color: var(--stm-wood-dark);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--stm-radius-pill);
}

.stm-guide-venue__btn {
  margin-top: auto;
  text-align: center;
}

@media (min-width: 768px) {
  .stm-guide-venues {
    grid-template-columns: 1fr 1fr;
  }
}

/* =========================================================
   ページヒーロー：アイコン＋年齢アクセント（page-hero.php）
   ========================================================= */
.stm-page-hero__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: var(--stm-white);
  color: var(--stm-primary);
  box-shadow: var(--stm-shadow-sm);
  margin: 0 auto 12px;
}

.stm-page-hero__icon svg {
  width: 36px;
  height: 36px;
}

/* 年齢別アクセント（下線色＋アイコン色） */
.stm-page-hero--baby      { border-bottom-color: #E8742C; }
.stm-page-hero--toddler   { border-bottom-color: #5C8A2B; }
.stm-page-hero--preschool { border-bottom-color: #2D6FA8; }
.stm-page-hero--school    { border-bottom-color: #D98A00; }

.stm-page-hero--baby      .stm-page-hero__icon { color: #E8742C; background: #FDE3D0; }
.stm-page-hero--toddler   .stm-page-hero__icon { color: #5C8A2B; background: #E4EFD3; }
.stm-page-hero--preschool .stm-page-hero__icon { color: #2D6FA8; background: #D9E7F3; }
.stm-page-hero--school    .stm-page-hero__icon { color: #D98A00; background: #FCE9C7; }

/* =========================================================
   年齢ページ本文のアクセント（page-baby/toddler/preschool/school）
   ========================================================= */
.stm-age-content--baby      { --age: #E8742C; }
.stm-age-content--toddler   { --age: #5C8A2B; }
.stm-age-content--preschool { --age: #2D6FA8; }
.stm-age-content--school    { --age: #D98A00; }

.stm-age-content h2 {
  display: inline-block;
  border-bottom: 3px solid var(--age, var(--stm-primary));
  padding-bottom: 6px;
}

.stm-age-content ul {
  list-style: none;
  margin-left: 0;
}

.stm-age-content ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 8px;
}

.stm-age-content ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.55em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--age, var(--stm-primary));
}

/* =========================================================
   利用の流れ ステップ図（page-first-visit.php）
   ========================================================= */
.stm-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 8px 0 8px;
}

.stm-steps__item {
  position: relative;
  background: var(--stm-white);
  border: 1px solid var(--stm-border);
  border-radius: var(--stm-radius-md);
  box-shadow: var(--stm-shadow-sm);
  padding: 20px 20px 20px 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.stm-steps__badge {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stm-steps__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--stm-primary);
  color: var(--stm-white);
  font-family: var(--stm-font-en);
  font-weight: 700;
}

.stm-steps__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--stm-wood-light);
  color: var(--stm-primary);
}

.stm-steps__icon svg {
  width: 28px;
  height: 28px;
}

.stm-steps__title {
  font-family: var(--stm-font-round);
  font-size: 1.1rem;
  color: var(--stm-wood-dark);
  margin-bottom: 4px;
}

.stm-steps__text {
  font-size: 0.92rem;
}

@media (min-width: 768px) {
  .stm-steps {
    flex-direction: row;
  }
  .stm-steps__item {
    flex: 1;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .stm-steps__badge {
    flex-direction: row;
  }
}

/* =========================================================
   セクション区切りの波（template-parts/wave.php）
   ========================================================= */
.stm-wave-divider {
  line-height: 0;
  overflow: hidden;
}

.stm-wave-divider svg {
  display: block;
  width: 100%;
  height: 46px;
}

.stm-wave-divider .stm-wave-back  { fill: var(--wd); opacity: 0.35; }
.stm-wave-divider .stm-wave-mid   { fill: var(--wd); opacity: 0.65; }
.stm-wave-divider .stm-wave-front { fill: var(--wd); opacity: 1; }

@media (min-width: 768px) {
  .stm-wave-divider svg { height: 80px; }
}

/* =========================================================
   ヒーローの浮遊装飾（template-parts/hero.php）
   ========================================================= */
.stm-hero__deco {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.stm-hero__deco-item {
  position: absolute;
  display: block;
  width: 42px;
  height: 42px;
}

.stm-hero__deco-item svg { width: 100%; height: 100%; }

.stm-hero__deco--1 { top: 14%; left: 7%;  width: 48px; height: 48px; color: rgba(255,255,255,0.5); }
.stm-hero__deco--2 { top: 20%; right: 9%; width: 54px; height: 54px; color: rgba(255,255,255,0.55); }
.stm-hero__deco--3 { top: 60%; left: 12%; width: 34px; height: 34px; color: rgba(255,255,255,0.42); }
.stm-hero__deco--4 { top: 56%; right: 14%; width: 30px; height: 30px; color: rgba(255,255,255,0.42); }

@media (max-width: 600px) {
  .stm-hero__deco--3,
  .stm-hero__deco--4 { display: none; }
  .stm-hero__deco--1 { top: 10%; left: 5%; }
  .stm-hero__deco--2 { top: 12%; right: 6%; }
}

/* =========================================================
   動き（波の横ゆれ・装飾のふわふわ）
   prefers-reduced-motion: reduce では停止
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  .stm-wave-back,
  .stm-wave-mid,
  .stm-wave-front {
    will-change: transform;
  }
  .stm-wave-back  { animation: stmWaveX 15s ease-in-out infinite alternate; }
  .stm-wave-mid   { animation: stmWaveX 11s ease-in-out infinite alternate; animation-delay: -4s; }
  .stm-wave-front { animation: stmWaveX 8s  ease-in-out infinite alternate; animation-delay: -2s; }

  @keyframes stmWaveX {
    from { transform: translateX(-26px); }
    to   { transform: translateX(26px); }
  }

  .stm-hero__deco-item {
    animation: stmFloat 6s ease-in-out infinite;
  }
  .stm-hero__deco--2 { animation-duration: 7.5s; animation-delay: -2s; }
  .stm-hero__deco--3 { animation-duration: 5.5s; animation-delay: -1s; }
  .stm-hero__deco--4 { animation-duration: 8.5s; animation-delay: -3s; }

  @keyframes stmFloat {
    0%   { transform: translateY(0) rotate(0deg); }
    50%  { transform: translateY(-14px) rotate(6deg); }
    100% { transform: translateY(0) rotate(0deg); }
  }
}

/* =========================================================
   木のおもちゃ装飾（ヒーローのぶどう・フッターの地面）
   ========================================================= */
/* ヒーロー：波の上の果物たち（ぶどう紫・いちご・ぶどう緑） */
.stm-hero__fruits { position: absolute; inset: 0; z-index: 5; pointer-events: none; }

.stm-hero__fruit { position: absolute; display: block; }
.stm-hero__fruit svg { width: 100%; height: 100%; }

.stm-hero__fruit--1 { left: 6%;  bottom: 38px; width: 56px; height: 56px; }
.stm-hero__fruit--2 { left: 17%; bottom: 30px; width: 42px; height: 42px; }
.stm-hero__fruit--3 { right: 8%; bottom: 38px; width: 54px; height: 54px; }

@media (min-width: 768px) {
  .stm-hero__fruit--1 { bottom: 72px; width: 76px; height: 76px; }
  .stm-hero__fruit--2 { bottom: 60px; width: 58px; height: 58px; left: 15%; }
  .stm-hero__fruit--3 { bottom: 70px; width: 72px; height: 72px; }
}
@media (max-width: 480px) {
  .stm-hero__fruit--3 { display: none; } /* 狭い画面では1〜2個に */
}

/* 動き（reduced-motion時は停止） */
@media (prefers-reduced-motion: no-preference) {
  .stm-hero__fruit,
  .stm-page-hero__toy {
    animation: stmFloat 6s ease-in-out infinite;
  }
  .stm-hero__fruit--2 { animation-duration: 7.5s; animation-delay: -1.5s; }
  .stm-hero__fruit--3 { animation-duration: 6.6s; animation-delay: -2.4s; }

  /* フッターのおもちゃ：土から出たり入ったり */
  .stm-footer__toy { animation: stmSprout 5.5s ease-in-out infinite; }
  .stm-footer__toy:nth-child(2) { animation-duration: 6.5s; animation-delay: -1.2s; }
  .stm-footer__toy:nth-child(3) { animation-duration: 5s;   animation-delay: -2.6s; }
  .stm-footer__toy:nth-child(4) { animation-duration: 7s;   animation-delay: -0.6s; }
  .stm-footer__toy:nth-child(5) { animation-duration: 6s;   animation-delay: -3.2s; }
  .stm-footer__toy:nth-child(6) { animation-duration: 7.5s; animation-delay: -1.8s; }

  @keyframes stmSprout {
    0%   { transform: translateY(5px); }   /* 少し沈む */
    50%  { transform: translateY(-9px); }  /* ひょっこり */
    100% { transform: translateY(5px); }
  }
}

/* =========================================================
   家族での過ごし方（page-model-course.php）タイムライン
   ========================================================= */
.stm-courses {
  display: flex;
  flex-direction: column;
  gap: 44px;
  max-width: 980px;
  margin: 32px auto 0;
}

.stm-course {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--stm-white);
  border: 1px solid var(--stm-border);
  border-radius: var(--stm-radius-lg);
  box-shadow: var(--stm-shadow-sm);
  padding: 20px;
}

.stm-course__photo { margin: 0; }
.stm-course__photo img { width: 100%; border-radius: var(--stm-radius-md); }

.stm-course__title {
  font-size: 1.4rem;
  color: var(--stm-wood-dark);
}

.stm-course__sub {
  color: var(--stm-gray);
  margin-bottom: 14px;
}

/* タイムライン */
.stm-timeline {
  list-style: none;
}

.stm-timeline__item {
  position: relative;
  display: flex;
  gap: 14px;
  padding-bottom: 20px;
}

.stm-timeline__item:last-child { padding-bottom: 0; }

/* つなぎ線 */
.stm-timeline__item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 46px;
  bottom: -2px;
  width: 2px;
  background: var(--stm-wood-light);
}

.stm-timeline__badge {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--stm-primary);
  color: var(--stm-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 3px 0 rgba(183, 110, 0, 0.3);
}

.stm-timeline__badge small {
  font-family: var(--stm-font-en);
  font-size: 0.5rem;
  letter-spacing: 0.05em;
}

.stm-timeline__badge b {
  font-family: var(--stm-font-en);
  font-size: 1.1rem;
}

.stm-timeline__body { padding-top: 3px; }

.stm-timeline__time {
  display: block;
  font-family: var(--stm-font-en);
  font-weight: 700;
  color: var(--stm-wood-dark);
}

.stm-timeline__text {
  display: block;
  font-size: 0.95rem;
}

.stm-courses__note {
  max-width: 980px;
  margin: 24px auto 0;
  font-size: 0.8rem;
  color: var(--stm-gray);
  text-align: center;
}

@media (min-width: 768px) {
  .stm-course {
    flex-direction: row;
    align-items: flex-start; /* 上揃え：タイトルとアイコンの上端を合わせる */
    gap: 32px;
    padding: 28px;
  }
  .stm-course:nth-child(even) {
    flex-direction: row-reverse;
  }
  .stm-course__photo { flex: 1 1 46%; }
  .stm-course__main  { flex: 1 1 54%; }
}

/* =========================================================
   モバイル微調整（はみ出し・可読性対策）
   ========================================================= */
/* 本文の長い英単語・URLの折り返し */
.stm-content,
.stm-cal__listname,
.stm-event-card__title {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* 表は横スクロール可能に（はみ出し防止） */
.stm-content table {
  width: 100%;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.stm-bus__table {
  width: 100%;
}

@media (max-width: 480px) {
  /* ヒーローの要点バッジを少しコンパクトに */
  .stm-hero__points { gap: 6px; }
  .stm-hero__points li { font-size: 0.72rem; padding: 4px 10px; }

  /* バス時刻表を読みやすく */
  .stm-bus__table th,
  .stm-bus__table td { padding: 8px; font-size: 0.85rem; }

  /* セクション見出しが大きすぎないように */
  .stm-section__title { font-size: 1.35rem; }
}

/* =========================================================
   Googleマップ埋め込み（page-access.php）
   ========================================================= */
.stm-access__maps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 900px;
  margin: 24px auto 0;
}

.stm-map { margin: 0; }

.stm-map__cap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  margin-bottom: 8px;
}

.stm-map__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--stm-radius-md);
  overflow: hidden;
  border: 1px solid var(--stm-border);
  box-shadow: var(--stm-shadow-sm);
}

.stm-map__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (min-width: 768px) {
  .stm-access__maps {
    grid-template-columns: 1fr 1fr;
  }
}

/* =========================================================
   料金・チケットページ（page-ticket.php）視覚版
   ========================================================= */
.stm-ticket-h {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  color: var(--stm-wood-dark);
  margin: 8px 0 16px;
}

.stm-ticket-h__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--stm-wood-light);
  color: var(--stm-primary);
  flex: 0 0 auto;
}
.stm-ticket-h__icon svg { width: 24px; height: 24px; }

.stm-ticket-note-badge {
  display: inline-block;
  background: var(--stm-primary);
  color: var(--stm-white);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 16px;
  border-radius: var(--stm-radius-pill);
  margin-bottom: 18px;
}

/* 料金カード */
.stm-price {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}

.stm-price--pass {
  grid-template-columns: repeat(2, 1fr);
  max-width: 560px;
}

.stm-price__card {
  background: var(--stm-white);
  border: 1px solid var(--stm-border);
  border-radius: var(--stm-radius-md);
  box-shadow: var(--stm-shadow-sm);
  padding: 18px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.stm-price__card--free {
  background: #F3F7EC;
  border-color: #D8E6C4;
}

.stm-price__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--stm-wood-light);
  color: var(--stm-primary);
}
.stm-price__icon svg { width: 28px; height: 28px; }

.stm-price__card--free .stm-price__icon {
  background: #E4EFD3;
  color: var(--stm-green);
}

.stm-price__label {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.35;
}
.stm-price__label small {
  display: block;
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--stm-gray);
}

.stm-price__amount {
  font-family: var(--stm-font-en);
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--stm-primary-dark);
  line-height: 1;
}
.stm-price__amount small {
  font-size: 0.9rem;
  margin-left: 2px;
}
.stm-price__amount--free {
  font-family: var(--stm-font-round);
  color: var(--stm-green);
}

.stm-ticket-notes {
  list-style: none;
  font-size: 0.88rem;
  color: var(--stm-gray);
  margin-bottom: 36px;
}
.stm-ticket-notes li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 4px;
}
.stm-ticket-notes li::before {
  content: "※";
  position: absolute;
  left: 0;
}
.stm-ticket-notes__single {
  font-size: 0.88rem;
  color: var(--stm-gray);
  margin-bottom: 36px;
}

/* 支払い方法 */
.stm-ticket-cash {
  font-weight: 700;
  color: var(--stm-primary-dark);
  margin-bottom: 12px;
}

.stm-pay__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 12px 0;
  border-bottom: 1px dotted var(--stm-border);
}

.stm-pay__label {
  flex: 0 0 auto;
  font-weight: 700;
  font-size: 0.9rem;
  background: var(--stm-wood-light);
  padding: 4px 12px;
  border-radius: var(--stm-radius-pill);
}

.stm-pay__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.stm-pay__chips b {
  font-weight: 700;
  font-size: 0.8rem;
  background: var(--stm-white);
  border: 1px solid var(--stm-border);
  border-radius: var(--stm-radius-sm);
  padding: 4px 10px;
  color: var(--stm-text);
}

@media (min-width: 768px) {
  .stm-price { grid-template-columns: repeat(4, 1fr); }
  .stm-price--pass { grid-template-columns: repeat(2, 1fr); }
  .stm-price__amount { font-size: 1.9rem; }
}

/* =========================================================
   カフェ メニュー（page-cafe.php）
   ========================================================= */
.stm-menu {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  max-width: 980px;
  margin: 0 auto;
}

.stm-menu__group {
  background: var(--stm-white);
  border: 1px solid var(--stm-border);
  border-radius: var(--stm-radius-md);
  box-shadow: var(--stm-shadow-sm);
  padding: 20px 22px;
}

.stm-menu__cat {
  font-size: 1.05rem;
  color: var(--stm-wood-dark);
  border-bottom: 2px solid var(--stm-wood-light);
  padding-bottom: 8px;
  margin-bottom: 10px;
}
.stm-menu__cat small {
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--stm-gray);
  margin-left: 8px;
}

.stm-menu__cta {
  text-align: center;
  margin-top: 24px;
}

.stm-menu__list { list-style: none; }

.stm-menu__list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px dotted var(--stm-border);
}
.stm-menu__list li:last-child { border-bottom: none; }

.stm-menu__price {
  font-family: var(--stm-font-en);
  font-weight: 700;
  color: var(--stm-primary-dark);
  white-space: nowrap;
}

.stm-menu__note {
  max-width: 980px;
  margin: 18px auto 0;
  font-size: 0.8rem;
  color: var(--stm-gray);
  text-align: center;
}

@media (min-width: 768px) {
  .stm-menu { grid-template-columns: repeat(3, 1fr); }
}

/* =========================================================
   画像ライトボックス（フロアガイドの拡大表示 / main.js）
   ========================================================= */
.stm-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.8);
}

.stm-lightbox.is-open {
  display: flex;
}

.stm-lightbox__img {
  max-width: min(90vw, 880px);   /* 大きくなりすぎない上限 */
  max-height: 85vh;
  width: auto;
  height: auto;
  border-radius: var(--stm-radius-md);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  background: var(--stm-white);
}

.stm-lightbox__close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--stm-text);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.stm-lightbox__close:hover {
  background: var(--stm-white);
}

/* =========================================================
   家族での過ごし方：写真の代わりのアイコンパネル
   ========================================================= */
.stm-course__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  border-radius: var(--stm-radius-md);
  background: var(--stm-wood-light); /* 古いブラウザ用フォールバック */
  background: color-mix(in srgb, var(--c, var(--stm-primary)) 12%, #ffffff);
  color: var(--c, var(--stm-primary));
}

.stm-course__icon svg {
  width: 84px;
  height: 84px;
}

@media (min-width: 768px) {
  .stm-course__icon {
    flex: 1 1 46%;
    aspect-ratio: 16 / 10;
    align-self: stretch; /* 文章ブロックの高さに合わせる */
  }
  .stm-course__icon svg { width: 96px; height: 96px; }
}

/* =========================================================
   イベントカレンダー：休館日（木曜）
   ========================================================= */
.stm-cal__cell.is-closed {
  background: repeating-linear-gradient(
    -45deg,
    #f3eee7,
    #f3eee7 6px,
    #ece5da 6px,
    #ece5da 12px
  );
  color: var(--stm-gray);
}

.stm-cal__cell.is-closed .stm-cal__date {
  color: var(--stm-gray);
}

.stm-cal__closed {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--stm-gray);
  margin-top: 2px;
}

.stm-cal__note {
  font-size: 0.8rem;
  color: var(--stm-gray);
  margin-top: 12px;
}

@media (max-width: 600px) {
  .stm-cal__closed { font-size: 0.55rem; }
}

/* =========================================================
   横スクロール（TOP お知らせ・イベント最新5件）
   ========================================================= */
.stm-hscroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 4px 8px;
  margin: 0 -4px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  /* スクロールバーを非表示（スワイプは可能） */
  scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none;     /* IE / 旧Edge */
}
.stm-hscroll::-webkit-scrollbar { /* Chrome / Safari / Edge */
  display: none;
  width: 0;
  height: 0;
}

.stm-hscroll > * {
  flex: 0 0 78%;            /* スマホ：1枚強がちら見え */
  max-width: 300px;
  scroll-snap-align: start;
}

@media (min-width: 600px) {
  .stm-hscroll > * { flex-basis: 300px; }
}

/* ドットインジケータ（○●○○） */
.stm-hscroll-dots {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 12px;
}

.stm-hscroll-dot {
  width: 10px;
  height: 10px;
  padding: 6px;            /* タップ領域を確保（見た目は10px） */
  box-sizing: content-box;
  background: #D9CBB8;
  background-clip: content-box;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.stm-hscroll-dot:hover {
  background: var(--stm-primary-dark);
  background-clip: content-box;
}

.stm-hscroll-dot.is-active {
  background: var(--stm-primary);
  background-clip: content-box;
  transform: scale(1.15);
}

/* =========================================================
   2館ストーリー：TOPはコンパクト表示
   ========================================================= */
.stm-story--compact {
  padding-top: 32px;
  padding-bottom: 32px;
}
.stm-story--compact .stm-section__title {
  margin-bottom: 20px;
}
.stm-story--compact .stm-story__steps {
  gap: 12px;
}
.stm-story--compact .stm-story__step {
  padding: 16px 16px;
  gap: 6px;
}
.stm-story--compact .stm-story__num {
  width: 28px;
  height: 28px;
  font-size: 0.85rem;
}
.stm-story--compact .stm-story__title {
  font-size: 1.02rem;
}
.stm-story--compact .stm-story__desc {
  font-size: 0.86rem;
  line-height: 1.6;
}

/* =========================================================
   360度ビュー導線（page-first-visit.php）
   ========================================================= */
.stm-360 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

/* =========================================================
   「本日のイベント」バー（ヒーローと施設紹介の間・ある日だけ表示）
   ========================================================= */
.stm-today {
  text-align: center;
  padding: 18px 16px 0;
}

.stm-today__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 8px 16px 8px 8px;
  border-radius: var(--stm-radius-pill);
  background: var(--stm-white);
  border: 1px solid var(--stm-border);
  box-shadow: var(--stm-shadow-sm);
  text-decoration: none;
  color: var(--stm-text);
  font-size: 0.9rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.stm-today__pill:hover {
  transform: translateY(-2px);
  box-shadow: var(--stm-shadow);
}

.stm-today__tag {
  flex: 0 0 auto;
  background: var(--stm-primary);
  color: var(--stm-white);
  font-weight: 700;
  font-size: 0.72rem;
  padding: 4px 12px;
  border-radius: var(--stm-radius-pill);
}

.stm-today__date {
  flex: 0 0 auto;
  font-family: var(--stm-font-en);
  font-weight: 700;
  color: var(--stm-primary-dark);
}

.stm-today__title {
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stm-today__arrow {
  flex: 0 0 auto;
  color: var(--stm-primary);
  font-weight: 700;
}

/* =========================================================
   団体利用ページ（page-group.php）
   ========================================================= */
.stm-group-catch {
  font-size: 1.4rem;
  color: var(--stm-wood-dark);
  line-height: 1.6;
  margin-bottom: 14px;
}

.stm-group-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 20px 0 8px;
}

/* 特徴ピル */
.stm-group-features {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}
.stm-group-features li {
  background: var(--stm-wood-light);
  color: var(--stm-wood-dark);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: var(--stm-radius-pill);
}

/* カードグリッド（おすすめ団体・できること・メリット） */
.stm-group-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 980px;
  margin: 0 auto;
}
.stm-group-card {
  background: var(--stm-white);
  border: 1px solid var(--stm-border);
  border-radius: var(--stm-radius-md);
  box-shadow: var(--stm-shadow-sm);
  padding: 22px 24px;
}
.stm-group-card__title {
  font-size: 1.1rem;
  color: var(--stm-wood-dark);
  border-bottom: 2px solid var(--stm-wood-light);
  padding-bottom: 8px;
  margin-bottom: 10px;
}
.stm-group-card__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.stm-group-card__list li {
  background: var(--stm-wood-light);
  color: var(--stm-wood-dark);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--stm-radius-pill);
}

/* 来館方法・人数上限 */
.stm-group-access {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 780px;
  margin: 0 auto;
}
.stm-group-access__card {
  background: var(--stm-white);
  border: 1px solid var(--stm-border);
  border-radius: var(--stm-radius-md);
  box-shadow: var(--stm-shadow-sm);
  padding: 22px;
  text-align: center;
}
.stm-group-access__method {
  font-weight: 700;
  color: var(--stm-wood-dark);
  margin-bottom: 10px;
  min-height: 3em;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stm-group-access__num {
  font-family: var(--stm-font-en);
  font-weight: 700;
  font-size: 2.4rem;
  color: var(--stm-primary-dark);
  line-height: 1;
}
.stm-group-access__num small {
  font-family: var(--stm-font-base);
  font-size: 0.9rem;
  margin-left: 4px;
}
.stm-group-access__num--free {
  font-family: var(--stm-font-round);
  font-size: 1.6rem;
  color: var(--stm-green);
}

.stm-group-note {
  max-width: 980px;
  margin: 18px auto 0;
  font-size: 0.85rem;
  color: var(--stm-gray);
}

/* 利用概要 定義リスト */
.stm-deflist {
  max-width: 820px;
  margin: 0 auto;
  background: var(--stm-white);
  border: 1px solid var(--stm-border);
  border-radius: var(--stm-radius-md);
  box-shadow: var(--stm-shadow-sm);
  overflow: hidden;
}
.stm-deflist dt {
  background: var(--stm-wood-light);
  color: var(--stm-wood-dark);
  font-weight: 700;
  padding: 12px 18px;
  font-size: 0.9rem;
}
.stm-deflist dd {
  padding: 12px 18px 16px;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--stm-border);
}
.stm-deflist dd:last-child { border-bottom: none; }

/* バス時刻表 Instagram注記 */
.stm-bus__instagram {
  background: var(--stm-wood-light);
  border-radius: var(--stm-radius-sm);
  padding: 10px 14px;
  font-size: 0.88rem;
  margin-bottom: 14px;
}
.stm-bus__instagram a {
  font-weight: 700;
  color: var(--stm-primary-dark);
}

@media (min-width: 768px) {
  .stm-group-grid { grid-template-columns: repeat(2, 1fr); }
  .stm-group-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .stm-group-access { grid-template-columns: 1fr 1fr; }
  .stm-deflist {
    display: grid;
    grid-template-columns: 12em 1fr;
  }
  .stm-deflist dt {
    border-bottom: 1px solid var(--stm-border);
  }
}

/* =========================================================
   Instagramフィード（プラグイン表示枠）の保険
   ========================================================= */
.stm-instagram__feed {
  width: 100%;
  max-width: 100%;
}
.stm-instagram__feed img {
  max-width: 100%;
  height: auto;
}

/* =========================================================
   法的文書（プライバシーポリシー等）
   ========================================================= */
.stm-legal {
  max-width: 820px;
  margin-inline: auto;
  color: var(--stm-text);
  line-height: 1.9;
}

.stm-legal__h2 {
  font-size: 1.15rem;
  color: var(--stm-wood-dark);
  margin: var(--stm-section) 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--stm-wood-light);
}
.stm-legal__h2:first-child {
  margin-top: 0;
}

.stm-legal p {
  margin: 0 0 12px;
}

/* 番号付きリスト（（1）（2）…の代わりに自動採番） */
.stm-legal__list {
  margin: 0 0 12px;
  padding-left: 1.6em;
  list-style: decimal;
}
.stm-legal__list li {
  margin-bottom: 8px;
  padding-left: 4px;
}

/* 宛先などの整形ブロック */
.stm-legal__address {
  background: var(--stm-wood-light);
  border-radius: var(--stm-radius-md);
  padding: 16px 20px;
  margin: 4px 0 16px;
  font-style: normal;
}

/* 制定日・改訂日 */
.stm-legal__meta {
  margin-top: var(--stm-section);
  padding-top: 16px;
  border-top: 1px solid var(--stm-wood-light);
  color: var(--stm-gray);
  font-size: 0.9rem;
  text-align: right;
}
