/* --- 専用CSS (iPad mini 3カラム対応版) ---
   ※.wrap の左右余白とKadence本文枠の余白は design.css に集約 */
.sotsot-lp.legend {
  padding-top: 0px;      /* 上パディングを削除 */
  padding-bottom: 40px;  /* 下は次のコンテンツとの間隔用に少し確保 */
  margin: 0;
}

/* 見出し（h2）：ここ1か所にまとめた */
.sotsot-lp.legend h2 { margin: 0 0 16px; line-height: 1.5; text-align: center; }
@media (max-width: 1024px) { .sotsot-lp.legend h2 { font-size: 22px; margin-bottom: 12px; } }
@media (max-width: 767px)  { .sotsot-lp.legend h2 { font-size: 20px; } }
@media (max-width: 480px)  { .sotsot-lp.legend h2 { font-size: 16px; } }

.sotsot-lp .rank-guide {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.sotsot-lp .rank-guide a {
  display: block;
  background: #f8f8f8;
  border-radius: 8px;
  padding: 1.5em;
  transition: background-color 0.4s ease;
}
.sotsot-lp .rank-guide a:hover {
  background-color: #ecebf0;
}
.sotsot-lp .rank-guide .rk-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 900;
  font-size: 16px;
  color: var(--ink-strong);
  margin-bottom: 12px;
}
.sotsot-lp .rank-guide .rk-label .rank-badge {
  width: 44px;
  flex-shrink: 0;
}
.sotsot-lp .rank-guide .rk-label .rank-badge-letter {
  font-size: 19px;
}
.sotsot-lp .rank-guide .rk-label .rk-label-text {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.sotsot-lp .rank-guide p {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.sotsot-lp .nabi-inline {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.sotsot-lp .nabi-inline .ni-kikkake {
  font-size: 13px;
  color: var(--ink-soft);
}

.sotsot-lp.legend .legend-note {
  margin-top: 20px;
  font-size: 13px;
  color: var(--ink-soft);
  text-align: center;
}


/* ==========================================
   タブレット & iPad mini 調整 (768px 〜 1024px)
   ※3カラムを維持
   ========================================== */
@media (max-width: 1024px) {
  .sotsot-lp .rank-guide {
    gap: 10px; /* 3カラムを入れるためカード同士の隙間を最少化 */
  }
  .sotsot-lp .rank-guide a {
    padding: 1rem 0.8rem; /* カード内のパディングをスリム化 */
  }
  .sotsot-lp .rank-guide .rk-label {
    font-size: 13px;
    gap: 6px;
    margin-bottom: 6px;
  }
  .sotsot-lp .rank-guide .rk-label .rank-badge {
    width: 32px; /* バッジを少し小さくしてテキスト領域を広げる */
  }
  .sotsot-lp .rank-guide .rk-label .rank-badge-letter {
    font-size: 15px;
  }
  .sotsot-lp .rank-guide p {
    font-size: 12px;
    line-height: 1.45;
  }
}


/* ==========================================
   スマホ調整 (〜 767px)
   ※767px以下で1列の縦並びに切り替え
   ========================================== */
@media (max-width: 767px) {
  .sotsot-lp .rank-guide {
    grid-template-columns: 1fr; /* 縦並び */
    gap: 12px;
  }
  .sotsot-lp .rank-guide a {
    padding: 16px;
  }
  .sotsot-lp .rank-guide .rk-label {
    font-size: 15px;
    gap: 10px;
    margin-bottom: 8px;
  }
  .sotsot-lp .rank-guide .rk-label .rank-badge {
    width: 38px;
  }
  .sotsot-lp .rank-guide .rk-label .rank-badge-letter {
    font-size: 17px;
  }
  .sotsot-lp .rank-guide p {
    font-size: 13px;
    line-height: 1.55;
  }

  /* 下部ナビ・CTAボタン */
  .sotsot-lp .nabi-inline {
    margin-top: 20px;
    padding-top: 18px;
    gap: 12px;
  }
  .sotsot-lp .nabi-inline .ni-kikkake {
    font-size: 12px;
  }
  .sotsot-lp .cta-btn {
    padding: 11px 20px;
    font-size: 13px;
    width: 100%;
    max-width: 340px;
  }
  .sotsot-lp.legend .legend-note {
    margin-top: 16px;
    font-size: 11px;
  }
}

/* 1. 矢印アイコンの位置を文字と上下中央揃えにする */
.sotsot-lp .rank-guide .rk-label .rk-arrow {
  display: inline-flex;
  align-items: center;
  margin-left: 2px;
}
.sotsot-lp .rank-guide .rk-label .rk-arrow svg {
  display: block; /* 余計な下隙間を排除 */
  vertical-align: middle;
}

/* 2. 区切り線を消して余白で整える */
.sotsot-lp .nabi-inline {
  border-top: none; /* 線を削除 */
  padding-top: 12px; /* 線の代わりに余白を調整 */
  margin-top: 24px;
}

/* 3. 「お悩みから探したい方へ」の視認性をアップ */
.sotsot-lp .nabi-inline .ni-kikkake {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-strong); /* 薄い灰色から濃い文字色へ */
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 「＼ お悩みから探したい方へ ／」のような印象的なあしらいを自動追加 */
.sotsot-lp .nabi-inline .ni-kikkake::before {
  content: "＼";
  font-size: 12px;
  color: var(--purple); /* ブランドカラーのパープル */
}
.sotsot-lp .nabi-inline .ni-kikkake::after {
  content: "／";
  font-size: 12px;
  color: var(--purple);
}
/* ============ Sランクセクション（sec1） ============ */
.sotsot-lp.sec1{padding:90px 40px;}

.sotsot-lp.sec1 {
  background: #FBFBF5; /* 今の背景色 */
  box-shadow: 0 0 0 100vmax #FBFBF5;
  clip-path: inset(0 -100vmax);
}

@media(max-width:1024px){.sotsot-lp.sec1{padding:64px 0px;}}
@media(max-width:480px){.sotsot-lp.sec1{padding:48px 0px;}}

.sotsot-lp.sec1 h2{font-size:30px;line-height:1.5;font-weight:700;margin-bottom:56px;}
@media(max-width:1024px){.sotsot-lp.sec1 h2{font-size:26px;margin-bottom:48px;}}
@media(max-width:480px){.sotsot-lp.sec1 h2{font-size:22px;margin-bottom:48px;}}


/* ============ チェックポイント（legend内） ============ */
.sotsot-lp.legend .legend-lead {
  text-align: center;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin: 0 auto 40px;
  max-width: 640px;
}

.sotsot-lp .cp-heading {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 900;
  font-size: 16px;
  color: var(--ink-strong);
  text-align: center;
  margin: 0 0 20px;
}

.sotsot-lp .check-points {
  margin-bottom: 48px;
}
.sotsot-lp .cp-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.sotsot-lp .cp-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.25em 1.5em;
}
.sotsot-lp .cp-num {
  flex-shrink: 0;
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 900;
  font-size: 22px;
  line-height: 1.3;
  color: var(--purple);
}
.sotsot-lp .cp-body h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-strong);
  margin: 0 0 4px;
  line-height: 1.5;
}
.sotsot-lp .cp-body p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0;
}

