/* Claude 試験道場 — アプリの紹介サイト。色と書体は Web 版（src/css/style.css）とアプリ（Palette.swift）にそろえる。 */
:root {
  --bg: #faf9f5; --bg-2: #f0eee6; --surface: #fff; --surface-2: #f5f4ed; --surface-3: #e8e6dc;
  --line: rgba(20, 20, 19, .08); --line-2: rgba(20, 20, 19, .16);
  --ink: #141413; --ink-2: #3d3d3a; --ink-3: #68675f;
  --accent: #d97757; --accent-2: #c6613f; --ok: #5f7a3f;
  --shadow: 0 1px 2px rgba(20, 20, 19, .04), 0 18px 40px -24px rgba(20, 20, 19, .28);
  --f-head: 'Hiragino Mincho ProN', 'Yu Mincho', 'Shippori Mincho B1', serif;
  --f-body: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Meiryo', system-ui, sans-serif;
  --f-mono: ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141413; --bg-2: #1a1a18; --surface: #1f1e1d; --surface-2: #262624; --surface-3: #30302e;
    --line: rgba(250, 249, 245, .08); --line-2: rgba(250, 249, 245, .16);
    --ink: #faf9f5; --ink-2: #c2c0b6; --ink-3: #8c8a82; --accent-2: #e39a7c; --ok: #9bb37a;
    --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 20px 50px -24px rgba(0, 0, 0, .6);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.85 var(--f-body); overflow-x: hidden; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-2); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 600; line-height: 1.35; margin: 0; text-wrap: balance; word-break: auto-phrase; }
p { margin: 0; line-break: strict; }
.nb { display: inline-block; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--bg); padding: 6px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.eyebrow { display: flex; align-items: center; gap: 12px; color: var(--accent); font-size: .8rem; letter-spacing: .18em; font-weight: 600; margin-bottom: 14px; }
.eyebrow::before { content: ''; width: 28px; height: 1.5px; background: currentColor; }
.sub { color: var(--ink-2); margin-top: 14px; max-width: 42em; }

/* ボタン */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 700; text-decoration: none; border: 0; font: inherit; font-weight: 700; cursor: pointer;
  box-shadow: 0 10px 24px -12px rgba(217, 119, 87, .8); transition: transform .2s var(--ease), background .2s; }
