/* ねこみみシロップ — 病みかわいい薬局 */

:root {
  --ink: #2b1b27;
  --ink-2: #4b3746;
  --muted: #7a6272;
  --cream: #fff7f2;
  --paper: #fffdfb;
  --pink: #f2789a;
  --pink-deep: #c42f62;
  --pink-ink: #a3234f; /* pink-soft の帯の上に置く文字用（コントラスト 4.5 以上） */
  --pink-soft: #ffc9d7;
  --pink-pale: #ffe9ef;
  --lime: #d9ef6f;
  --lime-pale: #f3fad2;
  --lime-deep: #56701a;
  --line: #efd2dc;
  --syrup-hi: #ff9dba;
  --syrup-lo: #cf3766;
  --drip-tip: #ffb4c7;
  --drip-tip-deep: #d8507b;
  --line-muted: #b9a5b1;
  --line-strong: #dcc2cd;
  --foil-1: #f4e4eb;
  --foil-2: #efdbe4;
  --foil-3: #fffdfd;
  --pink-mist: #fffafb;
  --rose-ink: #6b3a50;
  --on-ink: #dccbd5;
  --on-ink-muted: #cbb7c3;
  --on-ink-faint: #bfaab7;
  --night: #140b12;
  --night-deep: #070205;
  --night-text: #f4e6ec;
  --night-muted: #a58c98;
  --alarm: #ff2a4a;
  --shadow: 6px 6px 0 var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);
  --display: "Dela Gothic One", "Zen Maru Gothic", "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  --body: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic UI", Meiryo, sans-serif;
  --hand: "Klee One", "Zen Maru Gothic", "Hiragino Mincho ProN", "Yu Mincho", "BIZ UDMincho", serif;
  --mono: "Space Mono", ui-monospace, "SFMono-Regular", Consolas, "BIZ UDGothic", monospace;
  --wrap: min(100% - 32px, 1120px);
  --gingham:
    repeating-linear-gradient(0deg, rgba(242, 120, 154, .16) 0 16px, transparent 16px 32px),
    repeating-linear-gradient(90deg, rgba(242, 120, 154, .16) 0 16px, transparent 16px 32px);
  --drip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 60'%3E%3Cpath d='M0 0V14H23Q31 14 31 22V34A7 7 0 0 0 45 34V22Q45 14 53 14H91Q99 14 99 22V24A5 5 0 0 0 109 24V22Q109 14 117 14H151Q159 14 159 22V46A9 9 0 0 0 177 46V22Q177 14 185 14H232Q240 14 240 22V30A6 6 0 0 0 252 30V22Q252 14 260 14H300Q308 14 308 22V40A8 8 0 0 0 324 40V22Q324 14 332 14H359Q367 14 367 22V22A5 5 0 0 0 377 22V22Q377 14 385 14H400V0ZM100.5 36a3.5 3.5 0 1 0 7 0a3.5 3.5 0 1 0 -7 0M313 55a3 3 0 1 0 6 0a3 3 0 1 0 -6 0'/%3E%3C/svg%3E");
  color-scheme: light;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background-color: var(--cream);
  background-image: radial-gradient(circle, rgba(242, 120, 154, .22) 1.2px, transparent 1.4px);
  background-size: 24px 24px;
  font-family: var(--body);
  font-weight: 500;
  line-height: 1.85;
  letter-spacing: .02em;
  overflow-x: hidden;
  overflow-x: clip;
}
.is-windows body { -webkit-text-stroke: .25px currentColor; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-feature-settings: "palt"; }
:focus-visible { outline: 3px solid var(--pink-deep); outline-offset: 3px; border-radius: 6px; }
[id] { scroll-margin-top: 90px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: .5rem; left: .5rem; padding: .6rem 1rem; border-radius: 999px; color: var(--cream); background: var(--ink); font-weight: 700; transform: translateY(-160%); transition: transform .2s; }
.skip-link:focus { transform: none; }
.wrap { width: var(--wrap); margin-inline: auto; }
main { padding-bottom: 1rem; }
code { padding: .05rem .4rem; border-radius: 6px; background: var(--pink-pale); font-family: var(--mono); font-size: .85em; }
.text-link { color: var(--pink-deep); font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.text-link:hover { color: var(--ink); text-decoration-color: var(--pink); }

/* Ticker */
.ticker { display: flex; align-items: center; height: 34px; overflow: hidden; color: var(--pink-soft); background: var(--ink); font-size: .74rem; font-weight: 700; white-space: nowrap; }
.ticker-track { display: flex; width: max-content; animation: ticker 48s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker p { display: flex; gap: 2.2rem; margin: 0; padding-right: 2.2rem; }
.ticker b { color: var(--lime); font-weight: 700; }
.ticker i { color: var(--pink); font-style: normal; }
@keyframes ticker { to { transform: translateX(-50%); } }
.ticker { position: relative; }
.ticker.is-paused .ticker-track { animation-play-state: paused; }
.ticker-toggle { position: absolute; top: 0; right: 0; bottom: 0; display: grid; place-items: center; width: 36px; padding: 0; border: 0; border-left: 1px solid rgba(255, 255, 255, .16); color: var(--pink-soft); background: var(--ink); cursor: pointer; }
.ticker-toggle span { width: 10px; height: 11px; background: linear-gradient(90deg, currentColor 0 35%, transparent 35% 65%, currentColor 65%); }
.ticker.is-paused .ticker-toggle span { width: 0; height: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 10px solid currentColor; background: none; }
.ticker-toggle:hover { color: var(--lime); }
.ticker-toggle:focus-visible { outline-offset: -4px; }

/* Header */
.site-header { position: sticky; z-index: 50; top: -34px; }
.header-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .65rem max(16px, (100% - 1120px) / 2); border-bottom: 2px solid var(--ink); background: rgba(255, 247, 242, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand-mark { display: grid; flex: none; place-items: center; width: 48px; height: 48px; border: 2px solid var(--ink); border-radius: 50%; background: var(--pink); box-shadow: 2px 2px 0 var(--ink); transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.brand-mark img { width: 36px; height: 36px; }
.brand:hover .brand-mark { transform: rotate(-12deg) scale(1.06); }
.brand-text { display: grid; line-height: 1.25; }
.brand-text small { color: var(--pink-deep); font-size: .62rem; font-weight: 700; letter-spacing: .14em; }
.brand-text b { font-family: var(--display); font-size: 1.12rem; font-weight: 400; letter-spacing: .06em; }
.site-nav { display: flex; gap: .3rem; }
.site-nav a { padding: .4rem .95rem; border: 2px solid transparent; border-radius: 999px; font-size: .82rem; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background .2s, border-color .2s, transform .2s; }
.site-nav a:hover { border-color: var(--ink); background: var(--pink-pale); transform: translateY(-1px); }
.site-nav a[aria-current="page"] { border-color: var(--ink); color: var(--cream); background: var(--ink); }

/* Drip edge */
/* 垂れの形は script.js がページごとにランダムに作り直す（--drip / --drip-size） */
.drip { height: 60px; margin-top: -1px; background: linear-gradient(180deg, var(--pink-soft) 0 16px, var(--drip-tip) 100%); -webkit-mask: var(--drip) left top / var(--drip-size, 400px 60px) repeat-x; mask: var(--drip) left top / var(--drip-size, 400px 60px) repeat-x; }

/* Buttons */
.capsule-btn { display: inline-flex; align-items: stretch; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; color: var(--ink); background: var(--paper); box-shadow: 0 5px 0 var(--ink); font-weight: 900; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.capsule-btn .cap-l { display: grid; place-items: center; padding: .8rem 1.25rem .8rem 1.5rem; background: var(--pink); }
.capsule-btn .cap-r { display: grid; place-items: center; min-width: 3.2rem; padding: 0 1rem 0 .85rem; border-left: 2px solid var(--ink); font-size: 1.05rem; }
.capsule-btn:hover { box-shadow: 0 8px 0 var(--ink); transform: translateY(-3px); }
.capsule-btn:hover .cap-r { animation: bob .6s ease-in-out infinite alternate; }
.capsule-btn:active { box-shadow: 0 1px 0 var(--ink); transform: translateY(4px); }
.capsule-btn.is-small { box-shadow: 0 4px 0 var(--ink); font-size: .8rem; }
.capsule-btn.is-small .cap-l { padding: .5rem .8rem .5rem 1rem; }
.capsule-btn.is-small .cap-r { min-width: 2.4rem; padding: 0 .7rem 0 .6rem; font-size: .9rem; }
@keyframes bob { to { transform: translateY(3px); } }
.btn-ghost { display: inline-flex; align-items: center; gap: .6rem; padding: .8rem 1.35rem; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); box-shadow: 0 5px 0 var(--ink); font-weight: 700; text-decoration: none; transition: transform .15s, box-shadow .15s, background .2s; }
.btn-ghost:hover { background: var(--lime); box-shadow: 0 8px 0 var(--ink); transform: translateY(-3px); }
.btn-ghost:active { box-shadow: 0 1px 0 var(--ink); transform: translateY(4px); }

/* Decorations */
.pill { position: absolute; z-index: 4; width: 4.4rem; height: 1.8rem; border: 2px solid var(--ink); border-radius: 999px; background: linear-gradient(90deg, var(--pink) 50%, var(--paper) 50%); box-shadow: 3px 3px 0 var(--ink); transform: rotate(var(--r, 20deg)); animation: float 5.5s ease-in-out infinite alternate; }
.pill::after { content: ""; position: absolute; top: 4px; left: 9px; width: 1.1rem; height: 3px; border-radius: 99px; background: rgba(255, 255, 255, .8); }
.pill.is-lime { background: linear-gradient(90deg, var(--lime) 50%, var(--paper) 50%); }
.pill.is-tablet { width: 2.3rem; height: 2.3rem; background: var(--lime); }
.pill.is-tablet::after { top: 50%; left: 4px; right: 4px; width: auto; height: 2px; background: rgba(43, 27, 39, .35); }
@keyframes float { to { transform: translateY(-14px) rotate(calc(var(--r, 20deg) + 10deg)); } }

/* Hero */
.hero-body, .page-hero-body { position: relative; overflow: hidden; overflow: clip; background: radial-gradient(circle at 82% 18%, rgba(255, 255, 255, .6), transparent 38%), radial-gradient(circle at 4% 10%, rgba(242, 120, 154, .3), transparent 36%), var(--pink-soft); }
.hero-body::before, .page-hero-body::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(255, 255, 255, .85) 1.6px, transparent 1.8px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(180deg, #000 20%, transparent 95%); mask-image: linear-gradient(180deg, #000 20%, transparent 95%); pointer-events: none; }
.hero-watermark { position: absolute; top: -3rem; left: 38%; width: 360px; opacity: .5; transform: rotate(-14deg); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 2rem; width: var(--wrap); margin-inline: auto; padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2.5rem, 5vw, 3.5rem); }
.hero-kicker { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.3rem; }
.hero-kicker span { padding: .25rem .85rem; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); font-size: .76rem; font-weight: 700; }
.hero-kicker span:last-child { background: var(--lime); }
.hero-title { margin: 0; font-family: var(--display); font-size: clamp(3.2rem, 9.4vw, 7.2rem); font-weight: 400; line-height: 1.04; letter-spacing: .01em; }
.hero-title .line { display: block; white-space: nowrap; }
.hero-title .l1 > span, .hero-title .syrup > span { display: inline-block; animation: drop-in .85s cubic-bezier(.2, 1.4, .4, 1) both; animation-delay: calc(var(--i) * 70ms + 120ms); }
.hero-title .l1 { color: var(--ink); text-shadow: .05em .05em 0 var(--paper); }
.hero-title .l2 { filter: drop-shadow(.05em .05em 0 var(--ink)); }
.hero-title .syrup { display: inline-block; }
/* 字形が文字の枠からはみ出す分まで塗れるよう、塗りの範囲を広げて配置は打ち消す（広げないと上下左右が欠ける） */
.hero-title .syrup > span { margin: -.16em -.1em; padding: .16em .1em; color: transparent; background: linear-gradient(172deg, rgba(255, 255, 255, .7) 0 20%, transparent 21%), linear-gradient(180deg, var(--syrup-hi) 0%, var(--pink) 45%, var(--syrup-lo) 100%); -webkit-background-clip: text; background-clip: text; }
@keyframes drop-in { from { opacity: 0; transform: translateY(-.55em) scaleY(1.2); } 60% { opacity: 1; transform: translateY(.04em) scaleY(.94); } to { opacity: 1; transform: none; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.8rem; }

/* Character stage */
.stage { position: relative; justify-self: center; width: min(100% - 3rem, 390px); aspect-ratio: 390 / 530; margin: 2.5rem 1.5rem 0; animation: pop-in .9s cubic-bezier(.2, 1.2, .4, 1) .35s both; }
.window { position: absolute; inset: 0; border: 3px solid var(--ink); border-radius: 999px 999px 28px 28px; background: var(--gingham), var(--pink-pale); box-shadow: 10px 10px 0 var(--ink); }
.window::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: 5%; height: 7%; border-radius: 50%; background: radial-gradient(closest-side, rgba(43, 27, 39, .22), transparent); }
.window-figure { position: absolute; z-index: 2; inset: 0; margin: 0; -webkit-clip-path: inset(-30% 3px 3px 3px round 0 0 25px 25px); clip-path: inset(-30% 3px 3px 3px round 0 0 25px 25px); }
.window-figure img { position: absolute; bottom: 4%; left: 50%; width: auto; max-width: none; height: 101%; transform: translateX(-50%); filter: drop-shadow(0 6px 0 rgba(43, 27, 39, .08)); }
.scale { position: absolute; top: 20%; bottom: 22%; left: -2.7rem; display: flex; flex-direction: column; justify-content: space-between; width: 1.9rem; padding-right: .7rem; border-right: 2px solid var(--ink); background: repeating-linear-gradient(180deg, var(--ink) 0 2px, transparent 2px 14px) right / 8px 100% no-repeat; font: 700 .6rem/1 var(--mono); text-align: right; }
.scale small { display: block; font-size: .5rem; }
.sticker { position: absolute; z-index: 4; top: 9%; right: -5%; display: grid; place-content: center; width: 5.4rem; height: 5.4rem; margin: 0; border: 2px solid var(--ink); border-radius: 50%; background: var(--lime); box-shadow: 3px 3px 0 var(--ink); font-size: .68rem; font-weight: 900; line-height: 1.25; text-align: center; transform: rotate(12deg); }
.sticker b { font-family: var(--display); font-size: 1.3rem; font-weight: 400; }
.wristband { position: absolute; z-index: 3; right: -7%; bottom: 13%; left: -7%; display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .7rem; margin: 0; padding: .45rem 1rem; border: 2px solid var(--ink); border-radius: 12px; background: var(--paper); box-shadow: var(--shadow-sm); font-size: .8rem; font-weight: 900; line-height: 1.5; transform: rotate(-5deg); }
.wristband::before { content: ""; flex: none; width: .75rem; height: .75rem; border: 2px solid var(--ink); border-radius: 50%; background: var(--pink); }
/* リストバンドのバーコード（Code 128、読み取ると F31）。縮小・半透明にしない */
.wb-barcode { display: block; flex: none; width: 168px; height: 30px; shape-rendering: geometricPrecision; }
.wb-no { color: var(--pink-deep); font-size: .7rem; }
.wb-status { margin-left: auto; padding: 0 .55rem; border-radius: 999px; background: var(--lime); font-size: .72rem; }
.stage .p1 { --r: 28deg; top: 2%; left: -6%; }
.stage .p2 { --r: -18deg; right: -12%; bottom: 36%; animation-delay: -2s; }
.stage .p3 { --r: 10deg; bottom: -3%; left: 10%; animation-delay: -3.5s; }
@keyframes pop-in { from { opacity: 0; transform: translateY(24px) scale(.94); } to { opacity: 1; transform: none; } }

/* Section headings */
.section { padding-top: clamp(3.2rem, 7vw, 5.5rem); }
.sec-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; padding-bottom: 1.1rem; background: radial-gradient(circle, var(--pink) 1.6px, transparent 1.8px) left bottom / 12px 4px repeat-x; }
.sec-no { display: grid; flex: none; place-items: center; width: 3.4rem; height: 3.4rem; border: 2px solid var(--ink); border-radius: 50%; background: var(--lime); box-shadow: 3px 3px 0 var(--ink); font-family: var(--display); font-size: 1.05rem; transform: rotate(-8deg); }
.sec-kicker { margin: 0; color: var(--pink-deep); font-size: .76rem; font-weight: 700; letter-spacing: .14em; }
.sec-head h2 { margin: 0; font-size: clamp(1.55rem, 3.4vw, 2.2rem); font-weight: 900; line-height: 1.3; }
.sec-aside { margin-left: auto; padding: .2rem .8rem; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); font-size: .76rem; font-weight: 700; white-space: nowrap; }
.watch-lead { margin: -1rem 0 1.5rem; color: var(--ink-2); font-weight: 700; }
.watch-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 1.5rem); }
.watch-card { overflow: hidden; border: 2px solid var(--ink); border-radius: 18px; background: var(--paper); box-shadow: var(--shadow-sm); }
.watch-card-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .7rem 1rem; border-bottom: 1px solid var(--line); background: var(--lime-pale); }
.watch-card-head h3 { margin: 0; font-size: 1rem; font-weight: 900; }
.watch-badge { padding: .1rem .55rem; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--muted); background: var(--paper); font-family: var(--mono); font-size: .62rem; font-weight: 700; letter-spacing: .08em; }
.watch-player { position: relative; aspect-ratio: 16 / 9; min-height: 200px; background: var(--ink); }
.watch-player iframe { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; }
.watch-caption { margin: 0; padding: .65rem 1rem .8rem; color: var(--muted); font-size: .78rem; font-weight: 700; }
.watch-caption a { margin-left: .2rem; color: var(--pink-deep); }
.footnote { display: flex; align-items: center; gap: .6rem; margin: 1.2rem 0 0; font-size: .86rem; font-weight: 700; }
.footnote-mark { display: grid; flex: none; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; color: var(--paper); background: var(--pink-deep); font-size: .8rem; font-weight: 900; }
.footnote-soft { margin: 1.6rem 0 0; color: var(--muted); font-size: .84rem; font-weight: 700; text-align: center; }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: start; gap: clamp(1.5rem, 4vw, 3rem); }
.about-lead { margin-top: 0; font-size: clamp(1.15rem, 2.3vw, 1.45rem); font-weight: 900; line-height: 1.7; }
.about-lead mark { color: inherit; background: linear-gradient(transparent 58%, var(--lime) 58%); }
.about-copy p:not(.about-lead) { color: var(--ink-2); }
.label-card { overflow: hidden; border: 2px solid var(--ink); border-radius: 22px; background: var(--paper); box-shadow: var(--shadow); transform: rotate(1.2deg); }
.label-card-head { display: flex; justify-content: space-between; padding: .7rem 1.25rem; border-bottom: 2px solid var(--ink); background: var(--pink); font-weight: 900; }
.label-card dl { margin: 0; padding: .3rem 0; }
.label-card dl > div { display: grid; grid-template-columns: 7.5em 1fr; gap: 1rem; padding: .7rem 1.25rem; border-bottom: 2px dotted var(--line); }
.label-card dl > div:last-child { border-bottom: 0; }
.label-card dt { color: var(--muted); font-size: .82rem; font-weight: 700; white-space: nowrap; }
.label-card dd { margin: 0; font-weight: 700; }
.label-card dd a { color: var(--pink-deep); font-size: .82rem; }
.member-list { display: grid; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.member-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .6rem; }

