/*
 * サブスクリプション（定期便）の固定ページ。XD ボード PC_サブスク / SP_サブスク の再現。
 *
 * 数値は XD の実寸をそのまま置いている（PC は 1920 幅・本文 1440、
 * SP は 375 幅・左右 18）。共通部品は component-lp-page.css を参照。
 */

/* ── ヒーロー ──────────────────────────────────────
 * 左に文言、右に本体の写真。XD では写真が右端まで届かず
 * 少し内側（1087〜1557 / 本文右端は 1680）に置かれている。
 */
.sub-hero {
  padding-block: 60px 120px;
}

.sub-hero__inner {
  display: flex;
  align-items: center;
  gap: 40px;
}

.sub-hero__body {
  flex: 1 1 auto;
  min-width: 0;
}

.sub-hero__eyebrow {
  font-family: var(--astra-gen-interface-jp);
  font-weight: var(--astra-font-weight-extrabold);
  font-size: 49px;
  line-height: 1;
  color: var(--lp-muted);
  margin: 0 0 26px;
}

/* XD は1行目が白・2行目が黄色の2色。 */
.sub-hero__title {
  font-family: var(--astra-gen-interface-jp);
  font-weight: var(--astra-font-weight-semibold);
  font-size: 62px;
  line-height: 75px;
  color: #fff;
  margin: 0 0 32px;
}

.sub-hero__title-accent {
  color: var(--lp-yellow);
}

.sub-hero__lead {
  font-family: var(--astra-gen-interface-jp);
  font-weight: var(--astra-font-weight-light);
  font-size: 26px;
  line-height: 41px;
  color: #fff;
  margin: 0 0 40px;
}

.sub-hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 52px;
  margin: 0 0 60px;
  padding: 0;
  list-style: none;
}

.sub-hero__point {
  display: flex;
  align-items: center;
  gap: 15px;
  font-family: var(--astra-gen-interface-jp);
  font-weight: var(--astra-font-weight-medium);
  font-size: 25px;
  line-height: 1;
  color: var(--lp-yellow);
}

.sub-hero__point .lp-check-badge {
  width: 31px;
}

.sub-hero__media {
  flex: 0 0 auto;
  width: 470px;
  margin-right: 123px;
}

.sub-hero__media img {
  display: block;
  width: 100%;
  height: auto;
}

@media screen and (max-width: 1280px) {
  .sub-hero__media {
    width: 34vw;
    margin-right: 0;
  }
}

@media screen and (max-width: 768px) {
  .sub-hero {
    padding-block: 24px 42px;
  }

  /*
   * SP は見出しの直下にデバイス画像を置く。本文側の要素を並べ替えるため、
   * __body を display: contents にして子を __inner の flex 項目として order で並べる。
   */
  .sub-hero__inner {
    display: flex;
    flex-direction: column;
  }

  .sub-hero__body {
    display: contents;
  }

  .sub-hero__eyebrow { order: 1; }
  .sub-hero__title { order: 2; }
  .sub-hero__media { order: 3; }
  .sub-hero__lead { order: 4; }
  .sub-hero__points { order: 5; }
  .sub-hero__body > .lp-button { order: 6; align-self: flex-start; }

  .sub-hero__eyebrow {
    font-size: 24px;
    margin-bottom: 14px;
  }

  .sub-hero__title {
    font-size: 30px;
    line-height: 36px;
    margin-bottom: 18px;
  }

  .sub-hero__lead {
    font-size: 14px;
    line-height: 19px;
    max-width: 258px;
    margin-bottom: 26px;
  }

  .sub-hero__points {
    gap: 12px 24px;
    margin-bottom: 30px;
  }

  .sub-hero__point {
    gap: 10px;
    font-size: 16px;
  }

  .sub-hero__point .lp-check-badge {
    width: 20px;
  }

  .sub-hero__media {
    width: 226px;
    margin: 4px auto 28px;
  }
}

