:root {
  color-scheme: light;
  --ink: #17313a;
  --muted: #64777c;
  --paper: #fffdf8;
  --line: #dce7e4;
  --mint: #d9f3e8;
  --mint-soft: #f1faf6;
  --mint-strong: #48aa83;
  --mint-dark: #247858;
  --amber: #f7be56;
  --shadow: 0 16px 46px rgba(36, 91, 79, 0.1);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", system-ui, sans-serif;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.94);
}

.header-inner,
main,
footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: var(--mint);
  color: var(--mint-dark);
  font-size: 13px;
  font-weight: 800;
}

.brand p,
footer p {
  margin: 0;
}

.brand-name {
  font-size: 15px;
  font-weight: 800;
}

.brand-sub,
.privacy-badge,
.optional {
  color: var(--muted);
  font-size: 12px;
}

.privacy-badge {
  padding: 7px 11px;
  border-radius: 999px;
  background: #edf8f4;
}

.hero {
  padding: 76px 0 34px;
  text-align: center;
}

.eyebrow,
.step,
.panel-label {
  margin: 0 0 10px;
  color: var(--mint-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(34px, 6vw, 60px);
  letter-spacing: -0.07em;
}

h2 {
  margin-bottom: 0;
  font-size: 23px;
  letter-spacing: -0.04em;
}

.hero-copy {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}

.tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.form-card,
.result-card {
  padding: 28px;
}

.card-heading {
  padding-bottom: 21px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}

label {
  display: block;
  color: #28454d;
  font-size: 13px;
  font-weight: 800;
}

input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  outline: none;
}

.input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 8px;
  border: 1px solid #ccdcda;
  border-radius: 12px;
  background: #fbfdfc;
  color: var(--muted);
  font-size: 13px;
  padding: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-wrap:focus-within {
  border-color: var(--mint-strong);
  box-shadow: 0 0 0 4px rgba(72, 170, 131, 0.13);
}

.form-card > label,
.two-columns,
.optional-box {
  margin-bottom: 18px;
}

.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.optional-box {
  padding: 15px;
  border-radius: 15px;
  background: var(--mint-soft);
}

.optional-box p {
  margin-bottom: 13px;
  color: #315c58;
  font-size: 13px;
  font-weight: 800;
}

.optional-box .two-columns {
  margin-bottom: 0;
}

button {
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
}

.primary-button {
  width: 100%;
  padding: 15px 18px;
  background: var(--mint-strong);
  color: #fff;
}

.primary-button:hover {
  background: var(--mint-dark);
}

.empty-state {
  display: grid;
  min-height: 450px;
  place-content: center;
  color: var(--muted);
  line-height: 1.9;
  text-align: center;
}

.empty-icon {
  color: var(--mint-strong);
  font-size: 50px;
  font-weight: 800;
}

.main-result {
  padding: 20px;
  border-radius: 18px;
  background: var(--mint);
  text-align: center;
}

.main-result p {
  margin-bottom: 8px;
  color: #315c58;
  font-size: 13px;
  font-weight: 800;
}

.main-result strong {
  display: block;
  margin-bottom: 16px;
  color: var(--mint-dark);
  font-size: 56px;
  letter-spacing: -0.08em;
}

.main-result small {
  margin-left: 8px;
  font-size: 15px;
  letter-spacing: 0;
}

.result-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0 0;
  border-top: 1px solid rgba(36, 120, 88, 0.16);
  margin-top: 10px;
  color: #315c58;
  font-size: 13px;
}

.gap-panel,
.advice-panel,
.scenario-panel {
  padding: 17px 0 0;
}

.advice-panel p:last-child {
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 0;
  background: #fff5da;
  color: #7a5921;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.75;
}

.gap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.gap-grid div {
  padding: 12px 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfdfc;
  text-align: center;
}

.gap-grid span,
.scenario span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.gap-grid b {
  display: block;
  margin-top: 4px;
  color: var(--mint-dark);
  font-size: 15px;
}

.scenario {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.scenario:first-child {
  border-top: 0;
}

.scenario b {
  color: var(--mint-dark);
  font-size: 14px;
  text-align: right;
}

.tips {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  margin: 80px 0 58px;
  padding: 36px;
  border-radius: 22px;
  background: var(--mint);
}

.tips ul {
  margin: 0;
  padding-left: 21px;
  color: #315c58;
  font-size: 14px;
  line-height: 2.1;
}

footer {
  padding: 0 0 28px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

@media (max-width: 800px) {
  .tool-layout,
  .tips {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 52px;
  }

  .privacy-badge {
    display: none;
  }

  .form-card,
  .result-card,
  .tips {
    padding: 20px;
  }

  .empty-state {
    min-height: 240px;
  }
}

@media (max-width: 430px) {
  .two-columns {
    grid-template-columns: 1fr;
  }

  .gap-grid {
    grid-template-columns: 1fr;
  }
}