/* Envelopes (音源一覧) */
.env-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 1.6rem; }
.envelope { position: relative; padding-top: 124px; }
/* 立ち絵が袋（カード）の中から顔を出す。下はカードの後ろに隠れる */
.env-peek { position: absolute; top: 0; left: 50%; width: 220px; height: 200px; overflow: hidden; transform: translateX(-50%); }
.env-peek img { position: absolute; top: 0; left: 50%; width: 143px; max-width: none; transform: translate(-50%, 18px); transition: transform .45s cubic-bezier(.3, 1.5, .5, 1); }
.envelope:hover .env-peek img, .envelope:focus-within .env-peek img { transform: translate(-50%, -8px); }
.env-seal { position: absolute; top: 38px; left: 50%; display: grid; place-items: center; width: 104px; height: 104px; border: 2px solid var(--ink); border-radius: 50%; background: var(--ink); transform: translateX(-50%) rotate(-8deg); transition: transform .4s cubic-bezier(.3, 1.5, .5, 1); }
.env-seal img { width: 70px; opacity: .85; }
.envelope:hover .env-seal { transform: translateX(-50%) translateY(-8px) rotate(4deg); }
.env-body { position: relative; z-index: 1; overflow: hidden; padding-bottom: 1.2rem; border: 2px solid var(--ink); border-radius: 22px; background: var(--paper); box-shadow: var(--shadow); }
.env-head { display: flex; align-items: center; justify-content: space-between; padding: .65rem 1.15rem; border-bottom: 2px solid var(--ink); background: var(--pink); }
.env-no { display: flex; align-items: baseline; gap: .45rem; margin: 0; }
.env-no small { font-size: .72rem; font-weight: 900; letter-spacing: .1em; }
.env-no b { font-family: var(--display); font-size: 1.6rem; font-weight: 400; line-height: 1; }
.status-stamp { padding: .1rem .7rem; border: 2px solid var(--ink); border-radius: 999px; background: var(--lime); font-size: .74rem; font-weight: 900; }
.env-kicker { margin: 1rem 1.15rem .1rem; color: var(--pink-deep); font-size: .74rem; font-weight: 700; }
.env-name { display: flex; align-items: baseline; gap: .4rem; margin: 0 1.15rem; padding-bottom: .2rem; border-bottom: 2px dashed var(--line); }
.env-name h3 { margin: 0; font-family: var(--hand); font-size: 1.65rem; font-weight: 600; line-height: 1.4; }
.env-dose { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; margin: 1rem 1.15rem; overflow: hidden; border: 2px solid var(--ink); border-radius: 14px; }
.env-dose > div { padding: .4rem .35rem .45rem; border-left: 2px solid var(--ink); text-align: center; }
.env-dose > div:first-child { border-left: 0; }
.env-dose dt { margin-bottom: .2rem; border-bottom: 1px dashed var(--line); color: var(--muted); font-size: .66rem; font-weight: 700; }
.env-dose dd { margin: 0; font-size: .78rem; font-weight: 900; line-height: 1.45; }
.env-link { display: flex; align-items: center; justify-content: space-between; margin: 0 1.15rem; padding: .65rem 1.2rem; border: 2px solid var(--ink); border-radius: 999px; color: var(--cream); background: var(--ink); font-size: .86rem; font-weight: 900; text-decoration: none; transition: background .2s, color .2s; }
.env-link::after { content: ""; position: absolute; inset: 0; }
.env-link:hover, .envelope:hover .env-link { color: var(--ink); background: var(--pink); }
.envelope.is-pending .env-head { background: var(--pink-pale); }
.envelope.is-pending .status-stamp { background: var(--paper); }
.envelope.is-pending .env-body { box-shadow: 6px 6px 0 rgba(43, 27, 39, .28); }
.envelope.is-pending .env-no b, .envelope.is-pending .env-name h3 { color: var(--ink-2); }
.env-pending { margin: 1rem 1.15rem; padding: .7rem; border: 2px dashed var(--line); border-radius: 14px; color: var(--muted); font-size: .84rem; font-weight: 700; text-align: center; }
.env-link.is-disabled { justify-content: center; border: 2px dashed var(--line-muted); color: var(--muted); background: transparent; cursor: not-allowed; }
.env-link.is-disabled::after { content: none; }

