/* =========================================================
   おもちゃばこ サンプルサイト
   トークンはすべて system/DESIGN.md の YAML フロントマターと同じ値。
   セクションごとの主役色：
     ヒーロー=aka（空の帯 ao-soft→cream） / おすすめ=kiiro / あそび場=midori
     スケジュール=ao / お客様の声=aka / FAQ=midori / 予約=ao / フッター=kiiro-soft
   ========================================================= */

:root {
  /* 色 */
  --cream: #FFFAF1;
  --paper: #FFFFFF;
  --ink: #3E3A34;
  --ink-sub: #7A7267;
  --aka: #FF6B6B;
  --aka-deep: #E5484D;
  --ao: #4D96FF;
  --ao-deep: #2F7FE0;
  --kiiro: #FFC93D;
  --midori: #6BCB77;
  --midori-deep: #3FA34D;
  --murasaki: #9B5DE5;
  --aka-soft: #FFE4E4;
  --ao-soft: #DFECFF;
  --kiiro-soft: #FFF5DC;
  --midori-soft: #E4F6E7;
  --murasaki-soft: #EDE2FA;
  --ink-12: rgba(62, 58, 52, 0.12);
  --ink-20: rgba(62, 58, 52, 0.20);

  /* 書体 */
  --font: 'Fredoka', 'Zen Maru Gothic', sans-serif;

  /* 角丸 */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-input: 16px;
  --r-image: 20px;
  --r-card: 24px;
  --r-lg: 32px;
  --r-pill: 999px;

  /* 線 */
  --line: 3px;
  --line-bold: 4px;

  /* 余白 */
  --gutter: 24px;
  --section-y: 64px;
  --page-pad: 20px;
  --content-max: 1080px;
  --text-max: 680px;

  /* 動き */
  --hover: 160ms;
  --press: 120ms;
  --accordion: 240ms;

  /* セクション主役色（各セクションで上書き） */
  --hero: var(--aka);
  --hero-deep: var(--aka-deep);
  --hero-soft: var(--aka-soft);
}

@media (min-width: 960px) {
  :root { --section-y: 96px; }
}

/* ---------- ベース ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 640px) {
  body { font-size: 17px; }
}

h1, h2, h3, p, ul, dl, dd, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
svg { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }

.num {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* 短い句を途中で改行させない */
.nowrap { white-space: nowrap; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* フォーカスリング：ao-deep */
:focus-visible {
  outline: 3px solid var(--ao-deep);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 12px; top: -80px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--paper);
  border: var(--line) solid var(--ink);
  border-radius: var(--r-pill);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: calc(var(--content-max) + var(--page-pad) * 2);
  margin: 0 auto;
  padding: 0 var(--page-pad);
}

