/* =========================================================================
   checker-lp.css — 相場チェッカー(/souba/checker)専用 LP デザインシステム
   共有 tool.css + souba.css の後に読み込み、.sb-page スコープ限定。
   方針(oshikatsu.css 踏襲): LP 本体は light-lock(明示 hex)。共有 header/footer のみ
   テーマ追従(🌙)。ツールウィジェットの DOM/ID は不変、ラッパークラスで再スタイル。
   他 souba ページ(game/book/card/kaden)は .sb-page 非適用ゆえ完全無影響。
   ========================================================================= */
.sb-page {
  /* ---- tokens ---- */
  --sb-primary: #0b86bf;
  --sb-primary-deep: #0a6a99;
  --sb-azure: #018ed5; /* 下部CTA背景画像の青と一致 */
  --sb-ink: #15324a;
  --sb-ink-soft: #51647a;
  --sb-ink-faint: #8496a6;
  --sb-bg: #ffffff;
  --sb-bg-soft: #f3f8fc;
  --sb-teal-soft: #e7f4fb;
  --sb-border: #e3edf3;
  --sb-coral: #ef5d76;
  --sb-coral-soft: #ffe8ec;
  --sb-teal: #11a6b8;
  --sb-teal-soft2: #e1f5f7;
  --sb-blue: #3b82c4;
  --sb-blue-soft: #e8f0fb;
  --sb-amber: #ec9a16;
  --sb-amber-soft: #fdf0d6;
  --sb-grad-cta: linear-gradient(135deg, #14a0d0 0%, #0a6a99 100%);
  --sb-shadow-sm: 0 4px 14px rgba(16, 74, 110, 0.08);
  --sb-shadow: 0 16px 40px rgba(16, 74, 110, 0.14);
  --sb-radius: 16px;
  --sb-max: 1120px;

  flex: 1;
  background: var(--sb-bg);
  color: var(--sb-ink);
}
.sb-page :where(h1, h2, h3) {
  letter-spacing: -0.01em;
}
.sb-inner {
  max-width: var(--sb-max);
  margin: 0 auto;
  padding: 0 20px;
}
.sb-section {
  padding: 58px 0;
  scroll-margin-top: 104px; /* lc-header 48 + sb-subnav 48 + α のアンカーオフセット */
}
.sb-section--alt {
  background: var(--sb-bg-soft);
}
.sb-section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 36px;
}
.sb-section-head h2 {
  font-size: clamp(1.5rem, 4vw, 2.05rem);
  font-weight: 900;
  color: var(--sb-ink);
  line-height: 1.35;
  margin: 0 0 10px;
  text-wrap: balance;
}
.sb-section-head h2 .ac {
  color: var(--sb-primary);
}
.sb-section-head p {
  font-size: 0.95rem;
  color: var(--sb-ink-soft);
  line-height: 1.8;
  margin: 0;
}

/* ---- ボタン ---- */
.sb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1.02rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition:
    transform 0.12s ease,
    box-shadow 0.15s ease,
    background 0.15s,
    filter 0.15s;
}
.sb-btn:active {
  transform: translateY(1px);
}
.sb-btn--primary {
  background: var(--sb-grad-cta);
  color: #fff;
  box-shadow: 0 12px 26px rgba(11, 106, 153, 0.32);
}
.sb-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(11, 106, 153, 0.4);
}
.sb-btn--white {
  background: #fff;
  color: var(--sb-primary-deep);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}
.sb-btn--white:hover {
  transform: translateY(-2px);
  filter: brightness(1.02);
}
.sb-btn--sm {
  padding: 9px 18px;
  font-size: 0.86rem;
}
.sb-btn .ic {
  font-size: 1.05em;
  line-height: 1;
}
.sb-btn:focus-visible {
  outline: 3px solid var(--sb-primary);
  outline-offset: 2px;
}

/* =========================================================================
   サブナビ (checker.html 直書き、sticky)
   ========================================================================= */