/* Receipt (お知らせ) */
.receipt-wrap { max-width: 760px; margin-inline: auto; filter: drop-shadow(5px 6px 0 var(--ink)); }
.receipt { padding: 1.8rem clamp(1.1rem, 4vw, 2.2rem) 2.4rem; background: var(--paper); transform: rotate(-.6deg);
  -webkit-mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / 20px 51% repeat-x, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 20px 51% repeat-x;
  mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / 20px 51% repeat-x, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 20px 51% repeat-x; }
.receipt-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-bottom: .8rem; border-bottom: 2px dashed var(--ink); }
.receipt-head b { font-family: var(--display); font-size: 1.25rem; font-weight: 400; letter-spacing: .25em; }
.receipt-head span { color: var(--muted); font-size: .76rem; font-weight: 700; }
.receipt-list { margin: 0; padding: 0; list-style: none; }
.receipt-list li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) auto; align-items: baseline; gap: 1rem; padding: .95rem 0; border-bottom: 1px dashed var(--line-strong); }
.receipt-list time { color: var(--muted); font: 700 .8rem var(--mono); }
.receipt-list p { margin: 0; font-weight: 700; }
.tag { padding: .05rem .65rem; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--pink-pale); font-size: .7rem; font-weight: 900; }
.receipt-foot { display: flex; align-items: center; justify-content: flex-end; gap: 1rem; margin-top: 1.1rem; color: var(--muted); font-family: var(--hand); font-size: .85rem; }
/* 実際に読み取れるバーコード（Code 128）。読み取りやすさのため白地・黒線・余白つきで、縮小しない */
.receipt-barcode { display: block; flex: none; width: 176px; height: 44px; }