/* SVG 共通の線（クレヨンの太い線） */
.ln {
  stroke: var(--ink);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ln--thick { stroke-width: 3.75; } /* 0.8倍に縮小した積み木で線幅を3px相当に保つ */
.ln--thin  { stroke-width: 2.5; }

.blk-kana,
.blk-latin {
  fill: var(--ink);
  text-anchor: middle;
}
.blk-kana {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 900;
  font-size: 22px;
}
.blk-latin {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
}
.box-label {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 900;
  font-size: 16px;
  fill: var(--ink);
  text-anchor: middle;
  letter-spacing: .04em;
}

/* ---------- ボタン（§7.1） ---------- */
.btn {
  --shadow-color: var(--ink-12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  padding: 0 32px;
  border: 0;
  border-radius: var(--r-pill);
  font: 900 18px/1 var(--font);
  letter-spacing: .06em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--shadow-color);
  transition: transform var(--hover) ease, box-shadow var(--hover) ease;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { flex: none; }
.btn:hover  { transform: translateY(-2px); box-shadow: 0 6px 0 var(--shadow-color); }
.btn:active { transform: translateY(3px);  box-shadow: 0 1px 0 var(--shadow-color); transition-duration: var(--press); }

.btn--primary   { background: var(--aka-deep); color: var(--paper); }
.btn--secondary { background: var(--paper); color: var(--ink); border: var(--line) solid var(--ink); --shadow-color: var(--ink); }
.btn--ao        { background: var(--ao-deep); color: var(--paper); }
.btn--midori    { background: var(--midori-deep); color: var(--paper); }
.btn--kiiro     { background: var(--kiiro); color: var(--ink); }

.btn--small {
  min-height: 48px;          /* 見た目は小さめでもタップ領域は48px */
  padding: 0 22px;
}
.btn--block { width: 100%; }

/* ---------- ステッカー（§5） ---------- */
.sticker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 18px;
  border: var(--line-bold) solid var(--paper);
  border-radius: var(--r-pill);
  background: var(--kiiro);
  color: var(--ink);
  font-weight: 900;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: .04em;
  box-shadow: 0 3px 0 var(--ink-12);
  transform: rotate(-3deg);
}

/* ---------- 装飾モチーフ（§6.3） ---------- */
.motif {
  --tilt: -4deg;
  position: absolute;
  pointer-events: none;
  transform: rotate(var(--tilt));
  animation: toy-float var(--dur, 3.5s) ease-in-out var(--delay, 0s) infinite;
}
@keyframes toy-float {
  0%, 100% { transform: translateY(0)    rotate(var(--tilt)); }
  50%      { transform: translateY(-8px) rotate(var(--tilt)); }
}

/* =========================================================
   1. ヘッダー
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  transition: box-shadow var(--hover) ease;
}
.site-header.is-scrolled { box-shadow: 0 4px 0 var(--ink-12); }

.header__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  margin-right: auto;
  padding: 4px;
  border-radius: var(--r-sm);
  text-decoration: none;
}
/* 幅190px以上を保つ（小さい「ゃ」の文字が12px未満にならない大きさ） */
.logo__blocks { width: 192px; height: auto; }
@media (min-width: 640px) {
  .logo__blocks { width: 206px; }
}

/* メニューボタン（スマホ・タブレット） */
.menu-btn {
  --shadow-color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 16px 0 14px;
  border: var(--line) solid var(--ink);
  border-radius: var(--r-pill);
  background: var(--paper);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--shadow-color);
  transition: transform var(--hover) ease, box-shadow var(--hover) ease;
  -webkit-tap-highlight-color: transparent;
}
.menu-btn:hover  { transform: translateY(-2px); box-shadow: 0 6px 0 var(--shadow-color); }
.menu-btn:active { transform: translateY(3px);  box-shadow: 0 1px 0 var(--shadow-color); }
.menu-btn__icon { width: 34px; height: 14px; }
/* 狭い画面では丸いボタンにして、文字は読み上げ用に残す */
@media (max-width: 419px) {
  .menu-btn { min-width: 64px; padding: 0 12px; justify-content: center; }
  .menu-btn__label {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

/* JS が動かない環境：メニューは開いたまま、ヘッダーの下に並べる */
html:not(.js) .header__inner { flex-wrap: wrap; }
html:not(.js) .menu-btn { display: none; }
html:not(.js) .nav {
  position: static;
  order: 3;
  width: 100%;
  padding: 0 0 12px;
  background: none;
  border: 0;
  box-shadow: none;
}
.menu-btn__icon circle { transition: transform var(--hover) ease; transform-origin: center; transform-box: fill-box; }
.menu-btn[aria-expanded="true"] .menu-btn__icon circle:nth-child(1) { transform: translateY(-2px); }
.menu-btn[aria-expanded="true"] .menu-btn__icon circle:nth-child(3) { transform: translateY(-2px); }
.menu-btn[aria-expanded="true"] .menu-btn__icon circle:nth-child(2) { transform: translateY(2px); }

/* ナビ：スマホでは丸いパネルに格納 */
.nav {
  position: absolute;
  top: calc(100% + 8px);
  left: 12px;
  right: 12px;
  padding: 16px;
  background: var(--paper);
  border: var(--line) solid var(--ink);
  border-radius: var(--r-card);
  box-shadow: 0 4px 0 var(--ink-12);
}
.js .nav { display: none; }
.js .nav.is-open { display: block; animation: nav-pop 200ms ease-out; }
@keyframes nav-pop {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nav__list { display: grid; gap: 4px; }
.nav__link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  transition: background-color var(--hover) ease;
}
.nav__link::before {
  content: "";
  flex: none;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--kiiro);
}
.nav__list li:nth-child(3n+1) .nav__link::before { background: var(--aka); }
.nav__list li:nth-child(3n+2) .nav__link::before { background: var(--kiiro); }
.nav__list li:nth-child(3n)   .nav__link::before { background: var(--ao); }
.nav__link:hover { background: var(--kiiro-soft); }

.nav__cta { width: 100%; margin-top: 12px; }
.header__cta { display: none; }

@media (min-width: 640px) {
  .header__cta { display: inline-flex; }
  .nav__cta { display: none; }
  .nav { left: auto; width: 320px; }
}

/* ロゴ＋ナビ5項目＋予約ボタンが1行に収まる幅から横並びに */
@media (min-width: 1080px) {
  .menu-btn { display: none; }
  .nav,
  .js .nav {
    position: static;
    display: block;
    width: auto;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    animation: none;
  }
  .nav__list { display: flex; gap: 2px; }
  .nav__link {
    min-height: 48px;
    padding: 0 14px;
    font-size: 16px;
  }
  .nav__link::before { display: none; }
  .header__inner { gap: 16px; }
}

/* =========================================================
   セクション共通
   ========================================================= */
.section {
  position: relative;
  overflow: hidden;
  padding-top: var(--section-y);
  background: var(--hero-soft);
  scroll-margin-top: 72px;
}
.section__body {
  position: relative;
  padding-bottom: var(--section-y);
}
.section--aka    { --hero: var(--aka);    --hero-deep: var(--aka-deep);    --hero-soft: var(--aka-soft); }
.section--ao     { --hero: var(--ao);     --hero-deep: var(--ao-deep);     --hero-soft: var(--ao-soft); }
.section--kiiro  { --hero: var(--kiiro);  --hero-deep: var(--kiiro);       --hero-soft: var(--kiiro-soft); }
.section--midori { --hero: var(--midori); --hero-deep: var(--midori-deep); --hero-soft: var(--midori-soft); }

/* セクション区切りの波線（色は次のセクション） */
.wave {
  display: block;
  width: 100%;
  height: 32px;
  margin-bottom: -1px;
}
@media (min-width: 640px) {
  .wave { height: 48px; }
}

/* 見出し（§7.2）：左におもちゃアイコン＋クレヨンの下線 */
.heading {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;   /* 長い見出しでもアイコンは左に残し、文字だけ折り返す */
  gap: 12px;
  margin-bottom: 20px;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: .05em;
}
@media (min-width: 640px) {
  .heading { font-size: 32px; }
}
.heading__icon {
  flex: none;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;   /* 下線の分だけ持ち上げて文字と中心をそろえる */
}
.heading__text {
  position: relative;
  min-width: 0;
  padding-bottom: 16px;
}
.heading__text::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 12px;
  background-color: var(--hero);
  -webkit-mask-repeat: repeat-x;
          mask-repeat: repeat-x;
  -webkit-mask-position: left center;
          mask-position: left center;
}
.heading--wave .heading__text::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 12'%3E%3Cpath d='M0 6 Q7.5 1 15 6 T30 6' fill='none' stroke='black' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 12'%3E%3Cpath d='M0 6 Q7.5 1 15 6 T30 6' fill='none' stroke='black' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E");
  -webkit-mask-size: 30px 12px;
          mask-size: 30px 12px;
}
.heading--dots .heading__text::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12'%3E%3Ccircle cx='8' cy='6' r='3.2' fill='black'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12'%3E%3Ccircle cx='8' cy='6' r='3.2' fill='black'/%3E%3C/svg%3E");
  -webkit-mask-size: 16px 12px;
          mask-size: 16px 12px;
}
/* kiiro・midori の下線は面に溶けないよう deep 寄りに */
.section--midori .heading__text::after { background-color: var(--midori-deep); }

