:root {
  --bg: #f7f5ef;
  --card: #fffefa;
  --text: #26251f;
  --muted: #68665e;
  --line: #dedbd2;
  --accent: #b34e31;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
.text-chunk { display: inline-block; white-space: nowrap; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.85;
}
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1120px; margin: auto; padding: 22px 32px; }
.brand { display: flex; align-items: center; font: 700 19px var(--mono); letter-spacing: -.04em; }
.brand-mark { color: var(--accent); margin-right: 12px; flex-shrink: 0; }
.brand-mark svg { width: 22px; height: 22px; vertical-align: -4px; }
.header-label { font-size: 14px; margin-left: 18px; letter-spacing: .06em; font-weight: 500; }
.hero { max-width: 1120px; margin: auto; padding: 70px 32px 50px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: center; }
.hero > * { min-width: 0; }
.eyebrow { font: 13px var(--mono); color: var(--accent); letter-spacing: .1em; margin: 0 0 18px; }
.hero h1 { font-size: clamp(36px, 5vw, 58px); line-height: 1.22; letter-spacing: -.035em; margin: 0 0 24px; font-weight: 650; }
.hero-subtitle { font-size: 20px; font-weight: 600; line-height: 1.8; margin: 0 0 14px; }
.hero-copy { margin: 0; color: var(--muted); font-size: 16px; line-height: 2; }
.terminal { background: #282822; color: #eeece4; border: 1px solid #36362f; border-radius: 10px; overflow: hidden; box-shadow: 0 16px 35px #28282212; }
.terminal-bar { padding: 12px 20px; border-bottom: 1px solid #45453b; font: 12px var(--mono); color: #b9b8ac; letter-spacing: .04em; }
.terminal-body { padding: 27px 24px 30px; font: 14px/1.9 var(--mono); }
.terminal-body p { margin: 0 0 14px; }
.terminal-body .terminal-title { color: #efac87; font-size: 18px; margin-bottom: 16px; }
.terminal-body .terminal-answer { color: #c5c5b6; padding-left: 17px; border-left: 2px solid #686959; margin-bottom: 0; }
.wrap { max-width: 760px; padding: 0 24px; margin: 0 auto 72px; }
.q { background: var(--card); border: 1px solid var(--line); padding: 24px 26px; margin-bottom: 14px; border-radius: 8px; }
.q .label { display: block; font-size: 16px; font-weight: 700; margin: 0 0 12px; line-height: 1.8; }
.q .sub { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.req { display: inline-block; color: var(--accent); font-size: 12px; font-weight: 500; background: #f6e8df; padding: 2px 6px; border-radius: 3px; margin-left: 9px; vertical-align: 1px; }
.opt-tag { color: var(--muted); font-size: 12px; margin-left: 9px; font-weight: 400; white-space: nowrap; }
input[type="text"], textarea, select { width: 100%; min-width: 0; min-height: 48px; border: 1px solid var(--line); border-radius: 5px; background: var(--card); color: var(--text); padding: 13px 14px; font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
textarea { display: block; min-height: 132px; resize: vertical; }
select {
  appearance: none;
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%2368665e' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.birth-fields { display: grid; grid-template-columns: minmax(0, 2.5fr) repeat(2, minmax(0, 1fr)); gap: 9px; }
input[type="text"]:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px #b34e311c; }
.opt { display: block; position: relative; margin-bottom: 9px; cursor: pointer; }
.opt:last-child { margin-bottom: 0; }
.opt input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.opt span { display: block; position: relative; font-size: 15px; border: 1px solid var(--line); border-radius: 5px; padding: 13px 44px 13px 16px; min-height: 48px; }
.opt:hover span { background: #f6f3eb; }
.opt input:checked + span { background: #f8ebe2; font-weight: 500; border-color: var(--accent); }
.opt input:checked + span::after { content: "✓"; position: absolute; top: 50%; right: 14px; transform: translateY(-50%); color: var(--accent); font-size: 16px; }
.opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; box-shadow: 0 0 0 3px #b34e311c; }
.q .note-label { margin-top: 24px; }
.q.error { border-color: #c0704f; }
.err { color: #a4462f; font-size: 14px; margin: 8px 0 0; }
.usage-note { font-size: 14px; color: var(--muted); text-align: center; margin: 26px 4px 0; }
.submit { width: 100%; min-height: 44px; margin-top: 26px; border: 0; border-radius: 6px; padding: 18px; background: var(--accent); color: #fff; font: 700 17px/1.5 -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif; letter-spacing: .07em; cursor: pointer; }
.submit:hover, .submit:active { background: #983f27; }
.submit:disabled { background: #a29b90; cursor: default; }
.submit:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.submit-error { text-align: center; }
.completion-wrap { margin-top: 70px; }
.done { padding: 48px 24px; border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 10px; background: var(--card); text-align: center; }
.done h2 { font-size: 23px; margin: 0 0 12px; }
.done p { color: var(--muted); font-size: 16px; margin: 0; }
.done .line-request { font-size: 18px; font-weight: 700; color: #26251f; margin: 24px 0; padding: 16px 18px; background: #f8ebe2; border-radius: 6px; border-left: 3px solid #b34e31; }
.done .trial-note { font-size: 12px; margin-top: 20px; }
.site-footer { border-top: 1px solid var(--line); background: #eeece4; }
.footer-inner { max-width: 1120px; margin: auto; padding: 36px 32px; display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.footer-brand { font: 600 16px/1.85 var(--mono); margin: 0; }
.footer-right { font-size: 13px; color: var(--muted); margin: 0; text-align: right; }
@media (max-width: 760px) {
  .header-inner { padding: 17px 20px; }
  .hero { padding: 42px 24px 32px; grid-template-columns: 1fr; gap: 28px; }
  .hero h1 { font-size: 42px; margin-bottom: 18px; }
  .terminal-body { padding: 20px; font-size: 14px; }
  .wrap { padding: 0 20px; margin-bottom: 48px; }
  .q { padding: 20px 18px; }
  .birth-fields { grid-template-columns: minmax(0, 1fr) 57px 57px; gap: 5px; }
  .birth-fields select { padding-left: 6px; padding-right: 15px; background-position: right 4px center; background-size: 8px auto; }
  .completion-wrap { margin-top: 42px; }
  .footer-inner { display: block; padding: 28px 24px; }
  .footer-right { margin-top: 18px; text-align: left; }
}