/* ── 定期便だけの、4つのメリット ───────────────────── */
.sub-benefits__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
}

/*
 * 右の余白が左より狭い。XD では見出し（「圧倒的な / コストパフォーマンス」）が
 * カードの右端近くまで伸びていて、説明文だけが 255px で折り返しているため。
 */
.sub-benefit {
  min-height: 359px;
  padding: 38px 24px 32px 30px;
  display: flex;
  flex-direction: column;
}

.sub-benefit__icon {
  height: 45px;
  margin-bottom: 34px;
  color: var(--lp-yellow);
}

.sub-benefit__icon svg {
  width: auto;
  height: 100%;
}

.sub-benefit__eyebrow {
  font-family: var(--astra-source-code-pro);
  font-weight: var(--astra-font-weight-regular);
  font-size: 14px;
  line-height: 1;
  color: var(--lp-yellow);
  margin: 0 0 16px;
}

.sub-benefit__title {
  font-family: var(--astra-gen-interface-jp);
  font-weight: var(--astra-font-weight-medium);
  font-size: 32px;
  line-height: 45px;
  color: #fff;
  margin: 0 0 20px;
}

.sub-benefit__text {
  max-width: 255px;
  font-family: var(--astra-gen-interface-jp);
  font-weight: var(--astra-font-weight-regular);
  font-size: 16px;
  line-height: 26px;
  color: var(--lp-body);
  margin: 0;
}

@media screen and (max-width: 1280px) {
  .sub-benefit__title {
    font-size: 26px;
    line-height: 38px;
  }
}

@media screen and (max-width: 768px) {
  .sub-benefits__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .sub-benefit {
    min-height: 267px;
    padding: 20px 14px 18px;
  }

  .sub-benefit__icon {
    height: 26px;
    margin-bottom: 18px;
  }

  .sub-benefit__eyebrow {
    font-size: 10px;
    margin-bottom: 8px;
  }

  .sub-benefit__title {
    font-size: 15px;
    line-height: 21px;
    margin-bottom: 10px;
  }

  .sub-benefit__text {
    font-size: 14px;
    line-height: 20px;
  }
}

/* ── プランを選ぶ ─────────────────────────────────
 * XD ではこのセクションの範囲だけ背景がすりガラスになっている
 * （長方形 5605 / SP は 5614）。
 */
.sub-plans__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
  align-items: stretch;
}

.sub-plan {
  display: flex;
  flex-direction: column;
  padding: 40px 30px 32px 38px;
  /* プランのカードだけ不透明（XD の塗りに透明度が入っていない）。 */
  background-color: #020202;
  box-shadow: 0 3px 3px rgba(0, 0, 0, 0.16);
}

/* おすすめの1枚だけ黄色いふちどりが付く。 */
.sub-plan--featured {
  border: 2px solid var(--lp-yellow);
}

.sub-plan__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 30px;
}

.sub-plan__no {
  font-family: var(--astra-source-code-pro);
  font-weight: var(--astra-font-weight-regular);
  font-size: 24px;
  line-height: 1;
  color: var(--lp-muted);
}

.sub-plan__eyebrow {
  font-family: var(--astra-source-code-pro);
  font-weight: var(--astra-font-weight-regular);
  font-size: 14px;
  line-height: 1;
  color: var(--lp-yellow);
}

.sub-plan__name {
  font-family: var(--astra-gen-interface-jp);
  font-weight: var(--astra-font-weight-medium);
  font-size: 24px;
  line-height: 1;
  color: #fff;
  margin: 0 0 16px;
}

/*
 * 説明文は2行ぶんの高さを確保する。XD ではどのカードも価格の高さが
 * 揃っているが、文の長さは1行のものと2行のものが混ざっているため。
 */
.sub-plan__desc {
  font-family: var(--astra-gen-interface-jp);
  font-weight: var(--astra-font-weight-regular);
  font-size: 16px;
  line-height: 26px;
  min-height: 52px;
  color: var(--lp-body);
  margin: 0 0 26px;
}