.section__lead {
  max-width: var(--text-max);
  margin-bottom: 40px;
}

/* 見出し横の浮かぶモチーフ（PCのみ・本文に重ならない位置） */
.section__motif {
  display: none;
  top: calc(var(--section-y) - 12px);
  right: max(24px, calc(50% - 540px));
  width: 84px;
  height: 84px;
}
@media (min-width: 960px) {
  .section__motif { display: block; }
}
.section__motif--crayon { width: 96px; height: 96px; }
.section__motif--star   { width: 64px; height: 64px; top: calc(var(--section-y) + 4px); }

.note {
  margin-top: 16px;
  color: var(--ink-sub);
  font-size: 14px;
  line-height: 1.8;
}

/* =========================================================
   2. ヒーロー
   ========================================================= */
.hero {
  /* §8 例外：空の帯 ao-soft → cream の2色直線グラデーションのみ */
  background: linear-gradient(180deg, var(--ao-soft) 0%, var(--cream) 82%);
  padding-top: 40px;
  scroll-margin-top: 0;
}
.hero__inner {
  display: grid;
  gap: 32px;
  padding-bottom: 32px;
}
.hero__copy { position: relative; z-index: 1; }

.hero__sticker { margin-bottom: 18px; }

.hero__title {
  font-size: 34px;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: .06em;
  margin-bottom: 20px;
}
.hero__line { display: block; }
.hero__aka { color: var(--aka-deep); }
.hero__mark {
  /* クレヨンで引いたマーカー（kiiro の波線） */
  padding-bottom: 6px;
  background: no-repeat left bottom / 100% 14px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 14' preserveAspectRatio='none'%3E%3Cpath d='M4 8 Q 19 2 34 8 T 64 8 T 94 8 T 116 7' fill='none' stroke='%23FFC93D' stroke-width='8' stroke-linecap='round'/%3E%3C/svg%3E");
}