@media (max-width: 1024px) {
  .sotsot-lp.legend .legend-lead {
    font-size: 13px;
    margin-bottom: 28px;
  }
  .sotsot-lp .cp-heading { font-size: 15px; margin-bottom: 14px; }
  .sotsot-lp .check-points { margin-bottom: 36px; }
  .sotsot-lp .cp-list { gap: 10px; }
  .sotsot-lp .cp-item { padding: 1rem 0.9rem; gap: 8px; }
  .sotsot-lp .cp-num { font-size: 19px; }
  .sotsot-lp .cp-body h3 { font-size: 14px; }
  .sotsot-lp .cp-body p { font-size: 12px; line-height: 1.55; }
}

@media (max-width: 767px) {
  .sotsot-lp .cp-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .sotsot-lp .cp-item { padding: 14px 16px; gap: 10px; }
  .sotsot-lp .cp-body p { font-size: 13px; }
}

.sotsot-lp .cp-check {
  flex-shrink: 0;
  display: block;
  width: 22px;
  height: 22px;
  margin-top: 2px;
}
@media (max-width: 1024px) {
  .sotsot-lp .cp-check { width: 20px; height: 20px; }
}

/* ============ 凡例：説明エリアとナビ（囲み）の分離 ============ */

/* --- 説明エリア：チェックポイントは枠なしの「読むところ」。要素ごとに点線で区切る --- */
.sotsot-lp .check-points .cp-list { gap: 0 48px; }
.sotsot-lp .check-points .cp-item {
  background: transparent;
  border: none;
  border-bottom: 1.5px dotted #D9D9D9;
  border-radius: 0;
  padding: 1.1em 0.25em 1.2em;
}
/* 最終行は線を消す（PC・タブレットは2カラムなので下2つ） */
.sotsot-lp .check-points .cp-item:nth-last-child(-n+2) { border-bottom: none; }
@media (max-width: 767px) {
  .sotsot-lp .check-points .cp-list { gap: 0; }
  .sotsot-lp .check-points .cp-item { padding: 1em 0.25em; }
  .sotsot-lp .check-points .cp-item:nth-last-child(2) { border-bottom: 1.5px dotted #D9D9D9; }
}

/* --- ナビエリア：1つの大きな囲み --- */
.sotsot-lp .np {
  background: #fcfcfd;
  border: 1.5px solid #DCD2F7;
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(80, 60, 130, 0.07);
  padding: 32px 32px 28px;
}
.sotsot-lp .np-head {
  text-align: center;
  margin-bottom: 28px;
}
.sotsot-lp .np-eyebrow {
  display: block;
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--purple);
  margin-bottom: 4px;
}
.sotsot-lp .np-title {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 900;
  font-size: 20px;
  color: var(--ink-strong);
  margin: 0;
  line-height: 1.5;
}
.sotsot-lp .np-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 900;
  font-size: 14px;
  color: var(--ink-strong);
  margin: 0 0 14px;
}
.sotsot-lp .np-sub::before {
  content: "";
  width: 4px;
  height: 14px;
  border-radius: 2px;
  background: var(--purple);
}
.sotsot-lp .np-divider {
  border-top: 1.5px dotted #D9D9D9;
  margin: 26px 0 22px;
}

