/* =========================================================
   Cocotone renewal 2026-11-23 — base.css
   色・書体・余白・角丸・影のトークン＋部品の見た目。
   部品（ボタン・吹き出し・バッジ・メニュー・作品カード・歩くキャラ）の
   見た目はこのファイルだけで定義する。画面ごとの並べ方は screens.css。
   ========================================================= */

/* ---------- 1. トークン ---------- */
:root {
  /* 基調色（brand-voice.md／原稿 申し送り5） */
  --c-cream: #fffaf3;        /* クリーム：ページ地 */
  --c-beige: #ece4d8;        /* ウォームベージュ：面の切り替え */
  --c-green-deep: #3b5e55;   /* ディープグリーン：見出し・主役 */
  --c-green: #4e746a;        /* スモーキーグリーン：ラベル・リンク */
  --c-mint: #e4efeb;         /* ミントミスト：淡い面 */
  --c-ink: #2f2924;          /* ダークブラウン：本文 */
  --c-ink-sub: #75695d;      /* ウォームグレー：副文字 */
  --c-border: #d5cbbf;       /* サンドベージュ：線 */
  --c-white: #ffffff;
  --c-overlay: rgba(47, 41, 36, 0.28); /* メニューを開いたときの背景のかげり */
  --c-veil: rgba(255, 250, 243, 0.62); /* 吹き出しを目立たせるときの、周りを薄くする幕（クリームの半透明） */

  /* 差し色：チラシ v3 のはちみつ色 */
  --c-honey: #f4d597;        /* マーカー */
  --c-honey-pop: #ffe2a3;    /* はちみつ（明） */
  --c-honey-cream: #fff6e6;  /* はちみつクリーム */

  /* 差し色：キャラ絵から採取（foundation-sheet.html に採取元を記載） */
  --c-paw: #f0a99b;          /* 肉球ピンク：person.png 抱っこ猫の肉球 */
  --c-paw-soft: #fbe6e1;     /* 肉球ピンクの淡色（--c-paw をクリームで薄めた値） */
  --c-chatora: #d49a60;      /* 茶白オレンジ：person.png 左上の茶白猫の毛 */
  --c-chatora-soft: #f7d6b8; /* 茶白の明るい毛：同じ猫の淡い毛 */
  --c-mira-ear: #f9d6c1;     /* ミラの耳ピンク：mira.png の耳 */

  /* LINE（このボタン専用・1色固定） */
  --c-line: #06c755;
  --c-line-ink: #ffffff;

  /* 書体 */
  --font-heading: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Noto Sans JP", sans-serif;
  --font-body: "Noto Sans JP", "Hiragino Sans", sans-serif;

  /* サイズの階段（360px → 1440px で滑らかに変化） */
  --fs-h1: clamp(1.375rem, 1rem + 1.667vw, 2.5rem);        /* 22 → 40px */
  --fs-h2: clamp(1.3125rem, 1.083rem + 1.019vw, 2rem);     /* 21 → 32px */
  --fs-h3: clamp(1.0625rem, 1rem + 0.278vw, 1.25rem);      /* 17 → 20px */
  --fs-body: clamp(0.9375rem, 0.917rem + 0.093vw, 1rem);   /* 15 → 16px */
  --fs-note: clamp(0.8125rem, 0.792rem + 0.093vw, 0.875rem); /* 13 → 14px */
  --fs-label: clamp(0.75rem, 0.729rem + 0.093vw, 0.8125rem); /* 12 → 13px */
  --lh-heading: 1.45;
  --lh-body: 1.85;

  /* 余白の段 */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --gutter: 16px;            /* スマホの左右余白 */

  /* 角丸の段 */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 24px;
  --r-pill: 999px;

  /* 影（ブラウン系・柔らかい2種だけ） */
  --shadow-soft: 0 2px 6px rgba(59, 43, 24, 0.06), 0 8px 22px rgba(59, 43, 24, 0.08);
  --shadow-lift: 0 4px 10px rgba(59, 43, 24, 0.10), 0 14px 32px rgba(59, 43, 24, 0.12);

  /* 動き（ゆっくり・ふんわり） */
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-pop: cubic-bezier(0.34, 1.45, 0.64, 1);
  --dur-fade: 600ms;
  --dur-pop: 420ms;

  /* 左下メニューの占有（本文の下余白に使う） */
  --menu-safe: 88px;
}