.hero__lead {
  max-width: 34em;
  margin-bottom: 28px;
}

.hero__ctas {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}
.hero__ctas .btn { width: 100%; }

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}
.hero__facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 4px 16px 4px 12px;
  background: var(--paper);
  border: var(--line) solid var(--ink-20);
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 700;
}
.fact-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  flex: none;
}
.fact-dot--aka   { background: var(--aka); }
.fact-dot--ao    { background: var(--ao); }
.fact-dot--kiiro { background: var(--kiiro); }

/* ヒーローのイラスト（おもちゃ箱＋浮かぶおもちゃ4個） */
.hero__art {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  aspect-ratio: 1 / .92;
}
.hero__box {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 76%;
  transform: translateX(-50%);
}
.hero__balloon { left: 2%;  top: 4%;  width: 17%; max-width: 92px; height: auto; aspect-ratio: 1; }
.hero__rocket  { right: 4%; top: 0;   width: 17%; max-width: 92px; height: auto; aspect-ratio: 1; }
.hero__bubbles { left: 0;   bottom: 30%; width: 15%; max-width: 80px; height: auto; aspect-ratio: 1; }
.hero__star    { right: 2%; bottom: 40%; width: 11%; max-width: 60px; height: auto; aspect-ratio: 1; }

@media (min-width: 640px) {
  .hero__ctas { flex-direction: row; flex-wrap: wrap; }
  .hero__ctas .btn { width: auto; }
}

@media (min-width: 960px) {
  .hero { padding-top: 56px; }
  .hero__inner {
    grid-template-columns: 1.08fr .92fr;
    align-items: center;
    gap: 40px;
    padding-bottom: 56px;
  }
  .hero__title { font-size: 52px; }
  .hero__balloon, .hero__rocket { max-width: 110px; }
}

/* =========================================================
   3. おすすめおもちゃ
   ========================================================= */
.toy-grid {
  display: grid;
  gap: var(--gutter);
}
@media (min-width: 640px) { .toy-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .toy-grid { grid-template-columns: repeat(3, 1fr); } }

.toy-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: var(--paper);
  border: var(--line) solid var(--ink);
  border-radius: var(--r-card);
  box-shadow: 0 4px 0 var(--ink);
}
.toy-card__art {
  position: relative;
  display: grid;
  place-items: center;
  height: 188px;
  margin-bottom: 20px;
  background: var(--art, var(--kiiro-soft));
  border-radius: var(--r-image);
}
.toy-card__art > svg {
  width: 82%;
  max-width: 250px;
  height: auto;
  max-height: 160px;
}

/* 星型の価格ステッカー */
.price-star {
  position: absolute;
  top: -16px;
  right: -14px;
  display: grid;
  place-items: center;
  width: 100px;
  height: 104px;
  transform: rotate(var(--rot, 3deg));
}
.price-star svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.ps-sh {
  fill: var(--ink-12);
  stroke: var(--ink-12);
  stroke-width: 8;
  stroke-linejoin: round;
}
.ps-st {
  fill: var(--kiiro);
  stroke: var(--paper);
  stroke-width: 8;
  stroke-linejoin: round;
}
.price-star__num {
  position: relative;
  margin-top: 4px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  color: var(--ink);
}

