@charset "UTF-8";
/* ==========================================================================
   トラップス 公式サイト
   レイアウトの考え方：森の小道を下っていく1ページ。
   空（KV）→ 原っぱ → 空 → 小道 → 森 → ハチミツ → 村、と背景がつながっていく。
   ========================================================================== */

:root {
  /* 色：キービジュアル・ロゴ・カードから抽出 */
  --ink: #3b1d0c;          /* イラストの主線（こげ茶） */
  --text: #4a2b17;
  --text-soft: #7a5539;
  --paper: #fffaf0;
  --paper-deep: #fff0cf;
  --sky: #60d8f8;
  --sky-pale: #cdf2ff;
  --sky-deep: #1aa3d9;
  --card-blue: #b5ebff;    /* ＋カードの背景 */
  --card-peach: #ffc49d;   /* −カードの背景 */
  --orange: #ff6e05;
  --orange-soft: #ff9445;
  --honey: #fcc945;
  --honey-pale: #ffeaa6;
  --lemon: #fff450;
  --leaf: #5ccf6a;
  --leaf-deep: #35a553;
  --forest: #187050;
  --forest-deep: #0d4d36;
  --bear: #8a5a38;
  --badge: #b0614a;
  --white: #ffffff;
  --mint: #e6f7ea;

  /* 文字 */
  --font-pop: "Mochiy Pop One", "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "BIZ UDPGothic", sans-serif;
  --font-body: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --font-en: "Fredoka", "Mochiy Pop One", "Arial Rounded MT Bold", sans-serif;

  /* 寸法 */
  --gutter: clamp(16px, 4vw, 40px);
  --container: 1120px;
  --header-h: 64px;
  --radius-l: 28px;
  --radius-m: 20px;
  --pop: 0 5px 0 var(--ink);
  --section-pad: clamp(72px, 10vw, 128px);

  color-scheme: light;
}
@media (min-width: 1024px) {
  :root { --header-h: 76px; }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .02em;
  overflow-wrap: anywhere;
  line-break: strict;
}

img { display: block; max-width: 100%; height: auto; }
svg { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p, h1, h2, h3, h4, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
strong { font-weight: 900; }

:focus-visible {
  outline: 3px solid var(--sky-deep);
  outline-offset: 3px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* overflow-x: clip に未対応の古いブラウザで横スクロールが出ないように */
@supports not (overflow-x: clip) {
  html { overflow-x: hidden; }
}

/* 日本語の改行位置：.nw のかたまりの途中では改行しない */
.nw { display: inline-block; }
h1, h2, h3, h4, .sec-lead, .demo__text, .mind__bubble, .character__catch, .trap__desc {
  word-break: auto-phrase;
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 1000;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container {
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: var(--section-pad);
  overflow-x: clip;
}
.section > .container { position: relative; z-index: 2; }

/* カード裏の柄（ツボ・スズ・肉球・葉っぱ）を背景に敷く。色はセクションごとに --pattern で指定 */
.section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: var(--pattern, transparent);
  -webkit-mask: url("../img/pattern-back.webp") 0 0 / var(--pattern-size, 340px) repeat;
  mask: url("../img/pattern-back.webp") 0 0 / var(--pattern-size, 340px) repeat;
}
/* 模様を敷くのは ABOUT と POINT だけ。ほかは草むら・足あと・葉っぱで変化をつける */
.about { --pattern: rgba(232, 196, 142, .34); }
.point { --pattern: rgba(246, 200, 92, .45); }

/* カードのふちと同じ葉っぱ飾り（角に置く） */
.leaves {
  position: absolute;
  z-index: 1;
  width: var(--leaves-size, clamp(120px, 17vw, 230px));
  height: auto;
  aspect-ratio: 200 / 170;
  overflow: visible;
  pointer-events: none;
  animation: sway 6s ease-in-out infinite;
}
.leaves--tl { top: 0; left: 0; }
.leaves--tr { top: 0; right: 0; scale: -1 1; }
.leaves--bl { bottom: 0; left: 0; scale: 1 -1; }
.leaves--br { bottom: 0; right: 0; scale: -1 -1; animation-delay: -3s; }
@keyframes sway {
  0%, 100% { rotate: 0deg; }
  50% { rotate: 2.5deg; }
}

/* ---------- 見出し（ロゴと同じ「こげ茶＋白」の二重フチ） ---------- */
.sec-head {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-bottom: clamp(24px, 4vw, 40px);
  text-align: center;
}
.sec-head--left { justify-items: start; text-align: left; }

.sec-head__en {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 2px 16px 3px;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  background: var(--honey);
  color: var(--ink);
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: .16em;
}

.sec-head__ja {
  position: relative;
  z-index: 0;
  color: var(--orange);
  font-family: var(--font-pop);
  font-weight: 400;
  font-size: clamp(30px, 6.2vw, 50px);
  line-height: 1.3;
  letter-spacing: .04em;
  text-wrap: balance;
  -webkit-text-stroke: 8px var(--ink);
  paint-order: stroke fill;
}
.sec-head__ja::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  z-index: -1;
  color: var(--white);
  -webkit-text-stroke: 18px var(--white);
  paint-order: stroke fill;
  filter: drop-shadow(0 5px 0 rgba(59, 29, 12, .2));
}

.sec-lead {
  max-width: 40em;
  margin: 0 auto clamp(32px, 5vw, 56px);
  text-align: center;
  font-weight: 700;
  font-size: clamp(15px, 2.2vw, 18px);
}
.sec-lead strong { color: var(--orange); }
.sec-lead--on-dark { color: var(--white); }
.sec-lead--on-dark strong { color: var(--lemon); }

/* ---------- クマの顔バッジ（カードの角のマークと同じ形） ---------- */
.badge {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: var(--badge-size, 60px);
  aspect-ratio: 100 / 88;
  flex: none;
}
.badge__head { position: absolute; inset: 0; width: 100%; height: 100%; }
.badge__num {
  position: relative;
  margin-top: 16%;
  color: #ffcf3d;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: calc(var(--badge-size, 60px) * .44);
  line-height: 1;
  -webkit-text-stroke: 4px var(--white);
  paint-order: stroke fill;
  text-shadow: 0 2px 0 var(--ink);
}

/* ---------- ハチ ---------- */
.bee {
  position: absolute;
  width: var(--bee-size, 56px);
  height: auto;
  aspect-ratio: 90 / 70;
  pointer-events: none;
  animation: bee-float 4.2s ease-in-out infinite;
  animation-delay: var(--bee-delay, 0s);
}
.bee--flip { scale: -1 1; }
@keyframes bee-float {
  0%, 100% { translate: 0 0; rotate: -5deg; }
  50% { translate: 8px -14px; rotate: 6deg; }
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: fixed;
  top: env(safe-area-inset-top, 0px);
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--paper);
  border-bottom: 3px solid var(--ink);
}
.header-ready .site-header {
  transition: transform .35s ease, background-color .25s, border-color .25s;
}
.site-header__logo { transition: opacity .25s, visibility .25s; }

