:root {
  --navy: #121f38;
  --navy-2: #203456;
  --gold: #d7b55d;
  --gold-dark: #9b7728;
  --ink: #142033;
  --muted: #59657a;
  --line: rgba(215, 181, 93, 0.34);
  --ivory: #fbf7ec;
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-strong: rgba(255, 255, 255, 0.84);
  --shadow: 0 24px 72px rgba(16, 28, 50, 0.16);
  --shadow-gold: 0 24px 70px rgba(117, 87, 25, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--ivory);
  font-family: "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.78;
  letter-spacing: 0;
  line-break: strict;
  word-break: auto-phrase;
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3 {
  margin: 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px clamp(18px, 4vw, 50px);
  color: var(--white);
  background: linear-gradient(90deg, rgba(12, 22, 40, 0.86), rgba(20, 32, 51, 0.66));
  border-bottom: 1px solid rgba(215, 181, 93, 0.28);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  font-weight: 900;
  font-size: clamp(0.78rem, 2vw, 0.95rem);
  line-height: 1.3;
}

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--navy);
  background: linear-gradient(135deg, #f3df98, var(--gold) 48%, #9f7625);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  box-shadow: 0 12px 32px rgba(215, 181, 93, 0.22);
  font-family: "Noto Serif JP", serif;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.header-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  color: var(--navy);
  background: var(--gold);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(117, 87, 25, 0.24);
  font-size: 0.86rem;
  font-weight: 900;
}