.toy-card__name {
  font-size: 20px;
  font-weight: 900;
  line-height: 1.5;
  letter-spacing: .04em;
  margin-bottom: 8px;
}
@media (min-width: 640px) { .toy-card__name { font-size: 22px; } }

.age-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px 4px 6px;
  margin-bottom: 14px;
  background: var(--ao-soft);
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: .03em;
}
.age-badge__label {
  padding: 0 10px;
  background: var(--paper);
  border-radius: var(--r-pill);
  font-size: 13px;
}
.age-badge .num { font-size: 16px; }

.toy-card__desc { font-size: 16px; }

/* =========================================================
   4. あそび場
   ========================================================= */
.feature-grid {
  display: grid;
  gap: var(--gutter);
}
@media (min-width: 960px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }

.feature {
  padding: 28px 24px;
  background: var(--paper);
  border: var(--line) solid var(--ink);
  border-radius: var(--r-card);
  box-shadow: 0 4px 0 var(--ink-12);
}
.feature__icon {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  margin-bottom: 18px;
  background: var(--soft);
  border-radius: 50%;
}
.feature__title {
  font-size: 20px;
  font-weight: 900;
  line-height: 1.5;
  letter-spacing: .04em;
  margin-bottom: 10px;
}
@media (min-width: 640px) { .feature__title { font-size: 22px; } }

/* 利用案内パネル */
.guide {
  display: grid;
  gap: 28px;
  margin-top: 48px;
  padding: 28px 22px;
  background: var(--paper);
  border: var(--line) solid var(--ink);
  border-radius: var(--r-lg);
  box-shadow: 0 4px 0 var(--ink-12);
}
.guide__title {
  font-size: 22px;
  font-weight: 900;
  line-height: 1.5;
  letter-spacing: .04em;
  margin-bottom: 12px;
}
.guide__intro p { margin-bottom: 24px; }
.guide__intro .btn { width: 100%; }

.guide__row {
  display: grid;
  gap: 6px;
  padding: 16px 0;
  border-top: 2px dashed var(--ink-20);
}
.guide__row:first-child { border-top: 0; padding-top: 0; }
.guide__row dt {
  justify-self: start;
  padding: 2px 14px;
  background: var(--midori-soft);
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.8;
}
.guide__row dd { font-size: 16px; }

@media (min-width: 640px) {
  .guide { padding: 40px; }
  .guide__intro .btn { width: auto; }
  .guide__row { grid-template-columns: 9.5em 1fr; gap: 16px; align-items: baseline; }
}
@media (min-width: 960px) {
  .guide { grid-template-columns: .85fr 1.15fr; gap: 48px; }
}

/* =========================================================
   5. 週間スケジュール（スマホは曜日ごとのカード、760px以上で丸い表）
   ========================================================= */
.schedule__table,
.schedule__table tbody,
.schedule__table tr,
.schedule__table th,
.schedule__table td { display: block; }