/* ---------- 2. 基本 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--c-cream);
  color: var(--c-ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-feature-settings: "palt" 0;
  overflow-wrap: anywhere;
  line-break: strict;
  text-wrap: pretty;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--c-green-deep); text-underline-offset: 0.2em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--c-chatora); outline-offset: 3px; border-radius: var(--r-sm); }

h1, h2, h3, .t-h1, .t-h2, .t-h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: var(--lh-heading);
  color: var(--c-green-deep);
  letter-spacing: 0.02em;
  word-break: auto-phrase; /* 日本語を文節で折り返す（対応ブラウザのみ） */

}
h1, .t-h1 { font-size: var(--fs-h1); color: var(--c-ink); }
h2, .t-h2 { font-size: var(--fs-h2); }
h3, .t-h3 { font-size: var(--fs-h3); }
.t-body { font-size: var(--fs-body); line-height: var(--lh-body); }
.t-note { font-size: var(--fs-note); line-height: 1.7; color: var(--c-ink-sub); }
.t-label { font-size: var(--fs-label); line-height: 1.5; font-weight: 700; color: var(--c-green); letter-spacing: 0.08em; }
.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;
}

/* アイコン（行き先の絵柄）：index.html の先頭で <symbol> を1度だけ定義し、<use> で使い回す。
   線は丸い端・丸い角、色は currentColor。線の太さは見た目 1.75〜2px になるよう、大きさごとに --ico-n で調整 */
