:root {
  --paper: #f4f7fa;
  --cream: #eaf1f4;
  --ink: #132238;
  --muted: #556577;
  --line: #cfd9e2;
  --orange: #0f766e;
  --orange-dark: #0b5f59;
  --green: #426879;
  --white: #ffffff;
  --navy: #10243e;
  --navy-soft: #183653;
  --teal-soft: #dff4f0;
  --blue-soft: #e8f0f7;
}

body {
  background: var(--paper);
  font-family: "Noto Sans JP", system-ui, sans-serif;
  letter-spacing: .01em;
}

h1, h2, .section-intro h2, .method h2, .sources h2, .salary-guide h2,
.next-content h2, .article-grid h3, .flow-title b, .result-main strong {
  font-family: "Noto Sans JP", system-ui, sans-serif;
  letter-spacing: -.025em;
}

.site-header {
  height: 68px;
  border-bottom: 1px solid #dce4ea;
  background: rgba(255,255,255,.96);
  box-shadow: 0 1px 0 rgba(16,36,62,.03);
}

.brand { font-family: inherit; font-size: 16px; font-weight: 800; }
.brand b { color: var(--orange); }
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--navy);
  font-family: inherit;
  font-size: 14px;
}
.site-header nav a { color: #44576b; font-size: 12px; }
.site-header nav a:hover { color: var(--orange); }
.header-cta {
  border-radius: 7px;
  background: var(--navy);
  padding: 9px 17px;
}

.hero {
  min-height: 0;
  padding: 84px max(7vw, 24px) 76px;
  text-align: left;
  background:
    linear-gradient(90deg, rgba(15,118,110,.08) 1px, transparent 1px),
    linear-gradient(rgba(15,118,110,.08) 1px, transparent 1px),
    linear-gradient(135deg, #f8fbfd 0%, #eef5f6 100%);
  background-size: 40px 40px, 40px 40px, auto;
}
.hero > * { max-width: 1120px; margin-left: auto; margin-right: auto; }
.eyebrow {
  justify-content: flex-start;
  color: var(--orange-dark);
  font-size: 11px;
  letter-spacing: .1em;
}
.eyebrow span { background: var(--orange); }
.hero-question {
  margin-top: 24px;
  max-width: 760px;
  font-size: clamp(38px, 5.2vw, 68px);
  font-weight: 800;
  line-height: 1.28;
  color: var(--navy);
}
.hero-question em { color: var(--orange-dark); font-style: normal; }
.hero h1 {
  margin-top: 24px;
  font-size: clamp(21px, 2.2vw, 30px);
  line-height: 1.4;
}
.hero > p:not(.hero-question) { margin-left: max(0px, calc((100% - 1120px) / 2)); color: var(--muted); }
.hero-actions { justify-content: flex-start; margin-top: 28px; }
.primary, .calculate {
  border-radius: 7px;
  background: var(--orange);
  box-shadow: 0 8px 20px rgba(15,118,110,.18);
}
.trust-row {
  justify-content: flex-start;
  margin-top: 30px;
  color: #365f68;
}
.trust-row span {
  padding: 6px 10px;
  border: 1px solid #c8dedc;
  border-radius: 999px;
  background: rgba(255,255,255,.75);
}

.how-it-works {
  max-width: 1120px;
  margin: 0 auto;
  border: 0;
  border-bottom: 1px solid var(--line);
  box-shadow: none;
  background: var(--white);
}
.kicker { color: var(--orange-dark); letter-spacing: .11em; }

.calculator-wrap { padding: 84px max(5vw,24px); background: var(--paper); }
.section-intro { max-width: 1000px; text-align: left; }
.section-intro h2 { font-size: clamp(30px,3.3vw,46px); color: var(--navy); }
.kicker i { color: #315a61; background: var(--teal-soft); border-radius: 999px; }
.audience-notice {
  max-width: 1120px;
  border: 1px solid #cddbe2;
  border-radius: 10px;
  background: #f8fbfc;
  box-shadow: none;
}
.audience-status { color: #385e68; background: var(--blue-soft); }
.calculator-grid {
  max-width: 1120px;
  gap: 18px;
  box-shadow: none;
}
.calc-card, .result-card { border-radius: 12px; }
.calc-card { border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(16,36,62,.06); }
.result-card {
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-soft) 100%);
  box-shadow: 0 12px 30px rgba(16,36,62,.14);
}
.calculator-lock-note { border-radius: 8px; background: var(--teal-soft); color: #244f55; }
.mode-tabs { border-radius: 8px; background: #edf2f5; }
.mode-tabs .active { border-radius: 6px; color: var(--navy); }
.input-wrap, input, select { border-radius: 7px; }
.input-wrap:focus-within { outline-color: rgba(15,118,110,.3); border-color: var(--orange); }
.bar span { background: #36b7a7; }
.share { border-radius: 7px; }
.result-warnings { border-radius: 8px; background: rgba(255,255,255,.04); }

.salary-guide { background: #eaf1f4; }
.salary-links button { border-radius: 7px; background: rgba(255,255,255,.55); }
.salary-links button:hover { background: var(--orange); border-color: var(--orange); }
.method { background: var(--navy); }
.method-list li { border-color: rgba(255,255,255,.15); }
.method-list li:last-child { border-color: rgba(255,255,255,.15); }
.method-list li > b { color: #74d2c7; }
.source-grid a, .article-grid a { border-radius: 9px; box-shadow: 0 6px 18px rgba(16,36,62,.04); }
.source-grid a:hover, .article-grid a:hover { border-color: var(--orange); }
.faq { background: #eaf1f4; }
.notice { border-left-color: var(--orange); background: var(--teal-soft); }
footer { background: #09192c; }

.legal-main { max-width: 920px; }
.legal-hero { padding: 38px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.legal-hero h1 { color: var(--navy); font-family: inherit; }
.draft-badge { border-radius: 999px; background: var(--teal-soft); color: var(--orange-dark); }
.legal-section { padding: 38px 8px; }
.legal-section h2 { color: var(--navy); font-family: inherit; }
.legal-section a { color: var(--orange-dark); }
.legal-meta div { border-radius: 8px; background: var(--blue-soft); }
.legal-back { color: var(--navy); }

@media (max-width: 760px) {
  .hero { padding-top: 52px; padding-bottom: 54px; }
  .hero-question { font-size: clamp(32px,10vw,44px); }
  .hero-actions { align-items: center; flex-direction: row; flex-wrap: wrap; gap: 16px; }
  .trust-row { align-items: flex-start; flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .trust-row span { padding: 5px 8px; font-size: 10px; }
  .how-it-works { border-top: 1px solid var(--line); }
  .calc-card, .result-card { border-radius: 10px; }
  .legal-hero { padding: 26px 22px; }
}

/* Utility-dashboard hero: the service begins with inputs, not a campaign message. */
.hero-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, .85fr);
  gap: clamp(38px, 7vw, 92px);
  align-items: center;
  max-width: none;
  min-height: 560px;
  padding-top: 76px;
  padding-bottom: 76px;
  background-size: 64px 64px, 64px 64px, auto;
}
.hero-dashboard > * { width: 100%; max-width: none; margin: 0; }
.hero-copy { justify-self: end; max-width: 660px; }
.hero-service-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid #bad9d5;
  border-radius: 5px;
  background: rgba(255,255,255,.72);
  color: var(--orange-dark);
  font-size: 11px;
  font-weight: 700;
}
.hero-dashboard h1 {
  margin: 22px 0 16px;
  color: var(--navy);
  font-size: clamp(38px, 4.5vw, 64px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.045em;
}
.hero-copy > p { max-width: 620px; margin: 0; color: var(--muted); font-size: 15px; }
.verification-status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  margin: 30px 0 16px;
  border: 1px solid #cbd9e1;
  border-radius: 9px;
  background: rgba(255,255,255,.82);
  overflow: hidden;
}
.verification-status div { padding: 14px 16px; border-left: 1px solid #d9e3e8; }
.verification-status div:first-child { border-left: 0; }
.verification-status dt { color: #68798a; font-size: 10px; font-weight: 700; }
.verification-status dd { margin: 4px 0 0; color: var(--navy); font-size: 13px; font-weight: 700; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #169b84; box-shadow: 0 0 0 3px rgba(22,155,132,.12); }
.hero-copy .hero-data-note { color: #4c6978; font-size: 11px; }

.quick-calc {
  justify-self: start;
  max-width: 430px;
  padding: 28px;
  border: 1px solid #c8d6df;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(16,36,62,.1);
}
.quick-heading { margin-bottom: 22px; }
.quick-heading > span { color: var(--orange-dark); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.quick-heading h2 { margin: 4px 0 0; color: var(--navy); font-size: 22px; }
.quick-calc label { display: block; margin-top: 16px; }
.quick-calc label > span:first-child { display: block; margin-bottom: 7px; color: #334a60; font-size: 12px; font-weight: 700; }
.quick-input { display: flex; align-items: center; padding-right: 14px; border: 1px solid var(--line); border-radius: 7px; }
.quick-input:focus-within { border-color: var(--orange); outline: 3px solid rgba(15,118,110,.12); }
.quick-input input { min-height: 49px; padding: 10px 14px; font-size: 21px; }
.quick-input b { color: #536779; font-size: 12px; }
.quick-calc select { min-height: 49px; font-size: 14px; }
.quick-calc button {
  width: 100%;
  min-height: 52px;
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 7px;
  background: var(--orange);
  color: white;
  padding: 0 18px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.quick-calc button:hover { background: var(--orange-dark); }
.quick-calc > a { display: block; margin-top: 13px; color: #405a6f; text-align: center; font-size: 11px; }

.tool-progress {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 max(24px, 3vw);
  background: white;
}
.tool-progress ol { margin: 0; padding: 22px 0; display: grid; grid-template-columns: repeat(3,1fr); list-style: none; border-bottom: 1px solid var(--line); }
.tool-progress li { position: relative; display: flex; align-items: center; gap: 10px; color: #6b7a89; font-size: 12px; }
.tool-progress li + li::before { content: ""; position: absolute; left: -50%; right: calc(100% + 14px); top: 50%; height: 1px; background: #cfd9e2; }
.tool-progress li span { position: relative; z-index: 1; display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid #b8c7d2; border-radius: 50%; background: white; font-size: 10px; }
.tool-progress .current { color: var(--navy); }
.tool-progress .current span { border-color: var(--orange); background: var(--orange); color: white; }

.method-list > b, .method-list li > b { font-family: inherit; }

@media (max-width: 860px) {
  .hero-dashboard { grid-template-columns: 1fr; min-height: 0; gap: 32px; }
  .hero-copy, .quick-calc { justify-self: stretch; max-width: none; }
  .quick-calc { box-shadow: 0 10px 28px rgba(16,36,62,.08); }
}

@media (max-width: 600px) {
  .hero-dashboard { padding: 42px 20px 48px; background-size: 72px 72px,72px 72px,auto; }
  .hero-dashboard h1 { font-size: 36px; }
  .hero-copy > p { font-size: 13px; }
  .verification-status { grid-template-columns: 1fr; }
  .verification-status div { padding: 11px 14px; border-left: 0; border-top: 1px solid #d9e3e8; }
  .verification-status div:first-child { border-top: 0; }
  .quick-calc { padding: 22px; }
  .tool-progress { padding: 0 20px; }
  .tool-progress li { gap: 6px; font-size: 10px; }
  .tool-progress li span { width: 23px; height: 23px; }
}