.schedule__table { width: 100%; }
.schedule__table thead {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.schedule__table tbody { display: grid; gap: 16px; }
.schedule__table tbody tr {
  padding: 8px 20px 12px;
  background: var(--paper);
  border: var(--line) solid var(--ink);
  border-radius: var(--r-card);
  box-shadow: 0 4px 0 var(--ink-12);
}
.schedule__table tbody th {
  padding: 8px 0 10px;
  text-align: left;
  font-size: 20px;
  font-weight: 900;
}
.schedule__table td {
  display: grid;
  grid-template-columns: 5.2em 1fr;
  gap: 4px 12px;
  align-items: baseline;
  padding: 10px 0;
  border-top: 2px dashed var(--ink-20);
}
.schedule__table td::before {
  content: attr(data-label);
  grid-row: span 2;
  color: var(--ink-sub);
  font-size: 14px;
  font-weight: 700;
}
.schedule__table td > * { grid-column: 2; justify-self: start; }
.schedule__table .is-closed td { display: block; }
.schedule__table .is-closed td::before { content: none; }

.day {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: .04em;
}
.day__dot {
  flex: none;
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.day__dot--weekday { background: var(--midori); }
.day__dot--sat     { background: var(--ao); }
.day__dot--sun     { background: var(--aka); }

.tag {
  display: inline-block;
  padding: 2px 12px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
}
.tag--ao     { background: var(--ao-soft); }
.tag--midori { background: var(--midori-soft); }
.tag--aka    { background: var(--aka-soft); }

.slot-note {
  display: block;
  margin-top: 2px;
  color: var(--ink-sub);
  font-size: 14px;
  line-height: 1.7;
}
.slot-note .num { color: var(--ink); }
.free { font-weight: 700; }
.closed { color: var(--ink-sub); font-weight: 700; }

.schedule__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 24px;
  font-size: 14px;
  font-weight: 700;
}
.schedule__legend li { display: inline-flex; align-items: center; gap: 8px; }

@media (min-width: 760px) {
  /* 外枠を丸める：ラッパーに枠と角丸、表は separate */
  .schedule {
    background: var(--paper);
    border: var(--line) solid var(--ink);
    border-radius: var(--r-card);
    overflow: hidden;
    box-shadow: 0 4px 0 var(--ink-12);
  }
  .schedule__table { display: table; border-collapse: separate; border-spacing: 0; }
  .schedule__table thead { display: table-header-group; position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .schedule__table tbody { display: table-row-group; }
  .schedule__table tr,
  .schedule__table tbody tr {
    display: table-row;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .schedule__table th,
  .schedule__table td,
  .schedule__table tbody th,
  .schedule__table .is-closed td {
    display: table-cell;
    padding: 16px 20px;
    vertical-align: middle;
    text-align: left;
  }
  .schedule__table td::before { content: none; }
  .schedule__table thead th {
    background: var(--ao-soft);
    font-size: 15px;
    font-weight: 900;
    letter-spacing: .04em;
  }
  .schedule__table tbody th { font-size: 17px; width: 9em; white-space: nowrap; }
  .schedule__table td:nth-child(2) { width: 9.5em; }
  .schedule__table tbody th,
  .schedule__table tbody td { border-top: 2px dashed var(--ink-20); }
  .schedule__table tbody tr:first-child th,
  .schedule__table tbody tr:first-child td { border-top: 0; }
  .schedule__table .is-closed th,
  .schedule__table .is-closed td { background: var(--cream); }
  .slot-note { font-size: 14px; }
}

/* =========================================================
   6. お客様の声（吹き出し）
   ========================================================= */
.voice-grid {
  display: grid;
  gap: 40px var(--gutter);
}
@media (min-width: 960px) { .voice-grid { grid-template-columns: repeat(3, 1fr); } }

.voice {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.voice__bubble {
  position: relative;
  flex: 1;
  padding: 20px 24px 24px;
  background: var(--paper);
  border: var(--line) solid var(--ink);
  border-radius: var(--r-card);
  box-shadow: 0 4px 0 var(--ink-12);
  transform: rotate(var(--tilt, 0deg));
}
.voice__quote {
  display: block;
  height: 30px;
  margin-bottom: 6px;
  color: var(--aka);
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 64px;
  line-height: 1;
}
.voice__tail {
  position: absolute;
  top: 100%;
  left: 34px;
  width: 40px;
  height: 30px;
  overflow: visible;
}
.voice__who {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
  padding-left: 8px;
}
.voice__avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  background: var(--soft);
  border: var(--line) solid var(--ink);
  border-radius: 50%;
}
.voice__name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
}

/* =========================================================
   7. FAQ（星が回るアコーディオン）
   ========================================================= */
.faq-list {
  max-width: 820px;
  display: grid;
  gap: 16px;
}
.faq {
  --shadow-color: var(--ink-12);
  background: var(--paper);
  border: var(--line) solid var(--ink);
  border-radius: var(--r-card);
  box-shadow: 0 4px 0 var(--shadow-color);
  transition: transform var(--hover) ease, box-shadow var(--hover) ease;
}
.faq:has(.faq__q:hover)  { transform: translateY(-2px); box-shadow: 0 6px 0 var(--shadow-color); }
.faq:has(.faq__q:active) { transform: translateY(3px);  box-shadow: 0 1px 0 var(--shadow-color); }

.faq__h { font-size: inherit; }
.faq__q {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 72px;
  padding: 16px 20px;
  background: none;
  border: 0;
  border-radius: 21px;
  text-align: left;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.6;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
@media (min-width: 640px) { .faq__q { padding: 18px 24px; font-size: 18px; } }
.faq__text { flex: 1; }

.faq__mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
}
.faq__mark--q { background: var(--midori-deep); color: var(--paper); }
.faq__mark--a { background: var(--kiiro); color: var(--ink); }

.faq__star {
  flex: none;
  width: 34px;
  height: 34px;
  fill: var(--kiiro);
  transition: transform var(--accordion) ease, fill var(--accordion) ease;
}
.faq.is-open .faq__star {
  transform: rotate(144deg);
  fill: var(--midori);
}

.faq__a {
  display: grid;
  grid-template-rows: 1fr;
}
.js .faq__a {
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows var(--accordion) ease, visibility var(--accordion);
}
.js .faq.is-open .faq__a {
  grid-template-rows: 1fr;
  visibility: visible;
}
.faq__a-inner { overflow: hidden; min-height: 0; }
.faq__a-body {
  display: flex;
  gap: 14px;
  margin: 0 20px 20px;
  padding-top: 16px;
  border-top: 2px dashed var(--ink-20);
}
@media (min-width: 640px) { .faq__a-body { margin: 0 24px 22px; } }
.faq__a-body p { flex: 1; padding-top: 2px; }

/* =========================================================
   8. 来店予約フォーム
   ========================================================= */
.reserve {
  display: grid;
  gap: 32px;
  margin-top: 28px;
}
@media (min-width: 960px) {
  .reserve { grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
}
.reserve__intro p { max-width: var(--text-max); margin-bottom: 20px; }
.reserve__points { display: grid; gap: 12px; }
.reserve__points li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 16px;
}
.reserve__points svg { flex: none; margin-top: 4px; }

.reserve__panel {
  padding: 28px 20px;
  background: var(--paper);
  border: var(--line) solid var(--ink);
  border-radius: var(--r-lg);
  box-shadow: 0 4px 0 var(--ink-12);
}
@media (min-width: 640px) { .reserve__panel { padding: 40px; } }

.field { margin-bottom: 24px; min-width: 0; }
.field__label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .03em;
}
.field__label svg { flex: none; }
.req,
.opt {
  padding: 1px 10px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}
.req { background: var(--aka-soft); color: var(--ink); }
.opt { background: var(--cream); color: var(--ink-sub); }

.input {
  display: block;
  width: 100%;
  min-height: 56px;
  padding: 0 20px;
  background: var(--paper);
  border: var(--line) solid var(--ink-20);
  border-radius: var(--r-input);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--ink);
  transition: border-color var(--hover) ease;
  -webkit-appearance: none;
          appearance: none;
}
.input::placeholder { color: var(--ink-sub); opacity: 1; }
.input:focus { border-color: var(--ao-deep); outline: none; }
.input:focus-visible { outline: 3px solid var(--ao-deep); outline-offset: 3px; }
.input[type="date"] { line-height: 50px; }
.input[type="date"]::-webkit-date-and-time-value { text-align: left; }
.input--select {
  padding-right: 52px;
  background: var(--paper) no-repeat right 20px center / 16px 12px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12'%3E%3Cpath d='M3 3 L8 9 L13 3' fill='none' stroke='%233E3A34' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  cursor: pointer;
}
.input--area {
  min-height: 140px;
  padding: 14px 20px;
  resize: vertical;
}

