:root {
  --canvas-width: 430px;
  --page-bg: #f3f6fb;
  --focus: #1f7aff;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  background: var(--page-bg);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--page-bg);
  color: #0c1b33;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before,
body::after {
  position: fixed;
  top: 0;
  bottom: 0;
  z-index: -1;
  width: max(0px, calc((100vw - var(--canvas-width)) / 2));
  content: "";
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0)),
    var(--page-bg);
}

body::before {
  left: 0;
}

body::after {
  right: 0;
}

.lp-container {
  width: 100%;
  max-width: var(--canvas-width);
  min-height: 100dvh;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 0 30px rgba(18, 43, 86, 0.1);
}

.lp-container img {
  display: block;
  width: 100%;
  height: auto;
}

.image-map-section,
.lp-slide {
  position: relative;
  width: 100%;
}

.snap-section {
  position: relative;
  width: 100%;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: #fff;
  scroll-margin-top: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow-anchor: none;
}

.snap-section > .image-map-section,
.snap-section > .lp-slide,
.compare-image-wrap {
  flex: 0 0 auto;
  width: 100%;
}

.compare-hub {
  min-height: 100svh;
  min-height: 100dvh;
}

.compare-panels {
  width: 100%;
}

.compare-panel {
  display: block;
  width: 100%;
  height: 0;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
  scroll-margin-top: 0;
}

.compare-panel:first-child {
  height: auto;
  overflow: visible;
  visibility: visible;
  pointer-events: auto;
}

.compare-panels:has(.compare-panel:target) .compare-panel {
  height: 0;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
}

.compare-panels .compare-panel:target {
  height: auto;
  overflow: visible;
  visibility: visible;
  pointer-events: auto;
  animation: target-flash 360ms ease-out;
}

.compare-panels:has(.compare-panel:target) .compare-panel:target {
  height: auto;
  overflow: visible;
  visibility: visible;
  pointer-events: auto;
}

.notice-section {
  min-height: 34svh;
  min-height: 34dvh;
  align-items: center;
  padding: 20px 0 calc(20px + env(safe-area-inset-bottom));
}

.overlay-link {
  position: absolute;
  display: block;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0);
  color: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(31, 122, 255, 0.18);
}

.overlay-link:focus-visible,
.slide-cta:focus-visible,
.recommend-top-link:focus-visible,
.back-to-list-floating:focus-visible,
.bridge-button:focus-visible,
.bridge-back:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.overlay-link:active {
  background: rgba(31, 122, 255, 0.12);
}

.slide-cta {
  position: absolute;
  right: 8%;
  bottom: 1.9%;
  left: 8%;
  height: 4.8%;
  min-height: 34px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #ff7a00, #ff3d57);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  color: #fff;
  font-size: clamp(13px, 4vw, 17px);
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.recommend-top-link {
  position: absolute;
  right: 10%;
  bottom: 2.4%;
  left: 10%;
  height: 4.8%;
  min-height: 34px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #2f85ff, #16b36b);
  color: #fff;
  font-size: clamp(14px, 4vw, 18px);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(29, 96, 178, 0.2);
}

.notice {
  margin: 0;
  padding: 14px 18px 18px;
  border-top: 1px solid #e6edf7;
  background: #fff;
  color: #58657a;
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
}

.content-section {
  width: 100%;
  padding: 28px 18px 32px;
  background: #fff;
  scroll-snap-align: start;
}

.content-inner {
  display: grid;
  gap: 14px;
}

.ad-disclosure {
  width: fit-content;
  margin: 0;
  padding: 5px 9px;
  border: 1px solid #d8e2ef;
  border-radius: 6px;
  background: #f6f9fc;
  color: #516174;
  font-size: 12px;
  font-weight: 700;
}

.content-section h1 {
  margin: 0;
  color: #0c1b33;
  font-size: 24px;
  line-height: 1.35;
}

.content-section p {
  margin: 0;
  color: #29394f;
  font-size: 14px;
  line-height: 1.75;
}

.guide-table-wrap {
  overflow-x: auto;
  border: 1px solid #dfe7f1;
  border-radius: 8px;
  background: #fff;
}

.guide-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.55;
}

.guide-table th,
.guide-table td {
  padding: 10px;
  border-bottom: 1px solid #e6edf7;
  border-left: 1px solid #e6edf7;
  text-align: left;
  vertical-align: top;
}

.guide-table th:first-child,
.guide-table td:first-child {
  border-left: 0;
}

.guide-table thead th {
  background: #f4f7fb;
  color: #1a2b44;
}

.guide-table tbody tr:last-child th,
.guide-table tbody tr:last-child td {
  border-bottom: 0;
}