/* ページのいちばん上ではヘッダーを隠し、キービジュアルのタイトルを全部見せる。
   少しスクロールするとヘッダーが出てくる（is-at-top は main.js が付け外しする） */
.is-at-top:not(.is-menu-open) .site-header:not(:focus-within) {
  background-color: transparent;
  border-bottom-color: transparent;
}
.is-at-top:not(.is-menu-open) .site-header:not(:focus-within) .site-header__logo {
  opacity: 0;
  visibility: hidden;
}
@media (min-width: 1024px) {
  .is-at-top .site-header:not(:focus-within) { transform: translateY(-100%); }
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
  max-width: 1400px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.site-header__logo { flex: none; display: block; border-radius: 12px; }
.site-header__logo img {
  width: auto;
  height: calc(var(--header-h) - 14px);
  transition: transform .25s;
}
.site-header__logo:hover img { transform: rotate(-4deg) scale(1.04); }

.global-nav__list { display: flex; gap: 2px; }
.global-nav a {
  display: grid;
  justify-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.35;
  transition: background-color .2s;
}
.global-nav a:hover { background: var(--honey-pale); }
.global-nav__en {
  color: var(--orange);
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: .14em;
}
.global-nav__ja { font-family: var(--font-pop); font-size: 14px; }
.global-nav__deco { display: none; }

.menu-toggle {
  display: none;
  position: relative;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--honey);
  box-shadow: 0 3px 0 var(--ink);
  cursor: pointer;
}
.menu-toggle__bar {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 3px;
  margin: -1.5px 0 0 -10px;
  border-radius: 3px;
  background: var(--ink);
  transition: transform .25s, opacity .2s;
}
.menu-toggle__bar:nth-child(1) { transform: translateY(-6px); }
.menu-toggle__bar:nth-child(3) { transform: translateY(6px); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) { transform: rotate(-45deg); }

@media (max-width: 1023.98px) {
  .menu-toggle { display: block; }
  .global-nav {
    position: fixed;
    inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 0 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding: 24px var(--gutter) 0;
    background:
      radial-gradient(ellipse 80% 96px at 50% 100%, var(--leaf) 0 98%, transparent 100%) 50% 100% / 100% 96px no-repeat,
      linear-gradient(180deg, var(--sky) 0%, #aeeafd 100%);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity .25s, transform .25s, visibility 0s .25s;
  }
  .is-menu-open .global-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .25s, transform .25s, visibility 0s;
  }
  .global-nav__list {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 480px;
    margin-inline: auto;
  }
  .global-nav a {
    display: flex;
    flex-direction: row-reverse;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 20px;
    border: 3px solid var(--ink);
    border-radius: var(--radius-m);
    background: var(--white);
    box-shadow: var(--pop);
  }
  .global-nav a:hover { background: var(--honey-pale); }
  .global-nav__ja { font-size: 18px; }
  .global-nav__en { font-size: 12px; }
  .global-nav__deco {
    display: block;
    flex: none;
    width: min(40%, 180px);
    margin: auto auto calc(16px + env(safe-area-inset-bottom, 0px));
    padding-top: 24px;
  }
  .is-menu-open { overflow: hidden; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  background: var(--sky);
}
.hero__kv { display: block; }
.hero__kv img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* ヒーロー下の生け垣 → ABOUT（紙色）へつなぐ */
.hedge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 5;
  height: 58px;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 100%, var(--paper) 15.5px, transparent 16px) 50% 100% / 32px 16px repeat-x,
    radial-gradient(circle at 50% 100%, var(--leaf) 23.5px, transparent 24px) 0 calc(100% - 10px) / 48px 24px repeat-x,
    linear-gradient(var(--leaf), var(--leaf)) 0 100% / 100% 11px no-repeat,
    radial-gradient(circle at 50% 100%, var(--leaf-deep) 29.5px, transparent 30px) 17px calc(100% - 26px) / 60px 30px repeat-x,
    linear-gradient(var(--leaf-deep), var(--leaf-deep)) 0 100% / 100% 27px no-repeat;
}