.ico-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico {
  display: block; flex: none; width: 1em; height: 1em; overflow: visible;
  fill: none; stroke: currentColor; stroke-width: calc(1.8 * 24 / var(--ico-n, 16));
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- 3. 部品：画面ラベル ---------- */
.screen-label {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-family: var(--font-heading);
  font-size: var(--fs-label); font-weight: 700; letter-spacing: 0.08em;
  color: var(--c-green);
}
.screen-label__icon { /* 先頭の印：その画面のアイコン（はちみつクリームの丸の中） */
  --ico-n: 15; width: 26px; height: 26px; padding: 5px; box-sizing: border-box; border-radius: 50%;
  background: var(--c-honey-cream); border: 1.5px solid var(--c-honey); color: var(--c-green-deep);
}

/* ---------- 4. 部品：ボタン ---------- */
/* 4-1. LINEボタン（LINEの緑＋白の太字で1色固定） */
.btn-line {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: 52px; padding: 0 var(--sp-6);
  border-radius: var(--r-pill);
  background: var(--c-line); color: var(--c-line-ink);
  font-family: var(--font-body); font-size: 1rem; font-weight: 700; letter-spacing: 0.06em;
  text-decoration: none; white-space: nowrap;
  box-shadow: var(--shadow-soft);
  transition: transform 300ms var(--ease-soft), box-shadow 300ms var(--ease-soft);
}
.btn-line::before {
  /* 吹き出し形の小さな印（文字は増やさない） */
  content: ""; flex: none; width: 20px; height: 18px;
  background: var(--c-line-ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 18'%3E%3Cpath d='M10 1C4.9 1 1 4.2 1 8.1c0 3.5 3.1 6.4 7.3 7l-.6 2.2c-.1.4.3.7.6.5l3.3-2.6C16 14.8 19 11.8 19 8.1 19 4.2 15.1 1 10 1z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 18'%3E%3Cpath d='M10 1C4.9 1 1 4.2 1 8.1c0 3.5 3.1 6.4 7.3 7l-.6 2.2c-.1.4.3.7.6.5l3.3-2.6C16 14.8 19 11.8 19 8.1 19 4.2 15.1 1 10 1z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.btn-line:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn-line:active { transform: translateY(0); }
.btn-line--lg { min-height: 64px; padding: 0 var(--sp-7); font-size: 1.125rem; }
.btn-line--block { display: flex; width: 100%; }

/* 4-2. 副ボタン（深緑・画面送り用） */
.btn-sub {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 var(--sp-5);
  border-radius: var(--r-pill);
  border: 2px solid var(--c-green-deep);
  background: var(--c-cream); color: var(--c-green-deep);
  font-family: var(--font-heading); font-size: 0.9375rem; font-weight: 700; letter-spacing: 0.04em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 300ms var(--ease-soft), transform 300ms var(--ease-soft);
}
.btn-sub:hover { background: var(--c-mint); transform: translateY(-1px); }
.btn-sub:disabled { opacity: 0.4; cursor: default; transform: none; background: var(--c-cream); }

/* 4-3. LINEボタン＋添え文 */
.line-cta { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-2); }
.line-cta__note {
  font-size: var(--fs-note); line-height: 1.6; color: var(--c-ink-sub); font-weight: 500;
  padding-left: var(--sp-4);
}
.line-cta--center { align-items: center; text-align: center; }
.line-cta--center .line-cta__note { padding-left: 0; }

/* ---------- 5. 部品：吹き出し ---------- */
.bubble {
  position: relative; display: inline-block;
  background: var(--c-white); color: var(--c-ink);
  border: 2px solid var(--c-green-deep);
  border-radius: var(--r-lg);
  font-family: var(--font-heading); font-weight: 700; line-height: 1.5;
}
/* 5-1. 歩くキャラ用（しっぽは下向き） */
.bubble--walker {
  padding: 6px 14px; font-size: 0.875rem; white-space: nowrap;
  box-shadow: var(--shadow-soft);
}
.bubble--walker::after,
.bubble--walker::before {
  content: ""; position: absolute; left: calc(50% - var(--tail-shift, 0px)); top: 100%;
  width: 0; height: 0; border-style: solid;
}
.bubble--walker::before { /* 縁 */
  margin-left: -9px; border-width: 10px 9px 0 9px;
  border-color: var(--c-green-deep) transparent transparent transparent;
}
.bubble--walker::after { /* 面 */
  margin-left: -6px; margin-top: -1px; border-width: 7px 6px 0 6px;
  border-color: var(--c-white) transparent transparent transparent;
}
/* 5-2. 共感ブロック用（はちみつ色の面・しっぽは左下） */
.bubble--empathy {
  padding: var(--sp-3) var(--sp-5); font-size: var(--fs-body);
  background: var(--c-honey-cream); border-color: var(--c-honey);
  border-bottom-left-radius: var(--r-sm);
}
.bubble--empathy::after {
  content: ""; position: absolute; left: 18px; bottom: -11px;
  width: 16px; height: 12px; background: var(--c-honey-cream);
  border-left: 2px solid var(--c-honey); border-bottom: 2px solid var(--c-honey);
  border-bottom-left-radius: 12px;
  transform: skewX(-20deg);
}
.bubble--empathy:nth-child(even) { background: var(--c-paw-soft); border-color: var(--c-paw); }
.bubble--empathy:nth-child(even)::after { background: var(--c-paw-soft); border-color: var(--c-paw); }

/* ポップ（ゆっくり・ふんわり） */
@keyframes bubble-pop {
  0%   { opacity: 0; transform: translateY(6px) scale(0.86); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.is-popping { animation: bubble-pop var(--dur-pop) var(--ease-pop) both; transform-origin: 50% 100%; }

/* ---------- 6. 部品：種別バッジ ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 12px; border-radius: var(--r-pill);
  font-family: var(--font-heading); font-size: var(--fs-label); font-weight: 700; line-height: 1.6;
  letter-spacing: 0.04em; white-space: nowrap;
  box-shadow: 0 1px 3px rgba(59, 43, 24, 0.12);
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: 0.7; }
.badge--demo { background: var(--c-honey-pop); color: #6b4a12; border: 1.5px solid #e7bf6a; }
.badge--anon { background: var(--c-mint); color: var(--c-green-deep); border: 1.5px solid #a9c4ba; }
.badge--work { background: var(--c-paw-soft); color: #8a4436; border: 1.5px solid var(--c-paw); } /* 今回未使用 */

/* ---------- 7. 部品：左下メニュー ---------- */
.menu-btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 22px 0 16px;
  border: 0; border-radius: var(--r-pill);
  background: var(--c-green-deep); color: var(--c-cream);
  font-family: var(--font-heading); font-size: 0.9375rem; font-weight: 700; letter-spacing: 0.14em;
  box-shadow: var(--shadow-lift); cursor: pointer;
}
.menu-btn__icon { display: inline-grid; gap: 4px; width: 18px; }
.menu-btn__icon i { display: block; height: 2.5px; border-radius: 2px; background: var(--c-honey-pop); }
.menu-btn__icon i:nth-child(2) { width: 70%; }

.menu-panel {
  background: var(--c-cream);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lift);
  padding: var(--sp-5);
  width: min(100%, 420px);
}
.menu-panel__title { margin-bottom: var(--sp-3); }
.menu-list { list-style: none; display: grid; gap: 2px; margin-bottom: var(--sp-5); }
.menu-list a {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: 10px var(--sp-3); border-radius: var(--r-md);
  font-family: var(--font-heading); font-size: 1.0625rem; font-weight: 700;
  color: var(--c-ink); text-decoration: none;
  transition: background-color 300ms var(--ease-soft);
}
.menu-list a:hover, .menu-list a[aria-current="page"] { background: var(--c-mint); }
.menu-list__num {
  display: inline-grid; place-items: center; flex: none;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--c-honey-cream); border: 1.5px solid var(--c-honey);
  font-size: 0.8125rem; color: var(--c-green-deep); letter-spacing: 0.02em;
  --ico-n: 18;
}
.menu-list__num .ico { width: 18px; height: 18px; }
.menu-list a[aria-current="page"] .menu-list__num { background: var(--c-green-deep); border-color: var(--c-green-deep); color: var(--c-cream); }

/* 7-2. メニューの閉じるボタン（×の印＋「閉じる」・44px以上） */
.menu-panel__head { display: flex; justify-content: flex-end; margin: calc(var(--sp-2) * -1) calc(var(--sp-2) * -1) var(--sp-2) 0; }
.menu-close {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  min-width: 44px; min-height: 44px; padding: 0 var(--sp-4) 0 var(--sp-3);
  border: 1.5px solid var(--c-border); border-radius: var(--r-pill);
  background: var(--c-white); color: var(--c-green-deep);
  font-family: var(--font-heading); font-size: 0.875rem; font-weight: 700; letter-spacing: 0.06em;
  cursor: pointer;
  transition: background-color 300ms var(--ease-soft);
}
.menu-close:hover { background: var(--c-mint); }
.menu-close__x { position: relative; flex: none; width: 14px; height: 14px; }
.menu-close__x::before, .menu-close__x::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 2.5px; margin: -1.25px 0 0 -8px;
  border-radius: 2px; background: currentColor; transform: rotate(45deg);
}
.menu-close__x::after { transform: rotate(-45deg); }