.sb-subnav {
  position: sticky;
  top: 48px; /* 共有 lc-header(48px) の直下に積む */
  z-index: 900;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.3) blur(8px);
  border-bottom: 1px solid var(--sb-border);
}
.sb-subnav .sn-inner {
  max-width: var(--sb-max);
  margin: 0 auto;
  padding: 9px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.sb-subnav .sn-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 900;
  font-size: 1.02rem;
  color: var(--sb-ink);
  flex: 0 0 auto;
}
.sb-subnav .sn-brand .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--sb-primary);
}
.sb-subnav .sn-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
}
.sb-subnav .sn-nav::-webkit-scrollbar {
  display: none;
}
.sb-subnav .sn-nav a {
  color: var(--sb-ink-soft);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 7px 11px;
  border-radius: 9px;
  white-space: nowrap;
  transition:
    color 0.15s,
    background 0.15s;
}
.sb-subnav .sn-nav a:hover {
  color: var(--sb-primary-deep);
  background: var(--sb-teal-soft);
}
.sb-subnav .sn-cta {
  flex: 0 0 auto;
}
@media (max-width: 820px) {
  .sb-subnav .sn-cta {
    display: none;
  }
}
@media (max-width: 560px) {
  .sb-subnav {
    display: none;
  }
}

/* =========================================================================
   ヒーロー
   ========================================================================= */
.sb-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #eef7fc 0%, #eaf1fb 55%, #f6fafd 100%);
}
.sb-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 76% 50%;
  z-index: 0;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 30%,
    #000 100%
  );
  mask-image: linear-gradient(90deg, transparent 0, #000 30%, #000 100%);
}
.sb-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(240, 247, 252, 0.97) 0%,
    rgba(240, 247, 252, 0.9) 36%,
    rgba(240, 247, 252, 0.45) 56%,
    rgba(240, 247, 252, 0) 74%
  );
}
.sb-hero .sb-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 540px;
  padding-top: 52px;
  padding-bottom: 56px;
}
.sb-hero-copy {
  max-width: 600px;
}
.sb-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--sb-primary-deep);
  background: #fff;
  border: 1.5px solid #c9e6f3;
  border-radius: 999px;
  padding: 6px 14px;
  box-shadow: var(--sb-shadow-sm);
  margin-bottom: 16px;
}
.sb-hero-copy h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 900;
  line-height: 1.26;
  margin: 0 0 14px;
  color: var(--sb-ink);
  text-wrap: balance;
}
.sb-hero-copy h1 .ac {
  position: relative;
  color: var(--sb-primary);
}
.sb-hero-copy h1 .ac::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0.08em;
  bottom: -0.1em;
  height: 5px;
  border-radius: 4px;
  background: linear-gradient(90deg, #14a0d0, #6fd0ee);
  opacity: 0.85;
}
.sb-hero-copy .sb-lead {
  font-size: 1.05rem;
  color: var(--sb-ink-soft);
  line-height: 1.85;
  margin: 0 0 18px;
}
.sb-hero-copy .sb-lead b {
  color: var(--sb-primary-deep);
  font-weight: 800;
}
.sb-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
}
.sb-trust li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--sb-ink);
}
.sb-trust li::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--sb-teal-soft);
  color: var(--sb-primary);
  font-size: 0.8rem;
  font-weight: 900;
}