.guide-cards {
  display: none;
  gap: 10px;
}

.guide-card {
  padding: 12px;
  border: 1px solid #dfe7f1;
  border-radius: 8px;
  background: #fff;
}

.guide-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.guide-card p + p {
  margin-top: 6px;
}

.bridge-page {
  min-height: 100dvh;
  padding: 28px 16px;
  display: grid;
  place-items: center;
  background: var(--page-bg);
}

.bridge-panel {
  width: min(100%, var(--canvas-width));
  padding: 22px 18px;
  border: 1px solid #dfe7f1;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(18, 43, 86, 0.12);
}

.bridge-panel h1 {
  margin: 14px 0 10px;
  color: #0c1b33;
  font-size: 24px;
  line-height: 1.35;
}

.bridge-panel p {
  margin: 0;
  color: #29394f;
  font-size: 14px;
  line-height: 1.75;
}

.bridge-meta {
  margin: 18px 0;
  border-top: 1px solid #e6edf7;
}

.bridge-meta div {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid #e6edf7;
}

.bridge-meta dt {
  color: #516174;
  font-size: 13px;
  font-weight: 700;
}

.bridge-meta dd {
  margin: 0;
  color: #17263a;
  font-size: 13px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.bridge-button,
.bridge-back {
  min-height: 46px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 800;
  text-decoration: none;
}

.bridge-button {
  background: linear-gradient(90deg, #f25b2a, #e33662);
  color: #fff;
}

.bridge-back {
  margin-top: 10px;
  border: 1px solid #c9d6e7;
  background: #fff;
  color: #1d4e89;
}

.bridge-note {
  margin-top: 14px !important;
  color: #66758a !important;
  font-size: 12px !important;
}

.site-footer {
  width: 100%;
  max-width: var(--canvas-width);
  margin: 0 auto;
  padding: 18px 14px calc(18px + env(safe-area-inset-bottom));
  border-top: 1px solid #dfe7f1;
  background: #f8fbff;
  color: #66758a;
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  justify-content: center;
}

.site-footer a {
  color: #1d4e89;
  font-weight: 700;
  text-decoration: none;
}

.site-footer a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.site-footer p {
  margin: 8px 0 0;
}

.legal-page {
  min-height: 100dvh;
  padding: 24px 14px;
  background: var(--page-bg);
}

.legal-panel {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 24px 18px;
  border: 1px solid #dfe7f1;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(18, 43, 86, 0.1);
}

.legal-panel h1 {
  margin: 14px 0 18px;
  color: #0c1b33;
  font-size: 28px;
  line-height: 1.35;
}

.legal-panel h2 {
  margin: 24px 0 8px;
  color: #13253c;
  font-size: 18px;
  line-height: 1.45;
}

.legal-panel p,
.legal-panel dd {
  color: #29394f;
  font-size: 14px;
  line-height: 1.85;
}

.legal-panel p {
  margin: 0;
}

.legal-defs {
  margin: 0;
  border-top: 1px solid #e6edf7;
}

.legal-defs div {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid #e6edf7;
}

.legal-defs dt {
  color: #516174;
  font-size: 13px;
  font-weight: 800;
}

.legal-defs dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.legal-note {
  margin-top: 18px !important;
}

.legal-date {
  margin-top: 22px !important;
  color: #66758a !important;
  font-size: 12px !important;
}

.back-to-list-floating {
  position: fixed;
  right: max(10px, env(safe-area-inset-right));
  bottom: calc(120px + env(safe-area-inset-bottom));
  z-index: 999;
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(31, 82, 150, 0.22);
}

.back-to-list-floating img {
  width: 100%;
  height: 100%;
  pointer-events: none;
}

@keyframes target-flash {
  from {
    filter: saturate(1.12) brightness(1.02);
  }
  to {
    filter: none;
  }
}

@media (min-width: 768px) {
  .back-to-list-floating {
    right: max(12px, calc((100vw - var(--canvas-width)) / 2 - 84px));
    bottom: 24px;
  }
}

@media (max-width: 360px) {
  .slide-cta,
  .recommend-top-link {
    font-size: 12px;
  }

  .back-to-list-floating {
    width: 56px;
    height: 56px;
    bottom: calc(104px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 520px) {
  .guide-table-wrap {
    display: none;
  }

  .guide-cards {
    display: grid;
  }

  .content-section h1,
  .bridge-panel h1 {
    font-size: 22px;
  }

  .bridge-meta div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .legal-defs div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .legal-panel h1 {
    font-size: 24px;
  }
}

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

  .compare-panels .compare-panel:target {
    animation: none;
  }
}