/* 7-3. 「下にスクロール」の目印（文字＋下向きの山形。タップの邪魔をしない） */
.scroll-hint { display: flex; justify-content: center; margin: 0; pointer-events: none; }
.scroll-hint__pill {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: 4px 12px 4px 14px; border-radius: var(--r-pill);
  background: rgba(255, 250, 243, 0.95); border: 1.5px solid var(--c-border);
  box-shadow: var(--shadow-soft);
  font-family: var(--font-heading); font-size: var(--fs-label); font-weight: 700; line-height: 1.5;
  color: var(--c-green-deep); letter-spacing: 0.04em; white-space: nowrap;
}
.scroll-hint__icon {
  flex: none; width: 8px; height: 8px; margin-top: -3px;
  border-right: 2px solid var(--c-chatora); border-bottom: 2px solid var(--c-chatora);
  transform: rotate(45deg);
  animation: hint-bob 1.8s var(--ease-soft) infinite;
}
@keyframes hint-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 3px; } }

/* ---------- 8. 部品：作品カード ---------- */
.work-card {
  position: relative;
  background: var(--c-white);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.work-card__cover {
  position: relative; aspect-ratio: 16 / 9; background: var(--c-mint);
  border-bottom: 1.5px solid var(--c-border);
}
.work-card__cover img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 768px) { .work-card__cover { max-height: 46vh; width: 100%; } }