/* ヒーロー右: 装飾フローティング(desktop のみ、aria-hidden) */
.sb-hero-floats {
  position: absolute;
  z-index: 3;
  right: 0;
  top: 0;
  bottom: 0;
  width: 46%;
  pointer-events: none;
}
.sb-float {
  position: absolute;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--sb-shadow);
  padding: 11px 15px;
  border: 1px solid var(--sb-border);
}
.sb-float .fl-lbl {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--sb-ink-faint);
  letter-spacing: 0.04em;
}
.sb-float .fl-val {
  font-size: 1.3rem;
  font-weight: 900;
  line-height: 1.1;
  margin-top: 2px;
}
.sb-float .fl-mall {
  font-size: 0.72rem;
  font-weight: 800;
  margin-top: 2px;
}
.sb-float--low {
  top: 16%;
  right: 30%;
}
.sb-float--low .fl-val {
  color: var(--sb-coral);
}
.sb-float--low .fl-mall {
  color: #e47911;
}
.sb-float--mid {
  bottom: 18%;
  right: 40%;
  background: var(--sb-primary);
  border-color: var(--sb-primary);
}
.sb-float--mid .fl-lbl,
.sb-float--mid .fl-val {
  color: #fff;
}
.sb-float-note {
  position: absolute;
  right: 14px;
  bottom: 10px;
  font-size: 0.66rem;
  color: var(--sb-ink-faint);
  background: rgba(255, 255, 255, 0.85);
  border-radius: 6px;
  padding: 1px 7px;
}
@media (max-width: 900px) {
  .sb-hero {
    overflow: visible;
    display: flex;
    flex-direction: column;
    background: linear-gradient(160deg, #eef7fc 0%, #eaf1fb 100%);
  }
  .sb-hero::before {
    display: none;
  }
  .sb-hero .sb-inner {
    order: 1;
    display: block;
    min-height: 0;
    padding-top: 30px;
    padding-bottom: 22px;
  }
  .sb-hero-copy {
    max-width: none;
  }
  .sb-hero-bg {
    order: 2;
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-position: center;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .sb-hero-floats {
    display: none;
  }
}

/* =========================================================================
   検索ウィジェット(既存 .souba-* を .sb-page で再スタイル。DOM/ID 不変)
   ========================================================================= */
.sb-page .souba-search {
  margin: 6px 0 12px;
  max-width: 620px;
  gap: 10px;
}
.sb-page .souba-input {
  border: 2px solid #cfe3ee;
  border-radius: 12px;
  padding: 15px 16px;
  font-size: 1.05rem;
  box-shadow: var(--sb-shadow-sm);
  background: #fff;
}
.sb-page .souba-input:focus {
  border-color: var(--sb-primary);
}
.sb-page .souba-btn {
  background: var(--sb-grad-cta);
  color: #fff;
  border-radius: 12px;
  padding: 15px 28px;
  font-size: 1.02rem;
  box-shadow: 0 10px 22px rgba(11, 106, 153, 0.28);
}
.sb-page .souba-btn:hover {
  filter: brightness(1.04);
}
.sb-page .souba-note {
  font-size: 0.78rem;
  color: var(--sb-ink-soft);
  margin: 4px 0 16px;
  max-width: 620px;
}
.sb-page .souba-nav {
  margin: 0 0 16px;
}
.sb-page .souba-nav a {
  background: #fff;
  border: 1.5px solid #cfe3ee;
  color: var(--sb-ink-soft);
  font-weight: 700;
  padding: 6px 15px;
}
.sb-page .souba-nav a:hover {
  border-color: var(--sb-primary);
  color: var(--sb-primary);
}
.sb-page .souba-nav a[aria-current="page"] {
  background: var(--sb-primary);
  border-color: var(--sb-primary);
  color: #fff;
}

/* 検索結果ブロック(hero 下) */
.sb-results {
  padding-top: 8px;
  padding-bottom: 8px;
}
.sb-page .souba-status {
  color: var(--sb-ink-soft);
}

/* =========================================================================
   こんな人におすすめ(ペルソナ)
   ========================================================================= */
.sb-persona-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.sb-persona-card {
  background: #fff;
  border: 1px solid var(--sb-border);
  border-radius: var(--sb-radius);
  padding: 24px 22px;
  box-shadow: var(--sb-shadow-sm);
  transition:
    transform 0.14s ease,
    box-shadow 0.14s ease;
}
.sb-persona-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sb-shadow);
}
.sb-persona-ic {
  width: 56px;
  height: 56px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  margin-bottom: 14px;
}
.sb-persona-card h3 {
  font-size: 1.1rem;
  font-weight: 900;
  margin: 0 0 8px;
  line-height: 1.45;
}
.sb-persona-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--sb-ink-soft);
  line-height: 1.75;
}
.sb-persona-card.p-coral .sb-persona-ic {
  background: var(--sb-coral-soft);
}
.sb-persona-card.p-coral h3 {
  color: var(--sb-coral);
}
.sb-persona-card.p-teal .sb-persona-ic {
  background: var(--sb-teal-soft2);
}
.sb-persona-card.p-teal h3 {
  color: var(--sb-teal);
}
.sb-persona-card.p-blue .sb-persona-ic {
  background: var(--sb-blue-soft);
}
.sb-persona-card.p-blue h3 {
  color: var(--sb-blue);
}
@media (max-width: 760px) {
  .sb-persona-grid {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin: 0 auto;
  }
}