/* --- ナビ内のカード（白＋細線＋上辺ライン） --- */
@media (min-width: 1025px) {
  .sotsot-lp .np .rank-guide { gap: 16px; }
}
.sotsot-lp .np .rank-guide a {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--purple);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.sotsot-lp .np .rank-guide a:hover {
  background: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(80, 60, 130, 0.12);
}

/* --- P / N：ピーチ系で「ランクとは別軸」 --- */
.sotsot-lp .np .rank-guide--purpose a {
  background: #FFFAF6;
  border-top-color: #EFC4A9;
}
.sotsot-lp .np .rank-guide--purpose a:hover { background: #FFFAF6; }
@media (min-width: 768px) {
  .sotsot-lp .np .rank-guide--purpose { grid-template-columns: repeat(2, 1fr); }
}

/* --- タブレット --- */
@media (max-width: 1024px) {
  .sotsot-lp .np { padding: 26px 16px 22px; }
  .sotsot-lp .np-title { font-size: 18px; }
}

/* --- スマホ --- */
@media (max-width: 767px) {
  .sotsot-lp .np { padding: 22px 12px 18px; border-radius: 12px; }
  .sotsot-lp .np-head { margin-bottom: 20px; }
  .sotsot-lp .np-title { font-size: 17px; }
  .sotsot-lp .np-divider { margin: 20px 0 18px; }
}

/* PC：囲み・カードの余白とgapを広げる */
@media (min-width: 1025px) {
  .sotsot-lp .check-points { margin-bottom: 64px; }
  .sotsot-lp .np { padding: 52px 52px 48px; }
  .sotsot-lp .np-head { margin-bottom: 44px; }
  .sotsot-lp .np-sub { margin-bottom: 20px; }
  .sotsot-lp .np .rank-guide { gap: 24px; }
  .sotsot-lp .np .rank-guide a { padding: 1.9em 2em; }
  .sotsot-lp .np .rk-label { margin-bottom: 16px; }
  .sotsot-lp .np .rank-guide p { line-height: 1.75; }
  .sotsot-lp .np-divider { margin: 44px 0 40px; }
}

/* タブレット：少しだけ余白アップ */
@media (min-width: 768px) and (max-width: 1024px) {
  .sotsot-lp .np { padding: 36px 24px 30px; }
  .sotsot-lp .np .rank-guide { gap: 14px; }
}

/* ============ 件数は右上の隅に小さく／矢印は右下に統一 ============ */

/* 件数：カード右上の隅に小さく */
.sotsot-lp .np .rk-count {
  position: absolute;
  top: 12px;
  right: 16px;
  margin: 0;
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-soft);
  line-height: 1;
  white-space: nowrap;
}
.sotsot-lp .np .rk-count b {
  font-size: 16px;
  font-weight: 900;
  color: var(--ink-strong);
  margin-right: 1px;
}

