/* #バクステメイドカフェ #バクステ執事カフェ（現代版・2026-11-02）
   X告知（creative/2611_ロールイベント_メイド喫茶/src/x_logo_announce.html）と同じ見た目：
   クリーム地・濃いピンクの帯・白い札に濃いピンクの線とずらした影・LINE Seed JP。ぼかし・グローは使わない。
   メイド＝ピンク、執事＝紺と金。着せ替えページ（kisekae.html）は css/style.css を使う */
:root {
  --cream: #FBF6EC;
  --band: #E23A84;
  --band-d: #B8236A;
  --pink-bg: #FFE8F1;
  --pink-line: #F3BCD3;
  --ink: #141218;
  --sub: #5E5660;
  --navy: #1E2A44;
  --gold: #D8B45A;
  --white: #FFFFFF;
  /* メイド・執事それぞれの色（どちらを選んでも変わらない所に使う） */
  --maid: #E23A84; --maid-d: #B8236A; --maid-bg: #FFE8F1; --butler-bg: #E8ECF4;
  /* ページ全体の主役の色（--band など）は、参加キャストで選んだ役に合わせて下で切りかえる */
  --accent: #E23A84;       /* 文中の強調 */
  --card-shadow: #E23A84;  /* 白い札のずらした影 */
  /* 「期間限定イベント」の帯から下の地の色と、その上にじかに置く文字の色 */
  --page: #FBF6EC; --on-page: #141218; --on-page-sub: #5E5660; --page-line: #E6DCCB;
  --page-accent: #E23A84; /* 地の上にじかに置く強調（PROLOGUE など） */
  --hash-butler: #1E2A44; --status: #E23A84; --belt-butler-shadow: #1E2A44;
  color-scheme: light;
}
/* 参加キャストで「執事」を選ぶと、ページ全体が紺と金になる（js/app.js が html に data-role を付ける・2026-11-02） */
:root[data-role="butler"] {
  --band: #1E2A44; --band-d: #D8B45A; --pink-bg: #E8ECF4; --pink-line: #C9D1E0;
  --accent: #8E6B1F;       /* 金だと白の上で読みにくいので、こげた金 */
  --card-shadow: #D8B45A;
  /* 執事のときは、帯から下を黒っぽく（ロゴの段はクリームのまま・2026-11-02） */
  --page-accent: #D8B45A;
  --page: #12161F; --on-page: #EEF0F5; --on-page-sub: #A9B2C6; --page-line: #2E3647;
  --hash-butler: #C9D3E6; --status: #D8B45A; --belt-butler-shadow: #D8B45A;
}
:root[data-role="butler"] .period-band { box-shadow: inset 0 -3px 0 #D8B45A; }  /* 暗い地との境目に金の線 */
:root[data-role="butler"] .footer-logo.is-light { display: none; }
:root[data-role="butler"] .footer-logo.is-dark { display: block; }
/* 切りかえはふわっと（動きを減らす設定では一瞬で） */
.card, .pill, .hero-tab, .period-band, .band-tag, .step, .step-no, .step-note, .step-arrow, .rows dt, .btn-band, .btn-pink,
.role-tab, .qa-mark, .experiment, .experiment strong, .bubble, .bubble-tag, .shop-status, em, .faq summary {
  transition: background-color .45s, border-color .45s, color .45s, box-shadow .45s;
}
.bubble::before, .faq summary::before { transition: background-color .45s, border-color .45s; }
@media (prefers-reduced-motion: reduce) { * , *::before { transition: none !important; } }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--page); color: var(--ink); transition: background-color .45s;
  font-family: 'LINE Seed JP', 'Hiragino Sans', sans-serif; font-weight: 700; line-height: 1.7;
  padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px));
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
em { font-style: normal; color: var(--accent); font-weight: 800; }
.navy { color: var(--navy); }
.test-now { margin: 8px auto 0; max-width: 980px; background: #FFE274; padding: 6px 12px; border-radius: 8px; font-size: 13px; }

/* ---- ヒーロー（X告知の1枚目を、アニメのサイトのように画面いっぱいに） ---- */
.hero {
  --gut: max(16px, env(safe-area-inset-left, 0px));
  position: relative; isolation: isolate; overflow: hidden;
  margin: 0 calc(-1 * var(--gut)); padding: 0 var(--gut) 40px;
  min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
}
.hero > :not(.hero-tab) { position: relative; z-index: 1; }
/* ロゴの段（執事のときもクリームのまま）。画面の高さが余ったら、ここが伸びてロゴを真ん中に置く */
.hero-top { flex: 1 0 auto; align-self: stretch; display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 0 calc(-1 * var(--gut)); padding: 0 var(--gut); background: var(--cream); }
.hero-tab { z-index: 2; }
.hero-tab {
  position: absolute; top: 0; left: 0; margin: 0;
  background: var(--band); color: var(--white); font-weight: 800;
  font-size: clamp(12px, 3.4vw, 19px); white-space: nowrap; padding: 8px 20px 8px var(--gut);
  border-radius: 0 0 14px 0;
}
/* PC：1段目＝ロゴ、2段目＝MAID ver. などの札。「or」はロゴの段の真ん中に置く（札の分だけ下にずれないように） */
.logos {
  width: min(100%, 1320px); margin: 0; padding: 72px 0 32px;
  display: grid; grid-template-columns: 1fr auto 1fr; grid-template-rows: auto auto; align-items: center;
  column-gap: clamp(8px, 2vw, 28px); row-gap: 14px;
}
.logo-wrap { display: grid; grid-row: 1 / span 2; grid-template-rows: subgrid; justify-items: center; align-items: center; min-width: 0; }
.logo-wrap:first-child { grid-column: 1; }
.logo-wrap:last-child { grid-column: 3; }
.logo-img { width: 100%; height: auto; display: block; overflow: visible; }
/* 「or」は控えめに：X告知の1枚目と同じ、うすいベージュの丸と、ロゴの間を通る細い線 */
.logo-or {
  --or-line: 80px;
  grid-row: 1; grid-column: 2;
  position: relative; width: 52px; height: 52px; color: #8A8178;
  display: grid; place-items: center; font-weight: 800; font-size: 18px;
}
.or-text { position: relative; top: -.08em; /* 「o」「r」は字の下寄りに描かれるので、丸の真ん中に見えるよう少し上げる */ }
.or-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transform: rotate(-90deg); /* 上から描き始める */ }
.or-fill { fill: var(--cream); }
/* 半円を2本：同じ所（線が来る側）から、上回りと下回りに分かれて、反対側で合流する */
.or-arc { fill: none; stroke: #E6DCCB; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-dasharray: 50 100; stroke-dashoffset: 0; }
.or-arc.is-b { transform: scaleY(-1); transform-origin: 26px 26px; }
.or-line { position: absolute; left: 50%; width: 2px; height: var(--or-line); margin-left: -1px; background: #E6DCCB; transform-origin: 50% 0; }
.or-line.is-a { bottom: 100%; }
.or-line.is-b { top: 100%; }
.ver { color: var(--white); border-radius: 999px; padding: 5px 22px; font-weight: 800; font-size: 16px; letter-spacing: .12em; }
.ver.is-maid { background: var(--maid); }
.ver.is-butler { background: var(--navy); }
.hero-after { display: flex; flex-direction: column; align-items: center; }
@media (max-width: 640px) {
  .logos { grid-template-columns: 1fr; gap: 4px; padding-top: 56px; }
  .logos { grid-template-rows: none; }
  .logo-wrap { display: flex; flex-direction: column; align-items: center; grid-row: auto; grid-column: auto; max-width: 520px; margin: 0 auto; width: 100%; gap: 10px; }
  .logo-wrap:first-child, .logo-wrap:last-child, .logo-or { grid-row: auto; grid-column: auto; }
  .logo-or { --or-line: 140px; margin: 8px auto; width: 38px; height: 38px; font-size: 14px; }
  .ver { font-size: 14px; padding: 4px 18px; }
  /* 縦に並ぶので、「or」の線は横向き（左から来て、丸の左端から描き始め、右へ抜ける） */
  .or-ring { transform: rotate(180deg); }
  .or-line { left: auto; top: 50%; width: var(--or-line); height: 2px; margin: -1px 0 0; transform-origin: 0 50%; }
  .or-line.is-a { bottom: auto; right: 100%; }
  .or-line.is-b { top: 50%; left: 100%; }
}

/* ---- オープニング（js/intro.js が html に intro / intro-play / intro-done を付ける） ----
   部品ごとの出る時刻は --d、ロゴが出終わる時刻は --t-end（JS が入れる） */
.intro img.logo-img,
.intro:not(.intro-play) .logo-svg,
.intro:not(.intro-play) .hero :is(.hero-tab, .logo-or, .ver, .period-band, .hero-after) { visibility: hidden; }
.lp { transform-box: fill-box; }
.k-bubble { --anim: lp-pop; --dur: .42s; transform-origin: 50% 100%; }
.k-dot { --anim: lp-dot; --dur: .34s; transform-origin: 50% 50%; }
.k-cup { --anim: lp-drop; --dur: .48s; transform-origin: 50% 100%; }
.k-letter { --anim: lp-stamp; --dur: .4s; transform-origin: 50% 60%; }
.k-bang { --anim: lp-spin; --dur: .5s; transform-origin: 50% 85%; }
.k-en { --anim: lp-rise; --dur: .3s; transform-origin: 50% 50%; }
.intro-play .lp { animation: var(--anim) var(--dur) ease-out var(--d) both; }
.intro-play .hero-tab { animation: bg-in-l .45s cubic-bezier(.2, .8, .2, 1) .15s both; }
/* 「or」：線が来る（.25秒）→ 2手に分かれて丸を描く（.3秒）。分かれた所で「or」が線の進む向きにふわっと → 合流した所から線が伸びる（.25秒） */
.intro-play .or-line.is-a { animation: or-grow-y .25s ease-in calc(var(--t-end) - 450ms) both; }
.intro-play .or-arc { animation: or-draw .3s ease-out calc(var(--t-end) - 200ms) both; }
.intro-play .or-fill { animation: hero-fade .3s ease-out calc(var(--t-end) - 200ms) both; }
.intro-play .or-text { animation: or-text-y .35s ease-out calc(var(--t-end) - 200ms) both; }
.intro-play .or-line.is-b { animation: or-grow-y .25s ease-out calc(var(--t-end) + 100ms) both; }
@media (max-width: 640px) { .intro-play .or-line { animation-name: or-grow-x; } .intro-play .or-text { animation-name: or-text-x; } }
.intro-play .ver.is-maid { animation: lp-pop .4s ease-out calc(var(--t-end) - 150ms) both; }
.intro-play .ver.is-butler { animation: lp-pop .4s ease-out calc(var(--t-end) - 50ms) both; }
.intro-play .period-band { animation: band-wipe .5s cubic-bezier(.6, 0, .2, 1) calc(var(--t-end) + 50ms) both; }
.intro-play .hero-after { animation: hero-rise .45s ease-out calc(var(--t-end) + 300ms) both; }
/* 出終わったあと：「…」が順に弾み、吹き出しがゆれ、「!?」がときどき跳ねる */
.intro-done .k-dot { animation: dot-wait 1.6s ease-in-out calc(var(--i, 0) * 160ms) infinite; }
.intro-done .k-bubble { animation: bob 3.2s ease-in-out calc(var(--i, 0) * -1.6s) infinite; }
.intro-done .k-bang { animation: wiggle 4.5s ease-in-out calc(1s + var(--i, 0) * 120ms) infinite; }

@keyframes lp-pop { 0% { transform: scale(0); opacity: 0; } 1% { opacity: 1; } 60% { transform: scale(1.15); } 100% { transform: none; } }
@keyframes lp-dot { 0% { transform: scale(0); opacity: 0; } 1% { opacity: 1; } 70% { transform: scale(1.4); } 100% { transform: none; } }
@keyframes lp-drop { 0% { transform: translateY(-90%); opacity: 0; } 15% { opacity: 1; } 55% { transform: translateY(0) scale(1.06, .9); } 75% { transform: translateY(-6%); } 100% { transform: none; } }
@keyframes lp-stamp { 0% { transform: scale(1.9) rotate(-10deg); opacity: 0; } 50% { transform: scale(.9) rotate(2deg); opacity: 1; } 75% { transform: scale(1.04); } 100% { transform: none; } }
@keyframes lp-spin { 0% { transform: scale(0) rotate(-180deg); opacity: 0; } 65% { transform: scale(1.2) rotate(12deg); opacity: 1; } 100% { transform: none; } }
@keyframes lp-rise { 0% { transform: translateY(80%); opacity: 0; } 100% { transform: none; } }
@keyframes bg-in-l { from { transform: translateX(-105%); } to { transform: none; } }
@keyframes or-grow-y { from { transform: scaleY(0); } to { transform: none; } }
@keyframes or-grow-x { from { transform: scaleX(0); } to { transform: none; } }
@keyframes or-draw { from { stroke-dashoffset: 50; } to { stroke-dashoffset: 0; } }
@keyframes or-text-y { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes or-text-x { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
@keyframes hero-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes band-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes hero-rise { from { transform: translateY(16px); opacity: 0; } to { transform: none; } }
@keyframes dot-wait { 0%, 40%, 100% { transform: none; } 20% { transform: translateY(-35%); } }
@keyframes bob { 0%, 100% { transform: none; } 50% { transform: translateY(-4%); } }
@keyframes wiggle { 0%, 80%, 100% { transform: none; } 85% { transform: rotate(-14deg); } 90% { transform: rotate(10deg) translateY(-6%); } 95% { transform: rotate(-4deg); } }
/* ---- 最初の文字のオープニング（.opening）。ロゴの動きはこのあと（js/intro.js の OPENING_MS）----
   1つ1つの動きは短く（0.12〜0.26秒）、出たあとに止まる間を入れる：大きい物のあと0.3秒、「と」「が」のあと0.2秒（2026-11-02 運営の希望）
   0.05秒「BackStageに、」→ 0.59秒「メイドカフェ」→ 0.99秒「と」→ 1.31秒「執事カフェ」→ 1.71秒「が」→ 2.13秒「開店」→ 2.45秒「!?」→ 3.15秒 斜めに抜けてトップへ */
.opening { display: none; }
.intro .opening {
  display: flex; position: fixed; inset: 0; z-index: 100; align-items: center; justify-content: center;
  padding: 24px max(16px, env(safe-area-inset-right, 0px)) 24px max(16px, env(safe-area-inset-left, 0px));
  background: radial-gradient(circle, rgba(255, 255, 255, .16) 0 3px, transparent 3.5px) 0 0 / 26px 26px, var(--maid);
  color: var(--white); text-align: center; overflow: hidden;
  animation: op-out .55s cubic-bezier(.7, 0, .3, 1) 3.15s both;
}
.op-inner { display: grid; justify-items: center; gap: clamp(10px, 2.4vw, 22px); }
.op-inner p { margin: 0; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; font-weight: 800; line-height: 1.2; }
.op-l1 { gap: 8px; font-size: clamp(24px, 6.4vw, 48px); }
.op-bs { height: clamp(32px, 8.4vw, 64px); width: auto; }
.op-l2 { gap: 4px 8px; font-size: clamp(20px, 5.6vw, 42px); }
.op-pill { display: inline-block; padding: .12em .6em; border-radius: 999px; }
.op-pill.is-maid { background: var(--white); color: var(--maid); box-shadow: 3px 3px 0 var(--maid-d); }
.op-pill.is-butler { background: var(--navy); color: var(--white); box-shadow: 3px 3px 0 var(--gold); }
.op-l3 { font-size: clamp(76px, 22vw, 176px); line-height: 1; letter-spacing: .02em; }
.op-bang { display: inline-block; font-size: .8em; }
.op-ex { color: #FFE274; margin-left: .06em; }
.op-q { color: #19BEC8; transform-origin: 50% 90%; }
.intro .op-l1 { animation: op-slide .24s cubic-bezier(.2, .8, .2, 1) .05s both; }
.intro .op-pill.is-maid { animation: lp-pop .2s ease-out .59s both; }
.intro .op-to { animation: hero-rise .12s ease-out .99s both; }
.intro .op-pill.is-butler { animation: lp-pop .2s ease-out 1.31s both; }
.intro .op-ga { animation: hero-rise .12s ease-out 1.71s both; }
.intro .op-kai { display: inline-block; animation: lp-stamp .26s ease-out 2.13s both, op-shake .2s linear 2.39s; }
.intro .op-ex { animation: lp-spin .2s ease-out 2.45s both; }
.intro .op-q { animation: lp-spin .2s ease-out 2.51s both; }
@keyframes op-slide { from { transform: translateX(-48px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes op-shake { 0%, 100% { translate: 0 0; } 25% { translate: -4px 2px; } 50% { translate: 4px -2px; } 75% { translate: -2px 0; } }
/* 斜めにぬける（左から右へ、斜めの線が通りすぎる） */
@keyframes op-out {
  from { clip-path: polygon(0 0, 130% 0, 130% 100%, -30% 100%); }
  to { clip-path: polygon(130% 0, 130% 0, 130% 100%, 100% 100%); }
}
@media (prefers-reduced-motion: reduce) { .lp, .hero *, .opening { animation: none !important; } .opening { display: none !important; } }

.period-band {
  position: relative; align-self: stretch; margin: 0 calc(-1 * var(--gut)) 0;  /* 上の間はロゴの段の下の余白（クリーム）でとる */
  background: var(--band); color: var(--white);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 16px;
  padding: 14px 16px;
}
.band-kind { font-weight: 800; font-size: clamp(15px, 4vw, 20px); }
.band-sep { width: 2px; height: 34px; background: rgba(255, 255, 255, .6); }
.band-tag { background: var(--white); color: var(--band-d); font-weight: 800; font-size: 12px; line-height: 1.25; padding: 4px 8px; border-radius: 7px; }
.band-date { font-weight: 800; font-size: clamp(28px, 8vw, 40px); line-height: 1.1; white-space: nowrap; }
.band-date small { font-size: .5em; }
.band-date .tilde { font-size: .8em; margin: 0 .25em; }
@media (max-width: 420px) { .band-sep { display: none; } .band-kind { flex-basis: 100%; } }
.shop-status { margin: 12px 0 0; font-weight: 800; color: var(--status); font-size: 15px; transition: color .45s; }
.shop-status:empty { display: none; }
.hashtags { margin: 10px 0 0; display: flex; flex-direction: column; align-items: center; gap: 0; font-weight: 800; font-size: 17px; line-height: 1.6; }
.hashtags a { text-decoration: none; }
.hashtags .is-maid { color: var(--maid); }
.hashtags .is-butler { color: var(--hash-butler); transition: color .45s; }

/* ---- ボタン（平らな面＋ずらした影） ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  min-height: 48px; padding: 10px 22px; border-radius: 999px; border: 0;
  font: inherit; font-weight: 800; font-size: 16px; line-height: 1.3; text-decoration: none; text-align: center; cursor: pointer;
  transition: transform .08s, box-shadow .2s, background-color .45s, color .45s;
}
a.btn:active { transform: translate(3px, 3px); }
a.btn:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.btn-band { background: var(--band); color: var(--white); box-shadow: 4px 4px 0 var(--band-d); }
.btn-pink { background: var(--band); color: var(--white); box-shadow: 4px 4px 0 var(--band-d); }
.btn-gold { background: var(--navy); color: var(--white); box-shadow: 4px 4px 0 var(--gold); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-off { background: #EDE4E8; color: #6E6670; box-shadow: none; cursor: default; }
a.btn-band:active, a.btn-pink:active, a.btn-gold:active { box-shadow: 1px 1px 0 var(--band-d); }
.hero-cta { margin-top: 18px; min-width: 240px; }
/* 参加キャストの流れる帯。アイコンはロゴと同じ「白い太ふち＋ずらした影」のシール。ぼかしは使わない */
/* 入れ物は画面の幅に固定（中の列は長いので、何もしないと入れ物ごと広がって真ん中寄せでずれる） */
.cast-belt { width: 100vw; max-width: 100vw; margin: 28px 0 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; overflow: hidden; padding: 6px 0 10px; }
.belt-row { display: flex; width: max-content; animation: belt-l var(--dur, 40s) linear infinite; }
.belt-row.is-butler { animation-name: belt-r; }
.belt-face {
  position: relative; flex: none; width: 76px; height: 76px; margin-right: 18px; border-radius: 50%; overflow: hidden;
  border: 4px solid var(--white); background: #FFE3EE; box-shadow: 4px 4px 0 var(--maid-d);
}
.belt-face:nth-child(3n + 1) { transform: rotate(-4deg); }
.belt-face:nth-child(3n + 2) { transform: rotate(3deg); }
.belt-face.is-butler { background: #E6EAF2; box-shadow: 4px 4px 0 var(--belt-butler-shadow); }
.belt-face > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 4%; }
.belt-face .silhouette { fill: #F4A0BE; }
.belt-face.is-butler .silhouette { fill: #96A6C4; }
@keyframes belt-l { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes belt-r { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (max-width: 640px) {
  .cast-belt { margin-top: 22px; gap: 10px; }
  .belt-face { width: 60px; height: 60px; margin-right: 14px; border-width: 3px; box-shadow: 3px 3px 0 var(--maid-d); }
  .belt-face.is-butler { box-shadow: 3px 3px 0 var(--belt-butler-shadow); }
}
@media (prefers-reduced-motion: reduce) { .belt-row { animation: none; } }

/* ---- 白い札（X告知の2枚目・3枚目と同じ） ---- */
main { max-width: 980px; margin: 0 auto; display: grid; gap: 28px; }
.card {
  position: relative; background: var(--white); border: 4px solid var(--band); border-radius: 24px;
  box-shadow: 8px 8px 0 var(--card-shadow); padding: 28px clamp(16px, 4vw, 36px) 30px; min-width: 0;
}
.pill {
  display: table; margin: 0 auto 14px; background: var(--band); color: var(--white);
  font-size: 17px; font-weight: 800; padding: 4px 32px; border-radius: 999px; line-height: 1.6;
}
.pill:not(:first-child) { margin-top: 26px; }
.catch { margin: 4px 0 22px; text-align: center; font-size: clamp(18px, 4.6vw, 24px); line-height: 1.6; text-wrap: balance; }
.lead { margin: 0; text-align: center; font-size: clamp(15px, 3.8vw, 17px); }
.lead-last { margin-top: 10px; }
.note { margin: 12px 0 0; text-align: center; color: var(--sub); font-size: 13px; font-weight: 400; }

/* あそびかた：3つの箱と矢印（①⇄② はループ、②→③ は片向き） */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 40px 1fr 40px 1fr; align-items: stretch; gap: 6px; }
.step { background: var(--pink-bg); border-radius: 16px; padding: 16px 16px 18px; min-width: 0; }
.step-no {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--band); color: var(--band); font-weight: 800; font-size: 17px;
  vertical-align: middle; margin-right: 8px;
}
.step-head { display: inline; margin: 0; font-weight: 800; font-size: 19px; vertical-align: middle; }
.step-body { margin: 10px 0 0; color: var(--sub); font-size: 14px; }
.step-note { margin: 10px 0 0; padding-top: 8px; border-top: 1.5px solid var(--pink-line); font-size: 13px; }
.step-note small { color: var(--sub); font-weight: 400; font-size: 12px; }
.step-arrow { display: grid; place-items: center; color: var(--band); }
.step-arrow svg { width: 32px; height: 32px; }
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
  .step-arrow svg { transform: rotate(90deg); }
}

.rows { margin: 22px 0 0; display: grid; gap: 10px; }
.rows div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; }
.rows dt { border: 2.5px solid var(--band); color: var(--band); border-radius: 999px; text-align: center; font-weight: 800; font-size: 14px; padding: 2px 0; }
.rows dd { margin: 0; font-size: 15px; }
@media (max-width: 480px) { .rows div { grid-template-columns: 1fr; gap: 4px; } .rows dt { width: 96px; } }

/* 目印 */
.marks { margin: 16px auto 0; display: flex; justify-content: center; gap: 18px; }
.mark { margin: 0; width: min(42%, 200px); text-align: center; }
.mark img { width: 100%; }
.mark figcaption { margin-top: 6px; font-weight: 800; }
.mark .is-maid { color: var(--maid); }
.mark .is-butler { color: var(--navy); }

/* 参加キャスト */
.role-tabs { display: flex; justify-content: center; gap: 10px; }
.role-tab {
  min-height: 48px; min-width: 130px; padding: 8px 18px; border-radius: 999px; font: inherit; font-weight: 800; font-size: 16px; cursor: pointer;
  background: var(--white); color: var(--maid); border: 3px solid var(--maid);
}
.role-tab[aria-pressed="true"] { background: var(--maid); color: var(--white); }
.role-tab.is-butler { color: var(--navy); border-color: var(--navy); }
.role-tab.is-butler[aria-pressed="true"] { background: var(--navy); color: var(--white); }
.role-count { font-size: .8em; opacity: .85; }
.cast-grid { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.cast-card { background: var(--maid-bg); border-radius: 16px; padding: 14px 12px 16px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.cast-card.is-butler { background: var(--butler-bg); }
.cast-icon { position: relative; width: 100%; max-width: 140px; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #FFE3EE; }
.cast-card.is-butler .cast-icon { background: #E6EAF2; }
.cast-icon > * { position: absolute; inset: 0; width: 100%; height: 100%; }
/* 顔はリングの丸の中に置く（リング画像の丸：中心 50%・46.7%、内側の直径 65.5%）。少し大きめにして、はみ出しはリングの帯と外の水玉で隠れる。
   立ち絵（縦長）でも顔が上に来るように上寄せ */
.cast-icon > .cast-face { inset: auto; left: 13%; top: 9.5%; width: 74%; height: 74%; object-fit: cover; object-position: 50% 0; }
.silhouette { fill: #F4A0BE; }
.cast-card.is-butler .silhouette { fill: #96A6C4; }
.cast-name { margin: 4px 0 0; font-weight: 800; font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.cast-line { margin: 0; color: var(--sub); font-size: 12px; font-weight: 400; line-height: 1.5; overflow-wrap: anywhere; }
.cast-btn { margin-top: auto; min-width: 0; width: 100%; font-size: 14px; padding: 8px 10px; }
.cast-btn .sp { display: inline; } /* 「BackStageで／会いに行く」で区切る（狭いカードで変な所で折れないように） */
.empty { text-align: center; color: var(--sub); }
.sp { display: none; }
@media (max-width: 420px) { .sp { display: inline; } .cast-grid { grid-template-columns: 1fr 1fr; gap: 10px; } }

/* 投票 */
.vote-btn-wrap { margin-top: 18px; display: flex; justify-content: center; }
.vote-btn { min-width: 260px; }

/* 表彰 */
.plates { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.plate { border-radius: 16px; padding: 16px; text-align: center; display: grid; gap: 4px; }
.plate.is-maid { background: var(--maid-bg); }
.plate.is-butler { background: var(--butler-bg); }
.plate-label { font-size: 13px; color: var(--sub); }
.plate-title { font-weight: 800; font-size: clamp(17px, 4.4vw, 21px); }
.plate.is-maid .plate-title { color: var(--maid); }
.plate.is-butler .plate-title { color: var(--navy); }
.plate-name { font-size: 14px; font-weight: 400; color: var(--sub); }
.plate-name.is-set { font-weight: 800; font-size: 18px; color: var(--ink); }
@media (max-width: 520px) { .plates { grid-template-columns: 1fr; } }

/* このイベントについて（Q&A） */
.qa { padding: 6px 0 14px; }
.qa + .qa { border-top: 1.5px solid #F0DDE6; padding-top: 18px; }
.q, .a { margin: 0; display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; }
.q { font-weight: 800; font-size: clamp(17px, 4.4vw, 21px); align-items: center; }
.a { margin-top: 10px; font-size: 15px; color: var(--sub); }
.qa-mark { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 20px; background: var(--band); color: var(--white); }
.qa-mark.is-a { background: var(--white); color: var(--band); border: 3px solid var(--band); }
.purpose-foot { margin-top: 16px; display: grid; grid-template-columns: 1fr 1.1fr; gap: 26px; align-items: center; }
.experiment { margin: 0; background: var(--pink-bg); border-radius: 18px; padding: 20px; text-align: center; font-size: 15px; }
.nb { display: inline-block; }
.experiment strong { display: block; margin-top: 8px; color: var(--band); font-size: 18px; }
.bubble { position: relative; border: 3px solid var(--band); border-radius: 18px; padding: 22px 18px 16px; background: var(--white); }
.bubble::before { /* しっぽ（左の囲みへ） */
  content: ''; position: absolute; left: -16px; top: 50%; width: 22px; height: 22px; background: var(--white);
  border-left: 3px solid var(--band); border-bottom: 3px solid var(--band); transform: translateY(-50%) rotate(45deg);
}
.bubble-tag { position: absolute; top: -14px; left: 16px; background: var(--band); color: var(--white); font-size: 13px; font-weight: 800; padding: 1px 16px; border-radius: 999px; }
.bubble p { margin: 0; font-weight: 400; font-size: 14px; }
.bubble em { font-weight: 800; }
.bubble-note { margin-top: 10px !important; padding-left: 10px; border-left: 1px solid #C9C0C6; color: #9A9097; font-size: 12px !important; }
@media (max-width: 760px) {
  .purpose-foot { grid-template-columns: 1fr; gap: 30px; }
  .bubble::before { left: auto; right: 40px; top: -14px; transform: rotate(135deg); }
  .bubble { padding-top: 26px; }
}

/* BackStage とは */
.dots a { color: var(--accent); font-weight: 800; }
.dots .go { white-space: nowrap; text-decoration: none; border-bottom: 2px solid currentColor; }
.dots .go span { font-size: .8em; margin-right: 2px; }
.dots { margin: 14px auto 0; padding-left: 1.2em; max-width: 100%; width: fit-content; font-size: 14px; font-weight: 400; }
.store-links { margin: 16px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* FAQ */
.faq { border-top: 1.5px solid #F0DDE6; padding: 12px 0; }
.faq:last-of-type { border-bottom: 1.5px solid #F0DDE6; }
.faq summary { cursor: pointer; font-weight: 800; min-height: 32px; list-style: none; }
.faq summary::before { content: 'Q'; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--band); color: var(--white); font-size: 13px; margin-right: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { margin: 8px 0 0 36px; color: var(--sub); font-weight: 400; font-size: 14px; }

/* フッター */
.footer { max-width: 980px; margin: 36px auto 0; padding: 20px 0 calc(28px + env(safe-area-inset-bottom, 0px)); text-align: center; border-top: 2px solid var(--page-line); color: var(--on-page); transition: color .45s, border-color .45s; }
.footer-x { margin: 0 0 12px; font-size: 14px; }
.footer-lite { margin: 0 0 10px; font-size: 13px; font-weight: 400; }
.footer-lite a { display: inline-block; padding: 10px 6px; color: var(--on-page-sub); }
.footer-home { display: inline-block; padding: 6px; }
.footer-logo { display: block; margin: 0 auto; width: 160px; height: auto; }
.footer-logo.is-dark { display: none; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---- イベント概要（PROLOGUE）：札にせず、地の上に真ん中寄せ。X告知の2枚目と同じ作り（2026-11-02） ---- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.prologue { padding: 36px 0 8px; text-align: center; color: var(--on-page); transition: color .45s; }
.prologue-h { margin: 0 0 26px; }
.prologue-en { display: inline-block; color: var(--page-accent); font-size: 14px; letter-spacing: .5em; padding-left: .5em; padding-bottom: 10px; border-bottom: 2px solid var(--page-accent); line-height: 1; }
.prologue .catch { margin: 0 0 26px; color: var(--on-page); }
.prologue-p { margin: 0; font-size: clamp(15px, 3.9vw, 18px); line-height: 1.9; }
.prologue-sub { margin: 26px 0 0; font-weight: 400; font-size: clamp(14px, 3.6vw, 16px); line-height: 1.9; }
.prologue-big { margin: 26px 0 0; color: var(--on-page); font-weight: 800; font-size: clamp(18px, 4.6vw, 27px); line-height: 1.5; }
.prologue-big .hl { color: var(--page-accent); }
.prologue-note { max-width: 560px; margin: 36px auto 0; text-align: left; }
.prologue-note .bubble::before { display: none; } /* しっぽは無し（指す相手がいないため） */
.prologue em { color: var(--page-accent); transition: color .45s; }
.prologue-note .bubble { color: var(--ink); }            /* 吹き出しは白い地なので、文字はいつも墨 */
.prologue-note .bubble em { color: var(--accent); }
.prologue-dots { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 28px 0 36px; }
.prologue-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--page-accent); transition: background-color .45s; }
.prologue-dots span:nth-child(2) { opacity: .7; }
.prologue-dots span:nth-child(3) { opacity: .45; }
/* 1行ずつ（.pl）。ほかの部品と同じ「下から少し上がってふわっと」で、上から順に出る（2026-11-02：手紙ふう・タイピングふうはやめた） */
.pl { display: block; }
/* 「あの頃のインターネット」→ 平成版 */
.to-heisei { color: inherit; text-decoration: underline; text-decoration-style: dotted; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.to-heisei:hover { text-decoration-style: solid; }

/* ---- スクロールで出てくる動き（運動会サイトと同じ：下から少し上がって、ふわっと） ----
   js/app.js が .anim-item を付け、画面に入ったら .anim-in。transform を使っている部品とぶつからないよう translate / scale を使う */
.anim-item { opacity: 0; translate: 0 22px; scale: .97;
  transition: opacity .55s ease var(--delay, 0ms), translate .6s cubic-bezier(.22, 1.1, .34, 1) var(--delay, 0ms), scale .6s cubic-bezier(.22, 1.1, .34, 1) var(--delay, 0ms); }
.anim-item.anim-in { opacity: 1; translate: 0 0; scale: 1; }
@media (prefers-reduced-motion: reduce) { .anim-item { opacity: 1 !important; translate: none !important; scale: none !important; transition: none !important; } }
/* キャストのせりふ（名札つきの吹き出し） */
.serif { margin: 14px auto; max-width: 780px; width: fit-content; display: flex; align-items: center; gap: 10px; }
.serif-tag { flex: none; background: var(--band); color: var(--white); font-size: 13px; font-weight: 800; padding: 3px 14px; border-radius: 999px; transition: background-color .45s; }
.serif-text { flex: 1; min-width: 0; background: var(--pink-bg); border-radius: 18px; padding: 10px 18px; font-size: clamp(14px, 3.7vw, 16px); text-align: left; transition: background-color .45s; }
@media (max-width: 480px) { .serif { flex-direction: column; align-items: flex-start; gap: 6px; } .serif-text { width: 100%; } }
/* せりふの左のドット絵（平成版のメイド・執事。名札の代わり・2026-11-02） */
.serif-who { flex: none; display: flex; gap: 4px; }
.serif-who img { width: 40px; height: 40px; image-rendering: pixelated; background: var(--white); border: 2px solid var(--band); border-radius: 6px; transition: border-color .45s; }
/* ドット絵のコマ送り（assets/px/*-anim.svg に ふつう・口あけ・まばたき・お辞儀（浅い・深い）の5コマを横に並べてある）
   お辞儀 → 口をぱくぱく → 少し休む → まばたき。執事は半拍ずらして、2人でかけ合うように見せる */
.px-anim { display: block; width: 40px; height: 40px; box-sizing: border-box; background: var(--white) no-repeat 0 0 / 500% 100%; image-rendering: pixelated; border: 2px solid var(--band); border-radius: 6px; transition: border-color .45s; animation: px-talk 5s step-end infinite; }
.px-maid { background-image: url(../assets/px/maid-anim.svg?v=c4ed900a); }
.px-butler { background-image: url(../assets/px/butler-anim.svg?v=9af6f03c); animation-delay: -2.5s; }
@keyframes px-talk {
  0% { background-position-x: 0; } 4% { background-position-x: 75%; } 8% { background-position-x: 100%; }
  20% { background-position-x: 75%; } 24% { background-position-x: 0; }
  32% { background-position-x: 25%; } 36% { background-position-x: 0; } 40% { background-position-x: 25%; }
  44% { background-position-x: 0; } 48% { background-position-x: 25%; } 52% { background-position-x: 0; }
  80% { background-position-x: 50%; } 84% { background-position-x: 0; } 100% { background-position-x: 0; }
}
@media (prefers-reduced-motion: reduce) { .px-anim { animation: none; } }
.serif-text { position: relative; }
.serif-text::before { content: ''; position: absolute; left: -9px; top: 50%; margin-top: -7px; border: 7px solid transparent; border-right-color: var(--pink-bg); border-left: 0; transition: border-color .45s; }
@media (max-width: 480px) { .serif-text::before { left: 22px; top: -9px; margin-top: 0; border: 7px solid transparent; border-bottom-color: var(--pink-bg); border-top: 0; } }
.prologue-voice { margin-top: 22px; }
.prologue-sign { margin: 22px 0 0; font-size: 14px; letter-spacing: .2em; color: var(--on-page); }
/* 「文字」は平成版のドットの字、「声」は太めの今どきの字（2026-11-02） */
.f-moji { font-family: 'DotGothic16', 'LINE Seed JP', sans-serif; font-weight: 400; font-size: 1.12em; letter-spacing: .04em; }
.f-koe { font-family: 'M PLUS Rounded 1c', 'LINE Seed JP', sans-serif; font-weight: 800; font-size: 1.3em; line-height: 1; }
/* 白い札も出てくる動きに入れる。役の色の切りかえ（背景・線・影）のふわっとした変化は残す */
.card.anim-item { transition: opacity .55s ease var(--delay, 0ms), translate .6s cubic-bezier(.22, 1.1, .34, 1) var(--delay, 0ms), scale .6s cubic-bezier(.22, 1.1, .34, 1) var(--delay, 0ms), background-color .45s, border-color .45s, color .45s, box-shadow .45s; }
/* 遊びの流れ（2026-11-02 見直し）：薄い線の真ん中に小見出し＋4つの手順 */
.flow-h { margin: 26px 0 14px; display: flex; align-items: center; gap: 12px; color: var(--band); font-size: 14px; font-weight: 800; letter-spacing: .15em; transition: color .45s; }
.flow-h::before, .flow-h::after { content: ''; flex: 1; height: 1.5px; background: #F0DDE6; }
.steps.is-4 { grid-template-columns: 1fr 28px 1fr 28px 1fr 28px 1fr; gap: 4px; }
.steps.is-4 .step { padding: 14px 12px 16px; }
.steps.is-4 .step-head { font-size: 17px; }
.steps.is-4 .step-no { width: 30px; height: 30px; font-size: 15px; margin-right: 6px; }
.step-small { margin: 8px 0 0; color: var(--sub); font-weight: 400; font-size: 12px; }
@media (max-width: 860px) { .steps.is-4 { grid-template-columns: 1fr; } .steps.is-4 .step-arrow svg { transform: rotate(90deg); } }
.step-one { margin: 6px 0 0; color: var(--band); font-weight: 800; font-size: 14px; transition: color .45s; } /* 1人1票！ */
/* ①の目印の見本・②のアプリの画面・①〜③のループ（2026-11-02） */
.step-marks { margin: 10px 0 0; display: flex; justify-content: center; gap: 8px; }
.step-marks span { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 46%; max-width: 110px; }
.step-marks img { width: 100%; height: auto; }
.step-marks b { font-size: 12px; } .step-marks .is-maid { color: var(--maid); } .step-marks .is-butler { color: var(--navy); }
.step-shot { margin: 10px 0 0; text-align: right; }
.step-shot img { width: 100%; max-width: 260px; height: auto; border-radius: 10px; border: 1.5px solid var(--ink); display: block; margin: 0 auto; aspect-ratio: 600 / 330; object-fit: cover; object-position: 50% 100%; }
.step-shot small { display: block; margin-top: 4px; font-size: 10px; font-weight: 400; color: var(--sub); }
/* ③から①へもどる線（PC は箱の下を通る矢印、スマホは一言） */
/* ①〜③をくり返す矢印（PC だけ）。③の下から線が出て、①の下へ戻って上向きの矢印。札は線のまん中に載せる（2026-11-02 作り直し）
   --s は手順1つぶんの幅（.steps.is-4 の列：1fr 28px 1fr 28px 1fr 28px 1fr・間 4px → 矢印と間で 108px） */
.steps-loop { --s: calc((100% - 108px) / 4); position: relative; margin: 0; height: 50px; color: var(--band); font-weight: 800; transition: color .45s; }
.loop-line { position: absolute; top: 0; left: calc(var(--s) / 2); width: calc(var(--s) * 2 + 72px); height: 24px; border: 3px solid currentColor; border-top: 0; border-radius: 0 0 16px 16px; }
.loop-line::before { content: ''; position: absolute; left: -9.5px; top: -9px; border: 8px solid transparent; border-top: 0; border-bottom: 11px solid currentColor; } /* ①へ戻る矢印 */
.loop-line::after { content: ''; position: absolute; right: -7.5px; top: -3px; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }  /* ③の下の出どころ */
.loop-label { position: absolute; top: 24px; left: calc(var(--s) * 1.5 + 36px); translate: -50% -50%; display: inline-flex; align-items: center; gap: 6px; padding: 4px 16px; border-radius: 999px; background: var(--band); color: var(--white); font-size: 14px; white-space: nowrap; box-shadow: 0 0 0 5px var(--white); transition: background-color .45s; }
.loop-icon { display: inline-block; font-size: 15px; line-height: 1; animation: loop-spin 2.6s ease-in-out infinite; }
@keyframes loop-spin { 0%, 55% { rotate: 0deg; } 100% { rotate: -360deg; } }  /* ときどき1回まわる */
/* 出てくるとき：③から①へ線が伸びる → 札がぽんと出る（js/app.js の reveal が .anim-in を付ける） */
.steps-loop.anim-item .loop-line { clip-path: inset(-14px -14px -14px 100%); transition: clip-path .7s cubic-bezier(.6, 0, .3, 1) calc(var(--delay, 0ms) + .15s); }
.steps-loop.anim-in .loop-line { clip-path: inset(-14px -14px -14px -14px); }
.steps-loop.anim-item .loop-label { opacity: 0; scale: .6; transition: opacity .2s ease calc(var(--delay, 0ms) + .8s), scale .45s cubic-bezier(.3, 1.6, .5, 1) calc(var(--delay, 0ms) + .8s), background-color .45s; }
.steps-loop.anim-in .loop-label { opacity: 1; scale: 1; }
@media (prefers-reduced-motion: reduce) { .loop-icon { animation: none; } .steps-loop .loop-line { clip-path: none !important; } .steps-loop .loop-label { opacity: 1 !important; scale: none !important; } }
.step-hop { margin: 12px 0 0; display: flex; align-items: center; justify-content: center; gap: 6px; }
.step-hop img { width: 28%; max-width: 60px; height: auto; }
.step-hop i { width: 0; height: 0; border: 5px solid transparent; border-left: 8px solid var(--band); border-right: 0; opacity: .7; }
.step-hop + .step-small { text-align: center; }
.step-up { text-align: center; }
/* スマホではループの表示はしない（2026-11-02 運営。PC だけ箱の下の線と札） */
@media (max-width: 860px) { .steps-loop { display: none; } }

/* 「— 運営より —」の下：BackStage のロゴ、その下にメイドカフェと執事カフェを横並び（コラボではないので × は付けない）。
   執事版の暗い地でも読めるよう、生成りの小さな札に載せる（2026-11-02） */
.prologue-logos { margin: 14px 0 0; }
.plogo { display: inline-flex; flex-direction: column; align-items: center; gap: 14px; padding: 12px 20px 10px; background: var(--cream); border-radius: 22px; }
.plogo-bs { width: 96px; height: auto; }
.plogo-row { display: flex; align-items: center; gap: 14px; }
.plogo-ev { width: 112px; height: auto; }
@media (max-width: 400px) { .plogo { padding: 10px 16px 8px; } .plogo-bs { width: 84px; } .plogo-ev { width: 100px; } .plogo-row { gap: 10px; } }

/* スマホ：左右に余白（地の文が画面の端まで来ない）・段落の間と行の間を広く（2026-11-02 運営：詰まりすぎ） */
@media (max-width: 600px) {
  .prologue { padding: 40px 18px 8px; }
  .prologue-h, .prologue .catch { margin-bottom: 36px; }
  .prologue-p, .prologue-sub { line-height: 2.1; }
  .prologue-voice, .prologue-sub, .prologue-big { margin-top: 36px; }
  .prologue-big { font-size: clamp(17px, 4.6vw, 22px); line-height: 1.6; }
  .prologue-sign { margin-top: 28px; }
  .prologue-note { margin-top: 44px; }
  .pl-comma { display: none; } /* 「本企画は」で改行するので、読点は要らない */
}

/* ---- 上のメニューの帯（2026-11-02）：「ルール・遊び方」まで来たら上から出る。左＝メイドと執事のロゴ（先頭へ）
   PC（1100px 以上）は帯を横いっぱいにして、メニューを帯の中に並べる。それより狭いと ☰ で右から出るメニュー（運動会サイトと同じ作り） ---- */
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 60; background: var(--cream); border-bottom: 3px solid var(--band); padding-top: env(safe-area-inset-top, 0px); transform: translateY(-110%); transition: transform .25s ease, border-color .45s; }
.topbar.is-shown { transform: none; }
.topbar-in { height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.topbar-home { display: flex; align-items: center; gap: 10px; flex: none; }
.topbar-logo { display: block; height: 36px; width: auto; }
.topnav { display: none; }
.menu-btn { flex: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--band); display: grid; place-content: center; gap: 5px; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: background-color .45s; }
.menu-btn span { display: block; width: 20px; height: 2.5px; border-radius: 2px; background: var(--white); transition: transform .2s, opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.menu-btn:focus-visible, .drawer a:focus-visible, .topnav a:focus-visible, .topbar-home:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
/* PC：帯の中にメニュー */
@media (min-width: 1100px) {
  .topbar-in { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); }
  .topnav { display: block; }
  .topnav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
  .topnav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 999px; color: var(--ink); font-weight: 800; font-size: 14px; text-decoration: none; white-space: nowrap; transition: background-color .15s, color .15s; }
  .topnav a:hover { background: var(--band); color: var(--white); }
  .menu-btn, .drawer { display: none !important; }
}
/* 狭い画面：右から出るメニュー（暗い幕＋パネル。帯と ☰ は上に残る） */
.drawer { position: fixed; inset: 0; z-index: 55; }
.drawer[hidden] { display: none; }
.drawer-overlay { position: absolute; inset: 0; background: rgba(20, 18, 24, .55); animation: drawer-fade .28s ease both; }
.drawer-panel { position: absolute; top: 0; right: 0; height: 100dvh; width: min(340px, 84vw); overflow-y: auto; overscroll-behavior: contain; background: var(--cream); border-left: 4px solid var(--band); box-shadow: -8px 0 24px rgba(20, 18, 24, .3); padding: calc(80px + env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) calc(30px + env(safe-area-inset-bottom, 0px)) 20px; animation: drawer-in .28s ease both; }
@keyframes drawer-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes drawer-fade { from { opacity: 0; } }
.drawer ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.drawer ol a { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 16px; border: 3px solid var(--band); border-radius: 14px; background: var(--white); box-shadow: 0 4px 0 var(--card-shadow); color: var(--ink); font-weight: 800; text-decoration: none; transition: transform .15s, background-color .15s; }
.drawer ol a:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--card-shadow); }
.menu-no { color: var(--band); font-size: 12px; letter-spacing: .05em; }
.menu-sub { margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13px; }
.menu-sub a { color: var(--ink); min-height: 36px; display: inline-flex; align-items: center; }
body.nav-open { overflow: hidden; }
main > section { scroll-margin-top: 76px; }  /* メニューから飛んだとき、見出しが帯に隠れない */
@media (prefers-reduced-motion: reduce) { .topbar { transition: none; } .drawer-panel, .drawer-overlay { animation: none; } }
