/* Sumire — shared tokens, components, and responsive layouts. */
:root {
  color-scheme: light;
  --bg: #f7f3fc; --paper: #fffdfd; --ink: #2d2440; --muted: #685d78;
  --line: #dfd5ed; --wash: #ebe0fa; --wash-strong: #d8c3f2;
  --accent: #7545a7; --accent-dark: #64318f; --accent-soft: #eadcf8;
  --brand-bg: #8052b7; --button-bg: #7545a7; --button-hover: #65348f;
  --header-bg: rgb(247 243 252 / 96%); --header-border: #e4d9ef;
  --section-alt: #efe8f8; --surface-sidebar: #f0eaf7;
  --surface-input: #fff; --input-border: #928e9b; --surface-quiet: #f0eff3;
  --surface-purple: #f5f1fa; --surface-purple-border: #dfd4ec;
  --surface-selected: #f0e9f8; --surface-selected-border: #8657b5;
  --badge-full-bg: #f1e8f9; --badge-full-ink: #68388e; --code-ink: #686273;
  --soft-error-bg: #fff3f4; --soft-error-border: #dbb0b8; --soft-error-ink: #873649;
  --soft-success-bg: #edf7f2; --soft-success-ink: #28664f;
  --status-neutral-bg: #efecf5; --status-neutral-ink: #4d337e;
  --status-success-bg: #e9f5ee; --status-success-ink: #32765d;
  --status-progress-bg: #eaf1fb; --status-progress-ink: #3b6597;
  --status-unplanned-bg: #f2eef0; --status-unplanned-ink: #755563;
  --empty-border: #d0cbd9; --review-divider: #e3e2e7;
  --danger-bg: #fff3f4; --danger-border: #dbb0b8; --danger-ink: #873649;
  --red: #aa4055; --green: #32765d; --outline-border: #9b80b4;
  --preview-shadow: 0 20px 50px rgb(47 30 65 / 12%);
  --radius: 32px;
  --clay-shadow: 10px 16px 32px rgb(112 77 158 / 13%), inset -5px -6px 12px rgb(158 125 198 / 13%), inset 5px 6px 12px rgb(255 255 255 / 92%);
  --clay-small: 3px 5px 10px rgb(112 77 158 / 13%), inset -2px -3px 5px rgb(158 125 198 / 16%), inset 2px 3px 5px rgb(255 255 255 / 85%);
  --clay-key: #ede0ff; --clay-mint: #d7eee4; --clay-peach: #f8dfd0; --clay-yellow: #f8ebbb;
  --clay-key-ink: #603787; --clay-mint-ink: #306452; --clay-peach-ink: #88543b;
  --clay-highlight: rgb(255 255 255 / 58%); --clay-depth: rgb(80 37 125 / 28%);
  --ease: cubic-bezier(.2,.7,.2,1);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", Meiryo, sans-serif;
  font-synthesis: none; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #171719; --paper: #202023; --ink: #f3f2f5; --muted: #b4b2bb;
  --line: #39383f; --wash: #26222e; --wash-strong: #383043;
  --accent: #c6a6ef; --accent-dark: #dcc5fb; --accent-soft: #34283f;
  --header-bg: rgb(23 23 25 / 94%); --header-border: #303034;
  --section-alt: #1d1d20; --surface-sidebar: #1b1b1e;
  --surface-input: #252528; --input-border: #827a8a; --surface-quiet: #29292e;
  --surface-purple: #292331; --surface-purple-border: #483b58;
  --surface-selected: #352a44; --surface-selected-border: #ac88d5;
  --badge-full-bg: #392d46; --badge-full-ink: #dec0fa; --code-ink: #bcb8c8;
  --soft-error-bg: #352326; --soft-error-border: #75464e; --soft-error-ink: #f4acb6;
  --soft-success-bg: #22382c; --soft-success-ink: #a0dcb7;
  --status-neutral-bg: #322b3c; --status-neutral-ink: #dbcafa;
  --status-success-bg: #23372f; --status-success-ink: #95d7b2;
  --status-progress-bg: #253246; --status-progress-ink: #a8c9f0;
  --status-unplanned-bg: #352b34; --status-unplanned-ink: #d9b7ca;
  --empty-border: #575360; --review-divider: #39383f;
  --danger-bg: #352326; --danger-border: #75464e; --danger-ink: #f4acb6;
  --red: #f4acb6; --green: #a0dcb7; --outline-border: #79638e;
  --preview-shadow: 0 20px 50px rgb(0 0 0 / 24%);
  --clay-shadow: 10px 16px 32px rgb(0 0 0 / 24%), inset -5px -6px 12px rgb(0 0 0 / 24%), inset 5px 6px 12px rgb(222 185 255 / 7%);
  --clay-small: 3px 5px 10px rgb(0 0 0 / 25%), inset -2px -3px 5px rgb(0 0 0 / 24%), inset 2px 3px 5px rgb(222 185 255 / 10%);
  --clay-key: #493356; --clay-mint: #293e37; --clay-peach: #503a35; --clay-yellow: #493f29;
  --clay-key-ink: #e0c4ff; --clay-mint-ink: #b3e5cd; --clay-peach-ink: #f3c4a9;
  --clay-highlight: rgb(255 255 255 / 24%); --clay-depth: rgb(21 8 35 / 40%);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme]) {
  color-scheme: dark;
  --bg: #171719; --paper: #202023; --ink: #f3f2f5; --muted: #b4b2bb;
  --line: #39383f; --wash: #26222e; --wash-strong: #383043;
  --accent: #c6a6ef; --accent-dark: #dcc5fb; --accent-soft: #34283f;
  --header-bg: rgb(23 23 25 / 94%); --header-border: #303034;
  --section-alt: #1d1d20; --surface-sidebar: #1b1b1e;
  --surface-input: #252528; --input-border: #827a8a; --surface-quiet: #29292e;
  --surface-purple: #292331; --surface-purple-border: #483b58;
  --surface-selected: #352a44; --surface-selected-border: #ac88d5;
  --badge-full-bg: #392d46; --badge-full-ink: #dec0fa; --code-ink: #bcb8c8;
  --soft-error-bg: #352326; --soft-error-border: #75464e; --soft-error-ink: #f4acb6;
  --soft-success-bg: #22382c; --soft-success-ink: #a0dcb7;
  --status-neutral-bg: #322b3c; --status-neutral-ink: #dbcafa;
  --status-success-bg: #23372f; --status-success-ink: #95d7b2;
  --status-progress-bg: #253246; --status-progress-ink: #a8c9f0;
  --status-unplanned-bg: #352b34; --status-unplanned-ink: #d9b7ca;
  --empty-border: #575360; --review-divider: #39383f;
  --danger-bg: #352326; --danger-border: #75464e; --danger-ink: #f4acb6;
  --red: #f4acb6; --green: #a0dcb7; --outline-border: #79638e;
  --preview-shadow: 0 20px 50px rgb(0 0 0 / 24%);
  --clay-shadow: 10px 16px 32px rgb(0 0 0 / 24%), inset -5px -6px 12px rgb(0 0 0 / 24%), inset 5px 6px 12px rgb(222 185 255 / 7%);
  --clay-small: 3px 5px 10px rgb(0 0 0 / 25%), inset -2px -3px 5px rgb(0 0 0 / 24%), inset 2px 3px 5px rgb(222 185 255 / 10%);
  --clay-key: #493356; --clay-mint: #293e37; --clay-peach: #503a35; --clay-yellow: #493f29;
  --clay-key-ink: #e0c4ff; --clay-mint-ink: #b3e5cd; --clay-peach-ink: #f3c4a9;
  --clay-highlight: rgb(255 255 255 / 24%); --clay-depth: rgb(21 8 35 / 40%);
} }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.7; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
::selection { background: var(--wash-strong); color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.wrap, .header-inner { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 30; top: 8px; left: 8px; padding: 9px 15px; background: var(--ink); color: var(--bg); border-radius: 10px; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
h1,h2,h3,p { margin-top: 0; }
h1,h2,h3 { color: var(--ink); font-weight: 600; line-height: 1.2; letter-spacing: -.035em; text-wrap: balance; }
h1 { font-size: clamp(36px, 4.8vw, 58px); }
h2 { margin-bottom: 20px; font-size: clamp(30px, 3.5vw, 44px); }
h3 { margin-bottom: 12px; font-size: 20px; letter-spacing: -.02em; }
:lang(ja) h1, :lang(ja) h2 { line-height: 1.4; letter-spacing: -.025em; }
p { color: var(--muted); }
.eyebrow { margin-bottom: 18px; color: var(--accent); font-size: 11px; font-weight: 650; letter-spacing: .13em; line-height: 1.6; }
.site-header { position: sticky; z-index: 10; top: 0; border-bottom: 1px solid var(--header-border); background: var(--header-bg); backdrop-filter: blur(16px); }
.header-inner { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand-mark { box-shadow: 2px 4px 7px rgb(80 37 125 / 20%), inset -3px -3px 5px rgb(59 25 98 / 30%), inset 2px 2px 4px rgb(255 255 255 / 35%); width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: var(--brand-bg); color: #fff; font-size: 20px; font-weight: 650; }
.brand-name { font-size: 20px; font-weight: 600; letter-spacing: -.04em; line-height: 1.1; }
.brand-name span { display: block; margin-top: 4px; font-size: 8px; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.primary-nav { display: flex; align-items: center; gap: 24px; }
.primary-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 12px; font-weight: 500; text-decoration: none; transition: color 150ms; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--accent); }
.primary-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.primary-nav .language-switch { color: var(--ink); }
.primary-nav .nav-install { min-height: 36px; padding: 6px 16px; border-radius: 100px; gap: 8px; color: #fff; background: var(--button-bg); box-shadow: 3px 5px 9px rgb(80 37 125 / 20%), inset -2px -3px 5px var(--clay-depth), inset 2px 2px 5px var(--clay-highlight); }
.nav-install:hover { background: var(--button-hover); }
.menu-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; flex-direction: column; gap: 5px; border: 0; border-radius: 12px; background: transparent; cursor: pointer; }
.menu-toggle span { width: 18px; height: 2px; background: var(--ink); }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 5px 0; border: 0; background: transparent; font-size: 12px; color: var(--muted); cursor: pointer; }
.theme-toggle:hover { color: var(--accent); }
.theme-toggle-icon { font-size: 17px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 11px 23px; border: 1px solid transparent; border-radius: 18px; font-size: 14px; font-weight: 650; text-decoration: none; cursor: pointer; transition: background-color 150ms, border-color 150ms, transform 150ms, box-shadow 150ms; }
.button-primary { background: var(--button-bg); color: #fff; box-shadow: 5px 8px 14px rgb(80 37 125 / 22%), inset -3px -4px 7px var(--clay-depth), inset 3px 3px 6px var(--clay-highlight); }
.button-primary:hover { background: var(--button-hover); }
.button-light, .button-outline { border-color: var(--outline-border); color: var(--accent-dark); background: var(--paper); box-shadow: var(--clay-small); }
.button-light:hover, .button-outline:hover { background: var(--accent-soft); }
.button:active, .preview-option:active { transform: scale(.98); }
.button:disabled { opacity: .55; cursor: wait; transform: none; }
.text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--accent-dark); font-size: 14px; font-weight: 500; text-decoration: none; text-underline-offset: 5px; }
.text-link:hover { text-decoration: underline; }
.hero { padding-block: 64px 44px; }
.hero-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: center; }
.hero-copy { max-width: 540px; }
.hero .eyebrow { margin-bottom: 20px; }
.hero h1 { margin-bottom: 24px; font-size: clamp(44px, 5.1vw, 68px); line-height: 1.09; font-weight: 650; letter-spacing: -.045em; }
.hero:lang(ja) h1 { font-size: clamp(32px, 4.1vw, 54px); line-height: 1.4; letter-spacing: -.035em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-ending { display: inline-block; }
.hero-lede { margin-bottom: 28px; font-size: 16px; line-height: 1.9; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px 18px; padding: 0; margin: 28px 0 0; list-style: none; font-size: 12px; color: var(--muted); }
.hero-tags li::before { content: '✦'; margin-right: 6px; color: var(--accent); }
.hero-art { position: relative; margin: 0; isolation: isolate; }
.hero-art::before { content: ''; position: absolute; z-index: -1; inset: 8% 3%; border-radius: 44% 56% 57% 43%; background: var(--wash); box-shadow: var(--clay-shadow); }
.hero-art img { width: 100%; height: auto; }
.hero-art figcaption { margin-top: -12px; text-align: center; font-size: 12px; color: var(--muted); }
.layout-playground { display: grid; grid-template-columns: 1fr 1.25fr; align-items: center; gap: 70px; padding-block: 64px 80px; }
.layout-intro { min-width: 0; }
.layout-intro h2 { font-size: clamp(32px, 3.6vw, 44px); }
.layout-intro > p:not(.eyebrow) { max-width: 420px; font-size: 15px; line-height: 1.9; }
.layout-demo { min-width: 0; text-align: center; }
.keyboard-showcase { margin: 0; }
.preview-stage { position: relative; display: grid; place-items: center; min-height: 470px; padding: 32px 48px; border-radius: 44px; background: var(--wash); box-shadow: var(--clay-shadow); }
.preview-window { display: grid; width: min(100%, 380px); padding: 18px 14px 14px; border-radius: 28px; background: var(--paper); box-shadow: var(--clay-shadow); }
.preview-conversation { grid-area: 1 / 1; padding: 0 8px 14px; text-align: left; }
.conversation-dot { display: inline-block; width: 6px; height: 6px; margin-right: 3px; border-radius: 50%; background: var(--wash-strong); }
.preview-message { display: flex; gap: 12px; justify-content: space-between; margin: 10px 0 0; padding: 12px 16px; border-radius: 18px 18px 18px 5px; background: var(--clay-mint); color: var(--clay-mint-ink); font-size: 14px; }
.preview-frame { grid-area: 2 / 1; width: 100%; margin: 0; opacity: 0; visibility: hidden; transition: opacity 220ms var(--ease), visibility 220ms; pointer-events: none; }
.preview-frame.is-active { opacity: 1; visibility: visible; }
.preview-frame img { width: 100%; aspect-ratio: 1440 / 1335; object-fit: contain; border-radius: 14px; }
.floating-key { position: absolute; display: grid; place-items: center; width: 60px; height: 64px; border-radius: 20px; font-size: 28px; font-weight: 650; box-shadow: var(--clay-shadow); }
.key-kana { left: -16px; top: 48px; background: var(--clay-peach); color: var(--clay-peach-ink); transform: rotate(-12deg); }
.key-latin { right: -14px; top: 120px; background: var(--clay-mint); color: var(--clay-mint-ink); transform: rotate(12deg); }
.key-smile { right: 26px; bottom: -20px; background: var(--clay-key); color: var(--clay-key-ink); transform: rotate(8deg); }
.preview-controls { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 30px; padding: 6px; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); box-shadow: var(--clay-small); }
.preview-option { min-width: 90px; min-height: 44px; padding: 8px 18px; border: 0; border-radius: 16px; background: transparent; color: var(--muted); font-size: 13px; cursor: pointer; transition: background-color 150ms, color 150ms, transform 150ms, box-shadow 150ms; }
.preview-option:hover { color: var(--accent); }
.preview-option[aria-pressed="true"] { background: var(--clay-key); color: var(--clay-key-ink); font-weight: 650; box-shadow: var(--clay-small); }
.preview-option:disabled { cursor: progress; }
.preview-caption { min-height: 24px; margin: 10px 0 0; font-size: 12px; }
.hero-note { max-width: 520px; margin: 14px auto 0; font-size: 11px; }
.word-play { margin-top: 30px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 26px; background: var(--paper); box-shadow: var(--clay-small); }
.word-play-label { margin: 0 0 6px; font-size: 11px; color: var(--muted); }
.word-play-output { min-height: 56px; display: flex; align-items: center; margin: 0 0 12px; color: var(--ink); font-size: 18px; font-weight: 600; line-height: 1.55; }
.word-play-keys { display: flex; gap: 12px; }
.play-key { display: grid; place-items: center; flex: 0 1 54px; min-width: 44px; width: 54px; height: 54px; border: 0; border-radius: 16px; background: var(--clay-key); color: var(--clay-key-ink); box-shadow: var(--clay-small); font-size: 24px; font-weight: 650; cursor: pointer; transition: transform 150ms var(--ease), box-shadow 150ms; }
.play-key:nth-child(2) { background: var(--clay-peach); color: var(--clay-peach-ink); }
.play-key:nth-child(3) { background: var(--clay-mint); color: var(--clay-mint-ink); }
.play-key:nth-child(4) { background: var(--clay-yellow); color: var(--clay-peach-ink); }
.play-key:hover { transform: translateY(-3px) rotate(-3deg); }
.play-key:active { transform: translateY(2px) scale(.94); }
@keyframes key-pop { 0% { transform: scale(.96); } 65% { transform: scale(1.03); } 100% { transform: none; } }
@media (prefers-reduced-motion: no-preference) { .word-play-output.is-popping { animation: key-pop 280ms var(--ease); } }
.benefits { border-top: 1px solid var(--line); }
.section { padding-block: 96px; }
.benefit { display: grid; grid-template-columns: 1fr 1.15fr; align-items: center; gap: 80px; }
.benefit + .benefit { border-top: 1px solid var(--line); }
.benefit-copy { max-width: 440px; }
.benefit-copy > p:not(.eyebrow) { margin-bottom: 18px; font-size: 16px; line-height: 1.9; }
.benefit-visual { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; min-height: 370px; margin: 0; padding: 40px 32px; border-radius: var(--radius); background: var(--section-alt); box-shadow: var(--clay-shadow); }
.benefit-visual img { width: 100%; max-width: 380px; max-height: 290px; object-fit: contain; }
.benefit-visual figcaption { font-size: 12px; color: var(--muted); text-align: center; }
.benefit-visual-1 { background: var(--clay-mint); }
.benefit-visual-2 { background: var(--clay-peach); }
.illustration-visual { padding: 24px 32px; }
.illustration-visual img { max-width: 370px; max-height: none; aspect-ratio: 1; }
.clay-layout-keys { display: flex; gap: 16px; margin-bottom: -5px; }
.clay-layout-keys span { display: grid; place-items: center; width: 70px; height: 70px; border-radius: 22px; background: var(--clay-key); color: var(--clay-key-ink); font-size: 34px; font-weight: 650; box-shadow: var(--clay-shadow); transform: rotate(-8deg); }
.clay-layout-keys span:nth-child(2) { background: var(--clay-mint); color: var(--clay-mint-ink); transform: rotate(5deg); }
.clay-layout-keys span:nth-child(3) { background: var(--clay-peach); color: var(--clay-peach-ink); transform: rotate(12deg); }
.tablet-preview { width: 100%; padding: 12px; border-radius: 22px; background: var(--paper); box-shadow: var(--clay-small); }
.tablet-preview img { max-height: none; border-radius: 10px; }
.benefit-reverse { grid-template-columns: 1.15fr 1fr; }
.benefit-reverse .benefit-copy { order: 2; }
.install-section { background: var(--section-alt); }
.install-heading { text-align: center; margin-bottom: 48px; }
.install-heading h2 { margin-bottom: 16px; }
.edition-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 1000px; margin-inline: auto; }
.edition { display: flex; flex-direction: column; align-items: flex-start; padding: 40px; border-radius: var(--radius); background: var(--paper); box-shadow: var(--clay-shadow); }
.edition-label { color: var(--accent); font-size: 12px; letter-spacing: .1em; font-weight: 600; }
.edition h3 { font-size: 27px; }
.edition > p { font-size: 15px; }
.edition .edition-note { margin-bottom: 28px; font-size: 12px; }
.edition > .button, .edition-actions { margin-top: auto; }
.edition-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; }
.install-extra { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 36px; margin-top: 28px; }
.support-strip { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding-block: 60px; }
.support-strip h2 { font-size: 23px; margin: 0; }
.support-strip > div { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.page-main { padding-block: 64px 88px; }
.page-heading { max-width: 780px; margin-bottom: 40px; }
.page-heading h1 { margin-bottom: 20px; }
.page-heading > p:last-child { margin-bottom: 0; font-size: 16px; line-height: 1.9; }
.features-page .page-heading { margin: 12px auto 48px; text-align: center; }
.feature-banner { box-shadow: var(--clay-shadow); margin: 0; display: flex; flex-direction: column; align-items: center; padding: 44px; gap: 24px; border-radius: 24px; background: var(--wash); }
.feature-banner img { max-width: 640px; width: 100%; height: auto; }
.feature-banner figcaption { color: var(--muted); font-size: 13px; text-align: center; }
.content-section { position: relative; margin-top: 80px; scroll-margin-top: 88px; }
.content-title { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 32px; }
.content-title h2 { margin: 0; font-size: clamp(28px, 3vw, 36px); }
.content-title .eyebrow { margin-bottom: 8px; }
.section-number { display: grid; place-items: center; flex-shrink: 0; width: 38px; height: 38px; border-radius: 13px; background: var(--clay-key); box-shadow: var(--clay-small); color: var(--accent); font-size: 13px; font-variant-numeric: tabular-nums; }
.feature-details { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; }
.feature-detail { padding: 24px 0; border-top: 1px solid var(--line); }
.feature-detail h3 { font-size: 18px; line-height: 1.5; }
.feature-detail p { margin-bottom: 0; font-size: 14px; line-height: 1.9; }
.split-content { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; }
.split-content p { font-size: 14px; line-height: 1.9; }
.split-content h3:not(:first-child) { margin-top: 32px; }
.inline-shot { margin: 0; padding: 28px; border-radius: var(--radius); background: var(--section-alt); }
.inline-shot img { width: 100%; height: auto; }
.inline-shot figcaption { padding-top: 20px; color: var(--muted); font-size: 12px; text-align: center; }
.edition-panel { display: flex; align-items: center; gap: 32px; justify-content: space-between; margin-top: 64px; padding: 40px; border-radius: var(--radius); background: var(--wash); }
.edition-panel > div { max-width: 700px; }
.edition-panel h2 { font-size: 28px; }
.edition-panel p:last-child { margin: 0; font-size: 14px; }
.edition-panel .button { flex-shrink: 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > p { max-width: 360px; font-size: 14px; margin-bottom: 0; }
.last-section > p { font-size: 15px; }
/* Utility pages retain their existing structures and interaction hooks. */
.settings-main { padding-bottom: 72px; }
.settings-app { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 540px; overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: var(--paper); box-shadow: var(--clay-shadow); }
.settings-sidebar { padding: 25px 16px; border-right: 1px solid var(--line); background: var(--surface-sidebar); }
.settings-sidebar h2 { margin-bottom: 14px; font-size: 14px; }
.settings-sidebar select, .edition-select select { width: 100%; min-height: 43px; padding: 8px 33px 8px 11px; border: 1px solid var(--input-border); border-radius: 11px; background: var(--paper); color: var(--ink); font-size: 14px; }
.sidebar-hint { margin: 13px 0 0; font-size: 14px; line-height: 1.7; }
.settings-content { min-width: 0; padding: 25px clamp(17px, 3.3vw, 38px) 35px; }
.settings-toolbar { display: flex; align-items: end; gap: 15px; }
.search-wrap { min-width: 0; min-height: 46px; position: relative; display: flex; flex: 1; align-items: center; }
.search-icon { position: absolute; left: 13px; color: var(--muted); font-size: 22px; line-height: 1; transform: rotate(-20deg); }
.search-wrap input { width: 100%; height: 46px; padding: 9px 12px 9px 40px; border: 1px solid var(--input-border); border-radius: 12px; background: var(--surface-input); color: var(--ink); font-size: 16px; }
.search-wrap input:focus, .settings-sidebar select:focus, .edition-select select:focus { border-color: #a68bce; outline: 3px solid rgb(155 121 211 / 20%); }
.edition-select { width: 190px; flex: 0 0 auto; color: var(--muted); font-size: 14px; font-weight: 650; }
.edition-select select { display: block; margin-top: 4px; color: var(--ink); font-weight: 500; }
.results-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; margin-top: 22px; }
.results-heading h2 { margin: 0; font-size: 19px; }
.results-heading p { margin: 0; font-size: 14px; }
.settings-source-note { margin: 8px 0 17px; font-size: 14px; line-height: 1.7; }
.settings-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.setting-card { min-width: 0; padding: 15px 16px 13px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); box-shadow: var(--clay-small); }
.setting-card h3 { margin: 0 0 5px; font-size: 14px; line-height: 1.5; }
.setting-category { display: inline-flex; margin: 0 0 6px; color: var(--accent); font-size: 14px; font-weight: 700; }
.setting-purpose { margin: 0 0 10px; font-size: 14px; line-height: 1.65; }
.setting-meta { display: grid; grid-template-columns: 86px minmax(0,1fr); gap: 4px 8px; margin: 0; font-size: 14px; line-height: 1.55; }
.setting-meta dt { color: var(--muted); }
.setting-meta dd { min-width: 0; margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.setting-badge { display: inline-flex; align-items: center; min-height: 22px; padding: 2px 8px; border-radius: 30px; background: var(--surface-quiet); color: var(--muted); font-size: 14px; font-weight: 700; }
.setting-badge.full-only { background: var(--badge-full-bg); color: var(--badge-full-ink); }
.setting-values { margin: 0; }
.setting-values span { display: inline; }
.setting-key { display: block; margin-top: 8px; color: var(--code-ink); font: 10px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
.empty-results { grid-column: 1 / -1; padding: 35px 10px; color: var(--muted); font-size: 14px; text-align: center; }
.source-card { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-top: 28px; padding: 24px 27px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface-quiet); }
.source-card h2 { margin-bottom: 6px; font-size: 20px; }
.source-card p { margin: 0; font-size: 14px; }
.source-card .eyebrow { margin-bottom: 6px; font-size: 14px; }
.source-revision { margin-top: 6px !important; font-size: 14px !important; }
.notice { padding: 14px 16px; border-radius: 12px; font-size: 14px; }
.notice-error { border: 1px solid var(--soft-error-border); background: var(--soft-error-bg); color: var(--soft-error-ink); }

.requests-main { max-width: 1000px; }
.privacy-note { display: flex; align-items: flex-start; gap: 14px; margin: -9px 0 24px; padding: 17px 19px; border: 1px solid var(--surface-purple-border); border-radius: 15px; background: var(--surface-purple); }
.privacy-note p { margin: 0; font-size: 14px; line-height: 1.8; }
.privacy-icon { width: 30px; height: 30px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 10px; background: var(--paper); color: var(--accent); }
.request-panel { padding: clamp(20px, 4vw, 34px); border: 1px solid var(--line); border-radius: 28px; background: var(--paper); box-shadow: var(--clay-shadow); }
.request-panel > h2 { margin-bottom: 17px; font-size: 19px; }
.request-types { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.request-type { color: var(--ink); min-height: 80px; display: flex; align-items: center; gap: 11px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); box-shadow: var(--clay-small); text-align: left; cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.request-type:hover { border-color: #c4b0df; }
.request-type.is-selected { border-color: var(--surface-selected-border); background: var(--surface-selected); box-shadow: var(--clay-small), inset 0 0 0 1px var(--surface-selected-border); }
.type-icon { width: 36px; height: 36px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 12px; background: var(--clay-key); color: var(--clay-key-ink); box-shadow: var(--clay-small); font-size: 15px; font-weight: 750; }
.request-type strong, .request-type small { display: block; }
.request-type strong { font-size: 14px; line-height: 1.5; }
.request-type small { margin-top: 4px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.submission-form { margin-top: 23px; }
.form-field { margin-bottom: 16px; }
.form-field label, .auth-panel > label { display: block; margin-bottom: 7px; color: var(--ink); font-size: 14px; font-weight: 700; }
.required { margin-left: 6px; color: var(--red); font-size: 14px; font-weight: 650; }
.optional { margin-left: 6px; color: var(--muted); font-size: 14px; font-weight: 500; }
.form-field input, .form-field select, .form-field textarea, .auth-input-row input { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--input-border); border-radius: 14px; background: var(--surface-input); color: var(--ink); font-size: 16px; }
.form-field textarea { min-height: 108px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus, .auth-input-row input:focus { border-color: #a68bce; outline: 3px solid rgb(155 121 211 / 20%); }
.form-field small, .field-hint { display: block; margin-top: 5px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.form-field-wide { grid-column: 1 / -1; }
.turnstile-wrap { min-height: 76px; margin-top: 2px; }
.turnstile-wrap iframe { max-width: 100%; }
.form-submit-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 17px; padding-top: 17px; border-top: 1px solid var(--line); }
.form-submit-row > p { max-width: 510px; margin: 0; font-size: 14px; }
.form-message { margin: 13px 0 0; padding: 12px 14px; border-radius: 11px; background: var(--surface-quiet); color: var(--ink); font-size: 14px; }
.form-message.is-error { background: var(--soft-error-bg); color: var(--soft-error-ink); }
.form-message.is-success { background: var(--soft-success-bg); color: var(--soft-success-ink); }
.public-submissions { margin-top: 66px; }
.public-submissions .section-heading { align-items: center; }
.public-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.public-card { padding: 19px; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); }
.public-card-top { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 9px; }
.public-kind { color: var(--accent); font-size: 14px; font-weight: 700; }
.status-pill { display: inline-flex; align-items: center; min-height: 24px; padding: 3px 9px; border-radius: 30px; background: var(--status-neutral-bg); color: var(--status-neutral-ink); font-size: 14px; font-weight: 700; }
.status-pill.completed { background: var(--status-success-bg); color: var(--status-success-ink); }
.status-pill.in_progress { background: var(--status-progress-bg); color: var(--status-progress-ink); }
.status-pill.not_planned { background: var(--status-unplanned-bg); color: var(--status-unplanned-ink); }
.public-card h3 { margin-bottom: 7px; font-size: 16px; }
.public-card p { margin-bottom: 0; font-size: 14px; line-height: 1.8; white-space: pre-wrap; }
.public-card time { display: block; margin-top: 12px; color: var(--muted); font-size: 14px; }
.empty-state { grid-column: 1 / -1; margin: 0; padding: 34px; border: 1px dashed var(--empty-border); border-radius: 14px; color: var(--muted); font-size: 14px; text-align: center; }

.review-main { max-width: 900px; }
.review-nav { margin-left: auto; }
.auth-panel { padding: 20px; border: 1px solid var(--line); border-radius: 24px; background: var(--paper); box-shadow: var(--clay-shadow); }
.auth-input-row { display: flex; gap: 10px; }
.auth-input-row input { flex: 1; min-width: 0; }
.pending-list { display: grid; gap: 14px; margin-top: 25px; }
.pending-card { padding: 23px; border: 1px solid var(--line); border-radius: 26px; background: var(--paper); box-shadow: var(--clay-shadow); }
.pending-card h2 { margin: 0 0 13px; font-size: 19px; }
.pending-payload { margin: 0; }
.pending-payload > div { display: grid; grid-template-columns: 130px minmax(0,1fr); gap: 12px; padding: 9px 0; border-top: 1px solid var(--review-divider); }
.pending-payload dt { color: var(--muted); font-size: 14px; font-weight: 650; }
.pending-payload dd { min-width: 0; margin: 0; color: var(--ink); font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.moderation-fields { margin-top: 17px; padding-top: 17px; border-top: 1px solid var(--line); }
.moderation-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 13px; }
.button-danger { border-color: var(--danger-border); background: var(--danger-bg); color: var(--danger-ink); }
.no-pending { margin: 0; padding: 35px; border: 1px dashed var(--empty-border); border-radius: 15px; color: var(--muted); text-align: center; }


.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; padding-block: 32px; }
.footer-inner > p { margin: 0; font-size: 12px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--accent); text-decoration: underline; }
.feature-welcome { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin: -20px auto 48px; max-width: 960px; }
.feature-welcome > img { width: 100%; max-width: 440px; }
.feature-welcome h2 { font-size: clamp(30px, 3.4vw, 42px); }
.feature-welcome p:not(.eyebrow) { font-size: 15px; }
.topic-illustration { float: right; width: 130px; height: 130px; margin: -24px 0 12px 24px; object-fit: contain; }
.content-section .feature-details { clear: both; }
/* Content is visible by default; motion is only an enhancement. */
@keyframes enter-soft { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) { .reveal-enter { animation: enter-soft 400ms var(--ease) both; } }
@media (max-width: 1000px) {
  .primary-nav { gap: 16px; }
  .benefit { gap: 40px; }
  .layout-playground { gap: 40px; }
  .preview-stage { padding-inline: 32px; min-height: 400px; }
  .settings-app { grid-template-columns: 180px minmax(0,1fr); }
  .settings-list { grid-template-columns: 1fr; }
  .support-strip, .edition-panel { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 860px) {
  .settings-app { grid-template-columns: 1fr; }
  .settings-sidebar { border-right: 0; border-bottom: 1px solid var(--line); }
  .settings-toolbar { flex-wrap: wrap; }
  .search-wrap { flex-basis: 230px; }
  .nav-ready .menu-toggle { display: flex; }
  .site-header:not(.nav-ready) .header-inner { flex-wrap: wrap; padding-block: 10px; }
  .site-header:not(.nav-ready) .primary-nav { flex-wrap: wrap; }
  .nav-ready .primary-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 16px 32px 24px; background: var(--bg); border-bottom: 1px solid var(--line); align-items: stretch; flex-direction: column; gap: 4px; max-height: calc(100dvh - 64px); overflow-y: auto; }
  .nav-ready .primary-nav.is-open { display: flex; }
  .primary-nav a, .theme-toggle { font-size: 14px; }
  .primary-nav .nav-install { justify-content: center; min-height: 44px; margin-top: 8px; }
  .theme-toggle { align-self: flex-start; }
  .review-nav { flex-wrap: wrap; justify-content: flex-end; gap: 4px 16px; }
  .review-nav a, .review-nav .theme-toggle { font-size: 12px; }
  .hero-layout { gap: 20px; }
  .layout-playground { grid-template-columns: 1fr; max-width: 660px; gap: 40px; }
  .layout-intro { max-width: 560px; }
  .word-play { max-width: 420px; }
  .edition { padding: 28px; }
  .feature-details { column-gap: 32px; }
  .split-content { gap: 32px; }
}
@media (max-width: 700px) {
  .hero-layout, .feature-welcome { grid-template-columns: 1fr; }
  .hero-copy { max-width: 560px; margin-inline: auto; }
  .hero-art { width: min(100%, 460px); margin-inline: auto; }
  .feature-welcome { gap: 20px; }
  .feature-welcome > img { max-width: 360px; margin-inline: auto; }
}
@media (max-width: 600px) {
  .wrap, .header-inner { width: calc(100% - 40px); }
  .header-inner { gap: 16px; }
  .hero { padding-block: 40px 16px; }
  .hero-tags { gap: 8px 12px; font-size: 11px; }
  .hero-art figcaption { margin-top: -2px; }
  .layout-playground { padding-block: 44px 56px; }
  .hero h1 { font-size: 46px; }
  .hero:lang(ja) h1 { font-size: 32px; }
  .hero-lede { font-size: 14px; margin-bottom: 22px; }
  .hero-lede br { display: none; }
  .hero-actions { gap: 12px; }
  .hero-actions .button { padding-inline: 18px; }
  .keyboard-showcase { margin-top: 0; }
  .preview-stage { min-height: 0; padding: 28px 18px; border-radius: 32px; }
  .preview-window { padding: 14px 10px 10px; border-radius: 22px; }
  .floating-key { width: 40px; height: 44px; font-size: 20px; border-radius: 14px; }
  .key-kana { left: -10px; top: 28px; }
  .key-latin { right: -10px; top: 95px; }
  .key-smile { right: 20px; bottom: -12px; }
  .preview-message { font-size: 12px; padding: 10px 12px; }
  .preview-frame { width: 100%; }
  .preview-controls { margin-top: 24px; }
  .preview-option { min-width: 78px; padding-inline: 13px; }
  .hero-note { font-size: 11px; }
  .section { padding-block: 56px; }
  .benefit, .benefit-reverse { grid-template-columns: 1fr; gap: 28px; }
  .benefit-reverse .benefit-copy { order: 0; }
  .benefit-copy { max-width: none; }
  .benefit h2 { font-size: 32px; }
  .benefit-copy > p:not(.eyebrow) { font-size: 15px; }
  .benefit-visual { min-height: 0; padding: 28px 24px; gap: 22px; }
  .benefit-visual img { max-height: 300px; }
  .illustration-visual { padding: 20px; }
  .clay-layout-keys span { width: 54px; height: 54px; border-radius: 18px; font-size: 28px; }
  .topic-illustration { width: 80px; height: 80px; margin: -10px 0 10px 10px; }
  .topic-illustration + .content-title { max-width: calc(100% - 90px); }
  .edition-grid { grid-template-columns: 1fr; gap: 16px; }
  .install-heading { margin-bottom: 28px; }
  .install-heading h2 { font-size: 30px; }
  .install-extra { align-items: center; flex-direction: column; gap: 4px; }
  .support-strip { padding-block: 40px; gap: 20px; }
  .support-strip > div { gap: 4px 24px; }
  .page-main { padding-block: 40px 56px; }
  .page-heading h1 { font-size: 34px; }
  .page-heading > p:last-child { font-size: 15px; }
  .feature-banner { padding: 24px; }
  .feature-details, .split-content { grid-template-columns: 1fr; }
  .content-section { margin-top: 48px; }
  .content-title { gap: 12px; margin-bottom: 24px; }
  .content-title h2 { font-size: 28px; }
  .feature-detail { padding-block: 20px; }
  .edition-panel { padding: 28px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 16px; }
  .settings-app { grid-template-columns: 1fr; }
  .settings-sidebar { padding: 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .settings-sidebar h2 { margin-bottom: 10px; }
  .settings-content { padding: 20px 14px; }
  .settings-toolbar { align-items: stretch; flex-direction: column; gap: 12px; }
  .search-wrap { flex-basis: auto; }
  .edition-select { width: 100%; }
  .results-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .setting-meta { grid-template-columns: 70px minmax(0,1fr); }
  .source-card { align-items: flex-start; flex-direction: column; padding: 24px; }
  .source-card code { overflow-wrap: anywhere; }
  .request-types, .form-grid, .public-list { grid-template-columns: 1fr; }
  .request-type { min-height: 72px; }
  .request-panel { padding: 20px 14px; }
  .form-field-wide { grid-column: auto; }
  .form-submit-row, .auth-input-row { align-items: stretch; flex-direction: column; }
  .pending-card { padding: 18px; }
  .pending-payload > div { grid-template-columns: 1fr; gap: 4px; }
  .moderation-actions { flex-wrap: wrap; }
  .moderation-actions .button { flex: 1; }
  .review-nav { gap: 0 10px; }
  .review-nav .language-switch { min-height: 36px; }
  .footer-inner { align-items: flex-start; }
  .footer-inner > p { order: 3; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .button:active, .preview-option:active, .play-key:hover, .play-key:active { transform: none; }
}
.source-revision { overflow-wrap: anywhere; }