/* Footer */
.site-footer { position: relative; margin-top: clamp(4rem, 9vw, 6.5rem); color: var(--cream); background: var(--ink); }
.site-footer .drip { background: linear-gradient(180deg, var(--pink) 0 16px, var(--drip-tip-deep) 100%); }
.footer-inner { display: grid; grid-template-columns: 1.2fr .8fr 1fr 1.2fr; align-items: start; gap: 2rem; width: var(--wrap); margin-inline: auto; padding: 1.8rem 0 2.6rem; }
.footer-brand { display: flex; align-items: center; gap: .9rem; }
.footer-brand .brand-mark { width: 64px; height: 64px; box-shadow: 3px 3px 0 var(--pink); }
.footer-brand .brand-mark img { width: 48px; height: 48px; }
.footer-brand small { display: block; color: var(--pink-soft); font-size: .66rem; font-weight: 700; letter-spacing: .12em; }
.footer-brand b { font-family: var(--display); font-size: 1.3rem; font-weight: 400; letter-spacing: .06em; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.footer-label { width: 100%; color: var(--pink-soft); font-size: .72rem; font-weight: 700; }
.footer-pages { display: grid; gap: .15rem; }
.footer-pages a { width: fit-content; font-size: .84rem; font-weight: 700; text-decoration: none; }
.footer-pages a:hover { color: var(--pink-soft); text-decoration: underline; text-underline-offset: 3px; }
.footer-links a { padding: .35rem .95rem; border: 2px solid rgba(255, 247, 242, .7); border-radius: 999px; font-size: .8rem; font-weight: 700; text-decoration: none; transition: background .2s, color .2s; }
.footer-links a:hover { border-color: var(--pink); color: var(--ink); background: var(--pink); }
.footer-copy { margin: 0; color: var(--on-ink); font-size: .76rem; line-height: 1.9; text-align: right; }
.footer-copy a { color: var(--pink-soft); }
.footer-rep { color: var(--on-ink-faint); font-size: .68rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem max(16px, (100% - 1120px) / 2); border-top: 1px solid rgba(255, 255, 255, .14); color: var(--on-ink-muted); font-size: .74rem; }

/* Sub page hero */
.page-hero-inner { position: relative; z-index: 1; width: var(--wrap); margin-inline: auto; padding: 1.6rem 0 2.4rem; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.8rem; font-size: .78rem; font-weight: 700; }
.breadcrumb a { text-decoration-color: var(--pink-deep); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.breadcrumb [aria-hidden] { color: var(--pink-deep); }
.page-kicker { display: flex; align-items: center; gap: .6rem; margin: 0 0 .6rem; font-size: .86rem; font-weight: 900; }
.no-badge { padding: .05rem .7rem; border: 2px solid var(--ink); border-radius: 999px; background: var(--lime); font-family: var(--display); font-size: .78rem; font-weight: 400; }
.page-hero h1 { margin: 0; font-family: var(--display); font-size: clamp(2.5rem, 6.8vw, 4.6rem); font-weight: 400; line-height: 1.1; text-shadow: .05em .05em 0 var(--paper); }
.page-hero h1 small { display: block; margin-top: .7rem; color: var(--pink-ink); font-family: var(--body); font-size: .92rem; font-weight: 900; letter-spacing: .22em; text-shadow: none; }
.page-lead { max-width: 42em; margin: 1rem 0 0; font-weight: 700; }
.page-hero .text-link { color: var(--pink-ink); }
.page-hero-deco { position: absolute; top: 0; right: max(16px, (100% - 1120px) / 2); bottom: 0; width: 300px; pointer-events: none; }
.page-hero-deco img { position: absolute; top: 50%; right: 0; width: 230px; opacity: .55; transform: translateY(-50%) rotate(12deg); }
.page-hero-deco .p1 { --r: -24deg; top: 20%; left: 0; }
.page-hero-deco .p2 { --r: 14deg; right: 10%; bottom: 12%; animation-delay: -2.5s; }
.page-hero-deco.is-mascot img { width: 190px; opacity: 1; transform: translateY(-50%); }

/* Release panel */
.release { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: clamp(1.5rem, 5vw, 4rem); padding-top: 2.5rem; }
.stage.is-compact { width: min(100% - 3rem, 360px); margin-top: 2rem; }
.release-kicker { margin: 0; color: var(--pink-deep); font-size: .8rem; font-weight: 700; }
.release h2 { margin: .1rem 0 0; font-family: var(--display); font-size: clamp(2rem, 4.4vw, 2.9rem); font-weight: 400; line-height: 1.25; }
.rx-label { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 1.3rem 0; overflow: hidden; border: 2px solid var(--ink); border-radius: 20px; background: var(--paper); box-shadow: var(--shadow); }
.rx-label > div { padding: .75rem 1.05rem; border-right: 2px dotted var(--line); border-bottom: 2px dotted var(--line); }
.rx-label > div:nth-child(2n) { border-right: 0; }
.rx-label > div:last-child, .rx-label > div:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
.rx-label > div:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: 0; }
.rx-label dt { color: var(--muted); font-size: .72rem; font-weight: 700; }
.rx-label dd { margin: 0; font-weight: 900; }
.rx-label .release-date dd { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.release-audio-button { display: grid; flex: none; place-items: center; width: 2.35rem; height: 2.35rem; padding: 0; border: 2px solid var(--ink); border-radius: 50%; color: var(--ink); background: var(--lime); box-shadow: 2px 2px 0 var(--ink); cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.release-audio-button svg { width: .85rem; height: .85rem; fill: currentColor; }
.release-audio-button[aria-pressed="false"] .release-audio-pause,
.release-audio-button[aria-pressed="true"] .release-audio-play { display: none; }
.release-audio-button:hover { background: var(--pink-pale); box-shadow: 3px 3px 0 var(--ink); transform: translateY(-1px); }
.release-audio-button:active { box-shadow: none; transform: translateY(1px); }
.release-audio-button:focus-visible { outline: 3px solid var(--pink-deep); outline-offset: 3px; }

/* Download card */
.rx-card { overflow: hidden; border: 2px solid var(--ink); border-radius: 24px; background: var(--paper); box-shadow: var(--shadow); }
.rx-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding: .7rem 1.4rem; color: var(--cream); background: var(--ink); font-size: .82rem; font-weight: 700; }
.rx-mark { padding: 0 .7rem; border: 1.5px solid var(--pink-soft); border-radius: 6px; color: var(--pink-soft); font-weight: 900; letter-spacing: .3em; }
.status-chip { display: inline-flex; align-items: center; gap: .45rem; margin-left: auto; color: var(--lime); font-weight: 900; }
.status-chip::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--lime); animation: pulse 2s ease-out infinite; }
@keyframes pulse { from { box-shadow: 0 0 0 0 rgba(217, 239, 111, .6); } to { box-shadow: 0 0 0 9px rgba(217, 239, 111, 0); } }
.rx-card-body { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1.8rem 1.6rem; background: radial-gradient(circle at 96% 50%, var(--pink-pale), transparent 30%); }
.rx-card-body h3 { margin: 0 0 .35rem; font-family: var(--display); font-size: 1.6rem; font-weight: 400; }
.rx-card-body p { max-width: 34em; margin: 0; color: var(--ink-2); font-size: .92rem; }
.rx-card-body .capsule-btn { flex: none; }
.rx-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.8rem; padding: .8rem 1.6rem; border-top: 2px dashed var(--line); color: var(--muted); font-size: .8rem; font-weight: 700; }
.rx-meta b { margin-left: .4rem; color: var(--ink); }
.rx-meta time { font-family: var(--mono); }