/* ===== ヒーロー（画像なし・CSSグラデーション） ===== */
.hero {
  position: relative;
  min-height: 88svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
  background:
    radial-gradient(circle at 84% 18%, rgba(215, 181, 93, 0.22), transparent 42%),
    radial-gradient(circle at 12% 88%, rgba(215, 181, 93, 0.1), transparent 36%),
    linear-gradient(135deg, #0a1425 0%, var(--navy) 46%, var(--navy-2) 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 17% 45%, rgba(255, 255, 255, 0.08), transparent 24%),
    linear-gradient(0deg, rgba(7, 15, 30, 0.4), rgba(7, 15, 30, 0.04));
}

.hero__inner,
.container {
  position: relative;
  z-index: 1;
  width: min(1140px, calc(100% - 40px));
  margin-inline: auto;
}

.hero__inner {
  padding: 128px 0 82px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::after {
  content: "";
  display: inline-block;
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.hero h1,
h2 {
  font-family: "Noto Serif JP", serif;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 720px;
  margin-top: 18px;
  font-size: clamp(2.35rem, 8vw, 5rem);
  text-shadow: 0 12px 42px rgba(0, 0, 0, 0.34);
  text-wrap: balance;
}

.hero__lead {
  max-width: 690px;
  margin-top: 26px;
  font-size: clamp(1.08rem, 3.2vw, 1.5rem);
  font-weight: 900;
  line-height: 1.55;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

.hero__sub {
  max-width: 640px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(0.95rem, 2.4vw, 1.08rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 900;
  line-height: 1.3;
  white-space: nowrap;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  color: var(--navy);
  background: linear-gradient(135deg, #f5df94, var(--gold) 55%, #b68b35);
  box-shadow: 0 18px 42px rgba(116, 85, 24, 0.32);
}

.button--primary:hover {
  background: linear-gradient(135deg, #ffe9a8, #dfc06b 55%, #c69b43);
}

.microcopy {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  font-weight: 800;
}

/* ===== セクション共通 ===== */
.section,
.final-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.section {
  padding: clamp(78px, 10vw, 128px) 0;
}

.section--light {
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 255, 255, 0.85), transparent 55%),
    radial-gradient(circle at 88% 92%, rgba(215, 181, 93, 0.1), transparent 40%),
    var(--ivory);
}

.section--dark,
.final-cta {
  color: var(--white);
  background:
    radial-gradient(circle at 82% 16%, rgba(215, 181, 93, 0.16), transparent 40%),
    linear-gradient(120deg, #0c1628 0%, var(--navy) 52%, var(--navy-2) 100%);
}

.section-heading {
  max-width: 790px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-heading .eyebrow {
  justify-content: center;
}

h2 {
  margin-top: 10px;
  color: var(--navy);
  font-size: clamp(1.9rem, 5.2vw, 3.1rem);
  text-wrap: balance;
}

.section--dark h2,
.section--dark h3,
.final-cta h2 {
  color: var(--white);
}

.section-heading p:not(.eyebrow) {
  margin-top: 16px;
  color: var(--muted);
  font-size: clamp(1rem, 2.4vw, 1.13rem);
}

.section--dark .section-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.82);
}

.section--dark .eyebrow,
.final-cta .eyebrow {
  color: var(--gold);
}

/* ===== 料金カード ===== */
.price-card {
  background: var(--glass-strong);
  border: 1px solid rgba(215, 181, 93, 0.76);
  border-radius: 8px;
  box-shadow: var(--shadow-gold);
  backdrop-filter: blur(16px);
  max-width: 720px;
  margin: 0 auto 74px;
  padding: 38px clamp(24px, 5vw, 46px);
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 14px;
  color: var(--navy);
  background: rgba(215, 181, 93, 0.26);
  border: 1px solid rgba(215, 181, 93, 0.38);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.5;
}

.price-card h3 {
  margin-top: 18px;
  color: var(--navy);
  font-size: clamp(1.2rem, 3vw, 1.5rem);
}

.price {
  margin-top: 16px;
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 900;
}

.price strong {
  display: block;
  margin: 6px 0 2px;
  color: var(--gold-dark);
  font-family: "Noto Serif JP", serif;
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  line-height: 1.1;
}

.price-target {
  margin-top: 12px;
  color: var(--muted);
  font-weight: 900;
}

.deposit {
  margin-top: 24px;
  padding: 18px 20px;
  text-align: left;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
}

.deposit strong {
  color: var(--navy);
  font-size: 1rem;
}

.deposit p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ===== プラン3枚カード ===== */
.price-trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0 auto;
}

.price-trio .price-card {
  max-width: none;
  margin: 0;
  padding: 30px 22px;
}

.deposit--wide {
  max-width: 900px;
  margin: 18px auto 0;
}

.price-trio .price strong {
  font-size: clamp(1.5rem, 2.7vw, 2rem);
  white-space: nowrap;
}

.unit-price {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 900;
}

.unit-price--best {
  color: var(--gold-dark);
}

.price-card--best {
  border: 2px solid rgba(215, 181, 93, 0.95);
  box-shadow: 0 28px 80px rgba(117, 87, 25, 0.3);
}

.badge--best {
  color: var(--navy);
  background: linear-gradient(135deg, #f3df98, var(--gold) 55%, #c49a3f);
  border-color: rgba(255, 255, 255, 0.4);
}

/* ===== プラン内容リスト ===== */
.plan-list {
  margin: 18px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid rgba(20, 32, 51, 0.1);
  list-style: none;
  text-align: left;
}

.plan-list li {
  position: relative;
  padding: 5px 0 5px 26px;
  color: var(--ink);
  font-size: 0.93rem;
  font-weight: 700;
  line-height: 1.6;
}

.plan-list li::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 2px;
  width: 14px;
  height: 8px;
  border-left: 2.5px solid var(--gold-dark);
  border-bottom: 2.5px solid var(--gold-dark);
  transform: rotate(-45deg);
}

/* ===== 補助金ブロック（ダークセクション内） ===== */
.model-block {
  margin-top: 56px;
}

.model-block h3 {
  margin-bottom: 18px;
  color: var(--white);
  font-family: "Noto Serif JP", serif;
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  font-weight: 900;
  text-align: center;
}

.subsidy-note {
  max-width: 820px;
  margin-inline: auto;
  padding: 26px clamp(20px, 4vw, 34px);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(215, 181, 93, 0.4);
  border-radius: 8px;
  backdrop-filter: blur(16px);
}

.subsidy-note p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.97rem;
}

.subsidy-note strong {
  color: var(--gold);
}

.subsidy-caution {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.66) !important;
  font-size: 0.84rem !important;
}

/* ===== 追加料金テーブル ===== */
.table-wrap {
  overflow-x: auto;
  max-width: 820px;
  margin-inline: auto;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

table {
  width: 100%;
  min-width: 460px;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.44);
}

th,
td {
  padding: 20px 22px;
  text-align: left;
  border-bottom: 1px solid rgba(20, 32, 51, 0.1);
  vertical-align: middle;
}

tr:last-child th,
tr:last-child td {
  border-bottom: 0;
}

th {
  width: 58%;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.54);
  font-weight: 900;
  line-height: 1.55;
}

th small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

td {
  color: var(--ink);
  font-weight: 900;
  text-align: right;
  white-space: nowrap;
}

.note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

.note--dark {
  color: rgba(255, 255, 255, 0.72);
}

/* ===== ご相談から導入まで ===== */
.flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.flow-step {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 194px;
  padding: 26px 22px;
  color: var(--ink);
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.flow-step span {
  color: var(--gold-dark);
  font-family: "Noto Serif JP", serif;
  font-size: 1.38rem;
  font-weight: 900;
}

.flow-step strong {
  margin-top: 10px;
  color: var(--navy);
  font-size: 1.02rem;
  line-height: 1.45;
}

.flow-step small {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.62;
}

/* ===== FAQ ===== */
.faq {
  display: grid;
  gap: 13px;
  max-width: 920px;
  margin-inline: auto;
}

details {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

summary {
  cursor: pointer;
  padding: 20px 22px;
  color: var(--navy);
  font-weight: 900;
}

details p {
  padding: 0 22px 22px;
  color: var(--muted);
}

/* ===== 最終CTA ===== */
.final-cta {
  padding: clamp(82px, 10vw, 124px) 0;
  text-align: center;
}

.final-cta__inner {
  max-width: 910px;
}

.final-cta .eyebrow {
  justify-content: center;
}

.final-cta h2 {
  max-width: 780px;
  margin: 12px auto 30px;
  color: var(--white);
  font-size: clamp(2rem, 6vw, 3.6rem);
}

.final-cta .microcopy {
  margin-top: 18px;
}

.footer {
  padding: 28px 18px;
  color: rgba(255, 255, 255, 0.72);
  background: #0d1628;
  text-align: center;
  font-size: 0.86rem;
}

/* ===== 出現アニメーション ===== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms ease, transform 620ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ===== レスポンシブ ===== */
@media (max-width: 920px) {
  .flow {
    grid-template-columns: 1fr 1fr;
  }

  .price-trio {
    grid-template-columns: 1fr;
    max-width: 560px;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 10px 14px;
  }

  .brand {
    max-width: 68%;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .header-cta {
    min-height: 38px;
    padding: 0 14px;
  }

  .hero {
    min-height: 82svh;
  }

  .hero__inner,
  .container {
    width: min(100% - 28px, 1140px);
  }

  .hero__inner {
    padding: 108px 0 60px;
  }

  .hero h1 {
    font-size: clamp(2.18rem, 12vw, 3.2rem);
  }

  .button {
    width: 100%;
    min-height: 54px;
    padding-inline: 18px;
    white-space: normal;
  }

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

  .flow-step {
    padding: 22px;
    min-height: 0;
  }

  .price-card {
    padding: 28px 20px;
  }

  table {
    min-width: 100%;
  }

  th {
    width: 55%;
  }

  td {
    white-space: normal;
  }

  th,
  td {
    padding: 15px 16px;
  }
}
