:root {
  --ink: #0b0d17;
  --ink-2: #3c4152;
  --muted: #6b7083;
  --line: #e9eaf0;
  --line-2: #dcdee7;
  --bg: #ffffff;
  --soft: #f6f7fb;
  --accent: #5a48f5;
  --accent-ink: #3b2bc4;
  --accent-soft: #efedff;
  --green: #16a34a;
  --green-soft: #e8f7ee;
  --amber: #d97706;
  --amber-soft: #fff5e1;
  --red: #dc2626;
  --red-soft: #fdecec;
  --radius: 10px;
  --radius-lg: 18px;
  --font: 'Inter', 'Noto Sans JP', system-ui, -apple-system, 'Hiragino Sans', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ヘッダー */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 32px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.02em; font-size: 18px; }
.brand img { width: 28px; height: 28px; }
.brand .kana { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--ink-2); margin: 0 auto; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; gap: 12px; align-items: center; font-size: 14px; }

/* ボタン */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: var(--radius);
  font-weight: 700; font-size: 15px; border: 1px solid transparent;
  transition: transform 0.08s ease, background 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 1px 0 rgba(11, 13, 23, 0.08), inset 0 -2px 0 rgba(0, 0, 0, 0.12); }
.btn-primary:hover { background: #4a37ea; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--soft); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #22263a; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 16px; }
.btn-block { width: 100%; }

/* ヒーロー */
.hero { padding: 72px 0 40px; text-align: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 12px 4px 4px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 13px; color: var(--ink-2); background: #fff;
}
.pill b { background: var(--accent-soft); color: var(--accent-ink); border-radius: 999px; padding: 2px 10px; font-weight: 700; }
.hero h1 {
  font-size: clamp(36px, 6vw, 64px); line-height: 1.12; letter-spacing: -0.035em;
  margin: 24px auto 20px; font-weight: 800; max-width: 820px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.nw { display: inline-block; }
.hero p.lead { font-size: clamp(16px, 2vw, 19px); color: var(--muted); max-width: 600px; margin: 0 auto 32px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 13px; color: var(--muted); }

/* 体験デモカード */
.demo-wrap { padding: 32px 0 80px; }
.demo {
  max-width: 880px; margin: 0 auto; background: #fff; border: 1px solid var(--line);
  border-radius: 22px; box-shadow: 0 30px 80px -30px rgba(40, 30, 120, 0.25), 0 2px 6px rgba(11, 13, 23, 0.04);
  overflow: hidden;
}
.demo-top { display: flex; align-items: center; gap: 16px; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.bar { flex: 1; height: 8px; border-radius: 99px; background: var(--soft); overflow: hidden; }
.bar > i { display: block; height: 100%; width: 0; background: var(--ink); border-radius: 99px; transition: width 0.4s ease; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: var(--soft); color: var(--ink-2); }
.chip.accent { background: var(--accent-soft); color: var(--accent-ink); }
.chip.amber { background: var(--amber-soft); color: #92400e; }

/* レッスン本体（デモと共通） */
.play { display: block; }
.foot .mascot { width: 68px; height: 76px; transition: transform 0.2s ease; }
.foot .mascot.bounce { animation: bounce 0.5s ease; }
@keyframes bounce { 0% { transform: translateY(0); } 35% { transform: translateY(-10px) scale(1.04); } 70% { transform: translateY(2px); } 100% { transform: translateY(0); } }
.bubble { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; font-size: 14px; line-height: 1.65; color: var(--ink-2); }
.bubble::before { content: ''; position: absolute; top: 50%; left: -7px; width: 12px; height: 12px; background: inherit; border-left: 1px solid; border-bottom: 1px solid; border-color: inherit; transform: translateY(-50%) rotate(45deg); }
.bubble .pt { margin-left: 10px; font-weight: 800; color: #0f6b33; }
.bubble .more { display: block; margin-top: 4px; }
.bubble .who { display: block; font-size: 12px; font-weight: 800; color: var(--accent-ink); margin-bottom: 4px; }
.task { padding: 28px 28px 24px; min-width: 0; }
.task h3 { font-size: 20px; line-height: 1.5; margin: 0 0 18px; letter-spacing: -0.01em; font-weight: 700; }
.task h3 b { color: var(--accent-ink); }

/* 表 */
.fx { display: flex; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; margin-bottom: 14px; background: #fff; }
.fx .namebox { width: 64px; flex: none; display: grid; place-items: center; font: 600 13px/1 ui-monospace, 'SF Mono', Menlo, monospace; color: var(--ink-2); border-right: 1px solid var(--line-2); background: var(--soft); }
.fx .fxlabel { flex: none; display: grid; place-items: center; width: 40px; font: italic 600 14px/1 Georgia, serif; color: var(--muted); border-right: 1px solid var(--line); }
.fx input {
  flex: 1; min-width: 0; border: 0; outline: 0; padding: 0 14px; height: 46px;
  font: 500 16px/1 ui-monospace, 'SF Mono', Menlo, Consolas, monospace; color: var(--ink);
}
.fx:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.fx.shake { animation: shake 0.35s ease; border-color: var(--amber); }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }

[hidden] { display: none !important; }
.keys {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 48px; padding: 0 14px; margin-bottom: 14px;
  border: 1px dashed var(--line-2); border-radius: 10px; background: var(--soft);
  font-size: 14px; color: var(--muted);
}
.keys.shake { animation: shake 0.35s ease; border-color: var(--amber); }
.keys-pressed .kbd, .keycaps .kbd { font-size: 13px; padding: 4px 8px; color: var(--ink); }
.keycaps { display: block; margin-top: 8px; color: var(--muted); }
.sheet td.bold { font-weight: 800; }
/* セルはドラッグで範囲選択するので、指でなぞってもスクロールしない（表の横スクロールは見出しの行・列で） */
.sheet td { cursor: cell; user-select: none; -webkit-user-select: none; touch-action: none; }
.task { position: relative; }
.grab { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; border: 0; padding: 0; pointer-events: none; }
.under { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; min-height: 30px; padding-top: 8px; font-size: 12px; color: var(--muted); }
.status { display: flex; justify-content: flex-end; gap: 18px; flex-wrap: wrap; flex: none; }
.status b { color: var(--ink); font-weight: 600; }
.sheet td.ref { background: color-mix(in srgb, var(--ref) 9%, #fff); }
.fx input[readonly] { color: var(--muted); }
.sheet td.copied { outline: 2px dashed var(--green); outline-offset: -3px; }
/* 右下の■が欠けないよう、表のまわりに少し余白をとる */
.sheet-scroll { position: relative; overflow-x: auto; overflow-y: hidden; padding: 0 7px 7px 0; background: var(--soft); border: 1px solid var(--line-2); border-radius: 10px; }
table.sheet { background: #fff; }
table.sheet { border-collapse: collapse; width: 100%; table-layout: fixed; font-size: 14px; font-variant-numeric: tabular-nums; }
.sheet th, .sheet td { border: 1px solid var(--line); height: 34px; padding: 0 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet col.col-h { width: 40px; }
.sheet thead th { background: var(--soft); color: var(--muted); font-weight: 600; font-size: 12px; height: 28px; text-align: center; border-top: 0; }
.sheet tbody th { background: var(--soft); color: var(--muted); font-weight: 600; font-size: 12px; width: 40px; text-align: center; border-left: 0; }
.sheet td.num { text-align: right; }
.sheet td.head { font-weight: 700; background: #fafafd; }
.sheet td.hl { background: #f1efff; }
.sheet td.target { outline: 2px solid var(--accent); outline-offset: -2px; background: #fff; color: var(--accent-ink); font-weight: 600; }
.sheet td.ok { outline-color: var(--green); background: var(--green-soft); color: #0f6b33; }
.sheet td.filled { color: var(--ink); background: #fbfbfe; }
/* 選択・コピーの見た目（Excel に合わせて緑） */
.sheet td.insel { background: #e3efe8; }
.sheet td.active { background: #fff; }
.sheet th.on { background: #dcebe2; color: #1d6b45; }
.sheet td.editing { overflow: visible; position: relative; z-index: 2; text-overflow: clip; }
.sheet td.clip { outline: 2px dashed #1d6b45; outline-offset: -4px; }
.sheet td.fillpv { outline: 1px dashed #4b5563; outline-offset: -3px; background: #f4f6f5; }
.sheet td.err { color: var(--red); }
.fill-handle {
  position: absolute; z-index: 3; width: 9px; height: 9px; background: #1d6b45;
  border: 1.5px solid #fff; cursor: crosshair; touch-action: none;
}
@media (pointer: coarse) { .fill-handle { width: 14px; height: 14px; margin: -2px 0 0 -2px; border-radius: 50%; } }

/* 下部フィードバック */
/* 下：クオ先輩の吹き出し（ヒントも採点結果もここ1か所） */
.foot { display: grid; grid-template-columns: 68px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 16px 24px; border-top: 1px solid var(--line); background: #fbfbfe; transition: background 0.2s ease; }
.foot .bubble { border-color: var(--line); }
.foot .bubble strong { color: var(--ink); }
.foot.good { background: var(--green-soft); }
.foot.good .bubble { border-color: #bfe5cc; }
.foot.good .bubble strong { color: #0f6b33; }
.foot.bad { background: var(--amber-soft); }
.foot.bad .bubble { border-color: #f3d39b; }
.foot.bad .bubble strong { color: #92400e; }
.foot .actions { display: flex; gap: 8px; align-items: center; }
.link-btn { background: none; border: 0; color: var(--muted); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; padding: 0 4px; }
.link-btn:hover { color: var(--ink); }
.kbd { font: 600 11px/1 ui-monospace, monospace; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; padding: 3px 6px; color: var(--muted); background: #fff; }

/* セクション */
section.block { padding: 96px 0; }
section.block.soft { background: var(--soft); }
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 48px; }
.sec-head h2, .center-head h2 { font-size: clamp(28px, 4vw, 44px); line-height: 1.18; letter-spacing: -0.03em; margin: 0; font-weight: 800; }
.sec-head p, .center-head p { color: var(--muted); margin: 0; font-size: 17px; }
.center-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.center-head p { margin-top: 16px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 800; color: var(--accent); letter-spacing: 0.04em; margin-bottom: 12px; }

.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.card h3 { font-size: 20px; letter-spacing: -0.02em; margin: 0 0 8px; line-height: 1.4; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .art { height: 168px; border-radius: 12px; background: var(--soft); margin-bottom: 24px; display: grid; place-items: center; overflow: hidden; position: relative; }
.art-num { font-size: 56px; font-weight: 800; letter-spacing: -0.04em; color: var(--ink); }
.art-num small { font-size: 18px; color: var(--muted); font-weight: 700; margin-left: 4px; }

/* コース一覧 */
.course-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.feature-list { display: grid; gap: 28px; }
.feature-list .f { display: grid; grid-template-columns: 36px 1fr; gap: 14px; }
.feature-list .ic { width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; font-weight: 800; }
.feature-list h4 { margin: 4px 0 4px; font-size: 17px; }
.feature-list p { margin: 0; color: var(--muted); font-size: 15px; }
.course-list { display: grid; gap: 12px; }
.course {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; align-items: center;
  padding: 14px 18px 14px 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.course:hover { border-color: var(--line-2); transform: translateY(-1px); box-shadow: 0 10px 24px -16px rgba(11, 13, 23, 0.25); }
.course .tile { width: 56px; height: 56px; border-radius: 12px; display: grid; place-items: center; font: 800 12px/1.1 ui-monospace, monospace; text-align: center; padding: 4px; letter-spacing: -0.02em; }
.course h4 { margin: 0; font-size: 16px; letter-spacing: -0.01em; }
.course .meta { font-size: 13px; color: var(--muted); }
.tag { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; }
.tag.free { background: var(--green-soft); color: #0f6b33; }
.tag.pro { background: var(--ink); color: #fff; }
.tag.done { background: var(--accent-soft); color: var(--accent-ink); }
/* クラス（初級・中級・上級）の見出し */
.class-block { display: grid; gap: 12px; }
.class-block + .class-block { margin-top: 28px; }
.class-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 4px 2px 2px; }
.class-badge { font-size: 13px; font-weight: 800; padding: 6px 12px; border-radius: 99px; white-space: nowrap; }
.class-head h3 { margin: 0; font-size: 18px; letter-spacing: -0.01em; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.class-head p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.class-price { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--soft); color: var(--ink-2); }
.class-count { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.t1 { background: #e8f7ee; color: #0f6b33; }
.t2 { background: #efedff; color: #3b2bc4; }
.t3 { background: #fff5e1; color: #92400e; }
.t4 { background: #e6f1fb; color: #0c447c; }
.t5 { background: #fbeaf0; color: #72243e; }

/* 料金 */
.pricing { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; max-width: 980px; margin: 0 auto; }
.plan { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--ink); box-shadow: 0 30px 60px -36px rgba(11, 13, 23, 0.45); }
.plan .badge { position: absolute; top: -13px; left: 24px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 800; padding: 4px 12px; border-radius: 99px; }
.plan h3 { margin: 0; font-size: 16px; color: var(--ink-2); }
.plan .price { font-size: 42px; font-weight: 800; letter-spacing: -0.04em; margin: 12px 0 0; line-height: 1.1; }
.plan .price small { font-size: 15px; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.plan .sub { color: var(--muted); font-size: 14px; margin: 6px 0 20px; min-height: 24px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; font-size: 14px; color: var(--ink-2); }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: '✓'; color: var(--green); font-weight: 800; }
.plan .btn { margin-top: auto; }
.price-note { text-align: center; color: var(--muted); font-size: 13px; margin-top: 24px; }

/* チーム */
.team { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; background: var(--ink); color: #fff; border-radius: 28px; padding: 56px; overflow: hidden; position: relative; }
.team h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.2; letter-spacing: -0.03em; margin: 0 0 16px; }
.team p { color: #b7bbcc; margin: 0 0 28px; }
.team .btn-ghost { background: transparent; color: #fff; border-color: #3a3f55; }
.team .btn-ghost:hover { background: #1b1e2e; }
.admin { background: #151827; border: 1px solid #262a3d; border-radius: 16px; padding: 20px; font-size: 13px; }
.admin .row { display: grid; grid-template-columns: 1fr 120px 48px; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid #23273a; color: #d6d9e5; }
.admin .row:last-child { border-bottom: 0; }
.admin .mini { height: 6px; background: #262a3d; border-radius: 99px; overflow: hidden; }
.admin .mini i { display: block; height: 100%; background: #8b7dff; border-radius: 99px; }
.admin .h { color: #8b90a6; font-weight: 700; font-size: 12px; margin-bottom: 4px; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { list-style: none; cursor: pointer; font-weight: 700; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; line-height: 1; color: var(--muted); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 12px 0 0; }

/* CTA とフッター */
.final { text-align: center; padding: 104px 0; }
.final .mascot-lg { width: 120px; margin: 0 auto 20px; }
.final h2 { font-size: clamp(30px, 4.6vw, 52px); letter-spacing: -0.035em; line-height: 1.15; margin: 0 0 16px; }
.final p { color: var(--muted); margin: 0 0 32px; }
footer { border-top: 1px solid var(--line); padding: 40px 0; font-size: 13px; color: var(--muted); }
footer .container { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* ダッシュボード・レッスン画面 */
.app-top { height: 64px; border-bottom: 1px solid var(--line); display: flex; align-items: center; }
.app-top .container { display: flex; align-items: center; gap: 20px; }
.close-x { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); font-size: 22px; border: 1px solid transparent; }
.close-x:hover { background: var(--soft); color: var(--ink); }
.stats { display: flex; gap: 8px; }

.dash { padding-top: 40px; padding-bottom: 80px; }
.dash-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.dash-head h1 { font-size: 32px; letter-spacing: -0.03em; margin: 0; line-height: 1.2; }
.dash-head p { margin: 6px 0 0; color: var(--muted); }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.next-card { display: grid; grid-template-columns: 1fr 140px; gap: 16px; align-items: center; background: var(--accent); color: #fff; border-radius: var(--radius-lg); padding: 28px; margin-bottom: 20px; overflow: hidden; }
.next-card h2 { margin: 6px 0 8px; font-size: 24px; letter-spacing: -0.02em; line-height: 1.3; }
.next-card p { margin: 0 0 20px; color: #dcd8ff; font-size: 14px; }
.next-card .btn { background: #fff; color: var(--accent-ink); }
.next-card .lbl { font-size: 12px; font-weight: 800; letter-spacing: 0.06em; color: #cfc9ff; }
.side { display: grid; gap: 16px; }
.stat-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; }
.stat-card .k { font-size: 13px; color: var(--muted); }
.stat-card .v { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }
.big-bar { height: 10px; background: var(--soft); border-radius: 99px; overflow: hidden; margin-top: 12px; }
.big-bar i { display: block; height: 100%; background: var(--green); border-radius: 99px; }

.lesson-page .demo { max-width: 1040px; margin: 32px auto 64px; }
.lesson-page .play { min-height: 420px; }

/* モーダル（課金の壁） */
.modal-bg { position: fixed; inset: 0; background: rgba(11, 13, 23, 0.55); display: none; align-items: center; justify-content: center; padding: 16px; z-index: 50; }
.modal-bg.open { display: flex; }
.modal { background: #fff; border-radius: 22px; max-width: 520px; width: 100%; padding: 32px; text-align: center; max-height: calc(100vh - 32px); overflow: auto; }
.modal img { width: 96px; margin: 0 auto 8px; }
.modal h3 { font-size: 24px; letter-spacing: -0.02em; margin: 0 0 8px; }
.modal p { color: var(--muted); margin: 0 0 20px; font-size: 15px; }
.modal .opts { display: grid; gap: 10px; text-align: left; margin-bottom: 20px; }
.opt { display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--line-2); border-radius: 12px; padding: 14px 16px; cursor: pointer; }
.opt input { margin-right: 10px; accent-color: var(--accent); }
.opt b { font-size: 15px; }
.opt .p { font-weight: 800; }
.opt.sel { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.opt small { display: block; color: var(--muted); font-size: 12px; }

/* 完了画面 */
.done-panel { text-align: center; padding: 48px 24px; }
.done-panel img { width: 140px; margin: 0 auto 12px; }
.done-panel h3 { font-size: 28px; letter-spacing: -0.02em; margin: 0 0 8px; }
.done-panel p { color: var(--muted); margin: 0 0 24px; }
.done-panel .row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* レスポンシブ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-inner { justify-content: space-between; }
  .sec-head, .course-grid, .team, .dash-grid { grid-template-columns: 1fr; }
  .cards3, .pricing { grid-template-columns: 1fr; }
  .team { padding: 32px 24px; }
  .task { padding: 20px; }
  section.block { padding: 64px 0; }
  .next-card { grid-template-columns: 1fr; }
  .next-card img { display: none; }
}
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .nav-cta .btn-ghost { display: none; }
  .foot { grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 14px 16px; }
  .foot .mascot { width: 52px; height: 58px; }
  .foot .actions { grid-column: 1 / -1; }
  .foot .actions .btn { flex: 1; }
  .under { flex-direction: column; gap: 4px; }
  .status { justify-content: flex-start; }
  .hero { padding-top: 48px; }
  .demo-top { padding: 14px 16px; }
}

/* クイズ（選択肢から選ぶ問題） */
.quiz { display: grid; gap: 10px; margin-bottom: 14px; }
.quiz-opt {
  display: flex; align-items: center; gap: 12px; text-align: left; width: 100%;
  padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff;
  font-size: 15px; line-height: 1.6; color: var(--ink); transition: border-color .15s ease, background .15s ease;
}
.quiz-opt:hover { border-color: var(--accent); background: var(--accent-soft); }
.quiz-opt .quiz-key { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--soft); font-weight: 800; font-size: 13px; color: var(--ink-2); }
.quiz-opt.right { border-color: var(--green); background: var(--green-soft); }
.quiz-opt.right .quiz-key { background: var(--green); color: #fff; }
.quiz-opt.wrong { border-color: #f3d39b; background: var(--amber-soft); opacity: .7; cursor: default; }

/* ジャンプ（F5 / Ctrl+G → 空白セルなどを選ぶ） */
.jump { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 12px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; font-size: 14px; box-shadow: 0 10px 30px -18px rgba(11, 13, 23, .4); }
.jump label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.jump input { accent-color: var(--accent); }

/* ---- リボン（操作ボタン） ---- */
.demo { position: relative; }
.ribbon { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
.rb { border: 1px solid var(--line-2); background: #fff; border-radius: 8px; padding: 6px 10px; font-size: 13px; font-weight: 600; color: var(--ink); }
.rb:hover { border-color: var(--accent); color: var(--accent-ink); }

/* ---- 設定画面（ダイアログ） ---- */
.xdlg-bg { position: absolute; inset: 0; z-index: 30; background: rgba(11, 13, 23, .35); display: flex; align-items: flex-start; justify-content: center; padding: 64px 16px 16px; border-radius: inherit; }
.xdlg-bg[hidden] { display: none !important; }
.xdlg { width: 100%; max-width: 480px; background: #fff; border-radius: 14px; box-shadow: 0 30px 80px -20px rgba(11, 13, 23, .5); overflow: hidden; font-size: 14px; }
.xdlg-title { padding: 12px 16px; font-weight: 800; border-bottom: 1px solid var(--line); background: var(--soft); }
.xdlg-body { padding: 14px 16px; display: grid; gap: 12px; max-height: 60vh; overflow: auto; }
.xf { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px; align-items: start; }
.xl { color: var(--muted); font-size: 13px; padding-top: 2px; }
.xr { display: inline-flex; align-items: center; gap: 6px; margin: 0 14px 6px 0; cursor: pointer; }
.xr input { accent-color: var(--accent); }
.xdlg select, .xdlg input[type=text], .xdlg input:not([type]) { font: inherit; padding: 6px 8px; border: 1px solid var(--line-2); border-radius: 8px; min-width: 0; max-width: 100%; }
.xdlg-err { margin: 0 16px; padding: 8px 10px; border-radius: 8px; background: var(--amber-soft); color: #92400e; font-size: 13px; }
.xdlg-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); }
.xp { margin: 0; color: var(--ink-2); }
.print-pv .warn { color: var(--red); font-size: 12px; }

/* ---- 小さなメニュー ---- */
.xpop { position: absolute; z-index: 35; min-width: 180px; max-height: 260px; overflow: auto; background: #fff; border: 1px solid var(--line-2); border-radius: 10px; box-shadow: 0 16px 40px -16px rgba(11, 13, 23, .45); padding: 6px; display: grid; font-size: 14px; }
.xpop .pick { text-align: left; background: none; border: 0; padding: 7px 10px; border-radius: 6px; }
.xpop .pick:hover { background: var(--accent-soft); }
.xpop .pop-title { font-size: 12px; color: var(--muted); padding: 4px 6px 6px; }
.xpop .xr { margin: 2px 6px; }
.pop-actions { display: flex; justify-content: flex-end; padding: 6px 4px 2px; }

/* ---- 表の上に重ねる部品 ---- */
.overlay { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.overlay .across { position: absolute; display: flex; align-items: center; justify-content: center; pointer-events: none; font-size: 14px; color: var(--ink); }
.overlay .flt, .overlay .dd { position: absolute; width: 18px; height: 18px; border: 1px solid var(--line-2); border-radius: 4px; background: #fff; font-size: 11px; line-height: 1; padding: 0; color: var(--ink-2); z-index: 4; }
.overlay .flt.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.overlay .dd { height: 24px; width: 20px; }
.overlay .grp { position: absolute; width: 16px; height: 16px; border: 1px solid var(--ink-2); border-radius: 3px; background: #fff; font-size: 12px; line-height: 12px; padding: 0; z-index: 4; }
.overlay .fill-opt, .fill-opt { position: absolute; z-index: 4; border: 1px solid var(--line-2); background: #fff; border-radius: 4px; font-size: 11px; padding: 1px 4px; }
.sheet td.bordered { box-shadow: inset 0 0 0 1px #444; }
.sheet th.gap { box-shadow: inset 3px 0 0 #9aa0ae; }
.sheet tbody th.gap { box-shadow: inset 0 3px 0 #9aa0ae; }
.sheet th[data-row], .sheet th[data-col], .sheet th[data-all] { cursor: pointer; }
.sheet-scroll.protected { outline: 2px dashed #c96a12; outline-offset: 2px; }

/* ---- シート見出し・グラフ ---- */
.tabs { display: flex; gap: 2px; margin-top: 6px; }
.tab { border: 1px solid var(--line-2); border-top: 0; background: var(--soft); padding: 4px 14px; font-size: 13px; border-radius: 0 0 8px 8px; color: var(--ink-2); }
.tab.on { background: #fff; color: var(--accent-ink); font-weight: 800; border-bottom: 2px solid var(--accent); }
.charts { display: grid; gap: 12px; margin-top: 10px; }
.chart { border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 8px; }
.chart-svg { width: 100%; height: auto; display: block; }
.chart-svg .ct { font-size: 14px; font-weight: 800; fill: #0b0d17; }
.chart-svg .cl { font-size: 11px; fill: #6b7083; }
.chart-svg .cg { stroke: #e9eaf0; }
.namebox { cursor: text; }
.namebox-input { width: 100%; border: 0; outline: 0; font: inherit; text-align: center; background: #fff; }
@media (max-width: 560px) { .xf { grid-template-columns: 1fr; gap: 4px; } }

/* ---- 解説ページ（/exkiso/guide/） ---- */
.guide { padding-top: 24px; padding-bottom: 80px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--ink-2); }
.g-article { max-width: 780px; }
.g-article h1 { font-size: clamp(26px, 4vw, 36px); line-height: 1.35; letter-spacing: -0.02em; margin: 10px 0 14px; }
.g-article h2 { font-size: 21px; margin: 40px 0 12px; letter-spacing: -0.01em; }
.g-meta { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); }
.g-lead { font-size: 17px; color: var(--ink-2); margin: 0 0 20px; }
.g-cta { margin: 4px 0 8px; }
.g-syntax { background: #0b0d17; color: #e9eaf0; border-radius: 12px; padding: 14px 18px; font: 500 15px/1.6 ui-monospace, 'SF Mono', Menlo, Consolas, monospace; overflow-x: auto; }
.g-points, .g-mistakes, .g-related { padding-left: 1.2em; display: grid; gap: 6px; }
.g-mistakes li::marker { content: '⚠ '; }
.g-table { overflow-x: auto; border: 1px solid var(--line-2); border-radius: 10px; }
.g-table table.sheet { table-layout: auto; }
.g-note { font-size: 13px; color: var(--muted); }
.g-example { margin-top: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
.g-example p { margin: 4px 0; }
.g-example code, .g-article code { background: #fff; border: 1px solid var(--line-2); border-radius: 6px; padding: 1px 6px; font: 500 14px ui-monospace, Menlo, Consolas, monospace; }
.g-ex-label { font-size: 12px; font-weight: 800; color: var(--accent-ink); }
.g-steps { padding-left: 1.4em; display: grid; gap: 14px; }
.g-steps .g-q { font-weight: 600; }
.g-how, .g-point, .g-choices { font-size: 14px; color: var(--ink-2); margin-top: 4px; }
.g-point { color: #0f6b33; }
.g-try { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 18px; align-items: center; margin-top: 44px; padding: 22px; border-radius: 18px; background: var(--accent-soft); }
.g-try h2 { margin: 0 0 6px; font-size: 19px; }
.g-try p { margin: 0 0 12px; color: var(--ink-2); font-size: 15px; }
.g-hub { list-style: none; padding: 0; display: grid; gap: 10px; }
.g-hub a { display: grid; gap: 2px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.g-hub a:hover { border-color: var(--accent); }
.g-hub span { font-size: 13px; color: var(--muted); }
.lesson-guide { text-align: center; margin: -40px 0 48px; font-size: 14px; }
.lesson-guide a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 560px) { .g-try { grid-template-columns: 1fr; } .g-try img { width: 72px; } }

/* 解説ページの下の UtaCel AI の紹介 */
.g-utacel { margin-top: 28px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; font-size: 14px; }
.g-utacel b { font-size: 15px; }
.g-utacel p { margin: 6px 0 8px; color: var(--ink-2); }
.g-utacel a { color: var(--accent-ink); font-weight: 700; }
