:root {
  color-scheme: light;
  --ink: #18212b;
  --muted: #66717f;
  --paper: #ffffff;
  --soft: #f4f8f7;
  --mist: #e8f4f1;
  --line: #dae5e3;
  --teal: #167f72;
  --teal-dark: #0f5b53;
  --rose: #d95565;
  --gold: #f4c75d;
  --navy: #243143;
  --shadow: 0 18px 42px rgba(24, 33, 43, .14);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
  letter-spacing: 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 max(18px, calc((100% - 1160px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
}

.site-header a { text-decoration: none; }

.brand,
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand {
  min-width: 0;
  font-weight: 900;
}

.brand > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pr-label {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  height: 26px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--teal);
  color: #fff;
}

.header-actions {
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 900;
}

.header-actions > a:not(.header-cta) { color: var(--muted); }

.header-cta {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--rose);
  color: #fff;
}

.hero {
  position: relative;
  min-height: clamp(720px, 92vh, 900px);
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
  background: var(--navy);
}

.hero-media,
.hero-media img,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(22, 32, 44, .88) 0%, rgba(22, 32, 44, .64) 48%, rgba(22, 32, 44, .18) 100%),
    linear-gradient(0deg, rgba(22, 32, 44, .7) 0%, rgba(22, 32, 44, 0) 42%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: 168px 0 186px;
  color: #fff;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin: 0;
  padding: 6px 11px;
  border-radius: 7px;
  background: var(--gold);
  color: #1d2732;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
}

.hero-catch {
  max-width: 780px;
  margin: 18px 0 0;
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 900;
  line-height: 1.18;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  margin: 18px 0 0;
  font-size: clamp(36px, 5.4vw, 64px);
  line-height: 1.08;
}

.hero-lead {
  max-width: 720px;
  margin: 22px 0 0;
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 800;
}

.hero-actions,
.cta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease;
}

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

.button-primary {
  background: var(--rose);
  color: #fff;
  box-shadow: 0 12px 24px rgba(217, 85, 101, .24);
}

