:root {
  --ink: #0b2239;
  --ink-soft: #45586c;
  --line: #dde5ec;
  --bg-alt: #f4f7fa;
  --green: #0e8a6d;
  --green-bright: #49c5a8;
  --before: #b9c5d1;
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", "Meiryo", sans-serif;
  color: var(--ink);
  line-height: 1.7;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 14px 24px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; text-decoration: none; color: var(--ink); }
.brand-name { font-weight: 700; font-size: 16px; letter-spacing: .02em; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink-soft); text-decoration: none; font-size: 14px; font-weight: 600; }
.nav a:hover { color: var(--ink); }
.header-cta { margin-left: 4px; }

/* ---------- buttons ---------- */
.button {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 700; font-size: 14px;
  text-decoration: none;
  transition: opacity .15s ease, transform .15s ease;
}
.button:hover { opacity: .85; }
.button.primary { background: var(--green); color: #fff; }
.button.ghost { border: 2px solid var(--line); color: var(--ink); }
.button.large { padding: 15px 34px; font-size: 16px; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 80px; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 56px; align-items: center;
}
.kicker {
  color: var(--green); font-weight: 700; font-size: 14px;
  letter-spacing: .06em; margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.25; letter-spacing: .01em;
  margin-bottom: 22px;
}
.hero h1 em {
  font-style: normal; color: var(--green);
}
.hero-lead { color: var(--ink-soft); font-size: 16px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* hero chart */
.hero-chart {
  background: var(--ink); color: #fff;
  border-radius: 18px; padding: 28px 26px 22px;
}
.hero-chart figcaption {
  font-size: 13px; font-weight: 700; letter-spacing: .04em;
  color: #9fb3c8; margin-bottom: 20px;
}
.mini-bars { display: grid; gap: 18px; }
.mini-row {
  display: grid; grid-template-columns: 76px 1fr 56px;
  align-items: center; gap: 12px;
}
.mini-label { font-size: 13px; font-weight: 700; }
.mini-track { display: grid; gap: 5px; position: relative; }
.mini-track .bar { height: 12px; border-radius: 3px; position: relative; }
.bar.before { background: #54677b; }
.bar.after { background: var(--green-bright); }
.mini-track .bar.before i {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-style: normal; font-size: 10px; color: #dce6f0; white-space: nowrap;
}
.mini-track .after-time {
  position: absolute; bottom: -3px; font-style: normal;
  font-size: 10px; color: var(--green-bright); left: calc(11% + 6px);
  line-height: 1.6;
}
.mini-cut {
  font-size: 18px; font-weight: 800; color: var(--green-bright);
  text-align: right;
}
.legend { display: flex; gap: 18px; margin-top: 22px; font-size: 12px; color: #9fb3c8; }
.legend .dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.legend .dot.before { background: #54677b; }
.legend .dot.after { background: var(--green-bright); }

/* ---------- sections ---------- */
.section { padding: 88px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { text-align: center; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(24px, 3.4vw, 34px); line-height: 1.4; }
.section-note { color: var(--ink-soft); margin-top: 12px; font-size: 15px; }

/* ---------- results ---------- */
.result-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.result-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px;
  display: flex; flex-direction: column;
}
.result-card header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.result-card h3 { font-size: 17px; }
.tag {
  font-size: 11px; font-weight: 700; color: #b3541e;
  background: #fdeee2; border-radius: 999px; padding: 3px 10px;
  white-space: nowrap;
}
.tag.sub { color: var(--green); background: #e2f5ef; }

.compare { display: grid; gap: 12px; margin-bottom: 18px; }
.compare-row {
  display: grid; grid-template-columns: 44px 1fr 84px;
  align-items: center; gap: 10px; font-size: 12px; color: var(--ink-soft);
}
.compare-row .track { background: #eef2f6; border-radius: 3px; height: 14px; }
.compare-row .bar { height: 14px; border-radius: 3px; min-width: 8px; }
.compare-row .bar.before { background: var(--before); }
.compare-row strong { font-size: 15px; color: var(--ink); text-align: right; white-space: nowrap; }
.compare-row strong.green { color: var(--green); }
.compare-row strong small { font-size: 11px; font-weight: 600; color: var(--ink-soft); }

.cut-line {
  font-size: 15px; font-weight: 700; text-align: center;
  background: #e2f5ef; color: var(--green);
  border-radius: 8px; padding: 8px; margin-bottom: 14px;
}
.cut-line em { font-style: normal; font-size: 24px; font-weight: 800; }
.result-note { font-size: 13px; color: var(--ink-soft); }
.result-foot {
  text-align: center; margin-top: 36px; color: var(--ink-soft); font-size: 14px;
}

/* ---------- services ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 26px;
}
.service-icon {
  width: 52px; height: 52px; color: var(--green);
  margin-bottom: 18px;
}
.service-card h3 { font-size: 17px; margin-bottom: 10px; }
.service-card p { font-size: 14px; color: var(--ink-soft); }

/* ---------- flow ---------- */
.flow {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 18px; list-style: none; counter-reset: step;
}
.flow li {
  position: relative;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 20px 22px;
}
.flow li:not(:last-child)::after {
  content: "";
  position: absolute; top: 50%; right: -14px;
  width: 0; height: 0; z-index: 1;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 10px solid var(--green);
}
.step-no {
  display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--ink); color: #fff;
  font-weight: 800; font-size: 15px;
  margin-bottom: 14px;
}
.flow h3 { font-size: 16px; margin-bottom: 8px; }
.flow p { font-size: 13px; color: var(--ink-soft); }
.flow-note {
  text-align: center; margin-top: 32px;
  color: var(--ink-soft); font-size: 14px;
}

/* ---------- pricing ---------- */
.price-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px; max-width: 760px; margin: 0 auto;
}
.price-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px 28px;
  text-align: center;
}
.price-card.featured { border: 2px solid var(--green); }
.price-card h3 { font-size: 16px; margin-bottom: 14px; }
.price { margin-bottom: 14px; color: var(--green); }
.price em {
  font-style: normal; font-size: 38px; font-weight: 800;
  letter-spacing: .01em;
}
.price span { font-size: 16px; font-weight: 700; color: var(--ink-soft); }
.price-perk {
  font-size: 13px; font-weight: 700;
  background: #e2f5ef; color: var(--green);
  border-radius: 8px; padding: 8px 12px;
  margin-bottom: 14px;
}
.price-note { font-size: 13px; color: var(--ink-soft); text-align: left; }
.price-foot {
  text-align: center; margin-top: 32px;
  color: var(--ink-soft); font-size: 14px;
}

/* ---------- company ---------- */
.company-wrap { max-width: 760px; }
.profile-card {
  display: flex; gap: 28px; align-items: center;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
  margin-bottom: 28px;
}
.profile-photo {
  width: 148px; height: 148px;
  border-radius: var(--radius); object-fit: cover;
  flex-shrink: 0;
}
.profile-role { font-size: 12px; font-weight: 700; color: var(--green); margin-bottom: 2px; }
.profile-name { font-size: 20px; margin-bottom: 10px; }
.profile-name span { font-size: 12px; color: var(--ink-soft); font-weight: 600; margin-left: 10px; }
.profile-bio { font-size: 14px; color: var(--ink-soft); }
.company-table {
  width: 100%; border-collapse: collapse;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  font-size: 15px;
}
.company-table th, .company-table td {
  text-align: left; padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.company-table tr:last-child th, .company-table tr:last-child td { border-bottom: none; }
.company-table th { width: 120px; background: var(--bg-alt); font-weight: 700; white-space: nowrap; }
.company-table a { color: var(--green); font-weight: 600; }

/* ---------- contact ---------- */
.final-cta {
  background: var(--ink); color: #fff;
  text-align: center; padding: 92px 0;
}
.final-cta h2 { font-size: clamp(22px, 3.2vw, 32px); margin-bottom: 16px; }
.final-cta p { color: #b9c9d9; margin-bottom: 30px; }
.cta-mail { margin-top: 22px; font-size: 14px; letter-spacing: .04em; margin-bottom: 0; }
.cta-mail a { color: var(--green-bright); font-weight: 700; }

/* contact form */
.contact-form {
  max-width: 560px; margin: 0 auto;
  display: grid; gap: 18px; text-align: left;
}
.form-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.contact-form label {
  display: grid; gap: 7px;
  font-size: 13px; font-weight: 700; color: #b9c9d9;
}
.req {
  display: inline-block; margin-left: 4px;
  font-size: 11px; font-weight: 700;
  color: var(--green-bright);
}
.contact-form input,
.contact-form textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid #3a4f63; border-radius: 10px;
  background: #fff; color: var(--ink);
  font-family: inherit; font-size: 15px; line-height: 1.6;
}
.contact-form textarea { resize: vertical; }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 3px solid var(--green-bright); outline-offset: 1px;
  border-color: transparent;
}
.topic-group { border: 0; padding: 0; margin: 0; }
.topic-group legend {
  font-size: 13px; font-weight: 700; color: #b9c9d9;
  padding: 0; margin-bottom: 10px;
}
.topic-options { display: flex; gap: 10px; flex-wrap: wrap; }
.contact-form .topic-option {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--ink);
  border: 2px solid transparent; border-radius: 999px;
  padding: 9px 18px;
  font-size: 14px; font-weight: 700; cursor: pointer;
  user-select: none; -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.topic-option input {
  accent-color: var(--green);
  width: 16px; height: 16px; margin: 0;
}
.contact-form .topic-option:has(input:checked) {
  background: #e2f5ef; color: var(--green);
  border-color: var(--green-bright);
}
.other-reveal {
  display: grid; grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows .4s ease, opacity .4s ease;
}
.other-reveal.open { grid-template-rows: 1fr; opacity: 1; }
.other-reveal-inner { overflow: hidden; min-height: 0; }
.other-reveal-inner label { padding-top: 14px; }

.contact-form .button {
  justify-self: center;
  border: 0; cursor: pointer; font-family: inherit;
  margin-top: 4px;
}
.form-note {
  font-size: 12px; color: #8fa6ba;
  text-align: center; margin-bottom: 0 !important;
}

/* ---------- footer ---------- */
.site-footer {
  text-align: center; padding: 26px;
  font-size: 13px; color: var(--ink-soft);
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero { padding: 48px 0 60px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .result-grid, .service-grid, .price-grid { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr 1fr; }
  .flow li:nth-child(2)::after { display: none; }
  .nav { display: none; }
  .section { padding: 64px 0; }
}

@media (max-width: 520px) {
  .flow { grid-template-columns: 1fr; }
  .flow li::after { display: none; }
  .hero h1 { font-size: 34px; }
  .header-cta { margin-left: auto; }
  .brand-name { font-size: 13px; }
  .profile-card { flex-direction: column; text-align: center; }
  .profile-name span { display: block; margin: 4px 0 0; }
  .profile-bio { text-align: left; }
}
