:root {
  --ink: #161616;
  --paper: #f5f1e8;
  --card: #fffdf8;
  --red: #f04438;
  --red-dark: #b42318;
  --yellow: #fdb022;
  --green: #12b76a;
  --line: #d7d0c3;
  --muted: #6f6a61;
  --shadow: 8px 8px 0 #161616;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, rgba(240, 68, 56, .08), transparent 25%),
    linear-gradient(rgba(22,22,22,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22,22,22,.045) 1px, transparent 1px),
    var(--paper);
  background-size: auto, 24px 24px, 24px 24px, auto;
  font-family: "Yu Gothic UI", "Hiragino Kaku Gothic ProN", system-ui, sans-serif;
}

button, textarea, input { font: inherit; }
button { cursor: pointer; }

.site-header {
  height: 68px;
  padding: 0 max(22px, calc((100vw - 1040px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--ink);
  background: rgba(245,241,232,.92);
}
.brand { color: var(--ink); text-decoration: none; font-weight: 900; letter-spacing: -.03em; }
.brand span { padding: 2px 7px; color: white; background: var(--red); font-size: 11px; vertical-align: 2px; }
.privacy { font-size: 12px; color: var(--muted); }

main { width: min(1040px, calc(100% - 32px)); margin: 0 auto; }
.hero { padding: 70px 0 40px; text-align: center; }
.eyebrow, .step { color: var(--red-dark); font-size: 12px; font-weight: 900; letter-spacing: .16em; }
.hero h1 { margin: 8px 0 16px; font-size: clamp(48px, 9vw, 92px); line-height: .95; letter-spacing: -.08em; }
.hero h1 span { color: var(--red); position: relative; }
.hero h1 span::after { content: ""; position: absolute; left: 2px; right: -4px; bottom: -4px; height: 8px; background: var(--yellow); z-index: -1; transform: rotate(-2deg); }
.lead { max-width: 650px; margin: 0 auto; color: var(--muted); font-weight: 600; line-height: 1.8; }

.checker-card, .result {
  background: var(--card);
  border: 3px solid var(--ink);
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 42px);
}
.card-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.card-heading h2 { margin: 3px 0 18px; font-size: clamp(22px, 4vw, 32px); letter-spacing: -.04em; }
.step { margin: 0; }
.text-button { border: 0; background: transparent; color: var(--red-dark); font-weight: 800; text-decoration: underline; padding: 8px 0; }
.text-button.muted { color: var(--muted); }
textarea {
  width: 100%; min-height: 260px; padding: 20px; resize: vertical;
  color: var(--ink); background: white; border: 2px solid var(--ink); outline: 0; line-height: 1.7;
}
textarea:focus, input:focus { box-shadow: 0 0 0 4px rgba(240,68,56,.18); }
.input-meta { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 12px; }
.optional-fields { margin: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; }
.optional-fields summary { cursor: pointer; font-weight: 800; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-top: 18px; }
.field-grid label { display: grid; gap: 7px; color: var(--muted); font-size: 13px; font-weight: 700; }
.field-grid input { width: 100%; border: 2px solid var(--ink); padding: 12px; background: white; outline: 0; }
.primary-button, .share-button {
  width: 100%; border: 2px solid var(--ink); padding: 17px 22px; color: white; background: var(--red);
  font-size: 18px; font-weight: 900; box-shadow: 4px 4px 0 var(--ink); transition: .15s ease;
}
.primary-button:hover, .share-button:hover { transform: translate(2px,2px); box-shadow: 2px 2px 0 var(--ink); }
.primary-button span { float: right; }
.error { min-height: 20px; margin: 12px 0 -12px; color: var(--red-dark); font-weight: 800; }

.result { margin-top: 56px; }
.hidden { display: none !important; }
.result-top { display: grid; grid-template-columns: 230px 1fr; gap: 42px; align-items: center; padding-bottom: 34px; border-bottom: 2px solid var(--ink); }
.gauge-wrap { text-align: center; }
.gauge {
  --gauge-color: var(--green); width: 190px; height: 190px; margin: auto; border-radius: 50%;
  display: grid; place-items: center; background: conic-gradient(var(--gauge-color) calc(var(--score) * 1%), #e6e1d7 0);
  position: relative;
}
.gauge::before { content: ""; position: absolute; inset: 18px; border-radius: 50%; background: var(--card); }
.gauge div { position: relative; line-height: 1; }
.gauge strong { font-size: 62px; letter-spacing: -.08em; }
.gauge span { font-weight: 900; }
.gauge-wrap > p { margin-bottom: 0; font-weight: 900; letter-spacing: .1em; }
.rank { display: inline-block; margin: 0 0 12px; padding: 5px 10px; color: white; background: var(--ink); font-size: 12px; font-weight: 900; }
.verdict h2 { margin: 0 0 12px; font-size: clamp(28px, 5vw, 50px); line-height: 1.1; letter-spacing: -.06em; }
.verdict > p:not(.rank) { color: var(--muted); line-height: 1.7; }
.hourly { display: inline-block; margin-top: 10px; padding: 10px 14px; border: 2px solid var(--ink); font-weight: 900; background: #fff3cd; }
.result-columns { display: grid; grid-template-columns: 1.4fr .8fr; gap: 28px; padding-top: 32px; }
.result-columns h3 { margin-top: 0; font-size: 18px; }
.findings { display: grid; gap: 10px; }
.finding { display: grid; grid-template-columns: 35px 1fr; gap: 10px; padding: 13px; border: 1px solid var(--line); background: white; }
.finding .icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #fee4e2; }
.finding strong { display: block; margin-bottom: 3px; }
.finding p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.finding.good .icon { background: #d1fadf; }
.advice-box { padding: 22px; color: white; background: var(--ink); align-self: start; }
.advice-box p { line-height: 1.7; }
.disclaimer { color: #aaa59d; font-size: 11px; }
.share-area { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; margin-top: 30px; }
.share-button { background: var(--ink); font-size: 15px; }
.secondary-button { border: 2px solid var(--ink); background: white; font-weight: 800; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 80px 0; }
.features article { border-top: 3px solid var(--ink); padding-top: 16px; }
.features span { color: var(--red); font-weight: 900; }
.features h3 { margin-bottom: 6px; }
.features p { margin: 0; color: var(--muted); font-size: 14px; }
footer { padding: 24px; border-top: 2px solid var(--ink); text-align: center; color: var(--muted); font-size: 12px; }

@media (max-width: 720px) {
  .privacy { display: none; }
  .hero { padding-top: 50px; }
  .result-top, .result-columns { grid-template-columns: 1fr; }
  .result-top { text-align: center; }
  .field-grid, .features { grid-template-columns: 1fr; }
  .share-area { grid-template-columns: 1fr; }
  .secondary-button { min-height: 48px; }
  .card-heading { align-items: start; }
}