.sub-plan__rate {
  font-family: var(--astra-gen-interface-jp);
  font-weight: var(--astra-font-weight-regular);
  font-size: 13px;
  line-height: 26px;
  color: var(--lp-body);
  margin: 0;
}

.sub-plan__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 4px;
}

.sub-plan__amount {
  font-family: var(--astra-gen-interface-jp);
  font-weight: var(--astra-font-weight-medium);
  font-size: 52px;
  line-height: 1;
  color: #fff;
}

.sub-plan__unit {
  font-family: var(--astra-gen-interface-jp);
  font-weight: var(--astra-font-weight-medium);
  font-size: 17px;
  line-height: 1;
  color: var(--lp-muted);
}

.sub-plan__save {
  font-family: var(--astra-gen-interface-jp);
  font-weight: var(--astra-font-weight-regular);
  font-size: 16px;
  line-height: 26px;
  color: #cbcbcb;
  margin: 0 0 20px;
}

/* XD ではこの2つの金額だけ赤。 */
.sub-plan__save-price {
  color: var(--lp-red);
}

.sub-plan__specs {
  margin: 0;
  padding-top: 22px;
  border-top: 1px solid var(--lp-rule);
  display: grid;
  grid-template-columns: auto 1fr;
  row-gap: 13px;
  column-gap: 12px;
  font-family: var(--astra-gen-interface-jp);
  font-weight: var(--astra-font-weight-regular);
  font-size: 16px;
  line-height: 26px;
}

.sub-plan__specs dt {
  color: var(--lp-muted);
}

.sub-plan__specs dd {
  margin: 0;
  text-align: right;
  color: #fff;
}

.sub-plan__starter {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--lp-rule);
}

.sub-plan__starter-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
  font-family: var(--astra-gen-interface-jp);
  font-weight: var(--astra-font-weight-regular);
  font-size: 16px;
  line-height: 26px;
  color: #fff;
}

.sub-plan__starter-summary::-webkit-details-marker {
  display: none;
}

/* 白丸のなかに黒い矢印。開いていると下向き。 */
.sub-plan__starter-toggle {
  flex: none;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #fff;
  color: #020202;
  transition: transform 0.2s ease;
}

.sub-plan__starter-toggle svg {
  width: 8px;
  height: auto;
}

.sub-plan__starter[open] .sub-plan__starter-toggle {
  transform: rotate(180deg);
}

.sub-plan__starter-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sub-plan__starter-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--astra-gen-interface-jp);
  font-weight: var(--astra-font-weight-regular);
  font-size: 16px;
  line-height: 26px;
  color: #fff;
}

.sub-plan__starter-list .lp-check-badge {
  width: 21px;
  color: var(--lp-cyan);
  --lp-check-mark: #fff;
}

.sub-plan__cta {
  margin-top: auto;
  padding-top: 30px;
}

/*
 * ボタンの最小幅（268px）がカードの最小幅を押し上げて、版面が狭いときに
 * 4列が入り切らなくなる。カードの中では幅いっぱいまで縮めてよい。
 */
.sub-plan__cta .lp-button {
  min-width: 0;
  width: 100%;
  max-width: 268px;
}

.sub-plans__note {
  margin: 26px 0 0;
  text-align: center;
  font-family: var(--astra-gen-interface-jp);
  font-weight: var(--astra-font-weight-light);
  font-size: 13px;
  line-height: 1.6;
  color: var(--lp-body);
}

@media screen and (max-width: 1280px) {
  .sub-plan {
    padding: 28px 20px;
  }

  .sub-plan__amount {
    font-size: 40px;
  }
}

