:root {
  --bg: #f4f6f7;
  --panel: #ffffff;
  --ink: #172126;
  --muted: #60707a;
  --line: #dce5e8;
  --green: #0f6a5f;
  --green-dark: #084a43;
  --blue: #2f5e93;
  --amber: #bc721d;
  --soft-green: #eaf7f3;
  --soft-blue: #edf4fb;
  --soft-amber: #fff4e4;
  --shadow: 0 16px 36px rgba(19, 32, 38, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #eaf2f1 0, #f7f4ec 430px, var(--bg) 760px),
    var(--bg);
  color: var(--ink);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", "Meiryo", system-ui, sans-serif;
  letter-spacing: 0;
}

button,
input,
select,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 18px 0 34px;
}

.article-shell {
  width: min(960px, calc(100% - 36px));
  margin: 0 auto;
  padding: 18px 0 42px;
}

.article-nav {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
  font-weight: 900;
}

.article-nav a {
  color: var(--green-dark);
}

.article-page {
  display: grid;
  gap: 18px;
}

.article-hero,
.article-section,
.article-cta,
.article-footer {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.article-hero {
  padding: 34px;
}

.article-hero h1 {
  max-width: 780px;
  margin-bottom: 14px;
  font-size: clamp(2rem, 5vw, 4rem);
}

.article-hero .lead {
  color: var(--muted);
}

.article-hero .primary-link {
  margin-top: 22px;
}

.article-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 900;
}

.article-section {
  padding: 26px;
}

.article-section h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.article-section p,
.article-section li,
.article-footer p {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.7;
}

.article-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.article-steps section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafb;
  padding: 16px;
}

.article-steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-weight: 900;
}

.article-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.article-split ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.article-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  gap: 18px;
  align-items: center;
  padding: 26px;
  border-left: 5px solid var(--amber);
}

.article-cta p {
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.65;
}

.article-footer {
  padding: 18px 22px;
}

.article-footer p {
  margin: 0;
  font-size: 0.9rem;
}

.metrics-status {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  margin-bottom: 16px;
  border: 1px solid rgba(15, 106, 95, 0.24);
  border-radius: 8px;
  background: var(--soft-green);
  padding: 14px;
  color: var(--green-dark);
  font-weight: 900;
}

.metrics-status span {
  color: var(--muted);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.metric-card {
  border: 1px solid var(--line);
  border-left: 5px solid var(--muted);
  border-radius: 8px;
  background: #f8fafb;
  padding: 16px;
}

.metric-card.pass {
  border-left-color: var(--green);
}

.metric-card.fail {
  border-left-color: var(--amber);
}

.metric-card p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.metric-card h2 {
  min-height: 2.8em;
  font-size: 1rem;
}

.metric-card strong {
  display: block;
  margin: 12px 0 4px;
  color: var(--green-dark);
  font-size: 2rem;
  line-height: 1;
}

.metric-card small {
  color: var(--muted);
  font-weight: 800;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 28px;
  align-items: center;
  min-height: 330px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0d675f 0%, #2d5e91 100%);
  color: #fff;
  padding: 38px;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green-dark);
  font-size: 0.8rem;
  font-weight: 900;
}

.hero .eyebrow {
  color: #c5eee8;
}

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

h1 {
  margin-bottom: 0;
  font-size: clamp(2.3rem, 5vw, 4.6rem);
  line-height: 1.03;
}

h1 span {
  white-space: nowrap;
}

h2 {
  margin-bottom: 0;
  font-size: 1.22rem;
  line-height: 1.4;
}

.lead {
  width: min(720px, 100%);
  margin: 14px 0 0;
  color: #e3f4f1;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 22px;
  color: #d8eee9;
  font-size: 0.9rem;
  font-weight: 900;
}

.primary-link,
.primary-btn,
.accent-btn,
.secondary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 900;
  text-decoration: none;
}

.primary-link,
.primary-btn {
  background: var(--green-dark);
  color: #fff;
  box-shadow: 0 12px 22px rgba(8, 74, 67, 0.24);
}

.accent-btn {
  background: var(--amber);
  color: #fff;
}