/* Blister pack */
.foil { border: 2px solid var(--ink); border-radius: 30px; background: linear-gradient(125deg, var(--foil-1) 0%, var(--foil-3) 26%, var(--foil-2) 48%, var(--foil-3) 72%, var(--foil-1) 100%); box-shadow: var(--shadow); }
.blister { display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); gap: 1rem; margin: 0; padding: 1.2rem; list-style: none; }
.blister li { position: relative; padding: 1.1rem 1rem 1.25rem; border: 1.5px solid rgba(43, 27, 39, .16); border-radius: 26px; background: rgba(255, 255, 255, .72); box-shadow: inset 0 3px 0 #fff, inset 0 -4px 8px rgba(43, 27, 39, .07), 0 2px 0 rgba(43, 27, 39, .1); }
.blister-no { display: grid; place-items: center; width: 2.7rem; height: 2.7rem; margin-bottom: .65rem; border: 2px solid var(--ink); border-radius: 50%; background: var(--pink); box-shadow: inset -3px -4px 0 rgba(43, 27, 39, .12); font-family: var(--display); font-size: 1rem; }
.blister li:nth-child(even) .blister-no { background: var(--lime); }
.blister b { display: block; font-size: .96rem; font-weight: 900; line-height: 1.5; }
.blister p { margin: .35rem 0 0; color: var(--ink-2); font-size: .84rem; line-height: 1.75; }

/* Info cards */
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; padding-top: clamp(2.5rem, 5vw, 3.5rem); }
.info-card { padding: 1.3rem 1.4rem 1.4rem; border: 2px solid var(--ink); border-radius: 22px; background: var(--paper); box-shadow: var(--shadow); }
.info-card h2 { display: flex; align-items: center; gap: .55rem; margin: 0 0 .8rem; font-size: 1.12rem; font-weight: 900; }
.info-card h2::before { content: "✚"; color: var(--pink); }
.info-card dl { margin: 0; }
.info-card dl > div { display: grid; grid-template-columns: 5.5em 1fr; gap: .8rem; padding: .55rem 0; border-top: 2px dotted var(--line); }
.info-card dt { color: var(--muted); font-size: .82rem; font-weight: 700; }
.info-card dd { margin: 0; font-size: .9rem; font-weight: 700; }
.change-entry { display: grid; grid-template-columns: 6.5rem 3.5rem 1fr; align-items: baseline; gap: .6rem; padding: .55rem 0; border-top: 2px dotted var(--line); font-size: .88rem; }
.change-entry time { color: var(--muted); font: 700 .78rem var(--mono); }
.change-entry b { font-weight: 900; }
.change-entry p { margin: 0; }

/* FAQ（details でひらく） */
.faq { display: grid; gap: .8rem; }
.faq details { overflow: hidden; border: 2px solid var(--ink); border-radius: 18px; background: var(--paper); box-shadow: var(--shadow-sm); }
.faq summary { position: relative; display: block; padding: .95rem 3.2rem .95rem 3.1rem; font-weight: 900; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; position: absolute; top: .8rem; left: .9rem; display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; color: var(--ink); background: var(--pink); font-family: var(--display); font-size: .8rem; }
.faq summary::after { content: "+"; position: absolute; top: 50%; right: 1.1rem; color: var(--pink-deep); font-size: 1.4rem; font-weight: 900; line-height: 1; transform: translateY(-50%); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:hover { background: var(--pink-pale); }
.faq-a { position: relative; padding: .2rem 1.3rem 1.1rem 3.1rem; color: var(--ink-2); font-size: .92rem; }
.faq-a::before { content: "A"; position: absolute; top: .3rem; left: .9rem; display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border: 2px solid var(--ink); border-radius: 50%; color: var(--ink); background: var(--lime); font-family: var(--display); font-size: .78rem; }
.faq-a p { margin: 0; }
.faq-more { margin: 1.2rem 0 0; color: var(--ink-2); font-size: .9rem; font-weight: 700; }
.credit-copy { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .7rem; max-width: 40rem; margin-top: .8rem; padding: .6rem .7rem .6rem .9rem; border: 2px dashed var(--ink); border-radius: 14px; background: var(--paper); }
.credit-copy code { flex: 1 1 16rem; min-width: 0; padding: 0; background: none; color: var(--ink); font: 700 .78rem/1.5 var(--body); white-space: nowrap; overflow-x: auto; overflow-wrap: normal; }
.credit-copy-label { width: 100%; color: var(--pink-deep); font-size: .74rem; font-weight: 900; }
.copy-btn { flex: none; min-width: 8.5rem; padding: .3rem .9rem; border: 2px solid var(--ink); border-radius: 999px; color: var(--ink); background: var(--lime); box-shadow: 0 3px 0 var(--ink); font: inherit; font-size: .8rem; font-weight: 900; white-space: nowrap; cursor: pointer; transition: transform .12s, box-shadow .12s; }
.copy-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--ink); }
.copy-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.works-lead { margin: 0 0 1rem; color: var(--ink-2); font-weight: 700; }
.works-links { display: flex; flex-wrap: wrap; gap: .8rem; }
.works-links a { padding: .7rem 1.2rem; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); box-shadow: 0 4px 0 var(--ink); font-size: .9rem; font-weight: 700; text-decoration: none; transition: transform .15s, box-shadow .15s, background .2s; }
.works-links a:hover { background: var(--pink-soft); box-shadow: 0 6px 0 var(--ink); transform: translateY(-2px); }
.works-links span { margin-right: .15rem; font-weight: 900; }

/* ギャラリー：art-card を足せば自動で並ぶ。枠は同じ縦横比で、絵は枠の中に収める */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.6rem; }
.art-frame.is-gingham { background: var(--gingham), var(--pink-pale); }
.art-card { margin: 0; overflow: hidden; border: 2px solid var(--ink); border-radius: 24px; background: var(--paper); box-shadow: var(--shadow); }
.art-frame { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper); text-decoration: none; }
/* 枠の内側（余白 1.2rem）に、縦横比を保ったまま全体を収める */
.art-frame img { position: absolute; inset: 1.2rem; width: calc(100% - 2.4rem); height: calc(100% - 2.4rem); object-fit: contain; transition: transform .35s cubic-bezier(.3, 1.5, .5, 1); }
.art-frame:hover img, .art-frame:focus-visible img { transform: scale(1.04); }
.art-zoom { position: absolute; right: .8rem; bottom: .8rem; padding: .1rem .75rem; border: 2px solid var(--ink); border-radius: 999px; color: var(--ink); background: var(--lime); box-shadow: 2px 2px 0 var(--ink); font-size: .74rem; font-weight: 900; }
.art-card figcaption { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem 1.15rem; border-top: 2px solid var(--ink); font-size: .86rem; font-weight: 700; }

/* ミニキャラ（サイトの飾り） */
.footer-mascot { position: absolute; z-index: 2; top: -118px; right: calc(max(16px, (100% - 1120px) / 2) + 40px); width: 140px; pointer-events: none; }

/* ギャラリーの拡大表示 */
.lightbox { position: fixed; inset: 0; width: 100%; height: 100%; max-width: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; color: var(--cream); background: rgba(20, 11, 18, .95); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: transparent; }
.lb-figure { display: grid; justify-items: center; gap: .9rem; max-width: calc(100vw - 32px); margin: 0; }
.lb-img { display: block; width: auto; max-width: min(92vw, 1100px); height: auto; max-height: calc(100dvh - 9rem); border-radius: 14px; object-fit: contain; }
.lb-img.is-gingham { padding: 1rem; background: var(--gingham), var(--pink-pale); }
.lb-caption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: .3rem 1.2rem; font-size: .9rem; text-align: center; }
.lb-title { font-weight: 900; }
.lb-artist { color: var(--pink-soft); font-weight: 700; }
.lb-artist:empty, .lb-count:empty { display: none; }
.lb-count { color: var(--on-ink-muted); font-family: var(--mono); font-size: .8rem; }
.lb-btn { position: absolute; display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border: 2px solid var(--cream); border-radius: 50%; color: var(--cream); background: rgba(20, 11, 18, .6); font-size: 1.1rem; font-weight: 900; cursor: pointer; transition: background .2s, color .2s; }
.lb-btn:hover, .lb-btn:focus-visible { color: var(--ink); background: var(--pink-soft); }
.lb-btn[hidden] { display: none; }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { top: 50%; left: 1rem; transform: translateY(-50%); }
.lb-next { top: 50%; right: 1rem; transform: translateY(-50%); }

/* Notice */
.alert-note { display: flex; align-items: flex-start; gap: 1rem; margin-top: clamp(2.5rem, 5vw, 3.5rem); padding: 1.1rem 1.3rem; border: 2px solid var(--pink-deep); border-radius: 20px; background: var(--pink-pale); }
.alert-icon { display: grid; flex: none; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; color: var(--paper); background: var(--pink-deep); font-weight: 900; }
.alert-note p { margin: 0; font-size: .9rem; font-weight: 700; }
.alert-note a { color: var(--pink-deep); }

/* Illustration page */

