:root {
  color-scheme: light;
  --paper: #f6f4ef;
  --ink: #221c30;
  --muted: #625b6a;
  --accent: #5434aa;
  --lavender: #ece5fa;
  --line: #e6e0e8;
  font: 16px/1.65 "Inter", "Yu Gothic UI", "Hiragino Sans", Meiryo, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); }
a { color: var(--accent); text-underline-offset: .25em; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #784bea; outline-offset: 3px; }
.wrap { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.bar { border-bottom: 1px solid #e4ded9; }
.bar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 12px; }
.brand { color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: -.03em; display: flex; align-items: center; gap: 9px; }
.brand-icon { display: grid; place-items: center; width: 30px; height: 30px; color: white; background: var(--accent); border-radius: 8px; }
.nav { color: var(--ink); font-size: .85rem; }
.hero { display: grid; grid-template-columns: 1.55fr 1fr; align-items: center; gap: 24px; min-height: 337px; margin: 26px 0 24px; padding: 36px clamp(28px, 5vw, 60px); background: var(--lavender); border: 1px solid #e4d9f3; border-radius: 26px; overflow: hidden; }
.year { display: inline-flex; gap: 10px; align-items: center; background: #f9f6ff; color: #4d2a95; border: 1px solid #d9cbee; border-radius: 999px; padding: 3px 12px; font-size: .82rem; font-weight: 750; }
.year span { border-left: 1px solid #d9cbee; padding-left: 10px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.45rem); line-height: 1.15; letter-spacing: -.075em; margin: 16px 0 14px; }
.hero p { max-width: 415px; color: #514361; font-size: .96rem; }
.hero-art { position: relative; min-height: 248px; isolation: isolate; }
.hero-art::before { position: absolute; content: ""; width: 245px; height: 245px; border: 1px solid #cdb9eb; border-radius: 50%; left: 50%; top: 50%; transform: translate(-50%,-50%); }
.sheet { position: absolute; left: 50%; top: 50%; width: 147px; height: 188px; border: 2px solid #50348a; border-radius: 13px; }
.sheet-back { background: #c6aef1; transform: translate(-38%,-52%) rotate(14deg); }
.sheet-front { background: #fffdf9; transform: translate(-60%,-48%) rotate(-9deg); padding: 21px 17px; box-shadow: 0 12px 25px #4a2e6d26; }
.sheet-front i { display: block; width: 69px; height: 7px; border-radius: 8px; background: #63449a; margin: 4px 0 18px; }
.sheet-front b { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; }
.sheet-front em { display: grid; place-items: center; width: 22px; height: 22px; background: #e5d8fa; border-radius: 5px; font: bold 15px/1 sans-serif; color: #5434aa; }
.sheet-front b:last-child em { border: 1px solid #b9a5d4; background: transparent; }
.sheet-front b span { height: 4px; width: 64px; background: #d7c9e8; border-radius: 4px; }
.spark { position: absolute; top: 12px; left: 75%; color: #6a4aa7; font-size: 42px; line-height: 1; }
.spark.small { top: auto; bottom: 25px; left: 18%; font-size: 23px; }
.workspace { display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1.16fr); gap: 20px; align-items: start; }
.panel { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: clamp(18px, 3vw, 28px); }
.section-title { display: flex; align-items: center; gap: 10px; }
.step { flex: 0 0 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--lavender); color: var(--accent); font-size: .9rem; font-weight: 800; }
h2 { font-size: 1.35rem; line-height: 1.4; letter-spacing: -.04em; }
.muted { color: var(--muted); font-size: .86rem; margin: 8px 0 14px; }
fieldset { padding: 0; margin: 0; border: 0; min-width: 0; }
.option, .check-row { display: flex; align-items: flex-start; gap: 11px; cursor: pointer; }
.option { margin-top: 7px; border: 1px solid var(--line); padding: 10px 11px; border-radius: 10px; font-size: .88rem; font-weight: 650; }
.option:hover, .check-row:hover { background: #f9f6ff; }
.option:has(input:checked) { background: #f3edff; border-color: #cbb8ea; }
input[type=checkbox] { width: 18px; height: 18px; margin: 3px 0 0; flex: 0 0 18px; accent-color: var(--accent); cursor: pointer; }
small { display: block; color: var(--muted); font-weight: 400; }
.save { margin: 14px 0 0; font-size: .76rem; }
.progress-row { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; font-size: .83rem; color: var(--muted); }
.progress-row strong { color: var(--accent); font-variant-numeric: tabular-nums; }
progress { width: 100%; height: 8px; display: block; margin: 8px 0 10px; appearance: none; border: 0; border-radius: 10px; overflow: hidden; background: var(--lavender); color: var(--accent); }
progress::-webkit-progress-bar { background: var(--lavender); }
progress::-webkit-progress-value { background: var(--accent); }
progress::-moz-progress-bar { background: var(--accent); }
.checklist { margin: 0; padding: 0; list-style: none; }
.checklist li { border-bottom: 1px solid var(--line); }
.check-row { padding: 12px 4px; border-radius: 8px; }
.check-row strong { font-size: .94rem; display: block; }
.check-row small { margin-top: 2px; font-size: .79rem; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
button { cursor: pointer; font: inherit; font-size: .82rem; font-weight: 700; color: white; background: var(--accent); border: 1px solid var(--accent); border-radius: 9px; padding: 8px 13px; min-height: 40px; }
button:hover { background: #452789; }
button.quiet { background: white; color: var(--accent); border-color: var(--line); }
button.quiet:hover { background: #f7f2ff; }
.ad { position: relative; min-height: 104px; display: grid; place-items: center; text-align: center; margin: 22px 0; border: 1px dashed #c9c1cf; border-radius: 14px; color: var(--muted); background: #f1edf2; padding: 30px 0 12px; font-size: .83rem; }
.ad-label { position: absolute; top: 9px; left: 12px; font-size: .7rem; color: #554c60; }
#ad-slot { width: 100%; line-height: 0; }
.admax-ads { max-width: 100%; overflow: hidden; }
.guide { padding: 12px 0 30px; }
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 14px; }
.guide article { padding: 17px 18px; background: #fff; border: 1px solid var(--line); border-radius: 13px; font-size: .85rem; }
.guide h3 { font-size: .98rem; margin-bottom: 5px; }
.guide p { color: var(--muted); }
.guide article a { display: inline-block; margin-top: 6px; }
.footer { display: flex; justify-content: space-between; gap: 14px; padding: 19px 0 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
.policy { max-width: 750px; margin-block: 32px; }
.policy h1 { font-size: 2rem; letter-spacing: -.035em; }
.policy h2 { margin-top: 21px; }
.policy p { margin-top: 7px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 760px) {
  .wrap { width: calc(100% - 32px); }
  .workspace, .guide-grid { grid-template-columns: 1fr; gap: 14px; }
  .hero { min-height: 0; padding: 25px; grid-template-columns: minmax(0,1fr) 116px; gap: 8px; }
  .hero-art { transform: scale(.52); }
}
@media (max-width: 470px) {
  .bar-inner { min-height: 60px; }
  .hero { display: block; margin-top: 16px; }
  .hero-art { display: none; }
  .nav { font-size: .75rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  body { background: white; }
  .bar, .settings, .ad, .actions, .footer, .hero-art, .hero p { display: none; }
  .wrap { width: 100%; }
  .workspace, .hero { display: block; }
  .hero { min-height: 0; padding: 0; margin: 0 0 16px; border: 0; }
  h1 { font-size: 24pt; }
  h1 br { display: none; }
  .panel { padding: 12px; }
  .checklist li, .guide article { break-inside: avoid; }
}