.secondary-btn {
  background: var(--soft-green);
  border-color: rgba(15, 106, 95, 0.28);
  color: var(--green-dark);
}

.ghost-btn {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.hero-panel {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  padding: 20px;
}

.hero-panel strong {
  display: block;
  margin-bottom: 10px;
}

.hero-panel ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-weight: 800;
}

.why-panel,
.tool-grid,
.offer-panel,
.test-panel {
  margin-top: 18px;
}

.why-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  align-items: center;
  margin-inline: 28px;
  margin-top: -30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 20px;
  box-shadow: var(--shadow);
}

.why-panel p {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.65;
}

.tool-grid {
  display: grid;
  grid-template-columns: minmax(540px, 1.04fr) minmax(380px, 0.96fr);
  gap: 18px;
  align-items: start;
}

.input-panel,
.result-panel,
.offer-panel,
.test-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.input-panel,
.result-panel {
  padding: 22px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title span {
  width: 11px;
  height: 24px;
  border-radius: 999px;
  background: var(--green);
}

.hint {
  margin: 10px 0 16px;
  color: var(--muted);
  font-weight: 800;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafb;
  padding: 12px;
}

.field {
  display: grid;
  position: relative;
  grid-template-rows: minmax(24px, auto) 54px;
  gap: 8px;
  min-width: 0;
  color: var(--ink);
  font-weight: 900;
}

.field span {
  line-height: 1.35;
}

.field input,
.field select {
  width: 100%;
  min-height: 54px;
  border: 1px solid #d7e1e5;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
  font-size: 1.04rem;
  font-weight: 900;
}

.field small {
  position: absolute;
  right: 12px;
  bottom: 15px;
  color: var(--muted);
  text-align: right;
  pointer-events: none;
}

.choice-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 16px 0 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.choice-group legend {
  padding: 0 8px;
  color: var(--green-dark);
  font-size: 0.82rem;
  font-weight: 900;
}

.choice-group label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  font-weight: 900;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.savings-card {
  display: grid;
  gap: 5px;
  margin: 16px 0;
  border: 1px solid rgba(15, 106, 95, 0.24);
  border-radius: 8px;
  background: var(--soft-green);
  padding: 18px;
}

.savings-card span,
.savings-card small {
  color: var(--muted);
  font-weight: 800;
}

.savings-card strong {
  color: var(--green-dark);
  font-size: 2.2rem;
  line-height: 1.1;
}

.result-type {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.result-type strong {
  color: var(--blue);
  font-size: 1.05rem;
}

.result-type p {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.6;
}

.checklist {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.55;
}

.offer-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 18px;
  padding: 22px;
  border-left: 5px solid var(--green);
}

.offer-panel p {
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.65;
}

.offer-actions {
  display: grid;
  gap: 10px;
}

.test-panel {
  padding: 14px 18px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.variant-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.variant-row button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
  font-weight: 900;
}

@media (max-width: 900px) {
  .app-shell {
    width: min(100% - 22px, 720px);
  }

  .hero,
  .why-panel,
  .tool-grid,
  .offer-panel,
  .article-steps,
  .article-split,
  .article-cta,
  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 24px;
  }

  .why-panel {
    margin-inline: 0;
    margin-top: 12px;
  }
}

@media (max-width: 620px) {
  h1 {
    font-size: 2.35rem;
  }

  h1 span {
    display: block;
  }

  .hero {
    gap: 18px;
    padding: 22px 18px;
  }

  .article-shell {
    width: min(100% - 22px, 720px);
  }

  .article-hero,
  .article-section,
  .article-cta {
    padding: 20px 18px;
  }

  .lead {
    font-size: 0.94rem;
  }

  .hero-actions,
  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-link,
  .primary-btn,
  .accent-btn,
  .secondary-btn,
  .ghost-btn {
    width: 100%;
  }

  .hero-panel {
    display: none;
  }

  .why-panel {
    display: none;
  }

  .tool-grid {
    margin-top: 12px;
  }

  .input-panel,
  .result-panel,
  .offer-panel {
    padding: 18px;
  }

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

  .field small {
    bottom: 15px;
  }

  .choice-group {
    display: grid;
    grid-template-columns: 1fr;
  }
}
