/* くらべーる 記事ページ共通スタイル */
:root {
  --navy: #16324a;
  --green: #10b981;
  --green-dark: #0d9488;
  --green-pale: #ecfdf5;
  --teal-pale: #f0fdfa;
  --line-green: #06c755;
  --orange: #f97316;
  --gray-text: #4b5563;
  --gray-sub: #6b7280;
  --border: #e5e7eb;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: var(--navy);
  background: #fff;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: inherit; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .inner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 20px; max-width: 1080px; margin: 0 auto;
}
.site-header .logo img { height: 40px; width: auto; display: block; }
.header-right { display: flex; align-items: center; gap: 14px; }

.btn-line {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--line-green); color: #fff; text-decoration: none;
  font-weight: 700; border-radius: 999px;
  padding: 14px 32px; font-size: 17px;
  box-shadow: 0 4px 14px rgba(6, 199, 85, .35);
  transition: transform .2s, box-shadow .2s;
}
.btn-line:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(6, 199, 85, .45); }
.btn-line.small { padding: 9px 18px; font-size: 14px; }

/* ---------- Article ---------- */
.breadcrumb {
  max-width: 760px; margin: 24px auto 0; padding: 0 20px;
  font-size: 12px; color: var(--gray-sub);
}
.breadcrumb a { color: var(--green-dark); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

article {
  max-width: 760px; margin: 0 auto; padding: 24px 20px 64px;
}
article h1 { font-size: 28px; font-weight: 900; line-height: 1.5; }
.article-meta { margin-top: 12px; font-size: 13px; color: var(--gray-sub); }

article h2 {
  margin-top: 48px; font-size: 21px; font-weight: 700; line-height: 1.5;
  padding: 10px 16px; background: var(--teal-pale);
  border-left: 5px solid var(--green-dark); border-radius: 0 8px 8px 0;
}
article h3 { margin-top: 32px; font-size: 17px; font-weight: 700; padding-bottom: 6px; border-bottom: 2px solid var(--green-pale); }
article p { margin-top: 16px; color: var(--gray-text); font-size: 15.5px; }
article ul, article ol { margin: 16px 0 0 24px; color: var(--gray-text); font-size: 15.5px; }
article li { margin-top: 6px; }
article strong { color: var(--navy); background: linear-gradient(transparent 65%, #a7f3d0 65%); }

article table {
  width: 100%; margin-top: 20px; border-collapse: collapse; font-size: 14px;
}
article th, article td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; }
article th { background: var(--teal-pale); font-weight: 700; white-space: nowrap; }
article td { color: var(--gray-text); }
.table-scroll { overflow-x: auto; margin-top: 4px; }

.point-box {
  margin-top: 24px; background: var(--green-pale);
  border: 1px solid #a7f3d0; border-radius: 12px; padding: 18px 20px;
  font-size: 15px; color: var(--gray-text);
}
.point-box .label { font-weight: 900; color: var(--green-dark); display: block; margin-bottom: 4px; }

.note { margin-top: 16px; font-size: 13px; color: var(--gray-sub); }

/* ---------- In-article CTA ---------- */
.cta-box {
  margin-top: 40px; background: var(--navy); color: #fff;
  border-radius: 16px; padding: 32px 24px; text-align: center;
  box-shadow: 0 8px 30px rgba(22, 50, 74, .25);
}
.cta-box .headline { font-size: 20px; font-weight: 900; line-height: 1.6; color: #fff; }
.cta-box .sub { margin-top: 8px; font-size: 14px; color: #cbd5e1; }
.cta-box .btn-line { margin-top: 18px; }

/* ---------- Related articles ---------- */
.related { max-width: 760px; margin: 0 auto; padding: 0 20px 64px; }
.related h2 { font-size: 20px; font-weight: 900; }
.related-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.related-card {
  display: block; background: #fff; border: 1px solid var(--border);
  border-radius: 12px; padding: 18px 20px; text-decoration: none;
  box-shadow: 0 2px 10px rgba(22, 50, 74, .06);
  transition: transform .2s, box-shadow .2s;
}
.related-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(22, 50, 74, .12); }
.related-card .cat { font-size: 11px; font-weight: 700; color: var(--green-dark); }
.related-card .title { display: block; margin-top: 4px; font-size: 14.5px; font-weight: 700; line-height: 1.6; }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-pale); padding: 40px 0; text-align: center; }
.site-footer .logo img { height: 36px; }
.site-footer nav { margin-top: 16px; font-size: 14px; }
.site-footer nav a { margin: 0 12px; color: var(--gray-sub); text-decoration: none; }
.site-footer nav a:hover { color: var(--navy); }
.site-footer .copy { margin-top: 20px; font-size: 12px; color: var(--gray-sub); }

/* ---------- Sticky mobile CTA ---------- */
.mobile-cta {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .95); border-top: 1px solid var(--border);
}
.mobile-cta .btn-line { width: 100%; font-size: 15px; padding: 12px 16px; }

@media (max-width: 860px) {
  article h1 { font-size: 22px; }
  article h2 { font-size: 18px; }
  .related-cards { grid-template-columns: 1fr; }
  .mobile-cta { display: block; }
  body { padding-bottom: 66px; }
  .site-header .header-cta { display: none; }
}
