:root {
  /* ベース（白70） */
  --bg: #ffffff;
  --bg-soft: #ffffff;
  --surface: #ffffff;
  --surface-alt: #f5f7fa;     /* セクション区切りの薄グレー */
  --text: #1c1c1e;
  --muted: #4b5563;

  /* メイン＝ネイビー（25） */
  --primary: #173b75;
  --primary-strong: #0d2146;

  /* アクセント＝オレンジ（5。CTA・強調のみ） */
  --accent: #ea580c;
  --accent-dark: #c2410c;
  --accent-rgb: 234, 88, 12;
  /* 後方互換（旧名。インライン<style>が参照） */
  --accent-light: #f59e0b;
  --accent-strong: #ea580c;
  --success: #06c755;

  /* 罫線・影（罫線主体、影は最小限） */
  --line: #d8dce3;
  --line-soft: #e8ebf0;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-card: 0 1px 3px rgba(16, 24, 40, 0.06);
  --shadow-soft: 0 1px 2px rgba(16, 24, 40, 0.05);
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  line-height: 1.8;
}

a {
  color: inherit;
}

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

.container {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

/* ===== ヘッダー ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.site-header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.3;
}

.brand-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary-strong);
}

.brand-sub {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.nav-link {
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: var(--accent);
}

/* ハンバーガーボタン（PCでは非表示、960px以下で表示） */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--primary-strong);
  transition: transform 0.3s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== ボタン ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

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

.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

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

.btn-secondary:hover {
  background: var(--surface-alt);
}

/* ===== ヒーロー ===== */
.hero {
  padding: 56px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 6px;
  background: #eef2f8;
  border: 1px solid var(--line);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
}

.badge-em {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.hero-title {
  margin: 0 0 16px;
  font-size: clamp(26px, 4.4vw, 44px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--primary-strong);
  font-weight: 900;
}

.accent {
  color: var(--accent);
}

.hero-copy {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 16px;
  max-width: 640px;
  line-height: 1.9;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-card {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hero-card img {
  width: min(100%, 440px);
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  margin: 0 auto;
}

/* ===== セクション共通 ===== */
.section {
  padding: 48px 0;
}

.section-light {
  background: var(--surface-alt);
}

.section-head {
  text-align: center;
  margin-bottom: 28px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.section-title {
  margin: 0 0 8px;
  font-size: clamp(24px, 3.4vw, 34px);
  line-height: 1.3;
  color: var(--primary-strong);
  font-weight: 900;
}

.section-copy {
  margin: 0 auto;
  max-width: 720px;
  color: var(--muted);
}

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

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

/* ===== カード ===== */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  color: var(--primary-strong);
}

.card p,
.card li {
  color: var(--muted);
}

.card-number,
.step-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 30px;
  padding: 0 12px;
  margin-bottom: 12px;
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

/* ===== 料金 ===== */
.pricing {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
  margin-top: 20px;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
}

.price-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
  background: var(--line);
  border-radius: var(--radius) var(--radius) 0 0;
}

/* おすすめプラン（2つめ） */
.price-card:nth-child(2) {
  border: 2px solid var(--accent);
}

.price-card:nth-child(2)::before {
  background: var(--accent);
}

.price-card h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: var(--primary-strong);
}

.ribbon {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-block;
  padding: 6px 14px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.price {
  color: var(--primary-strong);
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
  margin: 8px 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
}

.price span {
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
}

.plan-target {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 6px;
  background: #eef2f8;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
}

.list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  width: fit-content;
}

.list li {
  position: relative;
  padding-left: 26px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.7;
}

.list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 900;
  font-size: 15px;
}

.option-box {
  margin-top: 20px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.option-box h3 {
  margin-top: 0;
  color: var(--primary-strong);
}

.option-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.option-price {
  color: var(--accent);
  font-weight: 800;
}

/* ===== 表 ===== */
.table-wrap {
  overflow-x: auto;
  margin-top: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text);
  font-size: 14px;
}

th {
  background: #eef2f8;
  color: var(--primary-strong);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.03em;
  text-align: center;
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:nth-child(even) {
  background: #fafbfd;
}

/* ===== ステップ ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

/* ===== FAQ ===== */
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-card);
}

.faq details + details {
  margin-top: 10px;
}