/* 8-2. 見本（デモ）のモック：CSSで描いたデバイスの枠に、実物ページの画面写真をはめる。
   枠は深緑・丸い角・柔らかい影（特定メーカーの形はまねない）。スマホは下を切って上から見せる。 */
.work-card__cover--mock { overflow: hidden; background: radial-gradient(120% 90% at 50% 100%, var(--c-honey-cream), var(--c-mint) 70%); }
.work-card__cover--lp { background: radial-gradient(120% 90% at 50% 100%, var(--c-mint), var(--c-honey-cream) 70%); }
.mock-stage {
  position: absolute; inset: 44px var(--sp-3) 0;
  display: flex; align-items: flex-end; justify-content: center;
  container-type: size;
}
/* 組の箱：横長の領域では高さいっぱい（ノートPCの高さが領域の約9割）、それより縦長では幅いっぱい（ノートPCが幅の約8割） */
.mock { position: relative; width: min(100cqw, 160cqh); aspect-ratio: 8 / 5; }
.mock-screen { width: 100%; height: 100%; overflow: hidden; background: var(--c-white); }
.mock-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.mock-laptop { position: absolute; left: 0; top: 3%; width: 78%; }
.mock-laptop__lid {
  aspect-ratio: 16 / 10.5; padding: 2.4%;
  background: var(--c-green-deep); border-radius: 6% / 9%;
  box-shadow: var(--shadow-soft);
}
.mock-laptop__lid .mock-screen { border-radius: 2.5% / 4%; }
.mock-laptop__base {
  position: relative; width: 112%; margin-left: -6%; aspect-ratio: 100 / 4;
  background: var(--c-beige); border: 1.5px solid var(--c-border); border-top: 0;
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  box-shadow: var(--shadow-soft);
}
.mock-laptop__base::before { /* ふたを開ける指かけ（くぼみ） */
  content: ""; position: absolute; left: 43%; top: 0; width: 14%; height: 45%;
  border-radius: 0 0 999px 999px; background: var(--c-border);
}
.mock-phone {
  position: absolute; right: 1%; top: 30%; width: 26%; aspect-ratio: 9 / 18.5;
  padding: 1.1%; background: var(--c-green-deep);
  border-radius: 16% / 8%;
  box-shadow: var(--shadow-lift);
}
.mock-phone .mock-screen { border-radius: 12% / 6%; }
/* 縦長の枠（スマホ幅で高さに余裕があるとき）：ノートPCを大きく、スマホを手前に高めに重ねる */
@container (aspect-ratio < 1.3) {
  .mock { width: min(100cqw, 100cqh); aspect-ratio: 1; }
  .mock-laptop { left: 0; top: 2%; width: 80%; }
  .mock-phone { right: 0; top: 36%; width: 34%; padding: 1.4%; }
}
/* LP：スマホの枠を2台、少し段差をつけて並べる（1台目＝トップ、2台目＝番組表） */
.mock.mock--lp { width: min(100cqw, 116cqh); aspect-ratio: 116 / 100; }
.mock--lp .mock-phone { right: auto; top: 0; width: 44%; padding: 1.8%; }
.mock--lp .mock-phone:first-child { left: 4%; }
.mock--lp .mock-phone + .mock-phone { left: auto; right: 4%; top: 10%; }
.work-card__badge { position: absolute; left: var(--sp-3); top: var(--sp-3); z-index: 1; }
.work-card__pos {
  position: absolute; right: var(--sp-3); top: var(--sp-3); z-index: 1;
  padding: 2px 10px; border-radius: var(--r-pill);
  background: rgba(255, 250, 243, 0.92); color: var(--c-ink-sub);
  font-size: var(--fs-label); font-weight: 700; letter-spacing: 0.06em;
}
.work-card__body { padding: var(--sp-3) var(--sp-5) var(--sp-4); display: grid; gap: var(--sp-2); }
.work-card__title { font-size: var(--fs-h3); color: var(--c-ink); }
.work-card__desc { font-size: var(--fs-note); line-height: 1.75; color: var(--c-ink); }
.work-card__link {
  justify-self: end; margin-top: 0;
  font-family: var(--font-heading); font-weight: 700; font-size: 0.9375rem;
  color: var(--c-green-deep); text-decoration: none;
  border-bottom: 2px solid var(--c-honey); padding-bottom: 1px;
}
.work-card__link:hover { background: var(--c-honey-cream); }
/* 8-3. 担当実績のくわしい内容（JSありではモーダルの紙。見た目は MENU のパネルと同じ系統） */
.work-detail {
  position: relative; display: block;
  background: var(--c-cream); border-radius: var(--r-lg);
  border: 1.5px solid var(--c-border);
  padding: var(--sp-5);
}
.work-detail__x {
  /* 中身をスクロールしても右上に残る。場所はとらず、カバーの右上に重ねる */
  position: sticky; top: 0; z-index: 2;
  display: grid; place-items: center; width: 44px; height: 44px;
  margin: calc(var(--sp-2) * -1) calc(var(--sp-2) * -1) -36px auto;
  border: 1.5px solid var(--c-border); border-radius: 50%;
  background: var(--c-white); color: var(--c-green-deep); cursor: pointer;
  box-shadow: var(--shadow-soft);
}
.work-detail__x:hover { background: var(--c-mint); }
.work-detail__cover { position: relative; margin-bottom: var(--sp-4); border-radius: var(--r-md); overflow: hidden; aspect-ratio: 16 / 9; background: var(--c-mint); }
.work-detail__cover img { width: 100%; height: 100%; object-fit: cover; }
.work-detail__badge { position: absolute; left: var(--sp-3); top: var(--sp-3); }
.work-detail__title { font-size: var(--fs-h3); color: var(--c-ink); }
.work-detail__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: var(--sp-3) 0 var(--sp-4); }
.work-detail__tags li {
  padding: 2px 10px; border-radius: var(--r-pill);
  background: var(--c-mint); color: var(--c-green-deep);
  font-size: var(--fs-label); font-weight: 700; letter-spacing: 0.04em;
}
.work-detail__lead { font-weight: 700; color: var(--c-green-deep); }
.work-detail__note { margin-top: var(--sp-2); font-size: var(--fs-note); line-height: 1.7; color: var(--c-ink-sub); }
.work-detail__h {
  margin: var(--sp-5) 0 var(--sp-2); padding-left: var(--sp-3);
  border-left: 4px solid var(--c-honey); border-radius: 2px;
  font-size: 1rem; color: var(--c-green-deep);
}
.work-detail p:not([class]) { font-size: var(--fs-body); }
.work-detail__list { list-style: none; display: grid; gap: var(--sp-1); }
.work-detail__list li { position: relative; padding-left: 1.2em; font-size: var(--fs-body); line-height: 1.75; }
.work-detail__list li::before { content: ""; position: absolute; left: 0.2em; top: 0.72em; width: 7px; height: 7px; border-radius: 50%; background: var(--c-chatora); }
.work-detail__foot { display: flex; justify-content: center; margin-top: var(--sp-6); }

