@charset "utf-8";

/* =========================================================
   archive-price.php — 料金・プラン（Figma: price）
   プランカードは redesign-top.css の .rd-plan-* を共有
   FAQ（.rd-faq__*）は page-compare.php と共有
   ========================================================= */

/* ---------- ファーストビュー（背景は白。パンくずはヘッダー直下） ---------- */
.rd-price-fv {
  background-color: #fff;
  /* 66px は固定ヘッダー分 */
  padding-top: 66px;
  margin-top: 40px;
}
.rd-price-fv .c-section-top {
  margin-top: 40px;
  margin-bottom: 0;
}

.rd-price-sec {
  /* ページ全体を白で固定（下の --sim だけグレー） */
  background-color: #fff;
  padding-top: 72px;
}
/* FV 直後のプランカード */
.rd-price-sec--plans {
  padding-top: 60px;
}
.rd-price-sec:last-of-type {
  padding-bottom: 90px;
}
.rd-price-sec--sim {
  padding-top: 72px;
}
.rd-price__heading {
  font-size: 24px;
  font-weight: 700;
  color: #1A1A1A;
  text-align: center;
  margin: 0 0 34px;
}

/* ---------------------------------------------------------
   プラン比較表
   --------------------------------------------------------- */
.rd-pm__scroll {
  border: 1px solid #DFDFDF;
  border-radius: 6px;
  /* 入りきらないときは横スクロール。1列目（行見出し）は固定する */
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

/* 1列目を左に貼り付けたままにする */
.rd-pm .rd-pm__corner,
.rd-pm .rd-pm__row-head {
  position: sticky;
  left: 0;
  z-index: 2;
  background-color: #fff;
  /* border-collapse だとスクロール時に境界線が消えるので影で代用 */
  box-shadow: 1px 0 0 #DFDFDF;
}
.rd-pm thead .rd-pm__corner {
  z-index: 3;
}
.rd-pm {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background-color: #fff;
  min-width: 720px;
}
.rd-pm th,
.rd-pm td {
  border-right: 1px solid #DFDFDF;
  border-bottom: 1px solid #DFDFDF;
  padding: 16px 10px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  text-align: center;
  vertical-align: middle;
}
.rd-pm tr:last-child th,
.rd-pm tr:last-child td {
  border-bottom: 0;
}
.rd-pm th:last-child,
.rd-pm td:last-child {
  border-right: 0;
}
.rd-pm__corner {
  width: 31%;
  background-color: #fff;
}
/* プラン見出し */
.rd-pm__plan {
  padding: 22px 12px;
  background-color: #fff;
}
.rd-pm__plan-name {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #008ee8;
  line-height: 1.5;
}
.rd-pm__plan-name span {
  display: block;
}
.rd-pm__plan-price {
  display: block;
  margin-top: 10px;
  font-size: 20px;
  font-weight: 700;
  color: #1A1A1A;
}
/* グループ見出し行 */
.rd-pm .rd-pm__group-label {
  background-color: #f6f6f6;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  color: #555;
  padding: 10px 18px;
}
/* グループ名は行全体に伸びるセルの中にあるので、文字だけ左に貼り付けておく */
.rd-pm .rd-pm__group-label span {
  position: sticky;
  left: 18px;
  display: inline-block;
}
.rd-pm .rd-pm__row-head {
  text-align: left;
  padding-left: 18px;
}
.rd-pm__mark {
  font-size: 16px;
  color: #1A1A1A;
}
.rd-pm__none {
  color: #B5B5B5;
}
.rd-pm__text {
  font-size: 14px;
  color: #1A1A1A;
}

/* ---------------------------------------------------------
   初期費用
   --------------------------------------------------------- */
.rd-init-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.rd-init-card {
  background-color: #fff;
  border: 1px solid #E3E3E3;
  border-radius: 6px;
  padding: 24px 26px;
}
.rd-init-card__name {
  font-size: 16px;
  font-weight: 700;
  color: #1A1A1A;
  margin: 0;
}
.rd-init-card__unit {
  font-size: 26px;
  font-weight: 700;
  color: #1A1A1A;
  line-height: 1.4;
  margin: 16px 0 0;
}
.rd-init-card__note {
  font-size: 13px;
  color: #777;
  margin: 14px 0 0;
}
.rd-init-note {
  font-size: 12px;
  line-height: 1.8;
  color: #777;
  margin: 20px 0 0;
}

/* ---------------------------------------------------------
   料金シミュレーター
   --------------------------------------------------------- */
.rd-sim {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.rd-sim__form {
  background-color: #fff;
  border: 1px solid #E3E3E3;
  border-radius: 6px;
  padding: 24px 24px 28px;
}
.rd-sim__step {
  font-size: 15px;
  font-weight: 700;
  color: #1A1A1A;
  margin: 0 0 14px;
}
.rd-sim__step:not(:first-child) {
  margin-top: 26px;
}
/* ラジオ：カード型 */
.rd-sim__option {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #E3E3E3;
  border-radius: 6px;
  padding: 14px 16px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}
.rd-sim__option:last-of-type {
  margin-bottom: 0;
}
.rd-sim__option:hover {
  border-color: #BBD8F5;
}
.rd-sim__option input[type="radio"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  accent-color: #008ee8;
  margin: 0;
}
.rd-sim__option:has(input:checked) {
  border-color: #008ee8;
  background-color: #ECF4FD;
}
.rd-sim__option-body {
  display: block;
}
.rd-sim__option-title {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #1A1A1A;
  line-height: 1.5;
}
.rd-sim__option-sub {
  display: block;
  font-size: 12px;
  color: #777;
  margin-top: 4px;
}
/* ページ数スライダー */
.rd-sim__pages {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}
.rd-sim__pages[hidden] {
  display: none;
}
.rd-sim__pages-label {
  flex: 0 0 auto;
  font-size: 13px;
  color: #555;
}
.rd-sim__pages input[type="range"] {
  flex: 1 1 auto;
  accent-color: #008ee8;
}
.rd-sim__pages-value {
  flex: 0 0 auto;
  font-size: 13px;
  color: #1A1A1A;
  min-width: 5.5em;
  text-align: right;
}

/* 結果パネル */
.rd-sim__result {
  background-color: #ECF4FD;
  border: 1px solid #BBD8F5;
  border-radius: 6px;
  padding: 28px 28px 32px;
}
.rd-sim__result-plan {
  font-size: 15px;
  font-weight: 700;
  color: #008ee8;
  line-height: 1.6;
  margin: 0;
  min-height: 3em;   /* プラン名が1行/2行で高さが跳ねないように */
}
.rd-sim__result-monthly {
  font-size: 30px;
  font-weight: 700;
  color: #1A1A1A;
  line-height: 1.3;
  margin: 10px 0 0;
}
.rd-sim__result-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 26px 0 0;
}
.rd-sim__result-label {
  font-size: 13px;
  font-weight: 700;
  color: #008ee8;
  margin: 0;
}
.rd-sim__result-value {
  font-size: 22px;
  font-weight: 700;
  color: #1A1A1A;
  line-height: 1.4;
  margin: 8px 0 0;
}
.rd-sim__result-cols + .rd-sim__result-label {
  margin-top: 26px;
}
.rd-sim__result-features {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}
.rd-sim__result-features li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.9;
  color: #1A1A1A;
}
.rd-sim__result-features li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 11px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: #7FAFDC;
}
.rd-sim__btn {
  display: block;
  width: 100%;
  margin-top: 26px;
}