/* 矢印：全カード共通、右下の隅に黒矢印 */
.sotsot-lp .np .rk-corner {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
  padding-top: 12px;
}
.sotsot-lp .np .rk-corner svg {
  display: block;
  transition: transform 0.3s ease;
}
.sotsot-lp .np .rank-guide a:hover .rk-corner svg {
  transform: translateX(4px);
}

/* ============ 凡例ナビ：カードの色付け＋矢印の丸ボタン化 ============ */

/* --- S/A/B：薄パープルのカード --- */
.sotsot-lp .np .rank-guide:not(.rank-guide--purpose) a {
  background: #F1ECFC;
  border: 1px solid #DCD2F7;
  border-top: 3px solid var(--purple);
}
.sotsot-lp .np .rank-guide:not(.rank-guide--purpose) a:hover {
  background: #EAE3FA;
}

/* --- P/N：ピーチ系は据え置き（枠線だけ少し足す） --- */
.sotsot-lp .np .rank-guide--purpose a {
  border: 1px solid #F3DCCB;
  border-top: 3px solid #EFC4A9;
}

/* --- 矢印：丸ボタン化 --- */
.sotsot-lp .np .rk-corner {
  padding-top: 14px;
}
.sotsot-lp .np .rk-corner svg {
  box-sizing: content-box;
  width: 18px;
  height: 18px;
  padding: 9px;
  border-radius: 50%;
  background: #9A82DB;
  transition: transform 0.3s ease, background-color 0.3s ease;
}
.sotsot-lp .np .rk-corner svg path {
  stroke: #fff;
}
.sotsot-lp .np .rank-guide a:hover .rk-corner svg {
  background: #8870CC;
  transform: translateX(4px);
}

/* P/N：丸ボタンはピーチ系に */
.sotsot-lp .np .rank-guide--purpose .rk-corner svg {
  background: #E8A988;
}
.sotsot-lp .np .rank-guide--purpose a:hover .rk-corner svg {
  background: #DE9672;
}

/* スマホ：少し小さめに */
@media (max-width: 767px) {
  .sotsot-lp .np .rk-corner svg {
    width: 16px;
    height: 16px;
    padding: 8px;
  }
}