@media (max-width: 599.98px) {
  .hedge { scale: 1 .6; transform-origin: 50% 100%; }
}

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about { background: var(--paper); }
.about__grid {
  display: grid;
  gap: clamp(36px, 6vw, 56px);
  align-items: center;
}
.about__text { min-width: 0; }
.about__catch {
  margin-bottom: 20px;
  color: var(--ink);
  font-family: var(--font-pop);
  font-size: clamp(30px, 6.6vw, 52px);
  line-height: 1.35;
}
.about__catch-name {
  color: var(--orange);
  -webkit-text-stroke: 7px var(--ink);
  paint-order: stroke fill;
}
.about__lead {
  margin-bottom: 14px;
  font-weight: 700;
  font-size: clamp(16px, 2.4vw, 19px);
}
.about__lead strong {
  background: linear-gradient(transparent 58%, var(--honey) 58%);
}
.about__body { max-width: 34em; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.chip {
  padding: 4px 16px 5px;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-pop);
  font-size: 14px;
  line-height: 1.6;
  box-shadow: 0 3px 0 var(--ink);
}
.chip:nth-child(1) { background: var(--card-blue); }
.chip:nth-child(2) { background: var(--honey-pale); }
.chip:nth-child(3) { background: var(--mint); }
.chip:nth-child(4) { background: var(--card-peach); }

.about__visual { position: relative; }
.fan {
  --w: clamp(112px, 26vw, 210px);  /* カード1枚の幅 */
  position: relative;
  height: calc(var(--w) * 1.35 + 24px);
  max-width: 560px;
  margin-inline: auto;
}
.fan__card {
  position: absolute;
  left: 50%;
  top: 6px;
  width: var(--w);
  margin-left: calc(var(--w) / -2);
  border: 4px solid var(--white);
  border-radius: 14%;
  box-shadow: 0 0 0 3px var(--ink), 0 10px 0 rgba(59, 29, 12, .22);
  transform-origin: 50% 170%;
  transform: rotate(calc(var(--i) * 15deg));
  transition: transform .3s cubic-bezier(.3, 1.5, .5, 1);
}
.fan__card:hover {
  transform: rotate(calc(var(--i) * 15deg)) translateY(-18px);
}
.about__bee { --bee-size: clamp(44px, 6vw, 64px); top: -12%; right: 6%; }

@media (min-width: 900px) {
  .about__grid { grid-template-columns: 1.05fr .95fr; }
}

/* ==========================================================================
   CHARACTER
   ========================================================================== */
.character { background: var(--sky-pale); }
.character::before {
  /* 雲のフチ */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -31px;
  height: 32px;
  background:
    radial-gradient(circle at 50% 100%, var(--sky-pale) 19.5px, transparent 20px) 10px 100% / 52px 20px repeat-x,
    radial-gradient(circle at 50% 100%, var(--sky-pale) 31.5px, transparent 32px) 0 100% / 92px 32px repeat-x;
}
.character__grid {
  display: grid;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}
.character__visual {
  position: relative;
  width: min(100%, 420px);
  margin-inline: auto;
  padding: 6% 4% 0;
}
.character__halo {
  /* ハチの巣もようのまるい背景 */
  position: absolute;
  left: 50%;
  top: 46%;
  width: 104%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border: 4px solid var(--ink);
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 66 0 50V17L28 1l28 16v33L28 66zm0 31V66m0-65' fill='none' stroke='%23f5b62f' stroke-width='3'/%3E%3C/svg%3E") 0 0 / 42px auto,
    var(--honey);
  box-shadow: 0 8px 0 var(--ink);
}
.character__img {
  position: relative;
  z-index: 1;
  width: 86%;
  margin-inline: auto;
  filter: drop-shadow(0 8px 0 rgba(59, 29, 12, .18));
}
.character__bubble {
  position: absolute;
  z-index: 2;
  top: 2%;
  right: -4%;
  padding: 12px 18px;
  border: 3px solid var(--ink);
  border-radius: 24px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-pop);
  font-size: clamp(14px, 2.6vw, 18px);
  line-height: 1.45;
  box-shadow: 0 4px 0 var(--ink);
  rotate: 4deg;
}
.character__bubble::after {
  content: "";
  position: absolute;
  left: 22%;
  bottom: -17px;
  width: 22px;
  height: 18px;
  background: var(--white);
  border: 3px solid var(--ink);
  border-top: 0;
  clip-path: polygon(0 0, 100% 0, 10% 100%);
  border-radius: 0 0 0 4px;
}
.character__bee--1 { --bee-size: clamp(46px, 6vw, 70px); top: 32%; left: -3%; z-index: 2; }
.character__bee--2 { --bee-size: clamp(36px, 4.6vw, 54px); bottom: 16%; right: -2%; z-index: 2; --bee-delay: -2s; }

.character__profile { min-width: 0; }
.nameplate {
  display: inline-grid;
  justify-items: center;
  margin-bottom: 18px;
  padding: 8px 32px 10px;
  border: 3px solid var(--ink);
  border-radius: 18px;
  background: var(--bear);
  box-shadow: 0 5px 0 var(--ink);
  rotate: -2deg;
}
.nameplate__name {
  color: var(--white);
  font-family: var(--font-pop);
  font-size: clamp(36px, 7vw, 56px);
  line-height: 1.15;
  letter-spacing: .08em;
  -webkit-text-stroke: 7px var(--ink);
  paint-order: stroke fill;
}
.nameplate__en {
  color: var(--honey);
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .3em;
}
.character__catch {
  margin-bottom: 10px;
  color: var(--ink);
  font-family: var(--font-pop);
  font-size: clamp(18px, 3vw, 23px);
  line-height: 1.6;
}
.profile {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}
.profile__row {
  display: grid;
  grid-template-columns: 7.5em 1fr;
  align-items: center;
  overflow: hidden;
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  background: var(--white);
}
.profile dt {
  align-self: stretch;
  display: grid;
  place-items: center;
  padding: 8px 10px;
  background: var(--honey);
  color: var(--ink);
  font-family: var(--font-pop);
  font-size: 14px;
  border-right: 2.5px solid var(--ink);
}
.profile dd { padding: 8px 16px; font-weight: 700; }