.viewer-nav { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.viewer-nav__pos { font-family: var(--font-heading); font-weight: 700; color: var(--c-ink-sub); letter-spacing: 0.08em; }

/* ---------- 9. 部品：歩くキャラ（2コマの歩行イラスト） ---------- */
/* 9-1. 役割の目印：小さい吹き出し（下に小さなしっぽ）に、行き先のアイコンを入れる（数字は出さない）。
   クリーム地＋深緑の細い枠・深緑のアイコン。止まって吹き出しを出している子は、深緑地にクリームのアイコン。
   大きさ：--badge-w（幅）・--badge-h（吹き出しの高さ）・--ico（アイコン）。しっぽは下に 5px。
   スマホのトップ 30／22／16px・紙の帯 24／18／13px・PC 34／25／18px */
.walker__badge {
  position: relative; display: inline-grid; place-items: center; flex: none;
  width: var(--badge-w, 30px); height: var(--badge-h, 22px); margin-bottom: 5px;
  border-radius: var(--r-pill);
  background: var(--c-cream); border: 1.5px solid var(--c-green-deep);
  color: var(--c-green-deep);
  box-shadow: 0 1px 2px rgba(59, 43, 24, 0.14), 0 3px 8px rgba(59, 43, 24, 0.12);
  transform-origin: 50% 100%;
  transition: background-color 300ms var(--ease-soft), color 300ms var(--ease-soft);
}
.walker__badge::before, .walker__badge::after {
  content: ""; position: absolute; left: 50%; top: 100%; width: 0; height: 0; border-style: solid;
}
.walker__badge::before { margin-left: -5px; border-width: 6px 5px 0 5px; border-color: var(--c-green-deep) transparent transparent transparent; }
.walker__badge::after { margin-left: -3.5px; margin-top: -1.5px; border-width: 4.5px 3.5px 0 3.5px; border-color: var(--c-cream) transparent transparent transparent; transition: border-color 300ms var(--ease-soft); }
.walker__badge .ico { width: var(--ico, 16px); height: var(--ico, 16px); stroke-width: calc(1.75 * 24 / var(--ico-n, 16)); }
.walker.is-stopped .walker__badge, .walker__badge--on { background: var(--c-green-deep); color: var(--c-cream); }
.walker.is-stopped .walker__badge::after, .walker__badge--on::after { border-top-color: var(--c-green-deep); }
@keyframes badge-in { from { opacity: 0; scale: 0.6; } to { opacity: 1; scale: 1; } }
@keyframes badge-out { from { opacity: 1; scale: 1; } to { opacity: 0; scale: 0.6; } }
/* 9-2. 目立つ吹き出し（止まったとき）：文字を通常の1.25倍に */
.bubble--walker-lg { font-size: 1.09375rem; padding: 8px 16px; }

/* a・b の2枚を重ね、親の .is-frame-b でコマと傾きを切り替える（読み込み直さない）。
   絵はすべて右向き・下端が足元。傾きは足元を軸に a：−2.5°／b：+2.5°。 */
.walker__body {
  position: relative; display: block;
  transform: rotate(-2.5deg); transform-origin: 50% 100%;
  transition: transform 100ms linear;
}
.walker__frame { display: block; width: 100%; height: auto; }
.walker__frame--b { position: absolute; inset: 0; height: 100%; opacity: 0; }
.is-frame-b .walker__body { transform: rotate(2.5deg); }
.is-frame-b .walker__frame--a { opacity: 0; }
.is-frame-b .walker__frame--b { opacity: 1; }
.is-still .walker__body, .walker.is-stopped .walker__body { transform: none; }

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