.btn:hover { background: var(--accent-2); color: #fff; transform: translateY(-1px); }
.btn:disabled { opacity: .5; cursor: default; }
.btn-s { min-height: 38px; padding: 0 16px; font-size: .9rem; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
.store { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px 0 16px; border-radius: 14px; background: var(--ink); color: var(--bg); text-decoration: none; }
.store svg { width: 26px; height: 26px; }
.store span { display: flex; flex-direction: column; line-height: 1.1; font-weight: 700; font-size: 1.2rem; letter-spacing: -.01em; }
.store small { font-size: .68rem; font-weight: 500; letter-spacing: .02em; }
.store-l { min-height: 58px; }
.store-soon { opacity: .55; }
.store:hover { color: var(--bg); opacity: .9; }

/* ヘッダー */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 18px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; color: var(--ink); text-decoration: none; font-family: var(--f-head); font-weight: 600; font-size: 1.05rem; }
.brand img { border-radius: 8px; }
.brand small { font-family: Georgia, serif; font-size: .95em; font-weight: 400; }
.top nav { display: flex; gap: 20px; }
.top nav a, .lang { color: var(--ink-2); text-decoration: none; font-size: .92rem; }
.top nav a:hover, .lang:hover { color: var(--accent); }
@media (max-width: 760px) { .top nav { display: none; } }
.lang, .top .btn { white-space: nowrap; }
.brand { min-width: 0; white-space: nowrap; }
.brand span { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 420px) { .top .wrap { gap: 12px; } .brand { font-size: .95rem; } .brand small { display: none; } .top .btn-s { padding: 0 12px; } }

/* ヒーロー */
.hero { padding: clamp(40px, 8vw, 96px) 0 clamp(40px, 6vw, 80px); background: radial-gradient(80% 60% at 85% 20%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 5.4vw, 3.7rem); letter-spacing: .01em; }
.lead { color: var(--ink-2); font-size: 1.06rem; margin-top: 22px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 30px; }
.facts { display: flex; gap: 28px; list-style: none; padding: 0; margin: 34px 0 0; color: var(--ink-3); font-size: .9rem; }
.facts b { display: block; font-family: var(--f-mono); font-size: 1.6rem; color: var(--ink); line-height: 1.2; }
.hero-shot { position: relative; justify-self: center; width: min(330px, 80vw); }
.seal { position: absolute; z-index: 2; right: -18px; top: 40px; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 12px;
  background: var(--accent); color: #fff; font-family: var(--f-head); font-size: 2rem; transform: rotate(8deg); box-shadow: var(--shadow); }
.phone { margin: 0; border-radius: 44px; padding: 10px; background: #141413; box-shadow: 0 40px 80px -40px rgba(20, 20, 19, .55), 0 0 0 1px var(--line-2); }
.phone img { border-radius: 34px; width: 100%; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-shot { margin-top: 12px; } }

/* 道場の映像 */
.movie { position: relative; aspect-ratio: 16 / 7; min-height: 300px; overflow: hidden; background: #141413; }
.movie video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.movie::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20, 20, 19, .75), transparent 55%); }
.movie-copy { position: absolute; left: 0; right: 0; bottom: clamp(20px, 5vw, 48px); z-index: 1; color: #faf9f5; }
.movie-copy .eyebrow { color: #f0b49d; }
.movie-line { font-family: var(--f-head); font-size: clamp(1.3rem, 3vw, 2rem); }

/* セクション */
.sec { padding: clamp(64px, 10vw, 120px) 0; }
.alt { background: var(--bg-2); }
.sec h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.feat { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px; box-shadow: var(--shadow); }
.feat svg { width: 30px; height: 30px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.feat h3 { font-size: 1.15rem; margin: 14px 0 8px; }
.feat p { color: var(--ink-2); font-size: .95rem; }
@media (max-width: 900px) { .feats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .feats { grid-template-columns: 1fr; } }
.shots { padding-top: 0; }
.shot-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 3vw, 36px); max-width: 960px; margin: 0 auto; }
@media (max-width: 700px) { .shot-row { grid-template-columns: repeat(3, 72%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; } .shot-row .phone { scroll-snap-align: center; } }
.exams { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-top: 36px; }
.exam { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.exam .code { font-family: var(--f-mono); font-weight: 700; color: var(--accent); }
.exam h3 { font-size: 1rem; margin: 6px 0 8px; }
.exam p { color: var(--ink-3); font-size: .88rem; line-height: 1.7; }
.share-grid { display: grid; grid-template-columns: 1fr 360px; gap: clamp(28px, 6vw, 80px); align-items: center; }
.share-card { border-radius: 22px; box-shadow: var(--shadow), 0 0 0 1px var(--line); transform: rotate(2deg); }
.tags { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { font-family: var(--f-mono); font-size: .9rem; padding: 4px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
@media (max-width: 800px) { .share-grid { grid-template-columns: 1fr; } .share-card { width: min(320px, 85%); margin: 0 auto; } }
details { border-bottom: 1px solid var(--line-2); padding: 4px 0; }
details summary { cursor: pointer; padding: 14px 0; font-weight: 700; list-style: none; position: relative; padding-right: 32px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: '+'; position: absolute; right: 4px; top: 10px; font-size: 1.4rem; color: var(--accent); transition: transform .2s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--ink-2); padding: 0 0 16px; }
.more { margin-top: 24px; }
.get { text-align: center; position: relative; }
.get .sub { margin-inline: auto; }
.get .cta { justify-content: center; }
.seal-l { position: static; margin: 0 auto 26px; width: 76px; height: 76px; font-size: 2.4rem; }

/* 文書のページ */
.doc { padding: clamp(40px, 7vw, 80px) 0 96px; }
.doc h1 { font-size: clamp(1.9rem, 4.6vw, 2.6rem); margin-bottom: 18px; }
.doc h2 { font-size: 1.3rem; margin: 40px 0 12px; }
.doc p, .doc li { color: var(--ink-2); }
.doc p + p { margin-top: 10px; }
.doc ul { padding-left: 1.3em; }
.updated { font-size: .88rem; color: var(--ink-3) !important; margin-bottom: 18px; }

/* お問い合わせ */
.contact { margin-top: 20px; display: grid; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: clamp(18px, 4vw, 30px); box-shadow: var(--shadow); }
.contact fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.contact legend, .contact label { font-weight: 700; font-size: .92rem; }
.contact legend { margin-bottom: 8px; }
.contact em { color: var(--accent); font-style: normal; }
.choice { display: inline-flex; }
.choice input { position: absolute; opacity: 0; }
.choice span { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-weight: 500; cursor: pointer; }
.choice input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.contact .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .contact .row { grid-template-columns: 1fr; } }
.contact label { display: grid; gap: 6px; }
.contact input, .contact select, .contact textarea { font: inherit; font-weight: 400; color: var(--ink); background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; width: 100%; }
.contact textarea { resize: vertical; }
.contact .named { border: 0; }
.contact .named summary { font-weight: 500; font-size: .92rem; color: var(--ink-2); padding: 4px 0; }
.contact .named summary::after { top: 0; }
.err { color: #bf4d43 !important; font-weight: 700; }
.note { font-size: .85rem; color: var(--ink-3) !important; }
.done { margin-top: 20px; padding: 28px; border-radius: 18px; background: color-mix(in srgb, var(--ok) 12%, transparent); }

/* フッター */
.foot { border-top: 1px solid var(--line); padding: 48px 0 40px; background: var(--bg-2); font-size: .9rem; }
.foot .wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; }
.foot-brand b { font-family: var(--f-head); font-size: 1.1rem; }
.foot-brand p { color: var(--ink-3); }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.foot ul a { color: var(--ink-2); text-decoration: none; }
.foot ul a:hover { color: var(--accent); }
.fine { grid-column: 1 / -1; color: var(--ink-3); font-size: .8rem; line-height: 1.7; }
@media (max-width: 640px) { .foot .wrap { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
