/* Beat Master（外部の読み込みなし） */
:root {
  color-scheme: light;
  --sys: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Noto Sans CJK JP", system-ui, sans-serif;
  --rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Hiragino Sans", system-ui, sans-serif;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);

  --ink: #0F2A4A;                  /* 文字＝紺 */
  --ink-2: rgba(var(--ink-rgb), .62);
  --ink-3: rgba(var(--ink-rgb), .22);
  --glue: rgba(var(--ink-rgb), .4);    /* 接着剤＝グレーに沈む */
  --navy-1: #0E2A52;
  --navy-2: #1A4A86;
  --gold-1: #FFE08A;               /* ビートの光＝暖かい金色〜オレンジ */
  --gold-2: #FFC23D;
  --gold-3: #FF9A2E;
  --amber: #9A4E00;
  --beat-bg: linear-gradient(160deg, #FFE9A6 0%, #FFC23D 52%, #FF9A2E 100%);
  --beat-glow: 0 0 0 4px rgba(var(--acc-rgb), .24), 0 10px 26px -6px rgba(var(--acc2-rgb), .72);
  --shadow: 0 18px 36px -22px rgba(var(--ink-rgb), .5);
  --ink-rgb: 15, 42, 74;
  --acc-rgb: 255, 186, 60;         /* ビートの光 */
  --acc2-rgb: 255, 140, 30;        /* 光の影 */
  --beat-idle: rgba(255, 210, 110, .28);
}

/* ---------- 色：琥珀の空（固定。html の data-theme="kohaku" data-ink）----------
   文字とボタンは墨（ほぼ黒）、色はビートの琥珀1色だけ */
:root[data-ink] {
  --ink: #1D1D1F;
  --ink-rgb: 29, 29, 31;
  --navy-1: #1D1D1F;
  --navy-2: #48484A;
  --gold-1: #FFD98A;
  --gold-2: #FFB224;
  --gold-3: #F29500;
  --amber: #9C5A00;
  --acc-rgb: 255, 178, 36;
  --acc2-rgb: 242, 149, 0;
  --beat-bg: #FFB224;
  --beat-glow: 0 0 0 3px rgba(255, 178, 36, .22), 0 8px 18px -8px rgba(242, 149, 0, .65);
  --beat-idle: rgba(255, 255, 255, .92);
  --shadow: 0 16px 32px -24px rgba(29, 29, 31, .4);
}

/* 琥珀の空：色の濃い空・右上の太陽のにじみ・白い雲・その上の半透明のガラスを琥珀色で。
   上が濃い琥珀 → 蜂蜜色 → 下はクリーム。文字とボタンは墨。ガラスは背景の色が透けて立体に見える */
:root[data-theme="kohaku"] { background: #E89B32; }
:root[data-theme="kohaku"] body {
  background-color: #E89B32;
  background-image:
    radial-gradient(80% 45% at 88% -5%, rgba(255, 250, 236, .78), rgba(255, 250, 236, 0) 70%),
    linear-gradient(180deg, #E89B32 0%, #F2B95E 34%, #F8D79E 68%, #FDF0DA 100%);
}
:root[data-theme="kohaku"] .sky::before, :root[data-theme="kohaku"] .sun { display: none; }
/* スマホでは、いちばん上を画面上の帯（theme-color）と同じ色にそろえる。帯と空の間に切れ目が見えないように */
:root[data-theme="kohaku"] .sky::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: calc(64px + env(safe-area-inset-top));
  background: linear-gradient(180deg, #E89B32, rgba(232, 155, 50, 0));
}
:root[data-theme="kohaku"] .cloud { background: #fff; }
:root[data-theme="kohaku"] .c1 { opacity: .55; }
:root[data-theme="kohaku"] .c2 { opacity: .4; }
:root[data-theme="kohaku"] .c3 { opacity: .7; }
:root[data-theme="kohaku"] .c4 { opacity: .55; }
:root[data-theme="kohaku"] .glass, :root[data-theme="kohaku"] .stair, :root[data-theme="kohaku"] .slist-box {
  background: linear-gradient(160deg, rgba(255, 255, 255, .62), rgba(255, 255, 255, .3));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 0 0 1px rgba(255, 255, 255, .42), 0 18px 36px -22px rgba(120, 60, 0, .55);
}
:root[data-theme="kohaku"] .stair.is-now, :root[data-theme="kohaku"] .core { background: rgba(255, 255, 255, .94); }
:root[data-theme="kohaku"] .tm-cell { background: rgba(255, 255, 255, .5); }
:root[data-theme="kohaku"] .seg { background: rgba(120, 60, 0, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45); }
:root[data-theme="kohaku"] .sheet-panel { background: linear-gradient(180deg, rgba(255, 253, 248, .96), rgba(255, 248, 236, .94)); }
:root[data-theme="kohaku"] .stair.is-later { opacity: .72; }
/* 練習のカードは厚めの白いガラス（中身を読む所。琥珀のビートが沈まないように） */
:root[data-theme="kohaku"] .card { background: linear-gradient(160deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .76)); }
:root[data-theme="kohaku"] .slist-box { background: linear-gradient(160deg, rgba(255, 255, 255, .88), rgba(255, 255, 255, .74)); }
/* できた：空の上に直接出るので、チェックは墨の丸に琥珀 */
:root[data-theme="kohaku"] .done-check { color: #FFB224; background: #1D1D1F; box-shadow: 0 0 0 10px rgba(255, 255, 255, .35), 0 20px 40px -12px rgba(80, 40, 0, .55); }

/* ロゴ・大きなボタンも墨。金のグラデーションと強い光はやめる */
:root[data-ink] .logo-word { background: linear-gradient(100deg, #1D1D1F 0%, #3A3A3C 100%); -webkit-background-clip: text; background-clip: text; }
:root[data-ink] #lgBg stop:first-child { stop-color: #3A3A3C; }
:root[data-ink] #lgBg stop:last-child { stop-color: #1D1D1F; }
:root[data-ink] #lgSun stop:first-child { stop-color: #FFB224; }
:root[data-ink] .continue { background: #1D1D1F; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 20px 36px -20px rgba(0, 0, 0, .65); }
:root[data-ink] .btn.primary { background: #1D1D1F; box-shadow: 0 14px 28px -18px rgba(0, 0, 0, .7); }
:root[data-ink] .cont-ic { box-shadow: none; }
:root[data-ink] .stair.is-now { animation: none; box-shadow: inset 0 1px 0 #fff, inset 0 0 0 2px #FFB224, 0 14px 28px -18px rgba(242, 149, 0, .6); }

:root[data-ink] .tag-v { background: #1D1D1F; }
:root[data-ink] .hl { background: linear-gradient(transparent 60%, rgba(255, 178, 36, .5) 60%); }

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { height: 100%; background: #F7F5EF; }
/* 空：上は淡い青 → 中ほどはほぼ白 → 下はピーチ／アンバーの光。青から暖色へは白を経由（紫を通らない） */
body {
  height: 100%;
  overflow: hidden;
  font-family: var(--sys);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  background-color: #F7F5EF;
  background-image: linear-gradient(180deg, #A8D1F3 0%, #C4E0F7 15%, #E4F0FA 31%, #F9FAF8 46%, #FFF6E8 60%, #FFE8CA 77%, #FFD4A2 100%);
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--navy-2); outline-offset: 3px; }
svg { display: block; }
em { font-style: normal; }
/* 文の中のビートに引く金色のマーカー */
.hl { background: linear-gradient(transparent 58%, rgba(var(--acc-rgb), .58) 58%); padding: 0 .08em; }

/* ---------- 空（太陽の滲みと雲。窓いっぱい） ---------- */
.sky { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.sky::before {
  content: "";
  position: absolute;
  left: -20%;
  right: -20%;
  bottom: -8%;
  height: 48%;
  background: radial-gradient(60% 72% at 62% 100%, rgba(255, 196, 128, .55), rgba(255, 196, 128, 0) 72%);
}
.sun {
  position: absolute;
  right: max(-70px, calc(50% - 380px));
  bottom: -200px;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 253, 244, 1) 0%, rgba(255, 241, 208, .92) 13%, rgba(255, 212, 150, .55) 34%, rgba(255, 192, 120, .22) 54%, rgba(255, 192, 120, 0) 72%);
  animation: sun-breathe 9s ease-in-out infinite alternate;
}
@keyframes sun-breathe { to { transform: scale(1.06); opacity: .92; } }
.cloud {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  filter: blur(28px);
  animation: drift 42s ease-in-out infinite alternate;
}
@keyframes drift { to { translate: 40px 0; } }
.c1 { width: 300px; height: 110px; left: calc(50% - 310px); top: 8%; opacity: .75; }
.c2 { width: 240px; height: 88px; left: calc(50% + 40px); top: 26%; opacity: .55; animation-duration: 50s; animation-direction: alternate-reverse; }
.c3 { width: 380px; height: 130px; left: calc(50% - 340px); top: 57%; opacity: .5; background: #FFF8EE; animation-duration: 56s; }
.c4 { width: 260px; height: 80px; left: calc(50% + 30px); top: 71%; opacity: .45; background: #FFF4E2; animation-duration: 46s; }

/* ---------- 列（スマホ幅。PC では真ん中に最大 430px） ---------- */
.device { position: relative; z-index: 1; height: 100%; max-width: 430px; margin: 0 auto; overflow: hidden; isolation: isolate; }

/* ガラスの面（暖かい空に合わせて少しだけ白を濃く） */
.glass {
  background: linear-gradient(160deg, rgba(255, 255, 255, .6), rgba(255, 255, 255, .24));
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  backdrop-filter: blur(24px) saturate(170%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .92),
    inset 0 0 0 1px rgba(255, 255, 255, .45),
    var(--shadow);
}

/* 画面は同じ場所に重ね、横に少しずらして切り替える */
.view {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding:
    env(safe-area-inset-top)
    max(20px, env(safe-area-inset-right))
    calc(14px + env(safe-area-inset-bottom))
    max(20px, env(safe-area-inset-left));
  transition: opacity .32s var(--ease), transform .45s var(--ease), visibility 0s;
}
.view:not(.on) {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(32px);
  transition: opacity .2s var(--ease), transform .45s var(--ease), visibility 0s .45s;
}
.view.behind:not(.on) { transform: translateX(-32px); }

/* 押すと少し縮む */
.press { transition: transform .15s var(--ease); }
.press:active { transform: scale(.96); }

/* ---------- 小さな部品 ---------- */
.back {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.back svg { width: 20px; height: 20px; }
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 44px;
  padding: 0 16px;
  border-radius: 22px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.pill svg { width: 18px; height: 18px; }

/* iOS の切り替えスイッチの形 */
.seg {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  padding: 3px;
  border-radius: 999px;
  background: rgba(var(--ink-rgb), .07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.seg-thumb {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc((100% - 6px) / var(--n));
  border-radius: 999px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 2px 8px -2px rgba(var(--ink-rgb), .35);
  transform: translateX(calc(var(--i) * 100%));
  transition: transform .35s var(--ease);
}
.seg button {
  position: relative;
  z-index: 1;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--ink-2);
  transition: color .2s;
}
.seg button[aria-pressed="true"] { color: var(--ink); }

/* 音のボタン（小）。鳴っている間は波形が動く */
.mini-ic {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--navy-2);
  background: rgba(255, 255, 255, .85);
  box-shadow: inset 0 0 0 1px rgba(var(--ink-rgb), .08), 0 4px 10px -6px rgba(var(--ink-rgb), .5);
}
.mini-ic svg { width: 16px; height: 16px; }
.mini-ic .eq { display: none; }
.is-playing .mini-ic svg { display: none; }
.is-playing .mini-ic .eq { display: flex; }
.eq { display: flex; align-items: center; gap: 2px; height: 16px; }
.eq i { width: 3px; height: 100%; border-radius: 2px; background: currentColor; animation: eq .7s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.25s; }
.eq i:nth-child(3) { animation-delay: -.5s; }
.eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }

.tag-v, .tag-a, .tag-k, .tag-e {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 20px;
  padding: 0 7px;
  border-radius: 7px;
  font-size: 10.5px;
  font-weight: 800;
  white-space: nowrap;
  vertical-align: middle;
}
.tag-v { color: #fff; background: var(--navy-2); }
.tag-a { color: var(--navy-2); background: rgba(var(--ink-rgb), .1); }
.tag-a svg { width: 11px; height: 11px; }
.tag-k { color: var(--ink-2); background: rgba(var(--ink-rgb), .08); }
.tag-e { color: var(--amber); background: rgba(var(--acc-rgb), .25); }

/* ---------- ホーム ---------- */
/* ホームは画面に収まらない時だけスクロール（小さい iPhone で LINE の案内が出た時、下のカードに届くように） */
.view-home { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.view-home::-webkit-scrollbar { display: none; }
.home-head { position: relative; flex: none; display: flex; justify-content: center; padding-top: 34px; }
.logo { display: inline-flex; align-items: center; gap: .34em; font-size: clamp(26px, 8.4vw, 34px); }
.logo-mark { flex: none; width: 1.6em; height: 1.6em; filter: drop-shadow(0 10px 16px rgba(var(--ink-rgb), .3)); }
.logo-word {
  font-family: var(--rounded);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.015em;
  white-space: nowrap;
  background: linear-gradient(100deg, #0B2350 0%, #163F78 60%, #24589A 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .6)) drop-shadow(0 6px 14px rgba(var(--ink-rgb), .18));
}
/* ロゴの棒（ビート）が、開いた瞬間に順に跳ねる */
.logo-beat { transform-box: fill-box; transform-origin: 50% 100%; }
.view-home.intro .logo-beat { animation: logo-beat .7s var(--spring) both; animation-delay: calc(.2s + var(--j) * .14s); }
@keyframes logo-beat { from { transform: scaleY(.25); } }

/* 4つの型のメーター（ロゴの下。文字は小さな見出しと数だけ。押すと中身） */
.tmeter {
  flex: none;
  margin-top: 18px;
  padding: 10px 12px 12px;
  border-radius: 22px;
  text-align: left;
  width: 100%;
}
.tm-head { display: flex; justify-content: space-between; align-items: center; padding: 0 4px 8px; font-size: 11.5px; font-weight: 800; color: var(--ink-2); }
.tm-go { width: 14px; height: 14px; color: var(--ink-3); }
.tm-cells { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.tm-cell { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 8px 0 6px; border-radius: 14px; background: rgba(255, 255, 255, .5); }
.tm-cell .pat .pb { background: var(--ink-3); }
.tm-cell .pat .pg { background: var(--ink-3); }
.tm-bar { width: 60%; height: 4px; border-radius: 2px; background: rgba(var(--ink-rgb), .1); overflow: hidden; }
.tm-bar i { display: block; height: 100%; width: calc(var(--p) * 100%); border-radius: 2px; background: var(--gold-2); transition: width .6s var(--ease); }
.tm-cell.is-done { background: rgba(255, 255, 255, .9); box-shadow: inset 0 0 0 1.5px rgba(var(--acc-rgb), .7); }
.tm-cell.is-done .pat .pb { background: var(--beat-bg); box-shadow: 0 0 8px rgba(var(--acc2-rgb), .5); }
.tm-cell.is-done .pat .pg { background: var(--glue); }
.tm-check { display: none; width: 14px; height: 14px; margin-top: -5px; color: var(--amber); }
.tm-cell.is-done .tm-bar { display: none; }
.tm-cell.is-done .tm-check { display: block; }

/* 点の型（● ビート ／ ・ 接着剤）。どの画面でも同じ部品 */
.pat { display: inline-flex; align-items: center; gap: 5px; flex: none; }
.pat .pb { width: 12px; height: 12px; border-radius: 50%; background: var(--gold-2); }
.pat .pg { width: 5px; height: 5px; border-radius: 50%; background: var(--glue); }
.pat.lg { gap: 9px; }
.pat.lg .pb { width: 24px; height: 24px; }
.pat.lg .pg { width: 7px; height: 7px; }
.pat.sm { gap: 3px; }
.pat.sm .pb { width: 8px; height: 8px; }
.pat.sm .pg { width: 3.5px; height: 3.5px; }
.pat.md { gap: 4px; }
.pat.md .pb { width: 10px; height: 10px; }
.pat.md .pg { width: 4px; height: 4px; }
.pat.glow .pb { background: var(--beat-bg); box-shadow: 0 0 10px rgba(var(--acc2-rgb), .55); }

/* 階段：下から 2ビート → 5ビート。右上に登っていく */
.stairs { flex: none; display: flex; flex-direction: column-reverse; gap: 12px; margin-block: auto; padding-block: 16px; }
.stair {
  position: relative;
  width: 70%;
  margin-left: calc(var(--k) * 10%);
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 12px 16px;
  border-radius: 22px;
  text-align: left;
  background: linear-gradient(160deg, rgba(255, 255, 255, .62), rgba(255, 255, 255, .26));
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .92),
    inset 0 0 0 1px rgba(255, 255, 255, .45),
    0 5px 0 rgba(var(--ink-rgb), .07),
    0 18px 30px -20px rgba(var(--ink-rgb), .55);
  transition: transform .15s var(--ease), opacity .3s, box-shadow .3s;
}
.stair:active { transform: scale(.96); }
.stair-main { flex: 1; min-width: 0; }
.stair-name { display: flex; align-items: baseline; min-width: 0; font-size: 14px; font-weight: 700; white-space: nowrap; }
.stair-name b { font-family: var(--rounded); font-size: 25px; font-weight: 800; line-height: 1; margin-right: 2px; }
.stair-meta { min-width: 0; margin-left: 8px; font-size: 11px; font-weight: 700; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; }
.motif { display: flex; align-items: center; gap: 6px; height: 12px; margin-top: 8px; }
.motif .bd { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-3); }
.motif .gd { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-3); }
.stair-state { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.st-done {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--beat-bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 6px 14px -6px rgba(var(--acc2-rgb), .7);
}
.st-done svg { width: 18px; height: 18px; }
.st-now {
  padding: 4px 9px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  color: var(--ink);
  background: var(--beat-bg);
  box-shadow: 0 4px 12px -4px rgba(var(--acc2-rgb), .7);
}
.st-count { font-size: 12px; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
/* 終えた段 */
.stair.is-done .bd { background: var(--navy-2); }
.stair.is-done .gd { background: rgba(var(--ink-rgb), .4); }
/* 今いる段：光る。ビートの丸が順に鳴る */
.stair.is-now {
  background: linear-gradient(160deg, rgba(255, 255, 255, .92), rgba(255, 244, 214, .62));
  box-shadow:
    inset 0 1px 0 #fff,
    inset 0 0 0 1.5px rgba(var(--acc-rgb), .9),
    0 0 0 6px rgba(var(--acc-rgb), .16),
    0 5px 0 rgba(var(--acc2-rgb), .14),
    0 20px 36px -14px rgba(var(--acc2-rgb), .6);
  animation: now-glow 2.6s ease-in-out infinite;
}
@keyframes now-glow {
  50% {
    box-shadow:
      inset 0 1px 0 #fff,
      inset 0 0 0 1.5px rgba(var(--acc-rgb), 1),
      0 0 0 11px rgba(var(--acc-rgb), .1),
      0 5px 0 rgba(var(--acc2-rgb), .14),
      0 22px 44px -12px rgba(var(--acc2-rgb), .78);
  }
}
.stair.is-now .bd { background: var(--gold-2); animation: bd-beat var(--cyc) linear infinite; animation-delay: calc(var(--j) * .5s); }
.stair.is-now .gd { background: rgba(var(--ink-rgb), .28); }
@keyframes bd-beat {
  0% { transform: scale(1.6); background: var(--gold-3); box-shadow: 0 0 10px 2px rgba(var(--acc2-rgb), .85); }
  22%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(var(--acc2-rgb), 0); }
}
/* まだの段：少し沈む */
.stair.is-later {
  opacity: .6;
  transform: translateY(3px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .7),
    inset 0 0 0 1px rgba(255, 255, 255, .35),
    0 8px 18px -16px rgba(var(--ink-rgb), .4);
}
.stair.is-later:active { transform: translateY(3px) scale(.96); }

.home-bottom { flex: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding-bottom: 4px; }
.continue {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 74px;
  padding: 12px 18px 12px 14px;
  border-radius: 26px;
  text-align: left;
  color: #fff;
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(255, 214, 140, .32), rgba(255, 214, 140, 0) 55%),
    linear-gradient(135deg, var(--navy-1) 0%, var(--navy-2) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .28),
    inset 0 0 0 1px rgba(255, 255, 255, .1),
    0 22px 40px -18px rgba(var(--ink-rgb), .7);
  transition: transform .15s var(--ease);
}
.continue:active { transform: scale(.97); }
.cont-ic {
  flex: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--beat-bg);
  box-shadow: 0 0 20px rgba(var(--acc-rgb), .55), inset 0 1px 0 rgba(255, 255, 255, .7);
}
.cont-ic svg { width: 22px; height: 22px; margin-left: 3px; }
.cont-t { flex: 1; min-width: 0; }
.cont-t b { display: block; font-size: 21px; font-weight: 800; letter-spacing: .04em; }
.cont-t small { display: block; margin-top: 3px; font-size: 12px; color: rgba(255, 255, 255, .75); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cont-go { flex: none; width: 18px; height: 18px; opacity: .7; }

.dcards { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.dcard {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 62px;
  padding: 10px 12px;
  border-radius: 20px;
  text-align: left;
}
.dcard-ic {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--navy-2);
  background: rgba(255, 255, 255, .78);
  box-shadow: inset 0 0 0 1px rgba(var(--ink-rgb), .06);
}
.dcard-ic svg { width: 22px; height: 22px; }
.dcard-t { min-width: 0; }
.dcard-t b { display: block; font-size: 14px; font-weight: 800; white-space: nowrap; }
.dcard-t small { display: block; margin-top: 2px; font-size: 11px; font-weight: 600; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 開いた瞬間：下から順に浮かび上がる */
.view-home.intro .anim { animation: pop-in .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes pop-in { from { opacity: 0; transform: translateY(14px) scale(.97); } }

/* ---------- 練習：上のバー ---------- */
.top {
  flex: none;
  height: 60px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}
.top-left { justify-self: start; display: flex; align-items: center; gap: 8px; }
.top .pill { padding: 0 12px; }
.top-mid { text-align: center; line-height: 1.2; white-space: nowrap; }
.top-mid b { display: block; font-family: var(--rounded); font-size: 17px; font-weight: 800; }
.top-mid span { font-size: 12px; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.top-mid .tag-k { height: 16px; margin-left: 2px; font-size: 10px; }
.dots { justify-self: end; display: flex; align-items: center; gap: 6px; padding-right: 2px; }
.dots i {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: var(--ink-3);
  transition: width .4s var(--ease), background-color .3s, box-shadow .3s;
}
.dots i.past { background: var(--navy-2); }
.dots i.now { width: 24px; background: var(--gold-2); box-shadow: 0 0 10px rgba(var(--acc-rgb), .65); }

/* 真ん中の題（押すと文の一覧） */
.mode { justify-self: center; display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 12px 0 16px; border-radius: 22px; white-space: nowrap; transition: background-color .15s; }
.mode:active { background: rgba(255, 255, 255, .45); }
.mode b { font-family: var(--rounded); font-size: 17px; font-weight: 800; }
.mode .count { font-size: 13px; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.mode-chev { width: 16px; height: 16px; color: var(--ink-2); }
/* ステップ（押すと、もう通ったステップに戻れる） */
.steps { --n: 4; flex: none; margin: 2px 0 12px; border-radius: 20px; }
.steps .seg-thumb { border-radius: 17px; }
.steps button { height: auto; min-height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 0 1px; border-radius: 17px; }
.steps button:disabled { cursor: default; opacity: .5; }
.step-no {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--rounded);
  font-size: 11px;
  font-weight: 800;
  color: var(--ink-2);
  background: rgba(var(--ink-rgb), .1);
  transition: background-color .25s, color .25s;
}
.steps button.past .step-no { color: var(--ink); background: rgba(var(--acc-rgb), .35); }
.steps button[aria-pressed="true"] .step-no { color: var(--ink); background: var(--beat-bg); }
.step-lb { font-size: 10.5px; font-weight: 700; letter-spacing: -.02em; }

/* ---------- ステージの画面（文の一覧） ---------- */
.lt-head { flex: none; padding: 2px 4px 12px; }
.lt { font-family: var(--rounded); font-size: 34px; font-weight: 800; line-height: 1.15; letter-spacing: -.01em; }
.lt-sub { display: flex; align-items: center; gap: 10px; margin-top: 4px; font-size: 13px; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.lt-sub .motif { margin-top: 0; }
.lt-sub .motif .bd { width: 9px; height: 9px; border-radius: 50%; background: var(--gold-2); }
.sscroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; margin: 0 -20px; padding: 0 20px 28px; }
.sscroll::-webkit-scrollbar { display: none; }
.slist-box {
  padding: 2px 10px;
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, .45));
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), var(--shadow);
}

/* ---------- 練習：指示文 ---------- */
.p-head { flex: none; padding: 4px 6px 14px; text-align: center; }
.p-step { font-size: 12px; font-weight: 800; letter-spacing: .06em; color: var(--amber); }
.p-title { margin-top: 6px; font-size: clamp(19px, 5.6vw, 22px); font-weight: 800; line-height: 1.42; word-break: auto-phrase; text-wrap: balance; }
.p-title [lang="en"] { font-family: var(--rounded); }
.p-sub { margin-top: 5px; min-height: 1.5em; font-size: 14px; font-weight: 600; line-height: 1.5; color: var(--ink-2); word-break: auto-phrase; text-wrap: balance; }
.p-sub [lang="en"] { font-family: var(--rounded); font-weight: 700; }

/* ---------- 練習：真ん中のガラス ---------- */
.card {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px 16px;
  border-radius: 30px;
  overflow: hidden;
}
.swap { animation: swap-in .42s var(--ease) both; }
@keyframes swap-in { from { opacity: 0; transform: translateX(22px); } }

/* ① ビートを探す：語のチップ */
.sent { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 9px 6px; transition: gap .5s var(--ease); }
.w {
  position: relative;
  font-family: var(--rounded);
  font-size: 23px;
  font-weight: 700;
  line-height: 1;
  min-height: 48px;
  padding: 0 12px;
  border-radius: 14px;
  color: var(--ink);
  background-color: rgba(255, 255, 255, .72);
  box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px rgba(255, 255, 255, .5), 0 8px 16px -12px rgba(var(--ink-rgb), .55);
  transition: transform .4s var(--spring), font-size .5s var(--ease), padding .5s var(--ease), min-height .5s var(--ease), color .45s, background-color .45s, box-shadow .45s;
}
.w::after { content: ""; position: absolute; inset: -6px -2px; }
.w:active { transform: scale(.96); }
.w.hit {
  z-index: 1;
  background: var(--beat-bg);
  box-shadow: var(--beat-glow);
  transform: scale(1.1);
  animation: hit-pop .5s var(--spring);
}
@keyframes hit-pop { 0% { transform: scale(.92); } 60% { transform: scale(1.24); } 100% { transform: scale(1.1); } }
.w.miss { animation: shake .42s ease; }
@keyframes shake { 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(2px); } }
.w.hinted:not(.hit) { animation: hint-pulse 1.1s ease-in-out infinite; }
@keyframes hint-pulse { 50% { box-shadow: inset 0 0 0 2px rgba(var(--acc-rgb), .95), 0 0 0 7px rgba(var(--acc-rgb), .25); } }
/* 全部見つけたら：接着剤はグレーに沈んで縮む。ビートはさらに大きく */
.sent.settled { gap: 10px 3px; }
.sent.settled .w:not(.hit) {
  font-size: 16px;
  min-height: 30px;
  padding: 0 3px;
  color: var(--glue);
  background-color: rgba(255, 255, 255, 0);
  box-shadow: none;
  transition-delay: var(--d, 0ms);
}
.sent.settled .w:not(.hit) { text-decoration: underline dotted rgba(var(--ink-rgb), .28); text-decoration-thickness: 1.5px; text-underline-offset: 6px; }
.sent.settled .w.hit { font-size: 28px; }

.found { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.found i { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--ink-3); transition: background-color .3s, box-shadow .3s, transform .4s var(--spring); }
.found i.on { background: var(--gold-2); box-shadow: 0 0 10px rgba(var(--acc-rgb), .75); transform: scale(1.15); }
.chunks .ck.g { transition: opacity .3s; }
.card .mseg { flex: none; }
/* 訳ボタン（上のバーの右）と、文の下の訳 */
.ja-btn { justify-self: end; width: 44px; height: 44px; border-radius: 50%; font-size: 15px; font-weight: 800; color: var(--ink); transition: background-color .2s, color .2s, transform .15s var(--ease); }
#jaBtn.is-on { color: #fff; background: var(--navy-1); box-shadow: none; }   /* ガラスの白より強く（id で指定） */
.ja-line { margin-top: -4px; font-size: 13.5px; font-weight: 600; line-height: 1.5; text-align: center; color: var(--ink-2); }
.ja-line.show { animation: rise-in .3s var(--ease) both; }
.card .mseg button { padding: 0 18px; }
.chunks.beats-only .ck.g { opacity: .22; }
.ans-sub { display: flex; align-items: center; gap: 10px; margin-top: -4px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.found i.lit { background: var(--gold-2); box-shadow: 0 0 12px rgba(var(--acc-rgb), .85); transform: scale(1.4); transition-duration: .08s; }
/* 1 聞いて当てる：文字が出るまでは伏せ字（語の長さだけ分かる灰色の帯） */
.sent.masked .w { color: transparent; background-color: rgba(var(--ink-rgb), .09); box-shadow: none; pointer-events: none; }
.found span { margin-left: 2px; }
.found .fpat { display: inline-flex; align-items: center; gap: 0; margin: 0; }
.found .fpat i { margin: 0 4px; }
/* 接着剤の点は、答えが出るまで幅ゼロ（ビートの丸が等間隔に並ぶ） */
.found b { width: 0; height: 5px; margin: 0; border-radius: 50%; background: var(--glue); opacity: 0; transition: opacity .3s, width .4s var(--ease), margin .4s var(--ease); }
.found.settled b { width: 5px; margin: 0 3px; opacity: 1; transition-delay: var(--d, 0ms); }
.found.settled #foundN { color: var(--ink); }
.gloss { font-size: 15px; font-weight: 700; color: var(--ink-2); text-align: center; opacity: 0; transform: translateY(6px); transition: opacity .4s .5s, transform .4s .5s var(--ease); }
.gloss.show { opacity: 1; transform: none; }

/* 1行の文（ビート＝大きく・光る、接着剤＝小さく・グレー） */
.line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 6px 7px;
  font-family: var(--rounded);
  line-height: 1.25;
  text-align: center;
}
.line .b {
  font-size: 26px;
  font-weight: 800;
  padding: 1px 8px;
  border-radius: 12px;
  background: var(--beat-idle);
  transition: transform .22s var(--spring), box-shadow .12s;
}
.line .g { font-size: 16px; font-weight: 600; color: var(--glue); }
.line .b.lit { background: var(--beat-bg); box-shadow: var(--beat-glow); transform: scale(1.15); }

/* ② 手拍子 ／ ③ 潰して全文：真ん中の丸（押すと鳴る）と波紋 */
.pz { --core: 116px; position: relative; flex: 1 1 auto; min-height: 140px; width: 100%; display: grid; place-items: center; }
.pz-s { --core: 94px; min-height: 112px; }
.rps { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.rp {
  position: absolute;
  left: calc(var(--core) / -2);
  top: calc(var(--core) / -2);
  width: var(--core);
  height: var(--core);
  border-radius: 50%;
  border: 2px solid rgba(var(--acc-rgb), .85);
  box-shadow: 0 0 18px rgba(var(--acc-rgb), .5);
  pointer-events: none;
  animation: rp .95s var(--ease) forwards;
}
@keyframes rp { from { transform: scale(.96); opacity: .95; } to { transform: scale(2.4); opacity: 0; } }
.core {
  position: relative;
  z-index: 2;
  width: var(--core);
  height: var(--core);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 34% 26%, #fff 0%, rgba(255, 255, 255, .85) 60%, rgba(255, 247, 230, .78) 100%);
  box-shadow:
    inset 0 0 0 2px rgba(var(--acc-rgb), .85),
    0 0 0 9px rgba(255, 255, 255, .32),
    0 20px 36px -16px rgba(var(--acc2-rgb), .55);
  transition: transform .15s var(--ease);
}
.core::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--beat-bg);
  opacity: 0;
  transition: opacity .3s ease-out;
}
.core.flash::before { opacity: 1; transition: none; }
.core:active { transform: scale(.96); }
.core-idle, .core-live { position: relative; grid-area: 1 / 1; display: flex; flex-direction: column; align-items: center; gap: 4px; transition: opacity .2s; }
.core-idle svg { width: 32px; height: 32px; margin-left: 4px; color: var(--ink); }
.core-idle small { font-size: 12px; font-weight: 800; color: var(--ink-2); }
.core-live { opacity: 0; }
.core.is-on .core-idle { opacity: 0; }
.core.is-on .core-live { opacity: 1; }
.core-word { font-family: var(--rounded); font-size: 25px; font-weight: 800; line-height: 1; white-space: nowrap; }
.core-word.lab { font-family: var(--sys); font-size: 14px; font-weight: 800; color: var(--ink-2); }
.core-word.kana { font-family: var(--sys); font-size: 15px; color: var(--ink-2); }
.pz-s .core-word { font-size: 21px; }
.core-stop { width: 12px; height: 12px; color: var(--ink-2); }
.core .eq { display: none; height: 26px; gap: 3px; color: var(--ink); }
.core .eq i { width: 4px; }
.core.mode-eq .eq { display: flex; }
.core.mode-eq .core-word { display: none; }
.card-note { font-size: 12px; font-weight: 700; color: var(--ink-2); text-align: center; }

/* ③ 潰して全文：接着剤の塊の上にカナ */
.chunks { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 12px 6px; font-family: var(--rounded); }
.ck { display: inline-flex; flex-direction: column; align-items: center; }
.ck .bw {
  font-size: 27px;
  font-weight: 800;
  line-height: 1.2;
  padding: 1px 8px;
  border-radius: 12px;
  background: var(--beat-idle);
  transition: transform .22s var(--spring), box-shadow .12s;
}
.ck .bw.lit { background: var(--beat-bg); box-shadow: var(--beat-glow); transform: scale(1.15); }
.ck.g { position: relative; padding: 0 2px 4px; }
.ck.g::after { content: ""; position: absolute; inset: -4px -2px; }
.kana {
  display: inline-block;
  margin-bottom: 4px;
  padding: 3px 8px;
  border-radius: 10px;
  font-family: var(--sys);
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 4px 10px -6px rgba(var(--ink-rgb), .5);
  opacity: .82;
}
.gt { font-size: 14px; font-weight: 600; color: var(--glue); white-space: nowrap; border-bottom: 1px dashed rgba(var(--ink-rgb), .2); }
.ck.g.pop .kana { animation: kana-pop .34s var(--ease); }
.ck.g.pop .gt { animation: squeeze .34s var(--ease); }
@keyframes kana-pop {
  0% { transform: scale(1.18, 1.1); opacity: 1; background: #fff; box-shadow: 0 0 0 3px rgba(var(--ink-rgb), .18), 0 6px 14px -4px rgba(var(--ink-rgb), .5); }
  55% { transform: scale(.8, .9); opacity: 1; }
  100% { transform: scale(1); }
}
@keyframes squeeze { 50% { transform: scaleX(.7); } }
.chant { font-family: var(--rounded); font-size: 17px; font-weight: 700; line-height: 1.7; text-align: center; color: var(--ink-2); }
.chant .c { padding: 1px 3px; border-radius: 6px; transition: background-color .12s, color .12s; }
.chant .c.k { font-family: var(--sys); font-size: 14px; }
.chant .c.lit { color: var(--ink); background-color: rgba(var(--acc-rgb), .6); }
.chant .c.k.pop { animation: chant-pop .34s var(--ease); }
@keyframes chant-pop { 0% { color: var(--ink); background-color: rgba(var(--ink-rgb), .1); transform: scale(.86); } }
.chant .dot { opacity: .45; }

/* ④ 文字なしで聞く：ビートの数の丸だけ */
.orbs { display: flex; justify-content: center; gap: 10px; }
/* 答え合わせ：その場で文が出る（横に動かさない。少し大きくなりながら浮かぶ） */
.appear { animation: appear-in .4s var(--ease) both; }
@keyframes appear-in { from { opacity: 0; transform: scale(.94); } }
/* リスニングテストの上の枠：? の丸の時も、答え合わせの文の時も同じ高さ（一番長い文で3行＝116px）。聞くボタンが動かないように */
.card-ear .orbs { min-height: 116px; align-items: center; }
.card-ear .ear-line { min-height: 116px; align-content: center; }
.orb-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 54px; }
.orb {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .62);
  box-shadow: inset 0 0 0 2px rgba(var(--acc-rgb), .55), 0 8px 18px -12px rgba(var(--ink-rgb), .5);
  transition: transform .2s var(--spring), box-shadow .12s;
}
.orb-q { font-family: var(--rounded); font-size: 19px; font-weight: 800; color: var(--ink-3); transition: opacity .3s; }
.orb.lit { background: var(--beat-bg); box-shadow: var(--beat-glow); transform: scale(1.18); }
.orb.lit .orb-q { color: var(--ink); }
.orb-w { font-family: var(--rounded); font-size: 16px; font-weight: 800; white-space: nowrap; opacity: 0; transform: translateY(-6px) scale(.7); transition: opacity .35s, transform .45s var(--spring); }
.orb-wrap.open .orb { background: var(--beat-idle); }
.orb-wrap.open .orb.lit { background: var(--beat-bg); }
.orb-wrap.open .orb-q { opacity: 0; }
.orb-wrap.open .orb-w { opacity: 1; transform: none; }
.reveal { display: flex; flex-direction: column; align-items: center; gap: 10px; min-height: 24px; }
.reveal.show { animation: rise-in .45s var(--ease) both; }
@keyframes rise-in { from { opacity: 0; transform: translateY(10px); } }
.reveal .gloss { opacity: 1; transform: none; }
.rec-note { display: flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 12px; font-size: 13px; font-weight: 700; color: var(--ink-2); background: rgba(var(--ink-rgb), .06); }
.rec-note svg { width: 16px; height: 16px; }
/* 4 言ってみる：伝わったビートは光り、伝わらなかったビートは沈む。下に「あなたの英語」 */
.speak-line .b.ok { background: var(--beat-bg); box-shadow: var(--beat-glow); }
.speak-line .b.ng { opacity: .4; }
.speak-box { width: 100%; min-height: 72px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; }
.speak-box.show { animation: rise-in .4s var(--ease) both; }
.sb-lab { font-size: 11.5px; font-weight: 800; letter-spacing: .04em; color: var(--ink-2); }
.sb-live { min-height: 1.4em; font-family: var(--rounded); font-size: 18px; font-weight: 600; color: var(--ink-2); }
.sb-heard { font-family: var(--rounded); font-size: 21px; font-weight: 600; line-height: 1.4; color: var(--ink-2); }
.sb-heard b { font-weight: 800; color: var(--ink); background: linear-gradient(transparent 60%, rgba(var(--acc-rgb), .55) 60%); }
.sb-score { font-size: 13px; font-weight: 800; color: var(--ink-2); }
.sb-score b { font-family: var(--rounded); font-size: 20px; color: var(--ink); }
.sb-note { max-width: 300px; font-size: 12px; font-weight: 600; line-height: 1.65; color: var(--ink-2); }
.sb-help { width: 100%; padding: 12px 14px; border-radius: 16px; text-align: left; background: rgba(var(--ink-rgb), .05); }
.sb-help b { display: block; margin-bottom: 4px; font-size: 14px; font-weight: 800; }
.sb-help p, .sb-help ol { font-size: 12.5px; font-weight: 600; line-height: 1.65; color: var(--ink-2); }
.sb-help ol { margin-left: 18px; }
.sb-skip { margin-top: 6px; font-size: 12px; font-weight: 700; color: var(--amber); }
.sb-btn { margin-top: 8px; height: 40px; padding: 0 16px; border-radius: 20px; font-size: 13px; font-weight: 800; color: #fff; background: var(--navy-1); }
/* 話している間：輪が声の大きさで広がる（--lv＝0〜1）。マイクの波が出ない端末では、ゆっくり脈打つ */
.core.mode-mic.is-on { animation: mic-on 1.2s ease-in-out infinite; }
.core.mode-mic.is-on[style*="--lv"] { animation: none; box-shadow: inset 0 0 0 2px rgba(var(--acc-rgb), .95), 0 0 0 calc(6px + var(--lv) * 26px) rgba(var(--acc-rgb), .2), 0 20px 36px -16px rgba(var(--acc2-rgb), .55); transition: box-shadow .08s linear; }
@keyframes mic-on { 50% { box-shadow: inset 0 0 0 2px rgba(var(--acc-rgb), .9), 0 0 0 14px rgba(var(--acc-rgb), .18), 0 20px 36px -16px rgba(var(--acc2-rgb), .55); } }
/* マイクの波（真ん中が高い琥珀の棒） */
.vu { display: flex; align-items: center; justify-content: center; gap: 4px; height: 44px; }
.vu i { width: 5px; height: 100%; border-radius: 3px; background: linear-gradient(180deg, var(--gold-1), var(--gold-2) 50%, var(--gold-3)); transform: scaleY(var(--h, .12)); transition: transform .07s linear; }
/* 話している途中で聞き取れたビート */
.speak-line .b.live { background: var(--beat-bg); box-shadow: var(--beat-glow); }
.speak-line .b.pop-live { animation: hit-pop .5s var(--spring); }
/* LINE の中で開いた時だけ、ホームに出る */
.inapp { flex: none; display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 10px 10px 10px 14px; border-radius: 18px; }
.inapp-t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.inapp-t b { font-size: 13px; font-weight: 800; }
.inapp-t small { font-size: 11px; font-weight: 600; line-height: 1.45; color: var(--ink-2); }
.inapp-btn { flex: none; height: 36px; padding: 0 14px; border-radius: 18px; font-size: 13px; font-weight: 800; color: #fff; background: var(--navy-1); }
.ck .bw.ok { background: var(--beat-bg); box-shadow: var(--beat-glow); }
.ck .bw.ng { opacity: .4; text-decoration: underline dotted; text-underline-offset: 6px; }
.speak-res { display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 44px; text-align: center; }
.speak-res.show { animation: rise-in .4s var(--ease) both; }
.speak-n { font-size: 14px; font-weight: 800; color: var(--ink-2); }
.speak-n b { font-family: var(--rounded); font-size: 22px; color: var(--ink); }
.heard { font-family: var(--rounded); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.p-ctrl .seg { flex: 1 1 auto; max-width: 230px; }
.speed { padding: 0 14px; }

/* ---------- 練習：下の操作 ---------- */
.p-ctrl { flex: none; display: flex; justify-content: center; align-items: center; gap: 10px; min-height: 58px; padding-top: 12px; }
.ctrl-note { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.speed { gap: 8px; padding: 0 14px 0 12px; }
.meter { display: flex; align-items: flex-end; gap: 2px; height: 14px; }
.meter i { width: 4px; border-radius: 2px; background: var(--ink-3); transition: background-color .25s; }
.meter i:nth-child(1) { height: 6px; }
.meter i:nth-child(2) { height: 10px; }
.meter i:nth-child(3) { height: 14px; }
.meter i.on { background: var(--gold-3); }
.p-foot { flex: none; padding-top: 12px; }
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 58px;
  border-radius: 20px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .02em;
  transition: transform .15s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--navy-1), var(--navy-2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 16px 30px -16px rgba(var(--ink-rgb), .8);
}
.btn svg { width: 20px; height: 20px; }

/* ---------- 練習：できた ---------- */
.view-practice.is-done > :not(.done) { visibility: hidden; }
.done {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: calc(24px + env(safe-area-inset-top)) 24px calc(24px + env(safe-area-inset-bottom));
  text-align: center;
}
.done.play { animation: rise-in .4s var(--ease) both; }
.done-badge { position: relative; width: 104px; height: 104px; margin-bottom: 8px; }
.done-check {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--beat-bg);
  box-shadow: 0 0 0 10px rgba(var(--acc-rgb), .2), 0 20px 40px -12px rgba(var(--acc2-rgb), .72), inset 0 2px 0 rgba(255, 255, 255, .75);
}
.done-check svg { width: 56px; height: 56px; }
.done.play .done-check { animation: done-pop .9s var(--spring) both; }
.done-check path { stroke-dasharray: 24; stroke-dashoffset: 0; }
.done.play .done-check path { animation: draw .45s .35s var(--ease) both; }
@keyframes done-pop { 0% { transform: scale(0); } 45% { transform: scale(1.2); } 65% { transform: scale(.92); } 82% { transform: scale(1.05); } 100% { transform: scale(1); } }
@keyframes draw { from { stroke-dashoffset: 24; } }
.done-rays i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 14px;
  margin: -7px 0 0 -2px;
  border-radius: 2px;
  background: var(--gold-3);
  opacity: 0;
}
.done.play .done-rays i { animation: ray .75s .28s var(--ease) both; }
@keyframes ray {
  0% { opacity: 1; transform: rotate(calc(var(--r) * 45deg)) translateY(-46px) scaleY(.4); }
  100% { opacity: 0; transform: rotate(calc(var(--r) * 45deg)) translateY(-86px) scaleY(1); }
}
.done-kicker { font-size: 13px; font-weight: 800; letter-spacing: .06em; color: var(--amber); }
.done-title { font-size: 34px; font-weight: 800; line-height: 1.2; }
.done .line { margin-top: 6px; }
.done-sub { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; }
.done-play { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; }
.done-play .mini-ic { width: 44px; height: 44px; }
.done-play .mini-ic svg { width: 20px; height: 20px; }
.done-type {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 800;
  background: rgba(255, 255, 255, .85);
  box-shadow: inset 0 0 0 1.5px rgba(var(--acc-rgb), .7), 0 10px 20px -14px rgba(var(--acc2-rgb), .7);
}
.done-row { display: flex; justify-content: center; gap: 4px; }
.done-ja { margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.done-row { gap: 10px; }
.done-row button { height: 44px; padding: 0 20px; border-radius: 22px; font-size: 14px; font-weight: 800; color: var(--ink); background: rgba(var(--ink-rgb), .07); transition: transform .15s var(--ease); }
.done-row button:active { transform: scale(.96); }
.done-msg { max-width: 330px; font-size: 14px; font-weight: 600; line-height: 1.6; color: var(--ink-2); word-break: auto-phrase; }
.done-msg [lang="en"] { font-family: var(--rounded); font-weight: 800; color: var(--ink); }
.done-next-note { font-size: 13px; font-weight: 700; color: var(--ink); }
.done-btns { display: grid; gap: 10px; width: 100%; max-width: 330px; margin-top: 12px; }
.done-home { height: 44px; padding: 0 16px; font-size: 14px; font-weight: 700; color: var(--ink-2); }

/* ---------- 辞書（接着剤40個 ／ 潰れ方） ---------- */
.dseg { justify-self: center; }
.dseg button { padding: 0 16px; }
.dscroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: 0 -20px;
  padding: 8px 20px 28px;
}
.dscroll::-webkit-scrollbar { display: none; }
.dtab.swap { animation: rise-in .35s var(--ease) both; }
.hero { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 24px; margin-bottom: 12px; }
.hero-n { flex: none; font-family: var(--rounded); font-size: 54px; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.hero-n small { font-family: var(--sys); font-size: 16px; font-weight: 800; letter-spacing: 0; margin-left: 2px; }
.hero-ic { flex: none; width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; color: var(--navy-2); background: rgba(255, 255, 255, .85); }
.hero-ic svg { width: 30px; height: 30px; }
.hero-t { font-size: 15px; font-weight: 800; line-height: 1.5; }
.hero-t small { display: block; margin-top: 2px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.jumps { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -20px 4px; padding: 2px 20px 10px; }
.jumps::-webkit-scrollbar { display: none; }
.jump {
  flex: none;
  height: 40px;
  padding: 0 13px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  background: rgba(255, 255, 255, .58);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7), 0 6px 14px -10px rgba(var(--ink-rgb), .5);
}
.jump b { margin-left: 5px; font-family: var(--rounded); color: var(--ink-2); }
.grp { scroll-margin-top: 6px; margin-top: 14px; }
.grp-h { display: flex; align-items: baseline; gap: 6px; margin: 0 2px 8px; font-size: 15px; font-weight: 800; }
.grp-h span { font-family: var(--rounded); font-size: 13px; color: var(--ink-2); }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tile, .vcard {
  background: linear-gradient(160deg, rgba(255, 255, 255, .76), rgba(255, 255, 255, .46));
  box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px rgba(255, 255, 255, .5), 0 10px 20px -16px rgba(var(--ink-rgb), .55);
}
.tile {
  min-height: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 4px;
  border-radius: 18px;
}
.tw { font-family: var(--rounded); font-size: 21px; font-weight: 800; line-height: 1.1; }
.tk { font-size: 12px; font-weight: 800; line-height: 1.3; text-align: center; }
.tk .d { font-weight: 600; color: var(--ink-2); }
.tk .ar { margin: 0 3px; color: var(--ink-3); }
.tk small { margin-left: 2px; font-size: 10px; font-weight: 700; color: var(--ink-2); }
.fine { margin-top: 16px; text-align: center; font-size: 11.5px; font-weight: 600; color: var(--ink-2); }
.vcards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.vcard {
  position: relative;
  min-height: 104px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 12px 12px 12px 14px;
  border-radius: 20px;
  text-align: left;
}
.vk { margin-top: 6px; font-size: 22px; font-weight: 800; }
.vs { font-family: var(--rounded); font-size: 14px; font-weight: 600; color: var(--ink-2); }
.vcard .mini-ic { position: absolute; right: 10px; bottom: 10px; }
.crows { list-style: none; border-radius: 20px; overflow: hidden; background: rgba(255, 255, 255, .55); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .65), 0 14px 30px -24px rgba(var(--ink-rgb), .5); }
.crow {
  width: 100%;
  min-height: 52px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) auto minmax(0, 1fr) 32px;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 16px;
  text-align: left;
  transition: background-color .15s;
}
.crow:active { background-color: rgba(var(--acc-rgb), .15); }
.crows li + li .crow { border-top: 1px solid rgba(var(--ink-rgb), .07); }
.cs { font-family: var(--rounded); font-size: 15px; font-weight: 600; color: var(--ink-2); }
.carr { color: var(--ink-3); }
.ckana { font-size: 17px; font-weight: 800; }

/* ---------- 下から出るシート ---------- */
.sheet { position: absolute; inset: 0; z-index: 40; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(var(--ink-rgb), .26); opacity: 0; transition: opacity .25s var(--ease); }
.sheet-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 80%;
  display: flex;
  flex-direction: column;
  padding: 8px 16px calc(14px + env(safe-area-inset-bottom));
  border-radius: 28px 28px 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 249, 240, .88));
  -webkit-backdrop-filter: blur(28px) saturate(170%);
  backdrop-filter: blur(28px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 -18px 40px -20px rgba(var(--ink-rgb), .45);
  transform: translateY(100%);
  transition: transform .38s var(--ease);
}
.sheet.open .sheet-backdrop { opacity: 1; }
.sheet.open .sheet-panel { transform: none; }
.sheet-grab { align-self: center; width: 38px; height: 5px; margin-bottom: 10px; border-radius: 3px; background: var(--ink-3); }
.sheet-head { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 12px; padding: 0 4px 12px; }
.sheet-title { font-family: var(--rounded); font-size: 21px; font-weight: 800; line-height: 1.2; }
.sheet-sub { grid-column: 1; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.sheet-close { grid-column: 2; grid-row: 1 / span 2; height: 36px; padding: 0 14px; border-radius: 18px; font-size: 13px; font-weight: 700; background: rgba(var(--ink-rgb), .07); position: relative; }
.sheet-close::after { content: ""; position: absolute; inset: -4px; }
.sheet-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 0 2px 4px; }
.sheet-body::-webkit-scrollbar { display: none; }

/* 4つの型のシート */
.trows { list-style: none; display: grid; gap: 8px; }
.trow {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 10px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .7);
  box-shadow: inset 0 0 0 1px rgba(var(--ink-rgb), .06);
}
.trow .pat { justify-self: center; }
.trow .pat .pb { background: var(--ink-3); }
.trow .pat .pg { background: var(--ink-3); }
.trow.is-done .pat .pb { background: var(--beat-bg); }
.trow.is-done .pat .pg { background: var(--glue); }
.tr-t { min-width: 0; display: grid; gap: 3px; }
.tr-t b { font-size: 15px; font-weight: 800; }
.tr-t span { font-family: var(--rounded); font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-n { font-size: 13px; font-weight: 800; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.tr-n svg { width: 22px; height: 22px; color: var(--amber); }

/* ステージの文の一覧 */
.slist { list-style: none; }
.srow {
  width: 100%;
  min-height: 64px;
  display: grid;
  grid-template-columns: 28px 1fr 18px;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-radius: 16px;
  text-align: left;
  transition: background-color .15s;
}
.srow:active { background-color: rgba(var(--acc-rgb), .15); }
.slist li + li .srow { border-top: 1px solid rgba(var(--ink-rgb), .07); border-radius: 0; }
.smark { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-family: var(--rounded); font-size: 13px; color: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.smark svg { width: 15px; height: 15px; }
.srow.is-done .smark { color: var(--ink); background: var(--beat-bg); box-shadow: none; }
.srow.is-next .smark { color: var(--ink); box-shadow: inset 0 0 0 2px var(--gold-2), 0 0 10px rgba(var(--acc-rgb), .6); }
.stext { min-width: 0; display: grid; gap: 6px; }
.sen { font-family: var(--rounded); font-size: 16px; font-weight: 600; line-height: 1.4; }
.sen b { font-weight: 800; }
.sen .dim { color: var(--ink-2); }
.stags { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.stags .pat { margin-right: 4px; }
.slist-more { padding: 12px 8px 0; font-size: 12.5px; font-weight: 700; color: var(--ink-2); border-top: 1px solid rgba(var(--ink-rgb), .07); }
.sgo { width: 18px; height: 18px; color: var(--ink-3); }

/* 接着剤1個の中身 */
.gd-word { font-family: var(--rounded); font-size: 34px; font-weight: 800; }
.gd { display: grid; gap: 8px; }
.gd-row {
  width: 100%;
  min-height: 62px;
  display: grid;
  grid-template-columns: 84px 1fr 32px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  text-align: left;
  background: rgba(255, 255, 255, .66);
  box-shadow: inset 0 0 0 1px rgba(var(--ink-rgb), .06);
  transition: transform .15s var(--ease);
}
.gd-row:active { transform: scale(.98); }
.gd-lab { font-size: 12px; font-weight: 800; line-height: 1.3; color: var(--ink-2); }
.gd-lab small { display: block; font-size: 10.5px; font-weight: 600; opacity: .85; }
.gd-kana { font-size: 22px; font-weight: 800; }
.gd-kana small { margin-left: 6px; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.gd-row.strong .gd-kana { font-size: 20px; color: var(--ink-2); }
.gd-row.weak { background: rgba(255, 255, 255, .95); box-shadow: inset 0 0 0 1.5px rgba(var(--ink-rgb), .22), 0 10px 20px -16px rgba(var(--ink-rgb), .6); }
.gd-row.weak .gd-kana { font-size: 27px; }
.gd-ex { font-size: 15px; line-height: 1.4; }
.gd-ex [lang="en"] { font-family: var(--rounded); font-weight: 700; color: var(--ink-2); }
.gd-ex .arr { margin: 0 6px; color: var(--ink-3); }
.gd-ex b { font-size: 18px; font-weight: 800; }
.gd-rel { display: grid; grid-template-columns: 84px 1fr; gap: 10px; padding: 8px 12px 2px; }
.rel { display: flex; flex-wrap: wrap; gap: 6px; }
.rel-c { padding: 4px 8px; border-radius: 10px; font-size: 12px; font-weight: 800; background: rgba(var(--ink-rgb), .06); }
.rel-c [lang="en"] { font-family: var(--rounded); font-weight: 600; color: var(--ink-2); margin-right: 3px; }

/* 練習の途中で引く辞書（接着剤の塊） */
.chunk-hero {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 12px 14px 12px 16px;
  margin-bottom: 10px;
  border-radius: 18px;
  text-align: left;
  background: rgba(255, 255, 255, .95);
  box-shadow: inset 0 0 0 1.5px rgba(var(--ink-rgb), .22), 0 10px 20px -16px rgba(var(--ink-rgb), .6);
}
.ch-t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.ch-k { font-size: 28px; font-weight: 800; line-height: 1.15; }
.ch-s { font-family: var(--rounded); font-size: 15px; font-weight: 600; color: var(--ink-2); }
.mg {
  width: 100%;
  min-height: 56px;
  display: grid;
  grid-template-columns: 64px 1fr auto 32px;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 14px;
  text-align: left;
  background: rgba(255, 255, 255, .66);
  box-shadow: inset 0 0 0 1px rgba(var(--ink-rgb), .06);
  margin-bottom: 8px;
}
.mg-w { font-family: var(--rounded); font-size: 20px; font-weight: 800; }
.mg-k { font-size: 16px; font-weight: 800; }
.mg-k .d { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.mg-k .ar { margin: 0 4px; color: var(--ink-3); }
.mg-g { font-size: 11px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.out-note { margin: 0 4px 8px; padding: 10px 12px; border-radius: 14px; font-size: 13px; font-weight: 600; line-height: 1.5; color: var(--ink-2); background: rgba(var(--ink-rgb), .05); }
.out-note [lang="en"] { font-family: var(--rounded); font-weight: 800; color: var(--ink); }
.sheet-link { display: flex; width: 100%; margin-top: 6px; }


/* ---------- トースト ---------- */
.toast {
  position: absolute;
  z-index: 60;
  left: 50%;
  bottom: calc(96px + env(safe-area-inset-bottom));
  max-width: calc(100% - 40px);
  padding: 11px 16px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  color: #fff;
  background: rgba(var(--ink-rgb), .88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 30px -14px rgba(var(--ink-rgb), .7);
  opacity: 0;
  transform: translate(-50%, 10px);
  transition: opacity .25s var(--ease), transform .3s var(--ease);
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 背の低い画面（LINE で開いた小さめの iPhone など） ---------- */
@media (max-height: 760px) {
  .home-head { padding-top: 22px; }
  .tmeter { margin-top: 12px; padding: 8px 10px 10px; }
  .tm-head { padding-bottom: 6px; }
  .tm-cell { gap: 6px; padding: 7px 0 5px; }
  .stairs { gap: 10px; padding-block: 12px; }
  .stair { min-height: 60px; padding-block: 8px; }
  .stair-name b { font-size: 22px; }
  .motif { margin-top: 6px; }
  .continue { min-height: 66px; }
  .cont-ic { width: 44px; height: 44px; }
  .dcard { min-height: 56px; }
  .top { height: 54px; }
  .steps { margin-bottom: 10px; }
  .steps button { min-height: 48px; }
  .lt { font-size: 30px; }
  .p-head { padding-bottom: 10px; }
  .p-title { font-size: 19px; }
  .p-sub { font-size: 13px; }
  .card { padding: 14px 12px; gap: 12px; }
  .w { font-size: 20px; min-height: 44px; padding: 0 10px; }
  .sent.settled .w.hit { font-size: 24px; }
  .line .b, .ck .bw { font-size: 23px; }
  .pz { --core: 100px; min-height: 116px; }
  .pz-s { --core: 84px; min-height: 96px; }
  .p-ctrl { min-height: 52px; padding-top: 10px; }
  .btn { height: 54px; }
}
@media (max-height: 660px) {
  .stair { min-height: 54px; }
  .motif { display: none; }
  .tm-head { display: none; }
  .p-step { display: none; }
  .p-title { margin-top: 0; font-size: 18px; }
  .steps button { min-height: 40px; }
  .step-lb { display: none; }
  .card-note { display: none; }
  .pz { --core: 88px; min-height: 96px; }
  .pz-s { --core: 76px; min-height: 84px; }
  .chant { font-size: 15px; }
  .done { gap: 10px; }
  .done-badge { width: 84px; height: 84px; }
  .done-check svg { width: 44px; height: 44px; }
  .done-title { font-size: 28px; }
}
@media (hover: hover) and (pointer: fine) {
  .btn.primary:hover, .continue:hover { filter: brightness(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* 接着剤1個のシート：「文の中だと」の行に、その語が入った例文を出す */
.gd-mid { display: grid; gap: 3px; min-width: 0; }
.gd-sen { font-family: var(--rounded); font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--ink-2); }
.gd-sen b { font-weight: 800; color: var(--ink); background: linear-gradient(transparent 60%, rgba(255, 178, 36, .5) 60%); }