.button-secondary {
  border-color: rgba(255, 255, 255, .55);
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

.button-dark {
  background: var(--teal-dark);
  color: #fff;
}

.hero-note {
  max-width: 760px;
  margin-top: 28px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 8px;
  background: rgba(255, 255, 255, .12);
  display: grid;
  gap: 2px;
  font-size: 14px;
}

.section {
  padding: 76px max(18px, calc((100% - 1160px) / 2));
  scroll-margin-top: 76px;
}

.intro,
.compare,
.faq {
  background: var(--soft);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 30px;
}

.section-heading h2,
.final-cta h2,
.guide-text h2 {
  margin: 14px 0 0;
  font-size: clamp(30px, 4.8vw, 52px);
  line-height: 1.16;
}

.section-heading p:not(.section-kicker),
.guide-text p,
.final-cta p {
  margin: 14px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.feature-grid,
.program-list,
.check-grid,
.faq-list {
  display: grid;
  gap: 16px;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature,
.program-card,
.faq details,
.final-cta {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(24, 33, 43, .07);
}

.feature {
  min-height: 220px;
  padding: 22px;
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 34px;
  border-radius: 7px;
  background: var(--mist);
  color: var(--teal-dark);
  font-weight: 900;
}

.feature h3,
.program-card h3 {
  margin: 16px 0 8px;
  font-size: 24px;
  line-height: 1.25;
}

.feature p,
.program-card p,
.program-card li,
.faq p,
.footer p {
  color: var(--muted);
}

.ranking { background: #fff; }

.program-list {
  grid-template-columns: 1fr;
}

.program-card {
  display: grid;
  grid-template-columns: 72px minmax(170px, 300px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 24px;
}

.program-card-top {
  border-color: rgba(217, 85, 101, .55);
  box-shadow: var(--shadow);
}

.rank-badge {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 19px;
  font-weight: 900;
}

.program-card-top .rank-badge { background: var(--rose); }

.program-media {
  width: 100%;
  max-width: 300px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.program-media a {
  display: block;
}

.program-media img:not(.tracking-pixel) {
  width: 100%;
  height: auto;
}

.tracking-pixel {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.advertiser {
  margin: 0;
  font-size: 13px;
  font-weight: 900;
}

.program-card ul {
  display: grid;
  gap: 5px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.program-card li {
  position: relative;
  padding-left: 20px;
}

.program-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(24, 33, 43, .07);
}

table {
  width: 100%;
  min-width: 1040px;
  border-collapse: collapse;
}

th,
td {
  padding: 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

thead th {
  background: var(--navy);
  color: #fff;
}

tbody th {
  width: 170px;
  color: var(--teal-dark);
}

tbody a {
  color: var(--teal-dark);
  font-weight: 900;
}

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

.guide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 38px;
  align-items: center;
  background: #fff;
}

.guide-media {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.guide-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.checklist {
  background: linear-gradient(180deg, #fff, #f7fbfa);
}

.check-layout {
  display: grid;
  grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
}

.check-media {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(24, 33, 43, .1);
}

.check-media img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.check-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.check-grid label {
  min-height: 88px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 800;
}

.check-grid input {
  width: 20px;
  height: 20px;
  accent-color: var(--teal);
  flex: 0 0 auto;
}

.faq-list details { padding: 0; }

.faq-list summary {
  cursor: pointer;
  padding: 18px 22px;
  font-size: 18px;
  font-weight: 900;
}

.faq-list p {
  margin: 0;
  padding: 0 22px 22px;
}

.policy {
  background: var(--soft);
}

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

.policy-grid article {
  min-height: 180px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(24, 33, 43, .07);
}

.policy-grid h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.policy-grid p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.policy-grid a,
.footer a {
  color: inherit;
  font-weight: 900;
}

.final-cta {
  margin: 0 max(18px, calc((100% - 1160px) / 2)) 82px;
  padding: 34px;
  background:
    linear-gradient(135deg, rgba(232, 244, 241, .92), rgba(255, 255, 255, .96)),
    #fff;
}

.footer {
  padding: 28px max(18px, calc((100% - 1160px) / 2)) 92px;
  background: #18212b;
}

.footer p {
  max-width: 980px;
  margin: 0 0 8px;
  color: rgba(255, 255, 255, .76);
  font-size: 13px;
}

.sticky-cta {
  position: fixed;
  right: 22px;
  bottom: 14px;
  z-index: 30;
  width: min(360px, calc(100% - 24px));
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 16px 34px rgba(24, 33, 43, .22);
  backdrop-filter: blur(10px);
}

.sticky-cta a {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--mist);
  color: var(--teal-dark);
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.sticky-cta a:last-child {
  background: var(--rose);
  color: #fff;
}

@media (max-width: 980px) {
  .program-card {
    grid-template-columns: 72px minmax(170px, 300px) minmax(0, 1fr);
  }

  .program-card .button {
    grid-column: 2 / -1;
    width: 100%;
  }

  .guide,
  .check-layout {
    grid-template-columns: 1fr;
  }

  .check-media img {
    min-height: 260px;
  }
}

@media (max-width: 820px) {
  .sticky-cta {
    left: 50%;
    right: auto;
    width: min(520px, calc(100% - 24px));
    transform: translateX(-50%);
  }

  .site-header { min-height: 58px; }

  .header-actions > a:not(.header-cta) { display: none; }

  .hero { min-height: 760px; }

  .hero-media img {
    object-position: 68% center;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(22, 32, 44, .08) 0%, rgba(22, 32, 44, .42) 36%, rgba(22, 32, 44, .94) 100%),
      linear-gradient(90deg, rgba(22, 32, 44, .18) 0%, rgba(22, 32, 44, .08) 52%, rgba(22, 32, 44, .12) 100%);
  }

  .hero-inner { padding: 230px 0 250px; }

  .feature-grid,
  .check-grid,
  .policy-grid {
    grid-template-columns: 1fr;
  }

  .program-card {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .program-card .button {
    grid-column: auto;
  }

  .rank-badge {
    width: 58px;
    height: 58px;
    font-size: 18px;
  }

  .program-card .button,
  .program-media {
    width: 100%;
  }

  .cta-grid,
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .compare .table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .compare table,
  .compare thead,
  .compare tbody,
  .compare tr,
  .compare th,
  .compare td {
    display: block;
  }

  .compare table {
    min-width: 0;
  }

  .compare thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .compare tbody {
    display: grid;
    gap: 14px;
  }

  .compare tr {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(24, 33, 43, .07);
  }

  .compare th,
  .compare td {
    width: 100%;
    padding: 12px 16px 12px 124px;
    border-bottom: 1px solid var(--line);
    position: relative;
    min-height: 48px;
  }

  .compare tr > *::before {
    position: absolute;
    left: 16px;
    top: 12px;
    width: 92px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    line-height: 1.4;
  }

  .compare tr > *:nth-child(1)::before { content: "順位"; }
  .compare tr > *:nth-child(2)::before { content: "サービス"; }
  .compare tr > *:nth-child(3)::before { content: "メール1通"; }
  .compare tr > *:nth-child(4)::before { content: "広告主名"; }
  .compare tr > *:nth-child(5)::before { content: "検討ポイント"; }
  .compare tr > *:nth-child(6)::before { content: "公式確認"; }

  .compare tr > *:last-child {
    border-bottom: 0;
  }

  .compare tbody th {
    color: var(--teal-dark);
    font-size: 20px;
    font-weight: 900;
  }

  .compare tbody a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 8px 14px;
    border-radius: 8px;
    background: var(--rose);
    color: #fff;
    text-decoration: none;
  }
}

@media (max-width: 480px) {
  .brand-mark { display: none; }

  .brand { font-size: 14px; }

  .header-cta {
    padding: 8px 10px;
    font-size: 13px;
  }

  .section {
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .feature,
  .program-card,
  .final-cta {
    padding: 18px;
  }

  .sticky-cta {
    bottom: 10px;
    grid-template-columns: 1fr 1fr;
  }
}