@media (min-width: 900px) {
  .character__grid { grid-template-columns: .9fr 1.1fr; }
}
@media (max-width: 599.98px) {
  .profile__row { grid-template-columns: 6.4em 1fr; }
  .profile dt { font-size: 13px; padding-inline: 6px; }
  .profile dd { padding-inline: 12px; }
}

/* ==========================================================================
   HOW TO PLAY
   ========================================================================== */
.howto { background: var(--paper); }
.howto::before {
  /* 波のフチ */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -39px;
  height: 40px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 40' preserveAspectRatio='none'%3E%3Cpath d='M0 22C40 4 80 4 120 22s80 18 120 0v18H0z' fill='%23fffaf0'/%3E%3C/svg%3E") 0 0 / 240px 40px repeat-x;
}
.howto__grid {
  display: grid;
  gap: 28px;
  align-items: start;
}
.howto__side { min-width: 0; }

/* デモ盤面 ------------------------------------------------------- */
.demo {
  --gap: clamp(3px, .8vw, 7px);
  --pad: clamp(6px, 1.4vw, 12px);
  min-width: 0;
  padding: clamp(14px, 2.6vw, 24px);
  border: 3px solid var(--ink);
  border-radius: var(--radius-l);
  background: var(--white);
  box-shadow: var(--pop);
}
.demo__head {
  margin-bottom: 14px;
  font-size: 14px;
  line-height: 1.7;
}
.demo__label {
  display: inline-block;
  margin-right: 6px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--leaf-deep);
  color: var(--white);
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .14em;
}
.demo__stage {
  display: grid;
  grid-template-columns: clamp(28px, 6vw, 60px) minmax(0, 1fr) clamp(28px, 6vw, 60px);
  gap: clamp(4px, 1vw, 8px);
}
.village {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 6px;
  padding: 8px 0;
  border: 3px solid var(--ink);
  border-radius: 14px;
  color: var(--white);
}
.village--them { background: var(--orange-soft); }
.village--you { background: var(--sky-deep); }
.village__icon {
  width: 72%;
  max-width: 38px;
  height: auto;
  aspect-ratio: 48 / 44;
  color: var(--white);
}
.village--them .village__icon { color: #ffe0c4; }
.village--you .village__icon { color: #d4f2ff; }
.village__name {
  writing-mode: vertical-rl;
  font-family: var(--font-pop);
  font-size: clamp(11px, 1.8vw, 16px);
  letter-spacing: .12em;
  line-height: 1;
  -webkit-text-stroke: 4px var(--ink);
  paint-order: stroke fill;
}

.board {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: var(--gap);
  padding: var(--pad);
  border: 3px solid var(--ink);
  border-radius: 14px;
  background: #ead2a2;
}
.cell {
  position: relative;
  aspect-ratio: 1;
  perspective: 500px;
}
.tile {
  --dx: 0;
  --dy: 0;
  --rot: 0deg;
  --ry: 0deg;
  --scale: 1;
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform:
    translate(calc(var(--dx) * (100% + var(--gap))), calc(var(--dy) * (100% + var(--gap))))
    rotate(var(--rot))
    rotateY(var(--ry))
    scale(var(--scale));
  transition: transform .5s cubic-bezier(.4, .2, .2, 1);
}
.tile.is-up { --ry: 180deg; }
.tile.is-zoom { --scale: 1.8; }
.tile__face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 18%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.tile__back {
  background: url("../img/card-back-soft.webp") 50% 50% / cover no-repeat, #ead0ad;
}
.tile__front {
  transform: rotateY(180deg);
  background: var(--white);
}
.tile__front img { width: 100%; height: 100%; object-fit: cover; }
.cell.is-lifted { z-index: 4; }

.cell.is-option::after,
.cell.is-mystery::after {
  content: "";
  position: absolute;
  inset: -4px;
  z-index: 2;
  border: 3px solid var(--orange);
  border-radius: 24%;
  pointer-events: none;
  animation: blink 1s ease-in-out infinite;
}
.cell.is-mystery::after {
  content: "?";
  display: grid;
  place-items: center;
  border-color: var(--sky-deep);
  color: var(--white);
  font-family: var(--font-pop);
  font-size: clamp(14px, 2.6vw, 24px);
  -webkit-text-stroke: 4px var(--ink);
  paint-order: stroke fill;
  animation: bob 1.1s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: .25; }
}
@keyframes bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -4px; }
}

.board__token,
.board__pop {
  --col: 3;
  --row: 2;
  position: absolute;
  left: var(--pad);
  top: var(--pad);
  width: calc((100% - var(--pad) * 2 - var(--gap) * 6) / 7);
  aspect-ratio: 1;
  transform: translate(calc(var(--col) * (100% + var(--gap))), calc(var(--row) * (100% + var(--gap))));
  pointer-events: none;
}
.board__token {
  z-index: 3;
  transition: transform .6s cubic-bezier(.3, 1.35, .5, 1);
}
.board__token img {
  position: absolute;
  left: -8%;
  top: -8%;
  width: 116%;
  max-width: none;
  filter: drop-shadow(0 3px 0 rgba(59, 29, 12, .35));
}
.board.is-instant .board__token,
.board.is-instant .tile { transition: none; }

