:root {
  --ink: #14213d;
  --muted: #5d6b82;
  --line: #d9e2ef;
  --paper: #ffffff;
  --soft: #f4f8fb;
  --green: #0b8f6a;
  --green-dark: #06674c;
  --blue: #1c6dd0;
  --amber: #f6b33f;
  --shadow: 0 18px 48px rgba(18, 38, 63, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Hiragino Sans", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  line-height: 1.7;
  background: var(--paper);
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

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

.header-nav {
  display: flex;
  gap: 20px;
  font-size: 14px;
  font-weight: 700;
}

.header-nav a {
  text-decoration: none;
  color: var(--muted);
}

.hero {
  position: relative;
  min-height: 680px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #101c2f;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(12, 25, 43, 0.92) 0%, rgba(12, 25, 43, 0.72) 38%, rgba(12, 25, 43, 0.16) 72%),
    linear-gradient(0deg, rgba(12, 25, 43, 0.28), rgba(12, 25, 43, 0.04));
}

.hero-content {
  position: relative;
  width: min(760px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 90px);
  padding: 92px 0 70px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #87ffd7;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 610px;
  margin: 24px 0 0;
  font-size: clamp(17px, 2.3vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

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

.button-primary {
  color: #fff;
  background: var(--green);
  box-shadow: 0 12px 28px rgba(11, 143, 106, 0.28);
}

.button-primary:hover {
  background: var(--green-dark);
}

.button-secondary {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.1);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: 900px;
  margin: 46px 0 0;
  padding: 0;
  list-style: none;
}

.trust-strip li {
  min-height: 74px;
  display: flex;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 800;
}

.notice-band {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: #fff;
  background: var(--ink);
}

.notice-band p {
  max-width: 900px;
  margin: 0;
}

.notice-band a {
  flex: 0 0 auto;
  color: #101c2f;
  background: var(--amber);
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
}

.section {
  padding: 78px clamp(18px, 4vw, 56px);
}

.section-muted {
  background: var(--soft);
}

.section-heading {
  max-width: 850px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.18;
  letter-spacing: 0;
}

.section-heading p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.check-panel {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr 300px;
  gap: 18px;
  align-items: stretch;
}

fieldset,
.check-result,
.rank-card,
.guide-grid article,
details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

fieldset {
  margin: 0;
  padding: 20px;
}

legend {
  padding: 0 6px;
  font-weight: 900;
}

label {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  font-weight: 800;
}

input {
  accent-color: var(--green);
}

.check-result {
  padding: 24px;
  box-shadow: var(--shadow);
}

.check-result span {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.check-result strong {
  display: block;
  font-size: 26px;
  line-height: 1.25;
}

.check-result-media {
  display: grid;
  gap: 12px;
  justify-items: stretch;
  align-content: start;
}

.check-visual-link {
  display: block;
  width: 300px;
  height: 250px;
  max-width: 100%;
  background: transparent;
}

.check-visual-link img {
  display: block;
  width: 300px;
  height: 250px;
  max-width: 100%;
  object-fit: contain;
}

.check-cta {
  width: 100%;
}

.ranking-list {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.rank-card {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) minmax(220px, 300px);
  gap: 22px;
  align-items: center;
  padding: 24px;
  box-shadow: 0 12px 34px rgba(18, 38, 63, 0.09);
}

.rank-top {
  border: 2px solid rgba(11, 143, 106, 0.4);
  box-shadow: var(--shadow);
}

.rank-number {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
  font-size: 26px;
  font-weight: 900;
}

.rank-top .rank-number {
  background: var(--green);
}

.rank-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.rank-title-row h3 {
  margin: 0;
  font-size: clamp(21px, 3vw, 30px);
  line-height: 1.25;
}

.score {
  flex: 0 0 auto;
  padding: 5px 10px;
  color: var(--green-dark);
  background: #e5f7f0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.rank-copy {
  margin: 10px 0 18px;
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.feature-grid div {
  padding: 11px;
  border-radius: 8px;
  background: var(--soft);
}

.feature-grid dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.feature-grid dd {
  margin: 4px 0 0;
  font-weight: 900;
}

.rank-cta {
  width: 100%;
  min-width: 0;
}

.rank-action {
  display: grid;
  gap: 12px;
  justify-items: stretch;
}

.rank-visual-link {
  display: block;
  width: 300px;
  height: 250px;
  max-width: 100%;
  background: transparent;
}

.rank-visual-link img {
  display: block;
  width: 300px;
  height: 250px;
  max-width: 100%;
  object-fit: contain;
}

.tracking {
  position: absolute;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.table-wrap {
  width: min(1120px, 100%);
  margin: 0 auto;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(18, 38, 63, 0.08);
}

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

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

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

td {
  font-weight: 700;
}

td a {
  color: var(--green-dark);
  font-weight: 900;
}

.table-note {
  width: min(1120px, 100%);
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 13px;
}

.guide-grid {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.guide-grid article {
  padding: 22px;
}

.guide-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #fff;
  background: var(--blue);
  border-radius: 8px;
  font-weight: 900;
}

.guide-grid h3 {
  margin: 18px 0 8px;
  line-height: 1.35;
}

.guide-grid p {
  margin: 0;
  color: var(--muted);
}

.flow {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  list-style: none;
}

.flow li {
  padding: 22px;
  border-left: 5px solid var(--green);
  background: #fff;
  border-radius: 8px;
}

.flow span {
  font-size: 20px;
  font-weight: 900;
}

.flow p {
  margin: 8px 0 0;
  color: var(--muted);
}

.faq-list {
  width: min(900px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

details {
  padding: 18px 20px;
}

summary {
  cursor: pointer;
  font-weight: 900;
}

details p {
  margin-bottom: 0;
  color: var(--muted);
}

.final-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  margin: 0 clamp(18px, 4vw, 56px) 70px;
  padding: clamp(24px, 5vw, 48px);
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
}

.final-cta h2 {
  margin: 0;
  font-size: clamp(27px, 4vw, 42px);
  line-height: 1.2;
}

.final-cta p:not(.eyebrow) {
  max-width: 760px;
  margin-bottom: 0;
}

footer {
  padding: 26px clamp(18px, 4vw, 56px);
  color: var(--muted);
  background: #f7f9fc;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

footer p {
  margin: 4px 0;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    min-height: 720px;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(12, 25, 43, 0.92) 0%, rgba(12, 25, 43, 0.74) 60%, rgba(12, 25, 43, 0.34) 100%);
  }

  .hero-content {
    margin: 0 auto;
    padding-top: 76px;
  }

  .trust-strip,
  .feature-grid,
  .guide-grid,
  .flow,
  .check-panel,
  .final-cta {
    grid-template-columns: 1fr;
  }

  .check-result-media {
    justify-self: center;
    width: min(300px, 100%);
  }

  .notice-band,
  .rank-card {
    align-items: stretch;
    flex-direction: column;
  }

  .notice-band {
    display: grid;
  }

  .rank-card {
    grid-template-columns: 1fr;
  }

  .rank-action,
  .rank-visual-link {
    justify-self: center;
    width: min(300px, 100%);
  }

  .rank-title-row {
    flex-direction: column;
  }

  .rank-cta {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .brand {
    font-size: 14px;
  }

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

  .hero-actions .button {
    width: 100%;
  }

  .rank-card {
    padding: 18px;
  }

  .feature-grid {
    gap: 6px;
  }

  .final-cta {
    margin-bottom: 42px;
  }
}

/* ===================================
   CVR改善版 追加スタイル
   =================================== */

/* --- ヒーロー圧縮 --- */
.hero-compact {
  min-height: 520px;
}

.hero-compact .hero-content {
  padding: 60px 0 48px;
}

.hero-compact h1 {
  font-size: clamp(32px, 5.5vw, 56px);
}

.hero-compact .hero-lead {
  margin-top: 16px;
  font-size: clamp(16px, 2vw, 19px);
}

.sp-only {
  display: none;
}

.hero-assure {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  font-weight: 800;
}

.hero-assure li {
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.hero-note {
  max-width: 610px;
  margin: 14px 0 0;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.68);
}

/* --- 診断（3問ステップ） --- */
.check-steps {
  display: grid;
  gap: 12px;
  align-content: start;
}

.step-badge {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  margin-right: 8px;
  padding: 3px 8px;
  color: #fff;
  background: var(--green);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 900;
}

.check-placeholder {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.reason-list {
  margin: 10px 0 0;
  padding-left: 18px;
  font-size: 14px;
}

.reason-list li {
  margin: 5px 0;
}

/* --- CTA補助 --- */
.cta-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

/* --- 1位リボン --- */
.rank-ribbon {
  position: absolute;
  top: -13px;
  left: 18px;
  padding: 4px 14px;
  color: #5b3d00;
  background: var(--amber);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 6px 16px rgba(246, 179, 63, 0.4);
}

/* --- バナーを控えめに（テキストCTA主役） --- */
.rank-visual-link,
.rank-visual-link img {
  width: 228px;
  height: 190px;
}

.rank-visual-link {
  justify-self: center;
  opacity: 0.95;
}

/* --- モバイル追従CTA --- */
.sticky-cta {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px rgba(18, 38, 63, 0.14);
  backdrop-filter: blur(8px);
}

.sticky-cta[hidden] {
  display: none !important;
}

.sticky-cta-text {
  flex: 1;
  min-width: 0;
  display: grid;
  line-height: 1.35;
}

.sticky-cta-text strong {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sticky-cta-text span {
  font-size: 11px;
  color: var(--muted);
}

.sticky-cta .button {
  flex: 0 0 auto;
  padding: 12px 20px;
  font-size: 14px;
}

.sticky-cta-close {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--muted);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

@media (min-width: 901px) {
  .sticky-cta {
    display: none !important;
  }
}

/* --- フッターナビ --- */
.footer-nav {
  display: flex;
  gap: 18px;
  margin-bottom: 10px;
  font-weight: 700;
}

.footer-nav a {
  color: var(--ink);
}

/* --- レスポンシブ調整 --- */
@media (max-width: 900px) {
  .hero-compact {
    min-height: 0;
  }

  .hero-compact .hero-content {
    padding: 56px 0 44px;
  }

  footer {
    padding-bottom: 96px; /* 追従CTAと重ならないように */
  }
}

@media (max-width: 520px) {
  .sp-only {
    display: inline;
  }

  .hero-assure {
    gap: 6px;
    font-size: 12px;
  }
}

/* ===================================
   v1.2 装飾強化
   =================================== */

/* --- バナーを元の300x250に戻す --- */
.rank-visual-link,
.rank-visual-link img {
  width: 300px;
  height: 250px;
}

.rank-visual-link {
  opacity: 1;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(18, 38, 63, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-visual-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(18, 38, 63, 0.22);
}

/* --- ヒーロー実績チップ --- */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-stats div {
  display: grid;
  min-width: 118px;
  padding: 12px 18px;
  text-align: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  backdrop-filter: blur(4px);
}

.hero-stats strong {
  font-size: 24px;
  line-height: 1.2;
  color: #87ffd7;
}

.hero-stats span {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.78);
}

/* --- CTA吹き出し --- */
.cta-bubble {
  margin: 18px 0 8px;
  color: #ffd97a;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 1px;
  animation: bubbleHop 1.8s ease-in-out infinite;
}

.rank-action .cta-bubble {
  margin: 0 0 2px;
  color: var(--green-dark);
  text-align: center;
  font-size: 13px;
}

.cta-bubble-light {
  color: #ffd97a;
  text-align: center;
}

@keyframes bubbleHop {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* --- プライマリボタンを豪華に --- */
.button-primary {
  background: linear-gradient(135deg, #10b981 0%, #0b8f6a 55%, #06674c 100%);
  box-shadow: 0 10px 24px rgba(11, 143, 106, 0.38);
  position: relative;
  overflow: hidden;
}

.button-primary::after {
  content: " ▸";
  font-size: 0.85em;
}

.button-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  animation: ctaShine 3.2s ease-in-out infinite;
}

@keyframes ctaShine {
  0% { left: -80%; }
  45%, 100% { left: 130%; }
}

.rank-top .rank-cta,
.sticky-cta .button-primary {
  animation: ctaPulse 2.4s ease-in-out infinite;
}

@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 10px 24px rgba(11, 143, 106, 0.38); }
  50% { box-shadow: 0 10px 30px rgba(11, 143, 106, 0.62), 0 0 0 6px rgba(11, 143, 106, 0.12); }
}

/* --- 順位メダル（金・銀・銅） --- */
.ranking-list .rank-card .rank-number {
  position: relative;
  border-radius: 50%;
}

.ranking-list .rank-card:nth-of-type(1) .rank-number {
  background: linear-gradient(160deg, #ffd76a 0%, #f0a90c 100%);
  color: #5b3d00;
  box-shadow: 0 8px 20px rgba(240, 169, 12, 0.45);
}

.ranking-list .rank-card:nth-of-type(1) .rank-number::after {
  content: "👑";
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%) rotate(-8deg);
  font-size: 20px;
}

.ranking-list .rank-card:nth-of-type(2) .rank-number {
  background: linear-gradient(160deg, #e8edf4 0%, #aab7c8 100%);
  color: #3c4a5d;
}

.ranking-list .rank-card:nth-of-type(3) .rank-number {
  background: linear-gradient(160deg, #e7b98d 0%, #b97333 100%);
  color: #4a2a08;
}

/* --- お知らせ帯をアンバーに --- */
.notice-band {
  color: #4a3305;
  background: linear-gradient(120deg, #fff4dd 0%, #ffe9bd 100%);
  border-top: 1px solid #f3d48a;
  border-bottom: 1px solid #f3d48a;
}

.notice-band strong {
  color: #14213d;
}

.notice-band p::before {
  content: "⚡ ";
}

.notice-band a {
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
}

/* --- 見出しアクセント --- */
.section-heading h2::after {
  content: "";
  display: block;
  width: 52px;
  height: 5px;
  margin-top: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), #87ffd7);
}

/* --- 診断パネル装飾 --- */
.check-panel {
  border-top: 5px solid var(--green);
  border-radius: 0 0 12px 12px;
  padding-top: 18px;
  background: linear-gradient(180deg, #f2fbf7 0%, transparent 140px);
}

/* --- FAQ装飾 --- */
summary::before {
  content: "Q";
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-right: 10px;
  color: #fff;
  background: var(--green);
  border-radius: 6px;
  font-size: 13px;
}

/* --- 最終CTA --- */
.final-cta {
  background: linear-gradient(120deg, #101c2f 0%, #123c4e 55%, #0b5c46 100%);
}

.final-cta-action {
  display: grid;
  justify-items: center;
  gap: 4px;
}

@media (max-width: 900px) {
  .hero-stats div {
    flex: 1;
    min-width: 96px;
    padding: 10px 12px;
  }

  .hero-stats strong {
    font-size: 20px;
  }
}
