:root {
  --ink: #17202b;
  --muted: #667085;
  --line: #d9e1ea;
  --paper: #ffffff;
  --soft: #f5f8fb;
  --pale: #eaf5fb;
  --navy: #12315b;
  --blue: #1767b1;
  --cyan: #1aa6b7;
  --amber: #d98b2b;
  --shadow: 0 10px 28px rgba(18, 49, 91, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
#top, #calculator, #estimate-form, #capacity, #service, #faq, #quote-flow, #final-cta { scroll-margin-top: 88px; }
body {
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans JP", sans-serif;
  background: var(--paper);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: normal;
  line-break: strict;
  overflow-wrap: break-word;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.15em; height: 1.15em; flex: 0 0 auto; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; fill: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(20px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(217, 225, 234, 0.9);
  backdrop-filter: blur(16px);
}
.brand { display: inline-flex; min-width: 360px; align-items: center; gap: 12px; }
.brand-mark {
  display: inline-flex;
  width: 200px;
  min-width: 200px;
  height: 44px;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}
.brand-mark img { display: block; height: auto; }
.brand-symbol { width: 58px; }
.brand-type { width: 126px; }
.brand strong, .brand small { display: block; }
.brand strong { color: var(--navy); font-size: 14px; line-height: 1.25; }
.brand-en { display: inline-block; margin-left: 4px; font-size: 12px; font-weight: 700; }
.brand small { color: var(--muted); font-size: 12px; line-height: 1.2; }
.site-nav { display: flex; align-items: center; gap: 20px; color: #344054; font-size: 14px; font-weight: 700; }
.nav-cta { padding: 9px 16px; color: #fff; background: var(--navy); border-radius: 4px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  min-height: auto;
  padding: clamp(34px, 4.4vw, 56px) clamp(20px, 6vw, 76px);
  background:
    linear-gradient(90deg, rgba(247,250,252,1) 0%, rgba(247,250,252,.96) 54%, rgba(235,244,250,.9) 100%);
}
.hero-copy { max-width: 720px; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 680px;
  margin-bottom: 24px;
  font-size: clamp(40px, 4.3vw, 58px);
  line-height: 1.14;
  letter-spacing: 0;
  font-weight: 800;
}
.nowrap { white-space: nowrap; }
h2 { margin-bottom: 18px; font-size: clamp(28px, 3vw, 42px); line-height: 1.3; letter-spacing: 0; font-weight: 800; text-wrap: balance; }
h3 { margin-bottom: 10px; font-size: 20px; line-height: 1.45; font-weight: 800; text-wrap: balance; }
.br-mobile { display: none; }
.hero-lead { max-width: 650px; color: #344054; font-size: 17px; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 28px; }
.hero-actions.center { justify-content: center; }
.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  font-weight: 800;
  border: 2px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}
.button:hover { transform: translateY(-1px); }
.button.primary { color: #fff; background: var(--blue); box-shadow: 0 8px 18px rgba(23, 103, 177, 0.24); }
.button.primary:hover { background: #125a9e; box-shadow: 0 10px 22px rgba(23, 103, 177, 0.28); }
.button.secondary { color: var(--navy); background: #fff; border-color: rgba(18, 49, 91, 0.24); box-shadow: 0 4px 12px rgba(18, 49, 91, 0.08); }
.button.secondary:hover { border-color: rgba(18, 49, 91, 0.42); box-shadow: 0 7px 16px rgba(18, 49, 91, 0.12); }
.button.inverse { color: var(--navy); background: #fff; border-color: #fff; box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16); }
.button.ghost-on-dark { color: #fff; background: rgba(255, 255, 255, 0.08); border-color: rgba(255,255,255,.72); }
.button.wide { width: 100%; }
.hero-points, .feature-tags, .material-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-points span, .feature-tags span, .material-tags span {
  padding: 7px 11px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  background: #fff;
  border: 1px solid rgba(18, 49, 91, 0.12);
  border-radius: 4px;
}
.hero-visual { position: relative; }
.hero-image-visual {
  overflow: hidden;
  border: 1px solid #cfd8e3;
  border-radius: 8px;
  box-shadow: 0 20px 46px rgba(18, 49, 91, 0.16);
}
.hero-diagnosis-image {
  display: block;
  width: 100%;
  aspect-ratio: 1672 / 941;
  object-fit: cover;
}
.section, .reason-band, .final-cta { padding: 76px clamp(20px, 5vw, 72px); }
.calculator-section { padding: 60px clamp(20px, 5vw, 72px); background: #fff; }
.section-head { width: min(940px, 100%); margin: 0 auto 34px; text-align: center; }
.section-head.compact { margin-bottom: 20px; }
.section-head p:not(.eyebrow), .media-layout p, .operation-list p, .result-note { color: var(--muted); }
.problem-section, .capacity-section, .achievements, .packaging-section, .quote-flow { background: var(--soft); }

.problem-grid, .reason-grid, .license-grid, .kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  width: min(1180px, 100%);
  margin: 0 auto;
}
.problem-grid article, .reason-grid article, .license-grid article, .kpi-grid div, .service-split article {
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: none;
}
.card-icon {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 18px;
  color: var(--blue);
  background: #eef7fc;
  border: 1px solid #cfeaf3;
  border-radius: 4px;
  font-weight: 800;
}
.card-icon .icon { width: 22px; height: 22px; }

.formula-card {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 40px);
  background: #f7fafc;
  border: 1px solid #cce6f2;
  border-radius: 4px;
}
.formula-title { color: var(--navy); text-align: center; font-size: 24px; font-weight: 800; }
.formula-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.formula-grid div {
  display: grid;
  min-height: 132px;
  place-items: center;
  gap: 8px;
  padding: 18px 12px;
  text-align: center;
  color: var(--navy);
  font-weight: 800;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.formula-grid .icon { width: 30px; height: 30px; color: var(--blue); }
.formula-note { margin: 18px 0 0; color: var(--muted); text-align: center; }

.wizard {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: clamp(18px, 2.6vw, 28px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: none;
}
.wizard-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 22px; padding: 0; list-style: none; }
.wizard-steps li {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: var(--muted);
  font-weight: 800;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 4px;
}
.wizard-steps li::before {
  content: attr(data-step-label);
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.wizard-steps li.is-active { color: #fff; background: var(--navy); border-color: var(--navy); }
.wizard-steps li.is-active::before, .wizard-steps li.is-complete::before { color: var(--navy); background: #fff; border-color: #fff; }
.wizard-steps li.is-complete { color: var(--navy); background: #e9f6fb; border-color: #bee7f0; }
.wizard-panel { display: none; }
.wizard-panel.is-active { display: block; }
.panel-intro { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.panel-intro .card-icon { margin-bottom: 0; }
.panel-intro h3 { margin-bottom: 4px; color: var(--navy); font-size: 22px; }
.panel-intro p { margin-bottom: 0; color: var(--muted); }
fieldset { margin: 0 0 20px; padding: 0; border: 0; }
fieldset:last-child { margin-bottom: 0; }
legend { margin-bottom: 10px; color: var(--navy); font-size: 17px; font-weight: 800; }
.field-grid { display: grid; gap: 12px; }
.field-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wizard-panel[data-step="conditions"] .field-grid.two { grid-template-columns: repeat(4, minmax(0, 1fr)); }
label span { display: block; margin-bottom: 6px; color: #344054; font-size: 13px; font-weight: 700; }
.required { color: #c1121f; }
input, textarea, select {
  width: 100%;
  min-height: 42px;
  padding: 8px 11px;
  color: var(--ink);
  font: inherit;
  background: #fbfcfe;
  border: 1px solid #cfd8e3;
  border-radius: 4px;
}
textarea { resize: vertical; }
select { appearance: auto; }
.full-field { display: block; margin: 16px 0 20px; }
input:focus, textarea:focus, select:focus { outline: 3px solid rgba(26, 166, 183, 0.18); border-color: var(--cyan); }
.field-note { margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.choice-row { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.choice-row label { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; color: #344054; font-weight: 700; }
.choice-row input { width: 18px; min-height: 18px; padding: 0; accent-color: var(--blue); }
.wizard-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; }
.wizard-actions.align-right { justify-content: flex-end; }
.panel-label { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 8px; color: var(--muted); font-size: 13px; font-weight: 800; }
#total-estimate { display: block; margin-bottom: 6px; color: var(--navy); font-size: clamp(40px, 5vw, 64px); font-weight: 800; line-height: 1.05; }
.tax-note { color: var(--muted); font-size: 13px; }
.breakdown { margin: 0; border-top: 1px solid var(--line); }
.breakdown-row { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.breakdown-row span:first-child { color: #475467; }
.breakdown-row strong { white-space: nowrap; }
.result-panel { padding: clamp(22px, 4vw, 34px); background: #fff; border: 1px solid var(--line); border-radius: 4px; }
.result-layout { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(320px, 0.75fr); gap: 34px; align-items: start; }
.result-main-card { padding: 4px 0; }
.result-panel h3 { margin-bottom: 10px; font-size: clamp(28px, 4vw, 44px); }
.notice-list { margin: 18px 0 0; padding-left: 1.2em; color: var(--muted); font-size: 13px; }
.form-status { min-height: 24px; margin: 0; color: var(--blue); font-size: 14px; font-weight: 800; }
.form-error {
  margin-top: 6px;
  color: #b42318;
  font-size: 12px;
  font-weight: 800;
}
.privacy-note { margin: 0 0 16px; color: var(--muted); font-size: 13px; }
.privacy-note label { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.privacy-note input { width: 18px; min-height: 18px; padding: 0; accent-color: var(--blue); }
.privacy-note a { color: var(--blue); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

.media-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: center;
  width: min(1180px, 100%);
  margin: 0 auto;
}
.media-layout.reverse { grid-template-columns: minmax(420px, 1fr) minmax(0, 0.85fr); }
.media-image { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--line); border-radius: 4px; box-shadow: none; filter: saturate(0.9) contrast(0.98); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 24px; }
.stat-grid div {
  position: relative;
  min-height: 178px;
  padding: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, #f5fbff 100%);
  border: 1px solid #c9dce9;
  border-radius: 6px;
}
.stat-grid div::after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -28px;
  width: 92px;
  height: 92px;
  background: rgba(28, 111, 181, 0.08);
  border-radius: 999px;
}
.stat-label {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 5px 8px;
  color: var(--navy);
  font-size: 11px;
  font-weight: 800;
  background: #eaf5fb;
  border-radius: 4px;
}
.stat-grid strong, .kpi-grid strong { display: block; color: var(--blue); font-size: 28px; line-height: 1.1; }
.stat-grid strong {
  white-space: nowrap;
  font-size: clamp(30px, 2.7vw, 40px);
  letter-spacing: 0;
}
.stat-grid strong span {
  display: inline;
  margin-left: 2px;
  color: var(--blue);
  font-size: clamp(18px, 1.55vw, 22px);
  font-weight: 900;
  vertical-align: baseline;
}
.stat-grid p { position: relative; z-index: 1; margin: 12px 0 0; color: #536174; font-size: 13px; line-height: 1.65; }
.kpi-grid span { color: var(--muted); font-size: 13px; font-weight: 800; }

.operation-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  width: min(1080px, 100%);
  margin: 0 auto;
}
.operation-list {
  display: grid;
  gap: 12px;
  min-height: 360px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.operation-list.before { background: #fbfcfe; }
.operation-list.after {
  position: relative;
  overflow: hidden;
  background: #f1f9fc;
  border-color: #b7dfee;
}
.operation-list.after::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -38px;
  width: 140px;
  height: 140px;
  background: rgba(23, 103, 177, 0.08);
  border-radius: 999px;
}
.operation-list h3,
.operation-list p,
.operation-list span { position: relative; z-index: 1; }
.operation-list h3 { color: var(--navy); font-size: 28px; }
.operation-list p { margin-bottom: 2px; }
.operation-list span {
  position: relative;
  display: block;
  padding: 14px 16px 14px 42px;
  color: #475467;
  font-weight: 800;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.operation-list.after span {
  color: var(--navy);
  border-color: #cce6f2;
}
.operation-list span::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: #b8c4d4;
  transform: translateY(-50%);
}
.operation-list.after span::before { background: var(--blue); }
.operation-list small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
}
.operation-arrow {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  justify-self: center;
  color: #fff;
  font-size: 28px;
  font-weight: 900;
  background: var(--blue);
  border-radius: 999px;
}
.kpi-grid div { text-align: center; }

.flow-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: min(1120px, 100%);
  margin: 0 auto 24px;
  padding: 20px;
  background: var(--pale);
  border: 1px solid #cce6f2;
  border-radius: 4px;
}
.flow-line span { position: relative; padding: 10px 18px; color: var(--navy); font-weight: 700; background: #fff; border: 1px solid var(--line); border-radius: 4px; }
.service-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; width: min(1120px, 100%); margin: 0 auto; }
.service-list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; width: min(1120px, 100%); margin: 0 auto; }
.service-list.compact { width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.service-list span {
  display: grid;
  min-height: 54px;
  place-items: center;
  color: var(--navy);
  font-weight: 700;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 4px;
}
.service-list.muted span { color: #7a4d15; background: #fff8ed; border-style: dashed; border-color: #e9c48e; }
.consultation p { margin: 14px 0 0; color: var(--muted); font-size: 13px; }
.license-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.license-grid article .icon { width: 30px; height: 30px; color: var(--blue); }
.license-grid article h3 { margin-top: 14px; }
.license-grid article p { margin-bottom: 0; color: var(--muted); }
.license-grid .planned { background: #fff8ed; border-style: dashed; border-color: #e9c48e; }
.material-tags { width: min(1080px, 100%); margin: 24px auto 0; justify-content: center; }

.reason-band { color: #fff; background: var(--navy); }
.reason-inner { width: min(1120px, 100%); margin: 0 auto; }
.reason-band .eyebrow { color: #8de6ee; }
.reason-band h2 { max-width: 760px; }
.reason-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 32px; }
.reason-grid article { color: var(--ink); }
.reason-grid .card-icon { color: #fff; background: var(--blue); border-color: rgba(255, 255, 255, 0.12); }

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: min(1040px, 100%);
  margin: 0 auto;
}
.faq-grid article {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.faq-grid h3 {
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 18px;
}
.faq-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.step-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; width: min(960px, 100%); margin: 0 auto; }
.step-flow div { padding: 24px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 4px; }
.step-flow strong { display: grid; width: 40px; height: 40px; place-items: center; margin: 0 auto 12px; color: #fff; background: var(--navy); border-radius: 999px; }
.step-flow span { display: block; color: var(--navy); font-weight: 800; }
.step-flow p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }

.final-cta {
  color: #fff;
  text-align: center;
  background: var(--navy);
}
.final-cta > div { width: min(900px, 100%); margin: 0 auto; }
.final-cta .eyebrow { color: #8de6ee; }
.final-cta p { color: rgba(255,255,255,.82); }
.thanks-page {
  min-height: 100vh;
  background: #f3f7fb;
}
.thanks-main {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 40px 18px;
}
.thanks-box {
  width: min(760px, 100%);
  padding: clamp(30px, 6vw, 56px);
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
}
.thanks-brand {
  display: inline-flex;
  margin-bottom: 24px;
}
.thanks-box h1 {
  margin-bottom: 16px;
  color: var(--navy);
  font-size: clamp(30px, 5vw, 44px);
}
.thanks-box p {
  color: var(--muted);
  line-height: 1.85;
}
.thanks-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}
.site-footer { padding: 28px 18px; color: #fff; text-align: center; background: #0f243f; }
.footer-brand {
  display: flex;
  width: min(640px, 100%);
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 auto 12px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}
.footer-logo-set {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: #fff;
  border-radius: 4px;
}
.footer-brand > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.footer-logo-set img { display: block; height: auto; }
.footer-symbol { width: 42px; }
.footer-type { width: 118px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-bottom: 10px; font-size: 14px; font-weight: 700; }
.footer-links a { color: rgba(255, 255, 255, 0.88); text-decoration: underline; text-underline-offset: 3px; }
.footer-links a:hover { color: #fff; }

@media (max-width: 1080px) {
  .site-nav { display: none; }
  .hero, .media-layout, .media-layout.reverse, .result-layout, .service-split, .operation-flow { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 42px; padding-bottom: 42px; }
  .hero-actions { margin-bottom: 26px; }
  .problem-grid, .reason-grid, .formula-grid, .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .license-grid, .step-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .operation-arrow { transform: rotate(90deg); }
  .operation-list { min-height: auto; }
  .wizard-panel[data-step="conditions"] .field-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1081px) {
  .wizard-panel[data-step="conditions"].is-active {
    display: block;
  }

  .wizard-panel[data-step="conditions"] .panel-intro {
    margin-bottom: 26px;
  }

  .wizard-panel[data-step="conditions"] fieldset {
    margin-bottom: 28px;
    padding: 22px;
    background: #fbfcfe;
    border: 1px solid var(--line);
    border-radius: 4px;
  }

  .wizard-panel[data-step="conditions"] fieldset:nth-of-type(1) .field-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wizard-panel[data-step="conditions"] fieldset:nth-of-type(2) .field-grid.three {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .wizard-panel[data-step="conditions"] fieldset:nth-of-type(3) .field-grid.two {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .wizard-panel[data-step="conditions"] .wizard-actions {
    margin-top: 6px;
  }
}

@media (max-width: 640px) {
  .site-header { padding: 12px 16px; }
  .brand { min-width: 0; gap: 9px; }
  .brand-mark { width: 158px; min-width: 158px; height: 34px; gap: 7px; }
  .brand-symbol { width: 42px; }
  .brand-type { width: 102px; }
  .brand strong { font-size: 12px; }
  .brand-en { display: block; margin-left: 0; font-size: 11px; }
  .footer-brand { flex-direction: column; gap: 10px; }
  .footer-logo-set { padding: 7px 12px; }
  .footer-symbol { width: 46px; }
  .footer-type { width: 124px; }
  .hero { padding: 30px 16px 40px; }
  .section, .reason-band, .final-cta { padding: 52px 16px; }
  .calculator-section { padding: 42px 16px; }
  h1 { font-size: 32px; line-height: 1.22; }
  h2 { font-size: 26px; line-height: 1.38; }
  h3 { font-size: 18px; line-height: 1.45; }
  .section-head { margin-bottom: 26px; text-align: left; }
  .section-head.compact { text-align: center; }
  .section-head p:not(.eyebrow) { font-size: 14px; line-height: 1.75; }
  .hero-lead { font-size: 15px; line-height: 1.8; }
  .nowrap { white-space: normal; }
  .br-desktop { display: none; }
  .br-mobile { display: block; }
  .hero-actions, .wizard-actions, .wizard-actions.align-right { flex-direction: column; gap: 10px; }
  .button, .wizard-actions .button { width: 100%; }
  .hero-points { gap: 8px; }
  .hero-points span { width: 100%; text-align: center; }
  .hero-stat { position: static; width: 100%; margin-top: 12px; background: var(--navy); }
  .problem-grid, .reason-grid, .formula-grid, .field-grid.two, .field-grid.three, .license-grid, .kpi-grid, .service-list, .service-list.compact, .step-flow, .stat-grid, .faq-grid { grid-template-columns: 1fr; }
  .wizard { padding: 16px; }
  .wizard-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 16px;
  }
  .wizard-steps li {
    min-height: 50px;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 7px 3px;
    text-align: center;
    font-size: 11px;
    line-height: 1.25;
  }
  .wizard-steps li::before {
    width: 22px;
    height: 22px;
    font-size: 12px;
  }
  .wizard-panel[data-step="conditions"] .field-grid.two { grid-template-columns: 1fr; }
  .panel-intro {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    margin-bottom: 18px;
    padding-bottom: 14px;
  }
  .panel-intro .card-icon {
    width: 34px;
    height: 34px;
    margin-bottom: 0;
  }
  .panel-intro .card-icon .icon { width: 18px; height: 18px; }
  .panel-intro h3 { font-size: 19px; line-height: 1.45; }
  .panel-intro p { font-size: 14px; line-height: 1.75; }
  #total-estimate { font-size: 46px; }
  .flow-line { justify-content: flex-start; }
  .step-flow div { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 12px; padding: 18px; text-align: left; }
  .step-flow strong { grid-row: 1 / 3; margin: 0; }
  .step-flow p { margin-top: 0; }
  .final-cta { text-align: left; }
  .final-cta .hero-actions.center { align-items: stretch; }
  .operation-list { padding: 22px; }
  .operation-list h3 { font-size: 24px; }
  .operation-list span { padding: 13px 14px 13px 38px; }
  .operation-list span::before { left: 14px; }
}