.board__pop {
  z-index: 5;
  display: grid;
  place-items: center;
  opacity: 0;
  color: var(--lemon);
  font-family: var(--font-en);
  font-weight: 700;
  font-size: clamp(18px, 3.4vw, 32px);
  -webkit-text-stroke: 6px var(--ink);
  paint-order: stroke fill;
  white-space: nowrap;
}
.board__pop.is-show { animation: pop-up 1.5s ease-out forwards; }
@keyframes pop-up {
  0% { opacity: 0; translate: 0 6px; scale: .5; }
  18% { opacity: 1; translate: 0 -12px; scale: 1.2; }
  70% { opacity: 1; translate: 0 -26px; scale: 1; }
  100% { opacity: 0; translate: 0 -38px; scale: 1; }
}

.demo__caption {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 4.2em;
  margin-top: 16px;
  padding: 10px 14px;
  border-radius: 16px;
  background: var(--paper-deep);
}
.demo__chip {
  flex: none;
  padding: 2px 12px;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .08em;
  white-space: nowrap;
}
.demo__chip[data-tone="set"] { background: var(--sky-deep); }
.demo__chip[data-tone="rival"] { background: var(--leaf-deep); }
.demo__text {
  min-width: 0;
  color: var(--ink);
  font-weight: 700;
  font-size: clamp(14px, 2vw, 16px);
  line-height: 1.6;
}
.demo__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}
.demo__note { color: var(--text-soft); font-size: 12px; }
.demo__controls { display: flex; gap: 8px; }
.btn-mini {
  padding: 4px 16px;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-pop);
  font-size: 13px;
  line-height: 1.6;
  box-shadow: 0 3px 0 var(--ink);
  cursor: pointer;
  transition: transform .1s, box-shadow .1s, background-color .2s;
}
.btn-mini:hover { background: var(--honey-pale); }
.btn-mini:active { transform: translateY(3px); box-shadow: 0 0 0 var(--ink); }

/* ステップ ------------------------------------------------------ */
.steps { display: grid; gap: 18px; }
.step {
  position: relative;
  padding: 18px 20px 20px 92px;
  border: 3px solid var(--ink);
  border-radius: var(--radius-m);
  background: var(--white);
  box-shadow: var(--pop);
  transition: background-color .3s, transform .3s;
}
.step.is-active {
  background: var(--honey-pale);
  transform: translateY(-3px);
}
.step__badge {
  --badge-size: 62px;
  position: absolute;
  left: 16px;
  top: 16px;
}
.step__en {
  color: var(--orange);
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .16em;
}
.step__title {
  margin-bottom: 6px;
  color: var(--ink);
  font-family: var(--font-pop);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.3;
}
.step__text { font-size: 15px; line-height: 1.8; }
.howto__next {
  position: relative;
  margin-top: 18px;
  padding: 14px 18px 14px 50px;
  border: 2.5px dashed var(--text-soft);
  border-radius: var(--radius-m);
  font-size: 14px;
  line-height: 1.7;
}
.howto__next::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 22px;
  height: 22px;
  translate: 0 -50%;
  border-radius: 50%;
  background:
    conic-gradient(from 225deg at 45% 50%, var(--white) 0 90deg, transparent 0) 55% 50% / 10px 10px no-repeat,
    var(--leaf-deep);
}

/* 勝利条件 ------------------------------------------------------ */
.win {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 28px);
  max-width: 760px;
  margin: clamp(40px, 6vw, 64px) auto 0;
  padding: 18px clamp(18px, 4vw, 36px);
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--orange);
  color: var(--white);
  box-shadow: var(--pop);
}
.win__token { flex: none; width: clamp(60px, 11vw, 92px); }
.win__body { min-width: 0; }
.win__label {
  display: inline-block;
  margin-bottom: 2px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--white);
  color: var(--orange);
  font-family: var(--font-pop);
  font-size: 13px;
}
.win__text {
  font-family: var(--font-pop);
  font-size: clamp(18px, 3.6vw, 30px);
  line-height: 1.4;
  -webkit-text-stroke: 6px var(--ink);
  paint-order: stroke fill;
}
.win__text em { font-style: normal; color: var(--lemon); }

@media (min-width: 1000px) {
  .howto__grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr); }
}
@media (max-width: 599.98px) {
  .step { padding: 16px 16px 18px 80px; }
  .step__badge { --badge-size: 52px; left: 14px; }
  .step__title { font-size: 21px; }
  .win { border-radius: 28px; }
}

/* ==========================================================================
   TRAP CARDS
   ========================================================================== */
.cards {
  background: var(--forest);
  color: var(--white);
}
.cards::before {
  /* 森の木々のフチ */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -45px;
  height: 46px;
  background:
    radial-gradient(circle at 50% 100%, var(--forest) 27.5px, transparent 28px) 0 100% / 56px 28px repeat-x,
    radial-gradient(circle at 50% 100%, var(--forest-deep) 45.5px, transparent 46px) 30px 100% / 92px 46px repeat-x;
}
.sec-head--on-dark .sec-head__ja::before { filter: drop-shadow(0 5px 0 rgba(0, 0, 0, .25)); }

