:root {
  color-scheme: light;
  --ink: #1f2933;
  --muted-ink: #52616b;
  --line: #d7dee5;
  --paper: #ffffff;
  --soft: #f3f7f6;
  --mint: #1f8a70;
  --mint-dark: #166653;
  --coral: #d95d39;
  --blue: #315f8c;
  --shadow: 0 18px 45px rgba(31, 41, 51, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, system-ui, sans-serif;
  line-height: 1.7;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand,
.nav,
.hero-actions,
.form-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #fff;
  background: var(--mint);
  border-radius: 8px;
  font-size: 0.82rem;
  letter-spacing: 0;
}

.nav {
  gap: 18px;
  color: var(--muted-ink);
  font-size: 0.94rem;
}

.nav a {
  text-decoration: none;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--mint-dark);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  min-height: calc(100vh - 68px);
  padding: clamp(56px, 9vw, 112px) clamp(18px, 6vw, 80px) clamp(36px, 7vw, 78px);
  background:
    linear-gradient(135deg, rgba(31, 138, 112, 0.12), transparent 48%),
    linear-gradient(45deg, rgba(217, 93, 57, 0.1), transparent 44%),
    #fbfdfc;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--coral);
  font-size: 0.86rem;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 11em;
  margin-bottom: 22px;
  font-size: clamp(2.45rem, 7vw, 5.8rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.75rem, 3.4vw, 3rem);
  line-height: 1.22;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.lead {
  max-width: 680px;
  color: var(--muted-ink);
  font-size: clamp(1.04rem, 1.8vw, 1.25rem);
}

.hero-actions,
.form-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button.primary {
  color: #fff;
  background: var(--mint);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--mint-dark);
}

.button.secondary {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.button.disabled,
.button:disabled {
  color: #8a97a1;
  background: #eef2f4;
  border-color: #eef2f4;
  cursor: not-allowed;
  transform: none;
}

.offer-panel,
.price-card,
.consultation-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.offer-panel {
  padding: clamp(22px, 4vw, 34px);
}

.price-box,
.price-card > div {
  display: grid;
  gap: 4px;
}

.price-label {
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 700;
}

.price-box strong,
.price-card strong {
  color: var(--mint-dark);
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  line-height: 1.05;
}

.quick-facts {
  display: grid;
  gap: 18px;
  margin: 28px 0 0;
}

.quick-facts div {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.quick-facts dt {
  color: var(--muted-ink);
  font-size: 0.86rem;
}

.quick-facts dd {
  margin: 2px 0 0;
  font-weight: 700;
}

.section {
  padding: clamp(58px, 8vw, 96px) clamp(18px, 6vw, 80px);
}

.section-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.two-column,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.problem-band,
.muted {
  background: var(--soft);
}

.check-list,
.price-card ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li,
.price-card li {
  position: relative;
  padding-left: 28px;
}

.check-list li::before,
.price-card li::before {
  position: absolute;
  left: 0;
  color: var(--mint);
  content: "✓";
  font-weight: 700;
}

.scope-grid,
.example-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.scope-grid article,
.example-list div {
  min-height: 100%;
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.step {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--coral);
  font-weight: 800;
}

.price-section p,
.notice p,
.contact-section p {
  color: var(--muted-ink);
}

.price-card {
  display: grid;
  gap: 24px;
  padding: clamp(22px, 4vw, 34px);
}

.notice {
  background: #fff8f4;
}

.notice .section-inner {
  padding-left: 20px;
  border-left: 5px solid var(--coral);
}

.contact-section {
  background: #f8fafb;
}

.consultation-form {
  padding: clamp(20px, 4vw, 30px);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-weight: 700;
}

.wide {
  grid-column: 1 / -1;
}

input,
textarea,
select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #bfccd6;
  border-radius: 8px;
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--mint);
  outline: 3px solid rgba(31, 138, 112, 0.16);
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  color: var(--muted-ink);
  font-weight: 500;
}

.consent input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin-top: 5px;
}

.form-error {
  min-height: 1.6em;
  margin: 14px 0 0;
  color: #b42318;
  font-weight: 700;
}

.summary-output {
  display: none;
  margin-top: 20px;
  padding: 18px;
  white-space: pre-wrap;
  background: #f3f7f6;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.summary-output.is-visible {
  display: block;
}

.site-footer {
  padding: 26px clamp(18px, 6vw, 80px);
  color: #fff;
  background: var(--ink);
  text-align: center;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 920px) {
  .hero,
  .two-column,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .scope-grid,
  .example-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero-actions,
  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .scope-grid,
  .example-list,
  .form-grid {
    grid-template-columns: 1fr;
  }
}
