:root {
  color-scheme: light;
  --paper: #f6f4ef;
  --card: #fffefa;
  --ink: #151925;
  --muted: #545765;
  --line: #d4d1c7;
  --lime: #ddfa81;
  --font: system-ui, "Yu Gothic UI", "Hiragino Sans", Meiryo, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.65 var(--font); }
a { color: inherit; }
p, h1, h2, h3 { margin: 0; }
button, select, input { font: inherit; color: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: default; opacity: 0.7; }
:focus-visible { outline: 3px solid #6452ef; outline-offset: 4px; }
.frame { width: min(70rem, calc(100% - 3rem)); margin-inline: auto; }
.masthead { background: var(--ink); color: var(--card); border-bottom: 1px solid #333c4b; }
.header-inner { display: flex; min-height: 4.5rem; align-items: center; gap: 0.8rem; }
.wordmark { font-size: 1.75rem; font-weight: 900; letter-spacing: -0.08em; text-decoration: none; line-height: 1; }
.wordmark span { color: var(--lime); }
.brand-caption { color: #c8cbd2; font-size: 0.64rem; font-weight: 650; letter-spacing: .12em; }
.header-cta { margin-inline-start: auto; font-size: .875rem; font-weight: 750; text-decoration: none; padding: .65rem .1rem; }
.header-cta:hover, .text-button:hover { text-decoration: underline; }
.hero { background: var(--ink); color: var(--card); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; gap: 2.75rem; min-height: 29rem; padding-block: 3.5rem 4rem; }
.kicker { color: var(--lime); font-size: .85rem; letter-spacing: .18em; font-weight: 800; margin-bottom: .95rem; }
h1 { font-size: clamp(2.45rem, 5.35vw, 4.7rem); line-height: 1.16; font-weight: 850; letter-spacing: -.06em; }
h1 em { font-style: normal; color: var(--lime); }
.intro { color: #d8dbe3; margin-block: 1.2rem 1.45rem; font-size: clamp(.92rem, 1.7vw, 1rem); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; gap: .5rem; padding: .66rem 1rem; border: 1px solid transparent; border-radius: .48rem; font-size: .9rem; font-weight: 750; text-align: center; text-decoration: none; }
.primary { color: #161b13; background: var(--lime); border-color: #adc955; }
.primary:hover { background: #eaffaa; }
.secondary { background: transparent; border-color: #777984; }
.secondary:hover { background: #eeede7; border-color: var(--ink); }
.record-art { width: min(100%, 24rem); justify-self: center; display: grid; justify-items: center; gap: 1.2rem; }
.record { width: min(100%, 19.8rem); aspect-ratio: 1; border-radius: 50%; border: 1px solid #555c71; display: grid; place-items: center; background: conic-gradient(from 31deg, #6d769640, #10131a35 18%, #090c13a0 27%, #75829b70 46%, #0a0e18a0 58%, #2a344350 70%, #77849e70 90%, #6d769640), repeating-radial-gradient(circle, #333949 0 1px, #1e2432 1px 3px, #202635 3px 4px); box-shadow: 1.1rem 1.2rem 4rem #080a0f6b; }
.record-label { width: 38%; aspect-ratio: 1; border: 2px solid #f3ffb5; border-radius: 50%; color: #181d18; background: #d7f476; display: grid; place-items: center; text-align: center; font: 900 .75rem/1.12 var(--font); letter-spacing: .09em; position: relative; }
.record-label span { transform: translateY(-1.15rem); }
.record-label i { position: absolute; width: .5rem; aspect-ratio: 1; border-radius: 50%; background: #111622; }
.cue { display: flex; align-items: center; gap: .8rem; border-top: 1px solid #40495c; padding-top: .62rem; color: #c0c7d5; font: .78rem ui-monospace, monospace; letter-spacing: .08em; }
.meters { display: flex; align-items: center; gap: .24rem; }
.meters i { width: .12rem; height: .65rem; background: #c7e477; }
.meters i:nth-child(3n) { height: .35rem; }
.meters i:nth-child(4n) { height: .95rem; }
.workbench { scroll-margin-block: 1.2rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.1rem; align-items: start; padding-block: 2.6rem 1.35rem; }
.card { min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: .9rem; padding: clamp(1rem, 2.5vw, 1.75rem); }
.card-header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .35rem .65rem; align-items: center; }
h2 { font-size: clamp(1.25rem, 2.1vw, 1.45rem); line-height: 1.35; letter-spacing: -.03em; }
.text-button { border: 0; background: transparent; color: #424177; min-height: 3rem; font-size: .84rem; font-weight: 700; padding-inline: 0; }
form { display: grid; gap: 1.05rem; margin-top: .8rem; }
fieldset { min-width: 0; padding: 0; border: 0; margin: 0; }
legend, .field label { font-size: .86rem; font-weight: 750; margin-bottom: .32rem; }
label small { color: var(--muted); font-weight: 500; margin-left: .3rem; }
.scene-picker { display: flex; flex-wrap: wrap; gap: .35rem; }
.scene-picker label { display: flex; align-items: center; gap: .36rem; min-height: 3rem; padding: .35rem .55rem; border: 1px solid #a9a9ad; border-radius: .5rem; font-size: .78rem; cursor: pointer; }
.scene-picker label:has(:checked) { border-color: #737e3f; background: #eff7d5; }
.scene-picker input { margin: 0; accent-color: #424e1e; }
.group-name { display: flex; min-height: 3rem; align-items: center; gap: .45rem; font-size: .85rem; cursor: pointer; }
.group-name input { margin: 0; accent-color: #424e1e; }
.grid-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem .75rem; }
.field { display: grid; align-content: start; min-width: 0; }
.field input, .field select { width: 100%; border-radius: .42rem; border: 1px solid #85858d; background: #fffefa; min-height: 3rem; padding: .5rem .63rem; font-size: 1rem; }
.field input::placeholder { color: #6a6a75; }
.field input:user-invalid { border: 2px solid #a52d23; }
.hint, .data-note { font-size: .82rem; color: var(--muted); }
.field .hint { margin-top: .25rem; }
.data-note { margin-top: -.5rem; }
.muted { margin-block: .9rem; color: var(--muted); }
.sample-script, .script { padding: 1.02rem; border-radius: .48rem; background: #efede6; margin-block: .75rem .46rem; font-size: 1.1rem; overflow-wrap: anywhere; }
.script { background: #f0f4e4; border-left: 3px solid #a8c356; font-size: 1.18rem; }
.player h2 + div, #scene-caption { margin-top: .65rem; }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.timer-box { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: .6rem; align-items: center; border-block: 1px solid var(--line); margin-top: 1.2rem; padding-block: .72rem; }
.timer-box time { font: 750 1.35rem ui-monospace, monospace; }
.timer-box .button { padding-inline: .65rem; }
.question { margin-top: 1rem; }
.question h3 { font-size: .88rem; }
.question-en { font-weight: 700; font-size: 1.05rem; }
details { padding-block: .5rem .35rem; }
summary { cursor: pointer; font-size: .86rem; font-weight: 700; padding-block: .5rem; min-height: 2.65rem; }
details[open] p + p { margin-top: .35rem; }
.follow-up { border-top: 1px solid var(--line); margin-top: .55rem; }
.message { white-space: pre-wrap; overflow-wrap: anywhere; }
.follow-up .button { margin-top: .65rem; }
.status { color: #405721; font-size: .86rem; }
.status:not(:empty) { margin-top: .6rem; }
.coaching { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.25rem clamp(1rem, 2.5vw, 1.75rem); border-radius: .75rem; border: 1px solid var(--line); }
.coaching p { margin-top: .38rem; font-size: .88rem; color: var(--muted); }
.coaching .button { flex: 0 0 auto; }
footer { padding-block: 1.8rem; color: var(--muted); font-size: .82rem; }
@media (max-width: 53rem) {
  .hero-inner { gap: 1.2rem; }
  .desktop-break { display: none; }
  .workbench { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 38rem) {
  .frame { width: calc(100% - 1.5rem); }
  .header-inner { min-height: 3.7rem; gap: .6rem; }
  .hero-inner { min-height: 0; grid-template-columns: 1fr; padding-block: 2.1rem; }
  .record-art { display: none; }
  .workbench { padding-top: 1.15rem; }
  .coaching { align-items: start; flex-direction: column; }
}
@media (max-width: 24rem) {
  .brand-caption { display: none; }
  .grid-inputs { grid-template-columns: 1fr; }
  .timer-box { grid-template-columns: 1fr auto; }
  .timer-box > div { grid-column: 1 / -1; }
}