@media screen and (max-width: 768px) {
  .sub-plans__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 8px;
    /* XD の SP はカードが左右 9px まで寄っている。 */
    margin-inline: -9px;
  }

  .sub-plan {
    padding: 16px 12px 14px;
    border-radius: 8px;
  }

  .sub-plan__head {
    gap: 8px;
    margin-bottom: 14px;
  }

  .sub-plan__no {
    font-size: 12px;
  }

  .sub-plan__eyebrow {
    font-size: 11px;
  }

  .sub-plan__name {
    font-size: 10px;
    margin-bottom: 6px;
  }

  .sub-plan__desc {
    font-size: 12px;
    line-height: 16px;
    margin-bottom: 14px;
  }

  .sub-plan__rate {
    font-size: 10px;
    line-height: 16px;
  }

  .sub-plan__amount {
    font-size: 26px;
  }

  .sub-plan__unit {
    font-size: 7px;
  }

  .sub-plan__save {
    font-size: 14px;
    line-height: 26px;
    margin-bottom: 12px;
  }

  /* SP は横に並べず、項目名の下に値を置く（XD どおり）。 */
  .sub-plan__specs {
    display: block;
    padding-top: 14px;
    font-size: 12px;
    line-height: 20px;
  }

  .sub-plan__specs dd {
    text-align: left;
    margin-bottom: 10px;
  }

  .sub-plan__specs dd:last-child {
    margin-bottom: 0;
  }

  .sub-plan__starter {
    margin-top: 14px;
    padding-top: 12px;
  }

  .sub-plan__starter-summary,
  .sub-plan__starter-list li {
    font-size: 12px;
    line-height: 18px;
  }

  .sub-plan__starter-toggle {
    width: 14px;
    height: 14px;
  }

  .sub-plan__starter-list .lp-check-badge {
    width: 18px;
  }

  /* SP のプランのボタンだけ矢印が付かない（XD どおり）。1行に収める。 */
  .sub-plan__cta {
    padding-top: 18px;
  }

  .sub-plan__cta .lp-button {
    justify-content: center;
    padding-inline: 12px;
    white-space: nowrap;
  }

  .sub-plan__cta .lp-button svg {
    display: none;
  }

  .sub-plans__note {
    font-size: 13px;
  }
}

/* ── ご利用の流れ ─────────────────────────────────
 * PC は 3 列を横線でつなぐ。SP は縦に並べて左に縦線を通す。
 */
.sub-flow__steps {
  width: min(100%, 1200px);
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  position: relative;
}

/*
 * 丸と丸を結ぶ線。XD と同じく、1つめの丸の右端から3つめの丸の左端まで
 * （2つめの丸の後ろは通る）。右端の値は「3列のうち1列ぶん」。
 */
.sub-flow__steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 80px;
  right: calc((100% - 60px) / 3);
  height: 1px;
  background-color: #707070;
}

.sub-flow__step {
  position: relative;
}

.sub-flow__no {
  position: relative;
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: #030303;
  font-family: var(--astra-source-code-pro);
  font-weight: var(--astra-font-weight-regular);
  font-size: 36px;
  line-height: 1;
  color: #595959;
  margin-bottom: 44px;
}

.sub-flow__title {
  font-family: var(--astra-gen-interface-jp);
  font-weight: var(--astra-font-weight-medium);
  font-size: 24px;
  line-height: 1;
  color: #fff;
  margin: 0 0 18px;
}

.sub-flow__text {
  max-width: 270px;
  font-family: var(--astra-gen-interface-jp);
  font-weight: var(--astra-font-weight-regular);
  font-size: 16px;
  line-height: 26px;
  color: var(--lp-body);
  margin: 0;
}

.sub-flow__note {
  max-width: 270px;
  font-family: var(--astra-gen-interface-jp);
  font-weight: var(--astra-font-weight-regular);
  font-size: 13px;
  line-height: 22px;
  color: var(--lp-body);
  margin: 8px 0 0;
}