/* =========================================================================
   選ばれる理由(フィーチャー)
   ========================================================================= */
.sb-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.sb-feature-card {
  background: #fff;
  border: 1px solid var(--sb-border);
  border-radius: var(--sb-radius);
  padding: 24px 18px;
  text-align: center;
  box-shadow: var(--sb-shadow-sm);
}
.sb-feature-ic {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--sb-teal-soft);
  color: var(--sb-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  font-weight: 900;
}
.sb-feature-card h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--sb-ink);
  margin: 0 0 8px;
  line-height: 1.5;
}
.sb-feature-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--sb-ink-soft);
  line-height: 1.7;
}
.sb-feature-malls {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  font-weight: 900;
  font-size: 0.95rem;
}
.sb-feature-malls .rk {
  color: #bf0000;
}
.sb-feature-malls .az {
  color: #e47911;
}
.sb-feature-malls .yh {
  color: #ff0033;
}
@media (max-width: 860px) {
  .sb-feature-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 440px) {
  .sb-feature-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 0 auto;
  }
}

/* =========================================================================
   使い方 3ステップ
   ========================================================================= */
.sb-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: step;
}
.sb-step {
  position: relative;
  background: #fff;
  border: 1px solid var(--sb-border);
  border-radius: var(--sb-radius);
  padding: 26px 22px 22px;
  box-shadow: var(--sb-shadow-sm);
}
.sb-step .st-no {
  position: absolute;
  top: -18px;
  left: 22px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--sb-grad-cta);
  color: #fff;
  font-weight: 900;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(11, 106, 153, 0.3);
}
.sb-step .st-ic {
  font-size: 1.7rem;
  margin: 4px 0 10px;
}
.sb-step h3 {
  font-size: 1.08rem;
  font-weight: 900;
  color: var(--sb-ink);
  margin: 0 0 8px;
}
.sb-step p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--sb-ink-soft);
  line-height: 1.75;
}
@media (max-width: 760px) {
  .sb-steps {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin: 0 auto;
    gap: 26px;
  }
}

/* =========================================================================
   相場の見方(中央値・四分位 図解)
   ========================================================================= */
.sb-read-card {
  background: #fff;
  border: 1px solid var(--sb-border);
  border-radius: var(--sb-radius);
  box-shadow: var(--sb-shadow-sm);
  padding: 30px 30px 26px;
  max-width: 760px;
  margin: 0 auto;
}
.sb-read-bar {
  position: relative;
  height: 14px;
  border-radius: 8px;
  background: linear-gradient(90deg, #2e9e6b 0%, #f0b429 50%, #e0556b 100%);
  margin: 38px 0 6px;
}
.sb-read-bar .iqr {
  position: absolute;
  top: -6px;
  bottom: -6px;
  left: 25%;
  right: 25%;
  border: 2px solid var(--sb-primary);
  border-radius: 8px;
  background: rgba(11, 134, 191, 0.1);
}
.sb-read-bar .median {
  position: absolute;
  top: -10px;
  bottom: -10px;
  left: 50%;
  width: 3px;
  transform: translateX(-50%);
  background: var(--sb-primary-deep);
  border-radius: 2px;
}
.sb-read-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--sb-ink-soft);
  margin-top: 10px;
}
.sb-read-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 18px;
  font-size: 0.84rem;
  color: var(--sb-ink-soft);
}
.sb-read-legend b {
  color: var(--sb-ink);
}
.sb-read-note {
  margin: 16px 0 0;
  font-size: 0.86rem;
  color: var(--sb-ink-soft);
  line-height: 1.8;
  background: var(--sb-teal-soft);
  border-left: 3px solid var(--sb-primary);
  border-radius: 0 8px 8px 0;
  padding: 12px 16px;
}