/* Terms */
.terms-overview { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 1.4rem; margin-top: 2.5rem; padding: 1.5rem; border: 2px solid var(--ink); border-radius: 24px; background: var(--paper); box-shadow: var(--shadow); }
.terms-overview h2 { margin: 0 0 .4rem; font-family: var(--display); font-size: clamp(1.35rem, 2.8vw, 1.7rem); font-weight: 400; line-height: 1.4; }
.terms-overview p { margin: 0; color: var(--ink-2); font-size: .88rem; }
.terms-overview .updated { margin-top: .6rem; color: var(--muted); font-size: .8rem; font-weight: 700; }
.terms-alert { display: flex; gap: .8rem; padding: 1rem 1.1rem; border: 2px dashed var(--pink-deep); border-radius: 18px; background: var(--pink-pale); }
.terms-alert > span { display: grid; flex: none; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; color: var(--paper); background: var(--pink-deep); font-weight: 900; }
.terms-alert p { color: var(--rose-ink); font-weight: 700; }
/* 目次はヘッダーの下に固定し、いま読んでいる章を黒く示す */
.terms-index { position: sticky; z-index: 20; top: 70px; display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin: 1.6rem 0 1rem; padding: .6rem 0; background: rgba(255, 247, 242, .94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.terms-index > span { margin-right: .4rem; color: var(--pink-deep); font-size: .8rem; font-weight: 900; letter-spacing: .2em; }
.terms-index a { padding: .3rem .85rem; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); font-size: .78rem; font-weight: 700; text-decoration: none; transition: background .2s, transform .2s; }
.terms-index a:hover { background: var(--pink-soft); transform: translateY(-2px); }
.terms-index a[aria-current="true"] { color: var(--cream); background: var(--ink); }
.terms-section { scroll-margin-top: 150px; }
.terms-section { display: grid; grid-template-columns: 4rem minmax(0, 1fr); gap: 1.2rem; padding: 2.4rem 0; border-top: 2px dotted var(--line-strong); }
.terms-number { display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border: 2px solid var(--ink); border-radius: 50%; background: var(--lime); box-shadow: 3px 3px 0 var(--ink); font-family: var(--display); transform: rotate(-8deg); }
.terms-content { min-width: 0; }
.terms-content h2 { margin: .35rem 0 1.1rem; font-size: clamp(1.3rem, 2.7vw, 1.7rem); font-weight: 900; line-height: 1.4; }
.terms-content > p { max-width: 46em; margin: 0; color: var(--ink-2); }
.rule-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.rule-card { position: relative; min-height: 7.5rem; padding: 1.1rem 1.2rem 1.2rem 5.1rem; border: 2px solid var(--ink); border-radius: 20px; background: var(--paper); box-shadow: var(--shadow-sm); }
.rule-card > span { position: absolute; top: 1.05rem; left: 1rem; display: grid; place-items: center; width: 3.1rem; height: 3.1rem; border: 2.5px solid currentColor; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--paper), inset 0 0 0 3.5px currentColor; font-size: 1.35rem; font-weight: 900; line-height: 1; transform: rotate(-12deg); }
.rule-ok > span { color: var(--lime-deep); background: var(--lime-pale); }
.rule-ng { background: var(--pink-mist); }
.rule-ng > span { color: var(--pink-deep); background: var(--pink-pale); font-size: 1rem; letter-spacing: -.04em; }
.rule-card h3 { margin: 0 0 .3rem; font-size: 1rem; font-weight: 900; line-height: 1.5; }
.rule-card p { margin: 0; color: var(--ink-2); font-size: .86rem; line-height: 1.8; }
.credit-url { display: grid; gap: .1rem; max-width: 40rem; margin-top: 1rem; padding: .8rem 1rem; border: 2px solid var(--ink); border-radius: 16px; background: var(--pink-pale); }
.credit-url span { color: var(--pink-deep); font-size: .74rem; font-weight: 900; }
.credit-url a { color: var(--ink); font: 700 .82rem var(--mono); overflow-wrap: anywhere; }
.disclaimer-list { display: grid; gap: .7rem; margin: 0; padding: 0; list-style: none; }
.disclaimer-list li { position: relative; padding-left: 1.6rem; color: var(--ink-2); }
.disclaimer-list li::before { content: "✚"; position: absolute; left: 0; color: var(--pink); }
.contact-links { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1rem; }
.contact-links a { display: grid; padding: .6rem 1.2rem; border: 2px solid var(--ink); border-radius: 18px; background: var(--paper); box-shadow: var(--shadow-sm); font-size: .86rem; font-weight: 700; text-decoration: none; transition: transform .15s, box-shadow .15s, background .2s; }
.contact-links a:hover { background: var(--pink-soft); box-shadow: 6px 6px 0 var(--ink); transform: translate(-2px, -2px); }
.contact-links span { color: var(--pink-deep); font-size: .7rem; font-weight: 900; }