/* ---------------------------------------------------------
   よくあるご質問（1問ずつ枠で囲んだトグル）
   archive-price.php / page-compare.php で共有
   --------------------------------------------------------- */
.rd-faq__item {
  background-color: #fff;
  border: 1px solid #E3E3E3;
  border-radius: 6px;
  padding: 20px 24px;
  margin-bottom: 14px;
}
.rd-faq__item:last-child {
  margin-bottom: 0;
}
.rd-faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  color: #1A1A1A;
  cursor: pointer;
  list-style: none;          /* 標準の三角マーカーを消す */
}
.rd-faq__q::-webkit-details-marker {
  display: none;
}
.rd-faq__q:focus-visible {
  outline: 2px solid #008ee8;
  outline-offset: 4px;
}
/* 右端の山形アイコン。閉＝∨ / 開＝∧ */
.rd-faq__icon {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-right: 2px solid #1A1A1A;
  border-bottom: 2px solid #1A1A1A;
  transform: translateY(-3px) rotate(45deg);
  transition: transform .2s ease;
}
.rd-faq__item[open] .rd-faq__icon {
  transform: translateY(2px) rotate(-135deg);
}
.rd-faq__a {
  font-size: 14px;
  line-height: 2;
  color: #1A1A1A;
  margin: 14px 0 0;
}

/* =========================================================
   SP（≦767px）
   ========================================================= */
@media (max-width: 767px) {
  .rd-price-fv {
    margin-top: 24px;
  }
  .rd-price-fv .c-section-top {
    margin-top: 28px;
  }
  .rd-price-sec {
    padding-top: 48px;
  }
  .rd-price-sec--plans {
    padding-top: 40px;
  }
  .rd-price__heading {
    font-size: 20px;
    margin-bottom: 24px;
  }

  /* 比較表は横スクロール */
  .rd-pm__scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .rd-pm {
    table-layout: auto;
    min-width: 680px;
  }
  .rd-pm th,
  .rd-pm td {
    padding: 12px 8px;
    font-size: 12px;
  }
  .rd-pm__plan-name {
    font-size: 13px;
  }
  .rd-pm__plan-price {
    font-size: 16px;
  }

  .rd-init-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .rd-init-card__unit {
    font-size: 22px;
  }

  .rd-sim {
    grid-template-columns: 1fr;
  }
  .rd-sim__result-plan {
    min-height: 0;
  }
  .rd-sim__result-monthly {
    font-size: 25px;
  }
  .rd-sim__result-value {
    font-size: 19px;
  }

  .rd-faq__item {
    padding: 16px 18px;
  }
  .rd-faq__q {
    font-size: 14px;
  }
}