/* =========================================================================
   下部 CTA バンド(背景画像 cta-bg.webp + 青スクリム)
   ========================================================================= */
.sb-cta {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(
      90deg,
      rgba(1, 110, 175, 0.97) 0%,
      rgba(1, 142, 213, 0.86) 42%,
      rgba(1, 142, 213, 0.32) 66%,
      rgba(1, 142, 213, 0.12) 100%
    ),
    url("/souba/img/cta-bg.webp?v=1") right center / cover no-repeat,
    var(--sb-azure);
}
.sb-cta .sb-inner {
  position: relative;
  padding-top: 52px;
  padding-bottom: 52px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.sb-cta-copy {
  max-width: 600px;
  color: #fff;
}
.sb-cta-copy h2 {
  font-size: clamp(1.5rem, 4.2vw, 2.1rem);
  font-weight: 900;
  line-height: 1.4;
  margin: 0 0 8px;
  text-wrap: balance;
}
.sb-cta-copy p {
  margin: 0 0 22px;
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
}
.sb-cta-fine {
  margin: 14px 0 0;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.8);
}
@media (max-width: 760px) {
  .sb-cta {
    background:
      linear-gradient(
        180deg,
        rgba(1, 110, 175, 0.96) 0%,
        rgba(1, 142, 213, 0.82) 100%
      ),
      url("/souba/img/cta-bg.webp?v=1") center / cover no-repeat,
      var(--sb-azure);
  }
  .sb-cta-copy {
    text-align: center;
    max-width: none;
  }
  .sb-cta .sb-inner {
    align-items: center;
  }
}

/* =========================================================================
   免責 + SEO 本文(既存構造温存、LP パレットへ)
   ========================================================================= */
.sb-page .disclaimer {
  max-width: 860px;
  margin: 0 auto;
  font-size: 0.78rem;
  color: var(--sb-ink-soft);
  background: var(--sb-teal-soft);
  border-left: 3px solid var(--sb-primary);
  border-radius: 0 8px 8px 0;
  padding: 12px 16px;
  line-height: 1.7;
}
.sb-page .seo-body {
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.9;
  color: var(--sb-ink);
}
.sb-page .seo-body h2 {
  color: var(--sb-ink);
  font-size: 1.3rem;
  font-weight: 900;
  margin: 32px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--sb-teal-soft);
  scroll-margin-top: 104px;
}
.sb-page .seo-body h3 {
  color: var(--sb-ink);
  font-size: 1.06rem;
  font-weight: 800;
  margin: 18px 0 8px;
}
.sb-page .seo-body details {
  background: #fff;
  border: 1px solid var(--sb-border);
  border-radius: 12px;
  padding: 12px 16px;
  margin: 9px 0;
  box-shadow: var(--sb-shadow-sm);
}
.sb-page .seo-body summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--sb-ink);
}
.sb-page .pr-badge {
  display: inline-block;
  font-size: 0.7rem;
  color: var(--sb-primary-deep);
  background: var(--sb-teal-soft);
  border-radius: 6px;
  padding: 1px 7px;
  font-weight: 800;
  vertical-align: middle;
}
