/* ===========================
   RESET & BASE
=========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html { scroll-behavior: smooth; }
body {
  font-family: 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
  background: #f4f7fc;
  color: #333;
  line-height: 1.7;
  /* ① sticky-ctaの高さ分 + アフィリエイトバーの高さ分を確保 */
  padding-bottom: 100px;
}
a { text-decoration: none; color: inherit; }
img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
}

/* ===========================
   ② アフィリエイト明示バー（新規追加）
=========================== */
.affiliate-bar {
  background: #fef9c3;
  border-bottom: 1px solid #fde047;
  text-align: center;
  padding: 8px 16px;
  font-size: 12px;
  color: #713f12;
  /* sticky-ctaより上のz-indexを設定 */
  position: relative;
  z-index: 200;
}
.affiliate-bar strong {
  font-weight: 700;
}

/* ===========================
   STICKY CTA
=========================== */
.sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(90deg, #e65c00, #f9a825);
  color: white;
  text-align: center;
  /* ③ 2行テキスト対応のためpaddingを調整 */
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: bold;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
}
.sticky-cta a {
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.sticky-cta .arrow {
  /* ④ 矢印をテキスト行内に収める */
  display: none;
}
/* ③ sticky-cta内のサブテキスト */
.sticky-cta-note {
  font-size: 10px;
  opacity: 0.75;
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* ===========================
   CONTAINER
=========================== */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===========================
   ⑤ TOPへ戻るリンク（新規追加）
=========================== */
.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #0057b7;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 20px;
  padding: 8px 0;
}
.back-to-top:hover {
  text-decoration: underline;
  color: #003d8f;
}

/* ===========================
   SECTION BASE
=========================== */
section { padding: 72px 0; }

.section-label {
  display: inline-block;
  background: #e8f0fe;
  color: #0057b7;
  font-size: 0.78rem;
  font-weight: bold;
  letter-spacing: 0.08em;
  padding: 4px 16px;
  border-radius: 50px;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 900;
  line-height: 1.4;
  margin-bottom: 10px;
}
.section-title .accent { color: #0057b7; }
.section-lead {
  font-size: 0.97rem;
  color: #666;
  margin-bottom: 40px;
}

/* ===========================
   ⑥ 試算根拠・注記テキスト（新規追加）
=========================== */
.calc-note {
  font-size: 11px;
  color: #94a3b8;
  text-align: center;
  margin-top: 12px;
  line-height: 1.6;
}

/* ===========================
   HERO
=========================== */
.hero {
  background: linear-gradient(135deg, #002d72 0%, #0057b7 60%, #0099e6 100%);
  color: white;
  padding: 72px 20px 64px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 360px; height: 360px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -60px;
  width: 300px; height: 300px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}
.hero-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 1;
}
.hero-text { flex: 1; }
.hero-img-wrap {
  flex: 0 0 280px;
  max-width: 280px;
}
.hero-img {
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
  width: 100%;
}
.hero-eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 50px;
  padding: 6px 20px;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(1.6rem, 4.5vw, 2.6rem);
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 16px;
}
.hero h1 .highlight {
  color: #FFD700;
  font-size: 1.15em;
  text-shadow: 0 2px 12px rgba(255,215,0,0.4);
}
.hero-sub {
  font-size: 1rem;
  opacity: 0.88;
  margin-bottom: 36px;
}
/* ⑦ hero-sub内の注記テキスト */
.hero-sub .site-notice {
  display: block;
  font-size: 0.78rem;
  opacity: 0.75;
  margin-top: 8px;
}
.hero-cta {
  display: inline-block;
  background: linear-gradient(135deg, #FF6600, #FF8C00);
  color: white;
  padding: 18px 44px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: bold;
  box-shadow: 0 8px 28px rgba(255,102,0,0.5);
  transition: transform 0.25s, box-shadow 0.25s;
}
.hero-cta:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(255,102,0,0.55);
}
.hero-note {
  font-size: 0.78rem;
  opacity: 0.7;
  margin-top: 14px;
}

/* ===========================
   COMPARE SECTION
=========================== */
.compare-section { background: white; }
.compare-layout { margin-bottom: 16px; }
.compare-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.compare-card {
  flex: 1;
  min-width: 220px;
  max-width: 300px;
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
}
.compare-card.before {
  background: #fff5f5;
  border: 2px solid #e74c3c;
}
.compare-card.after {
  background: #f0fff4;
  border: 2px solid #27ae60;
}
.card-label {
  font-size: 0.85rem;
  font-weight: bold;
  margin-bottom: 10px;
}
.compare-card.before .card-label { color: #e74c3c; }
.compare-card.after .card-label { color: #27ae60; }
.compare-card .price {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 900;
  line-height: 1;
}
.compare-card.before .price { color: #e74c3c; }
.compare-card.after .price { color: #27ae60; }
.compare-card .per { font-size: 0.85rem; color: #888; margin-top: 6px; }
.compare-card .desc { font-size: 0.78rem; color: #999; margin-top: 8px; }
.compare-arrow { font-size: 2.5rem; color: #0057b7; font-weight: 900; }
.saving-badge {
  background: linear-gradient(135deg, #002d72, #0057b7);
  color: white;
  border-radius: 16px;
  padding: 28px;
  text-align: center;
}
.saving-label { font-size: 0.9rem; opacity: 0.85; }
.saving-amount {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  color: #FFD700;
  line-height: 1.2;
}
.saving-sub { font-size: 0.85rem; opacity: 0.8; margin-top: 4px; }
.compare-img-wrap {
  margin-top: 36px;
  border-radius: 16px;
  overflow: hidden;
}
.compare-img-wrap img { width: 100%; }

/* ===========================
   WORRY SECTION
=========================== */
.worry-section { background: #f4f7fc; }
.worry-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 40px;
}
.worry-list { display: grid; gap: 16px; }
.worry-item {
  background: white;
  border-radius: 14px;
  padding: 20px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s;
}
.worry-item:hover { transform: translateX(6px); }
.worry-icon { font-size: 1.8rem; flex-shrink: 0; line-height: 1; }
.worry-text { font-size: 0.95rem; line-height: 1.6; }
.worry-text strong { color: #e74c3c; }
.worry-img-wrap img { width: 100%; border-radius: 16px; }
.worry-cta-wrap { text-align: center; }
.worry-cta-text {
  font-size: 1.05rem;
  font-weight: bold;
  color: #0057b7;
  margin-bottom: 6px;
}
.worry-cta-sub { font-size: 0.9rem; color: #555; margin-bottom: 24px; }

/* ===========================
   CTA BUTTON (共通)
=========================== */
.cta-btn {
  display: inline-block;
  background: linear-gradient(135deg, #FF6600, #FF8C00);
  color: white;
  padding: 18px 44px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: bold;
  box-shadow: 0 8px 24px rgba(255,102,0,0.4);
  transition: transform 0.25s, box-shadow 0.25s;
}
.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(255,102,0,0.5);
}
/* ⑧ CTAボタン下の注記テキスト */
.cta-note {
  font-size: 0.75rem;
  color: #999;
  margin-top: 10px;
  line-height: 1.6;
}

/* ===========================
   REVIEW SECTION
=========================== */
.review-section { background: white; }
.review-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}
.review-img-wrap img { width: 100%; border-radius: 16px; }
.review-card {
  background: #f9fbff;
  border-left: 5px solid #0057b7;
  border-radius: 0 16px 16px 0;
  padding: 28px;
  font-size: 0.97rem;
  line-height: 1.8;
  color: #444;
}
.reviewer {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 10px;
  font-weight: bold;
}
/* ⑨ レビュー出典注記（新規追加） */
.review-source-note {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed #e2e8f0;
  line-height: 1.6;
}

/* ===========================
   MERIT SECTION
=========================== */
.merit-section { background: #f4f7fc; }
.merit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.merit-card {
  background: white;
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: 0 6px 28px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  border-top: 5px solid #0057b7;
  position: relative;
  overflow: hidden;
}
.merit-card:nth-child(2) { border-top-color: #27ae60; }
.merit-card:nth-child(3) { border-top-color: #e67e22; }
.merit-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 48px rgba(0,0,0,0.13);
}
.merit-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 20px;
}
.merit-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  background: #0057b7;
  color: white;
  border-radius: 50%;
  font-weight: 900;
  font-size: 1rem;
  margin-bottom: 14px;
}
.merit-card:nth-child(2) .merit-number { background: #27ae60; }
.merit-card:nth-child(3) .merit-number { background: #e67e22; }
.merit-title {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.4;
}
.merit-body { font-size: 0.9rem; color: #555; line-height: 1.75; }
.merit-badge {
  display: inline-block;
  margin-top: 14px;
  background: #e8f0fe;
  color: #0057b7;
  border-radius: 50px;
  padding: 4px 14px;
  font-size: 0.8rem;
  font-weight: bold;
}
.merit-card:nth-child(2) .merit-badge { background: #e8fff0; color: #27ae60; }
.merit-card:nth-child(3) .merit-badge { background: #fff4e8; color: #e67e22; }
.merit-icon-block { margin-bottom: 20px; }
.merit-icon-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.merit-icon-badge {
  padding: 8px 14px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: bold;
}
.merit-icon-badge.blue { background: #e8f0fe; color: #0057b7; }
.merit-icon-badge.green { background: #e8fff0; color: #27ae60; }

/* ===========================
   PLAN SECTION
=========================== */
.plan-section { background: white; }
.plan-table-wrap {
  overflow-x: auto;
  border-radius: 16px;
  box-shadow: 0 6px 28px rgba(0,0,0,0.09);
  margin-bottom: 16px;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
}
thead tr {
  background: linear-gradient(90deg, #002d72, #0057b7);
  color: white;
}
th {
  padding: 18px 20px;
  text-align: center;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}
td {
  padding: 16px 20px;
  text-align: center;
  font-size: 0.95rem;
  border-bottom: 1px solid #eef2f8;
}
tbody tr:nth-child(even) { background: #f5f9ff; }
tbody tr:hover { background: #dceeff; transition: background 0.2s; }
tbody tr td:first-child { font-weight: bold; color: #0057b7; }
.after-data { color: #27ae60; font-weight: bold; }
.price-cell { font-weight: bold; font-size: 1.05rem; }
.plan-note {
  font-size: 0.82rem;
  color: #888;
  text-align: center;
  margin-bottom: 32px;
  line-height: 1.8;
}

/* ===========================
   DEMERIT SECTION
=========================== */
.demerit-section { background: #fffbf0; }
.demerit-list { display: grid; gap: 20px; }
.demerit-item {
  background: white;
  border: 1px solid #f0d080;
  border-left: 5px solid #f39c12;
  border-radius: 0 14px 14px 0;
  padding: 20px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.demerit-icon { font-size: 1.6rem; flex-shrink: 0; }
.demerit-text { font-size: 0.95rem; line-height: 1.75; }
.demerit-text strong { color: #e67e22; }

/* ===========================
   FAQ SECTION
=========================== */
.faq-section { background: #f4f7fc; }
.faq-list { display: grid; gap: 16px; }
.faq-item {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(0,0,0,0.07);
}
.faq-q {
  padding: 20px 24px;
  font-weight: bold;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.faq-q-icon {
  flex-shrink: 0;
  width: 30px; height: 30px;
  background: #0057b7;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.9rem;
}
.faq-a {
  padding: 0 24px 20px 68px;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.75;
}
.faq-a-icon { color: #27ae60; font-weight: bold; }

/* ===========================
   SUMMARY SECTION
=========================== */
.summary-section {
  background: linear-gradient(135deg, #002d72 0%, #0057b7 100%);
  color: white;
  text-align: center;
}
.summary-label {
  background: rgba(255,255,255,0.2);
  color: white;
}
.summary-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 40px;
  text-align: left;
}
.summary-list { display: grid; gap: 16px; }
.summary-item {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.summary-item-icon { font-size: 1.5rem; flex-shrink: 0; }
.summary-item-text { font-size: 0.93rem; line-height: 1.6; }
.summary-item-text strong { color: #FFD700; }
.summary-img-wrap img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.summary-cta {
  background: linear-gradient(135deg, #FF6600, #FF8C00);
}

/* ===========================
   ⑩ FOOTER（強化）
=========================== */
footer {
  background: #111;
  color: #999;
  text-align: center;
  padding: 32px 20px;
  font-size: 0.8rem;
  line-height: 1.8;
}
/* ⑩ フッターリンク */
.footer-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
  font-size: 13px;
}
.footer-links a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: #fff; }
/* ⑩ フッターのアフィリエイト・免責表記 */
.footer-affiliate {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 4px;
}
/* ⑩ 著作権表記 */
.footer-copyright {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  margin-top: 8px;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 768px) {
  section { padding: 52px 0; }

  .hero-inner {
    flex-direction: column;
    text-align: center;
  }
  .hero-img-wrap {
    flex: none;
    max-width: 220px;
    margin: 0 auto;
  }

  .worry-layout {
    grid-template-columns: 1fr;
  }
  .worry-img-wrap { order: -1; }

  .review-layout {
    grid-template-columns: 1fr;
  }

  .summary-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .summary-item { text-align: left; }
  .summary-img-wrap { order: -1; }

  .compare-arrow { transform: rotate(90deg); }

  /* ⑪ スマホでのCTAボタン幅を全幅に */
  .cta-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 16px 20px;
  }
  .hero-cta {
    display: block;
    width: 100%;
    text-align: center;
    padding: 16px 20px;
  }

  /* ⑪ スマホでのフッターリンク縦並び */
  .footer-links {
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .hero { padding: 52px 16px 44px; }
  .hero-cta, .cta-btn { font-size: 0.95rem; }

  /* ⑪ 極小画面でのtable対応 */
  .plan-table-wrap { border-radius: 10px; }
  th { padding: 12px 10px; font-size: 0.8rem; }
  td { padding: 12px 10px; font-size: 0.85rem; }
}