.field__hint {
  margin-top: 6px;
  color: var(--ink-sub);
  font-size: 14px;
}
.field__error {
  color: var(--aka-deep);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
}
.field__error:not(:empty) {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}
.field__error:not(:empty)::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  background: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M32 7 L39 23 L56 24.5 L43 36 L47 53 L32 44 L17 53 L21 36 L8 24.5 L25 23 Z' fill='%23FFC93D' stroke='%233E3A34' stroke-width='5' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.field.is-error .input { border-color: var(--aka-deep); }

.form__row { display: grid; }
@media (min-width: 640px) {
  .form__row { grid-template-columns: 1fr 1fr; gap: 0 20px; }
}

.form__submit { margin-top: 8px; }
.form__submit .note { margin-top: 12px; }
@media (min-width: 640px) {
  .form__submit .btn--block { width: auto; min-width: 300px; }
}

/* 送信完了 */
.done {
  padding: 8px 0;
  text-align: center;
  outline: none;
  animation: done-pop 420ms cubic-bezier(.3, 1.4, .5, 1);
}
.done[hidden] { display: none; }
@keyframes done-pop {
  from { opacity: 0; transform: scale(.94); }
  to   { opacity: 1; transform: scale(1); }
}
.done__art {
  width: 220px;
  max-width: 80%;
  height: auto;
  margin: 0 auto 12px;
}
.done__title {
  font-size: 30px;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: .05em;
  margin-bottom: 12px;
}
@media (min-width: 640px) { .done__title { font-size: 40px; } }
.done__text {
  max-width: 30em;
  margin: 0 auto 10px;
  font-weight: 700;
}
.done__sub { margin-bottom: 4px; }
.done .note { margin-bottom: 24px; }