.trap-groups {
  display: grid;
  gap: 28px;
}
.trap-group {
  min-width: 0;
  padding: clamp(18px, 3vw, 28px);
  border: 3px solid var(--ink);
  border-radius: var(--radius-l);
  color: var(--text);
  box-shadow: 0 6px 0 var(--ink);
}
.trap-group--plus { background: var(--card-blue); }
.trap-group--minus { background: var(--card-peach); }
.trap-group__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.badge--sign { --badge-size: 64px; }
.badge--sign .badge__num { font-size: 34px; margin-top: 12%; }
.trap-group__title {
  color: var(--ink);
  font-family: var(--font-pop);
  font-weight: 400;
  font-size: clamp(20px, 3vw, 26px);
  line-height: 1.35;
}
.trap-group__desc { font-size: 14px; line-height: 1.7; }
.trap-group--plus .trap-group__desc strong { color: #0b7fb3; }
.trap-group--minus .trap-group__desc strong { color: #c2480a; }

.trap-list {
  display: grid;
  gap: 20px;
}
.trap {
  display: grid;
  grid-template-columns: clamp(96px, 28vw, 120px) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}
.trap__visual { position: relative; }
.trap__img {
  width: 100%;
  border: 4px solid var(--white);
  border-radius: 14%;
  box-shadow: 0 0 0 3px var(--ink), 0 8px 0 rgba(59, 29, 12, .25);
  rotate: var(--tilt, 0deg);
  transition: rotate .25s, scale .25s, translate .25s;
}
.trap:hover .trap__img { rotate: 0deg; scale: 1.04; translate: 0 -6px; }
.trap__value {
  color: var(--white);
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 30px;
  line-height: 1.1;
  -webkit-text-stroke: 7px var(--ink);
  paint-order: stroke fill;
}
.trap-group--plus .trap__value { color: var(--white); }
.trap__name {
  color: var(--ink);
  font-family: var(--font-pop);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.4;
}
.trap__desc { font-size: 14px; font-weight: 700; line-height: 1.6; }

/* 読み合いのポイント */
.trap-tip {
  display: grid;
  grid-template-columns: clamp(110px, 22vw, 190px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(14px, 3vw, 32px);
  max-width: 880px;
  margin: clamp(32px, 5vw, 48px) auto 0;
  padding: clamp(16px, 3vw, 24px) clamp(18px, 4vw, 40px);
  border: 3px solid var(--ink);
  border-radius: var(--radius-l);
  background: var(--paper);
  color: var(--text);
  box-shadow: 0 6px 0 var(--ink);
}
.trap-tip__img { width: 100%; margin-block: -8%; }
.trap-tip__body { min-width: 0; }
.trap-tip__label {
  display: inline-block;
  margin-bottom: 6px;
  padding: 1px 14px 2px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-pop);
  font-size: 13px;
}
.trap-tip__lead {
  margin-bottom: 6px;
  color: var(--ink);
  font-family: var(--font-pop);
  font-size: clamp(17px, 2.6vw, 23px);
  line-height: 1.6;
}
.trap-tip__lead b { font-weight: 400; padding-inline: 2px; }
.trap-tip__lead .is-plus { color: #0b7fb3; }
.trap-tip__lead .is-minus { color: #c2480a; }
.trap-tip__lead .nw { margin-right: .5em; }
.trap-tip__text { font-size: 14px; font-weight: 700; line-height: 1.8; }
@media (max-width: 599.98px) {
  .trap-tip { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .trap-tip__img { width: 150px; margin-block: -12px 0; }
}

.notes {
  display: grid;
  gap: 2px;
  margin-top: 28px;
  font-size: 13px;
}
.notes--on-dark { color: #d7efe0; }

@media (min-width: 600px) {
  .trap {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .trap__visual { width: min(100%, 200px); }
  .trap-group--plus .trap-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .trap-group--minus .trap-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1040px) {
  .trap-groups { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
}

/* ==========================================================================
   POINT
   ========================================================================== */
.point { background: var(--honey-pale); }
.point::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -39px;
  height: 40px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 40' preserveAspectRatio='none'%3E%3Cpath d='M0 22C40 4 80 4 120 22s80 18 120 0v18H0z' fill='%23ffeaa6'/%3E%3C/svg%3E") 60px 0 / 240px 40px repeat-x;
}

.points { display: grid; gap: clamp(28px, 4vw, 40px); }
.point-item {
  display: grid;
  gap: 24px;
  align-items: center;
  padding: clamp(22px, 4vw, 40px);
  border: 3px solid var(--ink);
  border-radius: var(--radius-l);
  background: var(--white);
  box-shadow: 0 6px 0 var(--ink);
}
.point-item__text { min-width: 0; }
.point-item__num {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: var(--orange);
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 40px;
  line-height: 1;
}
.point-item__num span { font-size: 14px; letter-spacing: .16em; }
.point-item__title {
  margin: 8px 0 12px;
  color: var(--ink);
  font-family: var(--font-pop);
  font-weight: 400;
  font-size: clamp(22px, 3.6vw, 32px);
  line-height: 1.35;
}

/* POINT 1：アクション */
.actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 3vw, 22px);
}
.action {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  width: clamp(118px, 30vw, 170px);
  aspect-ratio: 1;
  border: 3px solid var(--ink);
  border-radius: 50%;
  box-shadow: 0 5px 0 var(--ink);
}
.action--move { background: var(--card-peach); }
.action--set { background: var(--card-blue); }
.action__name {
  color: var(--ink);
  font-family: var(--font-pop);
  font-size: clamp(16px, 3vw, 21px);
}
.action__icon { width: 42%; height: auto; aspect-ratio: 1; fill: var(--bear); }
.action__cards {
  position: relative;
  width: 42%;
  aspect-ratio: 1;
}
.action__cards i {
  position: absolute;
  inset: 8% 14%;
  border: 2.5px solid var(--ink);
  border-radius: 18%;
  background: url("../img/card-back-soft.webp") 50% 50% / cover no-repeat, #ead0ad;
}
.action__cards i:first-child { rotate: -14deg; translate: -14% 0; background: var(--card-peach); }
.action__cards i:last-child { rotate: 10deg; translate: 14% 4%; }
.actions__arrow {
  flex: none;
  width: 26px;
  height: 26px;
  border-top: 6px solid var(--ink);
  border-right: 6px solid var(--ink);
  border-radius: 3px;
  rotate: 45deg;
}

/* POINT 2：読み合い */
.mind {
  display: grid;
  gap: 18px;
  align-items: center;
  min-width: 0;
}
.mind__player { display: grid; gap: 10px; justify-items: center; }
.mind__bubble {
  position: relative;
  padding: 14px 18px;
  border: 3px solid var(--ink);
  border-radius: 26px;
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.7;
}
.mind__player--set .mind__bubble { background: #fff3e8; }
.mind__player--move .mind__bubble { background: #ecf9ff; }
.mind__bubble::before,
.mind__bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: inherit;
}
.mind__bubble::before { bottom: -18px; width: 14px; height: 14px; translate: -60% 0; }
.mind__bubble::after { bottom: -30px; width: 9px; height: 9px; translate: -30% 0; }
.mind__who {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--ink);
  font-family: var(--font-pop);
  font-size: 15px;
}
.mind__avatar {
  position: relative;
  width: 34px;
  height: 34px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--orange-soft);
}
.mind__player--move .mind__avatar { background: var(--sky-deep); }

.mind__center { display: grid; gap: 12px; justify-items: center; min-width: 0; }
.mind__dir {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  width: min(100%, 300px);
  font-family: var(--font-pop);
  font-size: 12px;
}
.mind__dir span {
  padding: 1px 10px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  color: var(--white);
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
}
.mind__dir-set { background: var(--orange-soft); }
.mind__dir-set::before { content: "← "; }
.mind__dir-move { background: var(--sky-deep); }
.mind__dir-move::after { content: " →"; }
.mind__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: min(100%, 230px);
  padding: 10px;
  border: 3px solid var(--ink);
  border-radius: 16px;
  background: #ead2a2;
}
.mind__cell {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 18%;
}
.mind__cell.is-card {
  border: 2.5px solid var(--ink);
  background: url("../img/card-back-soft.webp") 50% 50% / cover no-repeat, #ead0ad;
}
.mind__cell.is-one,
.mind__cell.is-two {
  color: var(--white);
  font-family: var(--font-pop);
  font-size: 26px;
  -webkit-text-stroke: 6px var(--ink);
  paint-order: stroke fill;
}
.mind__cell.is-one { background: var(--orange-soft); }
.mind__cell.is-two { background: var(--sky-deep); }
.mind__cell.is-kumachi img { width: 112%; max-width: none; }

.mind__candidates {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.mind__candidates figure { display: grid; justify-items: center; gap: 6px; width: 86px; }
.mind__candidates img {
  width: 100%;
  border: 3px solid var(--white);
  border-radius: 14%;
  box-shadow: 0 0 0 2.5px var(--ink);
}
.mind__candidates figcaption {
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}
.mind__candidates b { font-family: var(--font-en); font-size: 15px; }
.mind__or {
  color: var(--orange);
  font-family: var(--font-pop);
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

/* POINT 3：階段 */
.stairs-wrap { min-width: 0; }
.stairs {
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
}
.stairs__step {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: calc((var(--lv) - 1) * 5%);
  padding: 10px 14px;
  border: 3px solid var(--ink);
  border-radius: 16px;
  background: var(--mint);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.5;
}
.stairs__step.is-deep { background: #ffe3cc; }
.stairs__lv {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  background: var(--leaf-deep);
  color: var(--white);
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 15px;
}
.stairs__step.is-deep .stairs__lv { background: var(--orange); }
.stairs__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 700;
}
.legend { display: flex; align-items: center; gap: 6px; }
.legend::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--mint);
}
.legend--deep::before { background: #ffe3cc; }

@media (min-width: 900px) {
  .point-item { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 40px 48px; }
  .point-item--wide { grid-template-columns: 1fr; }
  .point-item--wide .point-item__text { max-width: 44em; }
  .mind { grid-template-columns: minmax(0, 1fr) 300px minmax(0, 1fr); align-items: start; gap: 28px; }
  .mind__player { padding-top: 34px; }

  .stairs {
    flex-direction: row;
    align-items: flex-end;
    gap: 10px;
  }
  .stairs__step {
    flex: 1 1 0;
    flex-direction: column;
    justify-content: flex-start;
    gap: 10px;
    min-width: 0;
    height: calc(84px + var(--lv) * 38px);
    margin-left: 0;
    padding: 14px 10px;
    border-radius: 18px 18px 6px 6px;
    text-align: center;
  }
}

/* ==========================================================================
   PRODUCT
   ========================================================================== */
.product { background: var(--paper); }
.product::before {
  /* ハチミツのしずく */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 70px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='70' viewBox='0 0 200 70'%3E%3Cpath d='M0 0v22h18q6 0 6 6v23a9 9 0 0 0 18 0V28q0-6 6-6h38q6 0 6 6v8a6 6 0 0 0 12 0v-8q0-6 6-6h30q6 0 6 6v29a11 11 0 0 0 22 0V28q0-6 6-6h26V0z' fill='%23ffeaa6'/%3E%3C/svg%3E") 0 0 / 200px 70px repeat-x;
}
.product__grid {
  display: grid;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
  padding-top: 24px;
}
.product__visual {
  position: relative;
  width: min(100%, 460px);
  margin-inline: auto;
}
.product__logo {
  position: relative;
  z-index: 2;
  width: 82%;
  rotate: -4deg;
}
.product__chara {
  position: relative;
  z-index: 1;
  width: 62%;
  margin: -12% 0 0 auto;
}
.stamp {
  position: absolute;
  left: 4%;
  bottom: 6%;
  z-index: 3;
  display: grid;
  place-content: center;
  width: clamp(104px, 24vw, 132px);
  aspect-ratio: 1;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-en);
  font-weight: 700;
  font-size: clamp(17px, 3.6vw, 21px);
  line-height: 1.1;
  letter-spacing: .06em;
  text-align: center;
  box-shadow: 0 0 0 5px var(--white), 0 0 0 8px var(--ink);
  rotate: -12deg;
}
.product__info { min-width: 0; }
.spec {
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: var(--radius-m);
  background: var(--white);
  box-shadow: var(--pop);
}
.spec__row {
  display: grid;
  grid-template-columns: 7.5em minmax(0, 1fr);
}
.spec__row + .spec__row { border-top: 2px dashed #e2c48f; }
.spec dt {
  padding: 12px 16px;
  background: var(--paper-deep);
  color: var(--ink);
  font-weight: 900;
  font-size: 14px;
}
.spec dd { padding: 12px 16px; font-weight: 700; }
.spec .is-tbd { color: var(--orange); font-family: var(--font-pop); font-weight: 400; }
.product__msg {
  margin-top: 18px;
  font-weight: 700;
}

@media (min-width: 900px) {
  .product__grid { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  position: relative;
  padding-block: 72px calc(28px + env(safe-area-inset-bottom, 0px));
  background: var(--forest-deep);
  color: #d7efe0;
  font-size: 14px;
}
.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -45px;
  height: 46px;
  background:
    radial-gradient(circle at 50% 100%, var(--forest-deep) 27.5px, transparent 28px) 14px 100% / 56px 28px repeat-x,
    radial-gradient(circle at 50% 100%, var(--forest) 45.5px, transparent 46px) 0 100% / 92px 46px repeat-x;
}
.footer__bee { --bee-size: 48px; top: -70px; right: 12%; }
.footer__inner {
  display: grid;
  justify-items: center;
  gap: 18px;
  text-align: center;
}
.footer__logo { display: block; width: 180px; border-radius: 12px; }
.footer__nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 22px;
}
.footer__nav a {
  font-weight: 700;
  text-decoration: none;
}
.footer__nav a:hover { color: var(--lemon); text-decoration: underline; }
.footer__maker { color: var(--white); font-weight: 700; }
.footer__note { max-width: 40em; font-size: 12px; line-height: 1.8; }
.footer__copy { font-family: var(--font-en); font-weight: 500; letter-spacing: .06em; }

/* ==========================================================================
   動きを減らす設定
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ==========================================================================
   葉っぱ飾りの位置
   ========================================================================== */
.character .leaves--tl { top: 8px; }
.about .leaves--br { --leaves-size: clamp(110px, 14vw, 200px); }

/* トラップカードの枠・POINTのカードは、葉っぱを「うしろから」のぞかせる（文字には重ねない） */
.trap-groups,
.points-wrap { position: relative; }
.trap-group,
.points { position: relative; z-index: 1; }
.trap-groups .leaves,
.points-wrap .leaves { z-index: 0; --leaves-size: clamp(100px, 12vw, 170px); }
.trap-groups .leaves--tl,
.points-wrap .leaves--tl { top: -46px; left: -50px; }
.trap-groups .leaves--br,
.points-wrap .leaves--br { top: auto; left: auto; bottom: -46px; right: -50px; }

/* 両脇に余白がない幅では、カードのうしろの葉っぱは出さない（文字に重なるため） */
@media (max-width: 1239.98px) {
  .trap-groups .leaves,
  .points-wrap .leaves { display: none; }
}
@media (max-width: 599.98px) {
  .character .leaves--tl { --leaves-size: 104px; }
}

/* 小さな草（商品情報の下、森の手前に点々と）。文字と重ならないよう下の余白を広げる */
.product { padding-bottom: calc(var(--section-pad) + 40px); }
.tuft {
  position: absolute;
  z-index: 1;
  bottom: 44px;
  width: var(--tuft-w, 96px);
  height: auto;
  aspect-ratio: 120 / 64;
  pointer-events: none;
}
.tuft--1 { left: 4%; }
.tuft--2 { left: calc(4% + 84px); --tuft-w: 58px; }
.tuft--3 { right: 5%; --tuft-w: 110px; }
.tuft--4 { right: calc(5% + 100px); --tuft-w: 52px; scale: -1 1; }
@media (max-width: 599.98px) {
  .tuft { --tuft-w: 70px; }
  .tuft--2, .tuft--4 { display: none; }
}

/* 足あと（クマチが歩いていったあと） */
.trail {
  position: absolute;
  z-index: 1;
  width: min(78vw, 680px);
  height: auto;
  aspect-ratio: 640 / 200;
  fill: rgba(150, 98, 52, .2);
  pointer-events: none;
}
/* 1本目：勝利条件の下から森へ向かう足あと（そのぶん下の余白を広げる） */
.howto { padding-bottom: calc(var(--section-pad) + 84px); }
.trail--1 { left: 3%; bottom: 52px; width: min(72vw, 340px); rotate: -4deg; }
/* 2本目：見出しの右上（文字と重ならない幅のときだけ） */
.trail--2 { right: -4%; top: 36px; width: min(40vw, 480px); scale: -1 1; rotate: 8deg; }
@media (max-width: 899.98px) {
  .trail--2 { display: none; }
}