@media screen and (max-width: 768px) {
  .sub-flow__steps {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .sub-flow__steps::before {
    top: 33px;
    bottom: 33px;
    left: 33px;
    right: auto;
    width: 1px;
    height: auto;
  }

  .sub-flow__step {
    display: grid;
    grid-template-columns: 66px 1fr;
    column-gap: 12px;
  }

  .sub-flow__no {
    width: 66px;
    height: 66px;
    font-size: 22px;
    margin-bottom: 0;
    grid-row: 1 / span 2;
  }

  .sub-flow__title {
    font-size: 18px;
    margin-bottom: 8px;
    align-self: center;
  }

  .sub-flow__text {
    font-size: 14px;
    line-height: 23px;
    max-width: none;
  }

  /* 注記は丸の下ではなく本文と同じ右の列に置く（grid の次の行に落ちて丸の下へはみ出していた） */
  .sub-flow__note {
    grid-column: 2;
    max-width: none;
    font-size: 12px;
    line-height: 19px;
    margin-top: 6px;
  }
}

/* ── お客様の声 ───────────────────────────────────
 * 出す件数が決まるまでは4件だけ置いている。
 * PC はカード 345px × 4 + 隙間 20px でちょうど本文幅 1440px に収まるので、
 * XD の横に流れる並びではなく4列の固定表示。SP は XD どおり横スクロール。
 */
.sub-reviews__items {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.sub-review {
  min-height: 544px;
  padding: 15px 15px 30px;
  border-radius: 10px;
  background-color: #030303;
  display: flex;
  flex-direction: column;
}

.sub-review__image {
  display: block;
  width: 100%;
  aspect-ratio: 315 / 316;
  margin-bottom: 22px;
  background-color: #eaeaea;
  object-fit: cover;
}

.sub-review__author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.sub-review__avatar {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #626262;
}

.sub-review__handle {
  font-family: var(--astra-gen-interface-jp);
  font-weight: var(--astra-font-weight-regular);
  font-size: 16px;
  line-height: 28px;
  color: #eaeaea;
}

.sub-review__text {
  margin: 0;
  font-family: var(--astra-gen-interface-jp);
  font-weight: var(--astra-font-weight-regular);
  font-size: 16px;
  line-height: 26px;
  color: #eaeaea;
}

@media screen and (max-width: 768px) {
  /*
   * SP は XD どおり1行の横スクロール。左右の余白ぶんだけ外へ出して、
   * カードが画面の端まで流れて見えるようにする（はみ出しは自分の中で
   * スクロールするので、ページ全体には横スクロールが生えない）。
   */
  .sub-reviews__items {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    padding-inline: 18px;
    padding-bottom: 12px;
    scrollbar-width: none;
  }

  .sub-reviews__items::-webkit-scrollbar {
    display: none;
  }

  .sub-review {
    flex: none;
    width: 212px;
    min-height: 427px;
    padding: 9px 9px 18px;
    scroll-snap-align: start;
  }

  .sub-review__image {
    aspect-ratio: 1 / 1;
    margin-bottom: 14px;
  }

  .sub-review__avatar {
    width: 36px;
    height: 35px;
  }

  .sub-review__handle {
    font-size: 10px;
    line-height: 16px;
  }

  .sub-review__text {
    font-size: 14px;
    line-height: 24px;
  }
}

/* ── 最後の一押し ─────────────────────────────────
 * XD の SP ボードにはこの帯が無いが、モバイルだけ申し込み導線が
 * 消えてしまうので、幅と文字の大きさを詰めて残している。
 */
.sub-cta {
  text-align: center;
}

.sub-cta__title {
  font-family: var(--astra-gen-interface-jp);
  font-weight: var(--astra-font-weight-semibold);
  font-size: 52px;
  line-height: 75px;
  color: #fff;
  margin: 0 0 30px;
}

@media screen and (max-width: 768px) {
  .sub-cta__title {
    font-size: 22px;
    line-height: 34px;
    margin-bottom: 20px;
  }
}