.faq summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--primary-strong);
}

.faq p {
  margin: 12px 0 0;
  color: var(--muted);
}

/* ===== フッター ===== */
.footer {
  padding: 40px 0 64px;
}

.footer-glass {
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 26px;
  margin: 8px 0;
}

.footer-links a {
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  color: var(--muted);
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-copyright {
  font-size: 13px;
  color: var(--muted);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  width: 100%;
}

.note {
  color: var(--muted);
  font-size: 14px;
}

/* ===== お問い合わせ ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  max-width: 1040px;
  margin: 0 auto;
}

.contact-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.contact-box-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  background: #eef2f8;
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-box-icon svg {
  width: 24px;
  height: 24px;
}

.contact-box-icon.line {
  background: #e7f8ee;
  color: #06C755;
}

.contact-box-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 16px;
}

.contact-box-number {
  font-size: 26px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 6px;
}

.contact-box-email {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
  word-break: break-all;
  letter-spacing: -0.01em;
}

.contact-box-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 24px;
  flex-grow: 1;
}

.btn-navy-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px;
  background: #fff;
  color: var(--primary);
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  font-size: 15px;
  border: 1.5px solid var(--primary);
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-navy-outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn-line {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px;
  background: #06C755;
  color: #fff;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  font-size: 15px;
}

.btn-line:hover {
  background: #05b34c;
}

/* ===== サービス内容（2カード・縦並び） ===== */
.service-overlap-section {
  padding: 48px 0;
  background: var(--surface-alt);
}

.service-overlap-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  align-items: start;
}

.service-overlap-text h2 {
  font-size: clamp(24px, 3.2vw, 32px);
  margin: 8px 0 16px;
  line-height: 1.35;
  color: var(--primary-strong);
}

.service-overlap-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.overlap-card {
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-card);
  width: 100%;
}

.overlap-card-fg {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.overlap-label {
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

.overlap-card-bg .overlap-label {
  color: var(--accent);
}

.overlap-card-fg .overlap-label {
  color: #fcd9b6;
}

.overlap-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.45;
  color: var(--primary-strong);
}

.overlap-card-fg .overlap-title {
  color: #fff;
}

.overlap-desc {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.8;
}

.overlap-card-fg .overlap-desc {
  color: rgba(255, 255, 255, 0.92);
}

/* ===== 上に戻るボタン ===== */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 50;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-strong);
  color: #fff;
}

/* ===== アクセス解析の同意 ===== */
.analytics-consent {
  position: fixed;
  z-index: 1000;
  right: 16px;
  bottom: 16px;
  left: 16px;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.analytics-consent-inner {
  display: flex;
  width: min(100%, 760px);
  align-items: center;
  gap: 20px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(16, 24, 40, 0.16);
  pointer-events: auto;
}

.analytics-consent-text {
  flex: 1;
  margin: 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.7;
}

.analytics-consent-text a {
  color: var(--primary);
  font-weight: 700;
  white-space: nowrap;
}

.analytics-consent-actions {
  display: flex;
  flex-shrink: 0;
  gap: 8px;
}

.analytics-consent-actions button {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.analytics-consent-decline {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
}

.analytics-consent-accept {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
}

.analytics-settings-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-size: inherit;
}

.analytics-settings-button:hover {
  color: var(--accent);
}

/* ===== レスポンシブ ===== */
@media (max-width: 960px) {
  .hero-grid,
  .grid-3,
  .grid-2,
  .pricing,
  .steps,
  .service-overlap-grid {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-flex;
  }

  /* モバイルではナビをヘッダー直下のドロップダウンに */
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 20px rgba(16, 24, 40, 0.1);
  }

  .nav.open {
    display: flex;
  }

  .nav .nav-link {
    padding: 14px 24px;
    font-size: 16px;
  }

  .nav .btn-primary {
    margin: 10px 24px 6px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1080px);
  }

  .hero-card {
    padding: 16px;
  }

  th,
  td {
    display: block;
    width: 100%;
  }

  th {
    text-align: left;
  }
}

@media (max-width: 600px) {
  .analytics-consent-inner {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .analytics-consent-actions {
    justify-content: flex-end;
  }

  .back-to-top {
    bottom: 16px;
    right: 16px;
  }
}