/* =========================================================
   9. フッター
   ========================================================= */
.site-footer {
  position: relative;
  overflow: hidden;
  padding-top: 48px;
  background: var(--kiiro-soft);
}
.footer__inner {
  display: grid;
  gap: 32px;
  padding-bottom: 32px;
}
@media (min-width: 960px) {
  .footer__inner { grid-template-columns: 1.4fr 1fr; gap: 48px; }
}
.logo--footer { margin-right: 0; margin-bottom: 8px; }
.logo--footer .logo__blocks { width: 220px; }
.footer__tagline {
  margin-bottom: 20px;
  font-weight: 700;
}
.footer__info { display: grid; gap: 10px; }
.footer__info div {
  display: grid;
  grid-template-columns: 5.5em 1fr;
  gap: 12px;
  font-size: 15px;
}
.footer__info dt {
  justify-self: start;
  padding: 0 12px;
  background: var(--paper);
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.9;
  height: fit-content;
}

.footer__nav ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.footer__nav a {
  --shadow-color: var(--ink-12);
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  background: var(--paper);
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 0 var(--shadow-color);
  transition: transform var(--hover) ease, box-shadow var(--hover) ease;
}
.footer__nav a:hover  { transform: translateY(-2px); box-shadow: 0 6px 0 var(--shadow-color); }
.footer__nav a:active { transform: translateY(3px);  box-shadow: 0 1px 0 var(--shadow-color); }

.footer__note {
  max-width: var(--text-max);
  padding: 16px 20px;
  background: var(--paper);
  border: var(--line) dashed var(--ink-20);
  border-radius: var(--r-card);
  font-size: 14px;
}
.footer__copy {
  margin-top: 16px;
  color: var(--ink-sub);
  font-size: 13px;
}
.footer__copy small { font-size: 13px; }

/* 下端のおもちゃの列（本文と重ならない専用の帯） */
.footer__toys {
  position: relative;
  height: 112px;
  max-width: calc(var(--content-max) + var(--page-pad) * 2);
  margin: 8px auto 0;
}
.footer__toy { bottom: 16px; width: 56px; height: 56px; }
.footer__toy--blocks { left: 6%;  width: 64px; height: 64px; }
.footer__toy--ball   { left: 30%; bottom: 28px; width: 44px; height: 44px; }
.footer__toy--train  { right: 28%; width: 72px; height: 72px; bottom: 10px; }
.footer__toy--star   { right: 6%; bottom: 40px; width: 40px; height: 40px; }
@media (min-width: 960px) {
  .footer__toys { height: 140px; }
  .footer__toy--blocks { width: 88px; height: 88px; }
  .footer__toy--ball   { width: 56px; height: 56px; }
  .footer__toy--train  { width: 96px; height: 96px; }
  .footer__toy--star   { width: 48px; height: 48px; }
}

/* =========================================================
   prefers-reduced-motion：アニメーションをすべて止める
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
  /* FAQ は回転させず、色だけ変える */
  .faq.is-open .faq__star { transform: none; }
  .btn:hover, .btn:active,
  .menu-btn:hover, .menu-btn:active,
  .footer__nav a:hover, .footer__nav a:active,
  .faq:has(.faq__q:hover), .faq:has(.faq__q:active) { transform: none; }
}