/* Consent dialog（ダウンロード前の規約確認） */
.consent { width: min(100% - 24px, 680px); max-width: none; height: min(90dvh, 820px); max-height: none; padding: 0; overflow: hidden; border: 2px solid var(--ink); border-radius: 26px; color: var(--ink); background: var(--paper); box-shadow: 10px 10px 0 var(--ink); }
.consent[open] { display: flex; flex-direction: column; animation: pop-in .35s cubic-bezier(.2, 1.2, .4, 1) both; }
.consent::backdrop { background: rgba(43, 27, 39, .6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.ct-sheet { display: flex; flex: 1; flex-direction: column; min-height: 0; }
/* パネルの display 指定より、hidden を必ず優先する */
.consent [hidden] { display: none !important; }
.ct-head { position: relative; padding: 1.1rem 4rem 1rem 1.4rem; border-bottom: 2px solid var(--ink); background: var(--pink); }
.ct-kicker { margin: 0; font-size: .74rem; font-weight: 900; letter-spacing: .12em; }
.ct-head h2 { margin: .15rem 0 0; font-family: var(--display); font-size: 1.5rem; font-weight: 400; line-height: 1.3; }
.ct-close { position: absolute; top: 50%; right: 1rem; display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border: 2px solid var(--ink); border-radius: 50%; color: var(--ink); background: var(--paper); box-shadow: 2px 2px 0 var(--ink); font-weight: 900; cursor: pointer; transform: translateY(-50%); }
.ct-close:hover { background: var(--lime); }
.ct-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: .6rem 1.4rem 1.2rem; -webkit-mask-image: linear-gradient(#000 calc(100% - 40px), transparent); mask-image: linear-gradient(#000 calc(100% - 40px), transparent); }
.ct-body.is-read { -webkit-mask-image: none; mask-image: none; }
.ct-body:focus-visible { outline-offset: -4px; }
.ct-sec h3 { margin: 1.1rem 0 .6rem; padding-bottom: .3rem; border-bottom: 2px dotted var(--line); font-size: .95rem; font-weight: 900; }
.ct-rule { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: 0 .75rem; margin-bottom: .7rem; }
.ct-rule strong { font-size: .88rem; font-weight: 900; }
.ct-rule p { grid-column: 2; margin: 0; color: var(--ink-2); font-size: .82rem; line-height: 1.75; }
.ct-badge { display: grid; grid-row: span 2; place-items: center; width: 2.5rem; height: 2.5rem; border: 2px solid currentColor; border-radius: 50%; font-size: .78rem; font-weight: 900; letter-spacing: -.04em; transform: rotate(-10deg); }
.ct-rule.is-ok .ct-badge { color: var(--lime-deep); background: var(--lime-pale); }
.ct-rule.is-ng .ct-badge { color: var(--pink-deep); background: var(--pink-pale); }
.ct-text { margin: 0 0 .5rem; color: var(--ink-2); font-size: .84rem; }
.ct-full { margin: 1.3rem 0 .2rem; font-size: .84rem; font-weight: 700; text-align: center; }
.ct-full a { color: var(--pink-deep); }

/* 普通の同意（CONSENT_STYLE = 'plain'） */
.ct-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1rem; padding: 1rem 1.4rem 1.2rem; border-top: 2px solid var(--ink); background: var(--pink-pale); }
.ct-hint { flex: 1 1 14rem; margin: 0; color: var(--ink-2); font-size: .84rem; font-weight: 700; }
.ct-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; }
button.capsule-btn, button.btn-ghost { padding: 0; color: var(--ink); font: inherit; font-weight: 900; cursor: pointer; }
button.btn-ghost { padding: .7rem 1.2rem; font-weight: 700; }
button.capsule-btn:disabled { opacity: .45; cursor: not-allowed; }
button.capsule-btn:disabled:hover { box-shadow: 0 5px 0 var(--ink); transform: none; }
button.capsule-btn:disabled:hover .cap-r { animation: none; }
/* モーダルの dialog は上下が固定されるので、auto ではなく fit-content で中身の高さにする */
.consent.is-compact { height: fit-content; }
.ct-end.ct-plain { display: grid; flex: 0 0 auto; align-content: center; justify-items: center; gap: .3rem; padding: 2.2rem 1.4rem 2rem; }
.ct-plain-title { margin: 0; font-family: var(--display); font-size: 1.45rem; }
.ct-end.ct-plain .end-note { margin: .2rem 0 1rem; }

/* ダウンロード後のひとこと（ゲームの会話画面ふう） */
.ct-scene { position: relative; width: min(100%, 520px); height: 240px; overflow: hidden; border: 2px solid var(--ink); border-bottom: 0; border-radius: 18px 18px 0 0; background: var(--gingham), var(--pink-pale); }
.ct-sprite { position: absolute; top: 16px; left: 50%; width: 160px; max-width: none; height: auto; transform: translateX(-50%); animation: sprite-in .5s cubic-bezier(.2, 1.3, .4, 1) .1s both; }
@keyframes sprite-in { from { opacity: 0; transform: translate(-50%, 28px); } to { opacity: 1; transform: translate(-50%, 0); } }
.msgwin.is-scene { width: min(100%, 520px); margin-bottom: .4rem; border: 2px solid var(--ink); border-radius: 0 0 18px 18px; text-align: left; }
.msgwin.is-scene .msgwin-text { min-height: 2.4em; margin-bottom: .4rem; }

/* ドット絵風のメッセージウィンドウ */
.msgwin { position: relative; padding: 1.3rem 1.3rem 1.1rem; border-top: 2px solid var(--ink); color: #fff; background: var(--night); font-family: "DotGothic16", var(--mono); }
.msgwin::before { content: ""; position: absolute; inset: 7px; border: 3px double rgba(255, 255, 255, .85); pointer-events: none; }
.msgwin-name { position: absolute; z-index: 1; top: -.95rem; left: 1.2rem; margin: 0; padding: .05rem .8rem; border: 2px solid #fff; background: var(--night); font-size: .82rem; letter-spacing: .2em; }
.msgwin-text { min-height: 3.4em; margin: .2rem .5rem .8rem; font-size: 1.02rem; line-height: 1.7; letter-spacing: .06em; }
.msgwin-text.is-done::after { content: " ▼"; font-size: .7em; animation: blink 1s steps(2) infinite; }
.msgwin.is-inline { margin: 1.2rem auto 0; max-width: 32rem; border: 2px solid var(--ink); text-align: left; }
.choices { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; }
.choice { position: relative; min-width: 9.5rem; padding: .45rem 1rem .45rem 1.8rem; border: 2px solid #fff; color: #fff; background: transparent; font: inherit; font-size: 1rem; letter-spacing: .1em; text-align: left; cursor: pointer; }
.choice::before { content: "▶"; position: absolute; left: .55rem; opacity: 0; }
.choice:hover:not(:disabled), .choice:focus-visible { outline: none; color: var(--night); background: #fff; }
.choice:hover:not(:disabled)::before, .choice:focus-visible::before { opacity: 1; animation: nudge .6s steps(2) infinite; }
.choice:disabled { opacity: .35; cursor: not-allowed; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes nudge { 50% { transform: translateX(3px); } }

/* TRUE END */
.ct-end { position: relative; flex: 1; overflow-y: auto; padding: 2rem 1.4rem; text-align: center; }
.ct-true { overflow: hidden; background: radial-gradient(circle at 50% 30%, var(--pink-pale), transparent 60%), var(--paper); }
.end-label { margin: 0; color: var(--lime-deep); font-family: "DotGothic16", var(--mono); font-size: 1.1rem; letter-spacing: .4em; }
.true-stamp { display: inline-grid; place-content: center; width: 8.5rem; height: 8.5rem; margin: 1.2rem 0 .6rem; border: 5px double var(--pink-deep); border-radius: 50%; color: var(--pink-deep); font-family: var(--display); font-size: 1.55rem; line-height: 1.15; animation: stamp .55s cubic-bezier(.2, 1.6, .4, 1) .15s both; }
@keyframes stamp { from { opacity: 0; transform: scale(2.4) rotate(-12deg); } to { opacity: 1; transform: scale(1) rotate(-12deg); } }
.end-lead { margin: .4rem 0 0; font-weight: 900; }
.end-note { margin: 1rem 0; color: var(--muted); font-size: .84rem; font-weight: 700; }
.end-note a { color: var(--pink-deep); }
.ct-confetti { position: absolute; inset: 0; pointer-events: none; }
.ct-confetti .bit { position: absolute; top: -2rem; width: 1.6rem; height: .7rem; border: 2px solid var(--ink); border-radius: 999px; background: linear-gradient(90deg, var(--pink) 50%, var(--paper) 50%); animation: confetti 2s cubic-bezier(.3, .1, .6, 1) both; }
.ct-confetti .bit.is-heart { width: auto; height: auto; border: 0; color: var(--pink-deep); background: none; font-style: normal; }
.ct-confetti .bit.is-heart::before { content: "♡"; font-size: 1.3rem; font-weight: 900; }
@keyframes confetti { from { opacity: 1; transform: translateY(0) rotate(0); } to { opacity: 0; transform: translateY(105vh) rotate(var(--r)); } }

/* ホラー（同意しない） */
.consent.is-horror { width: 100vw; height: 100dvh; margin: 0; border: 0; border-radius: 0; color: #fff; background: #000; box-shadow: none; animation: none; }
.consent.is-horror::backdrop { background: #000; }
.horror { position: relative; flex: 1; overflow: hidden; background: var(--night-deep); }
.h-figure { position: absolute; inset: 0; }
/* 立ち絵は赤い輪郭だけのシルエットにする。近づき方はカット切り替え（--near） */
.h-figure img { position: absolute; bottom: -13%; left: 50%; width: auto; max-width: none; height: 100%; transform: translateX(-50%) scale(var(--near, .8)); transform-origin: 50% 15%; }
.h-figure .base { filter: brightness(0) drop-shadow(0 0 1.5px rgba(255, 42, 74, .95)) drop-shadow(0 0 16px rgba(255, 42, 74, .35)); }
.h-figure .glitch { opacity: 0; filter: brightness(0) invert(24%) sepia(90%) saturate(5000%) hue-rotate(335deg); mix-blend-mode: screen; animation: slice-a .5s steps(1) infinite; }
.horror.is-panic .h-figure { animation: shake .18s steps(2) infinite; }
.horror.is-panic .h-figure .glitch { opacity: .7; }
@keyframes shake { 0% { translate: -2px 1px; } 50% { translate: 3px -2px; } }
@keyframes slice-a { 0% { clip-path: inset(12% 0 84% 0); translate: -14px 0; } 25% { clip-path: inset(48% 0 47% 0); translate: 10px 0; } 50% { clip-path: inset(70% 0 27% 0); translate: -8px 0; } 75% { clip-path: inset(28% 0 69% 0); translate: 16px 0; } }
.h-tint { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 38%, transparent 22%, rgba(0, 0, 0, .92) 78%), linear-gradient(180deg, rgba(120, 0, 24, .35), rgba(20, 0, 6, .6)); }
.h-grain { position: absolute; inset: -50%; opacity: .16; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); pointer-events: none; animation: grain .6s steps(3) infinite; }
@keyframes grain { 33% { transform: translate(-7%, 4%); } 66% { transform: translate(5%, -6%); } }
.h-ecg { position: absolute; top: 3%; left: 0; width: 100%; height: 80px; overflow: visible; }
.h-ecg path { fill: none; stroke: var(--alarm); stroke-width: 3; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 6px var(--alarm)); }
.h-ecg-track { animation: ecg var(--ecg-dur, 5s) linear infinite; }
.h-ecg .flat, .h-ecg.is-flat .h-ecg-track { display: none; }
.h-ecg.is-flat .flat { display: inline; }
@keyframes ecg { to { transform: translateX(-1200px); } }
.h-karte { position: absolute; z-index: 2; top: calc(3% + 96px); left: max(1rem, 4vw); margin: 0; padding: .5rem .9rem; border-left: 2px solid var(--alarm); color: var(--night-text); background: rgba(0, 0, 0, .5); font-family: "DotGothic16", var(--mono); font-size: .88rem; line-height: 1.9; letter-spacing: .08em; }
.h-karte div { display: grid; grid-template-columns: 5.2em auto; gap: .6em; }
.h-karte dt { color: var(--night-muted); }
.h-karte dd { margin: 0; }
.h-karte .is-bad { color: var(--alarm); }
.h-msg { position: absolute; z-index: 3; right: 0; bottom: max(1.2rem, env(safe-area-inset-bottom)); left: 0; width: min(100% - 24px, 760px); margin-inline: auto; border: 2px solid #fff; background: rgba(20, 11, 18, .92); }
.h-msg .msgwin-text { color: var(--night-text); }
.h-close { position: absolute; z-index: 4; top: .8rem; right: .8rem; padding: .2rem .7rem; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; color: rgba(255, 255, 255, .45); background: transparent; font-size: .72rem; cursor: pointer; }
.h-close:hover, .h-close:focus-visible { color: #fff; border-color: #fff; }
.horror.is-blackout > :not(.h-close) { visibility: hidden; }

/* BAD END */
.ct-bad { display: grid; place-content: center; gap: .4rem; color: var(--night-text); background: #000; font-family: "DotGothic16", var(--mono); }
.end-label.is-bad { color: var(--alarm); animation: flicker 3s steps(1) infinite; }
.bad-title { margin: .3rem 0; color: var(--alarm); font-size: clamp(3rem, 12vw, 6.5rem); line-height: 1.1; letter-spacing: .15em; text-shadow: 3px 0 rgba(0, 229, 255, .35), -3px 0 rgba(255, 0, 60, .5); }
.ct-bad .end-lead { font-weight: 400; }
.ct-bad .end-note { color: var(--night-muted); font-weight: 400; }
@keyframes flicker { 0%, 100% { opacity: 1; } 92% { opacity: .3; } 94% { opacity: 1; } }

/* 上へ戻る（立てたカプセル） */
.to-top { position: fixed; z-index: 40; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); display: grid; place-items: center; width: 2.8rem; height: 3.8rem; border: 2px solid var(--ink); border-radius: 999px; color: var(--ink); background: linear-gradient(180deg, var(--pink) 50%, var(--paper) 50%); box-shadow: 3px 3px 0 var(--ink); font-weight: 900; text-decoration: none; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .2s, transform .2s, visibility .2s; }
.to-top.is-shown { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-3px); }

/* Scroll reveal */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .envelope, .label-card, .receipt-wrap, .rx-card, .art-card, .blister li, .info-card, .rule-card,       animation-timeline: view();
      animation-range: entry 0% cover 22%;
    }
  }
}
@keyframes reveal { from { opacity: 0; translate: 0 32px; } to { opacity: 1; translate: 0 0; } }

/* Responsive */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-watermark { left: auto; right: -80px; }
  .stage { width: min(78%, 360px); margin-top: 1.5rem; }
  .about, .release, .info-grid, .terms-overview { grid-template-columns: 1fr; }
  .watch-grid { grid-template-columns: 1fr; }
  .label-card { transform: none; }
  .env-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .envelope.is-pending { padding-top: 0; }
  .envelope.is-pending .env-seal { display: none; }
    .footer-inner { grid-template-columns: 1fr; gap: 1.4rem; }
  .footer-copy { text-align: left; }
  .page-hero-deco { width: 180px; }
  .page-hero-deco img { width: 150px; opacity: .4; }
  .page-hero-deco.is-mascot img { width: 140px; opacity: 1; }
}
@media (max-width: 760px) {
  .terms-index { top: 0; flex-wrap: nowrap; margin-inline: -16px; padding-inline: 16px; overflow-x: auto; scrollbar-width: none; }
  .terms-index::-webkit-scrollbar { display: none; }
  .terms-index a, .terms-index > span { flex: none; white-space: nowrap; }
  .terms-section { scroll-margin-top: 70px; }
  .site-header { position: relative; top: 0; }
  .header-bar { flex-wrap: wrap; padding-bottom: .5rem; }
  /* メニューを3件＋2件の2段にして、狭い画面でも文字が欠けないようにする */
  .site-nav { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .15rem; width: 100%; margin: 0; padding: 0 0 .2rem; }
  .site-nav a { grid-column: span 2; min-width: 0; padding: .35rem .2rem; font-size: clamp(.68rem, 3.25vw, .78rem); letter-spacing: 0; text-align: center; }
  .site-nav a:nth-child(4) { grid-column: 2 / span 2; }
  .site-nav a:nth-child(5) { grid-column: 4 / span 2; }
  [id] { scroll-margin-top: 1rem; }
}
@media (max-width: 600px) {
  .ticker-track { width: 100%; animation: none; }
  .ticker-track > p:first-child { width: 100%; justify-content: center; padding-right: 0; }
  .ticker-track > p:first-child > :not(:first-child), .ticker-track > p[aria-hidden="true"], .ticker-toggle { display: none; }
  .footer-mascot { top: -84px; right: 72px; width: 100px; }
  .lb-prev, .lb-next { top: auto; bottom: 1rem; transform: none; }
  .lb-img { max-height: calc(100dvh - 11rem); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
  .art-frame img { inset: .6rem; width: calc(100% - 1.2rem); height: calc(100% - 1.2rem); }
  .art-card figcaption { padding: .5rem .8rem; font-size: .8rem; }
  .art-zoom { right: .5rem; bottom: .5rem; font-size: .66rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .capsule-btn .cap-l { flex: 1; }
  .hero-actions .btn-ghost { justify-content: center; }
  .scale { display: none; }
  .stage { width: 84%; }
  .wristband { font-size: .72rem; }
  .wb-barcode { display: none; }
  .sec-head { flex-wrap: wrap; }
  .sec-no { width: 2.8rem; height: 2.8rem; font-size: .9rem; }
  .sec-aside { margin-left: 0; }
  .rx-card-body { flex-direction: column; align-items: stretch; padding: 1.3rem 1.1rem; }
  .rx-card-body .capsule-btn .cap-l { flex: 1; }
  .rx-meta { padding: .8rem 1.1rem; }
  .receipt-list li { grid-template-columns: minmax(0, 1fr) auto; gap: .2rem .8rem; }
  .receipt-list p { grid-row: 2; grid-column: 1 / -1; }
  .change-entry { grid-template-columns: 6rem 3rem 1fr; }
        .terms-section { grid-template-columns: 1fr; gap: .4rem; padding: 1.8rem 0; }
  .terms-number { width: 2.8rem; height: 2.8rem; font-size: .9rem; }
  .rule-grid { grid-template-columns: 1fr; }
    .rule-card { min-height: 0; }
  .page-hero-deco { display: none; }
  .footer-bottom { flex-direction: column; gap: .3rem; }
  /* スマホのフッター：ページへのリンクを2列のボタンにし、まとまりごとに線で区切る */
  .footer-inner { gap: 0; padding: 1.4rem 0 1.8rem; }
  .footer-inner > * + * { margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid rgba(255, 255, 255, .14); }
  .footer-pages { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; }
  .footer-pages .footer-label { grid-column: 1 / -1; margin-bottom: .1rem; }
  .footer-pages a { width: auto; padding: .55rem .8rem; border: 1px solid rgba(255, 247, 242, .35); border-radius: 12px; font-size: .9rem; }
  .footer-links a { padding: .55rem 1rem; font-size: .88rem; }
  .footer-label { margin-bottom: .2rem; font-size: .8rem; }
  .footer-copy { font-size: .84rem; }
  .footer-rep { color: var(--on-ink-muted); font-size: .8rem; }
  .ct-actions { padding: .9rem 1rem 1rem; }
  .ct-actions .ct-buttons { flex-direction: column-reverse; width: 100%; }
  .ct-actions .ct-buttons > * { justify-content: center; width: 100%; }
  .ct-actions .capsule-btn .cap-l { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-toggle { display: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .ticker-track { transform: none; }
}

/* 印刷（主に利用規約を紙やPDFで残すとき） */
@media print {
  .ticker, .site-header, .drip, .site-footer, .page-hero-deco, .footer-mascot, .hero-watermark, .pill, .to-top, .terms-index { display: none !important; }
  *, *::before, *::after { animation: none !important; }
  body { background: #fff; }
  .page-hero-body { background: none; }
  .page-hero-body::before { content: none; }
  .terms-overview, .rule-card, .info-card, .faq details { box-shadow: none; break-inside: avoid; }
}
