/* =====================================================================
   lineup-catalog.css — 商品ラインナップ 詳細「カタログ」(C08)
   prefix: p-ct（他ページのマーカーと衝突しない接頭辞）
   2段階レスポンシブ: モバイル(375基準) / デスクトップ(>=1024, 1440基準)
   声カルーセルは共通 carousel.js（data-carousel-page / dots）を利用。
   ===================================================================== */
.p-ct { background: var(--bg-default); }
.p-ct__wrap { max-width: 1200px; margin-inline: auto; padding-inline: var(--space-24); }

/* ============ Hero ============ */
.p-ct__hero { position: relative; padding-top: var(--space-24); }
@media (max-width: 599px) { .p-ct__hero { padding-top: 0; } }   /* SP: KV上部マージン削除 */
.p-ct__hero-media { position: relative; max-width: 1200px; margin-inline: auto; }
.p-ct__hero-img { width: 100%; aspect-ratio: 375 / 400; overflow: hidden; background: var(--container-level1); }
.p-ct__hero-img img { width: 100%; height: 100%; display: block; }
.p-ct__hero-title {
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: min(80%, 600px); background: var(--container-white-alfa);
  border-radius: 0 var(--radius-40) var(--radius-40) 0; padding: var(--space-24);
  display: flex; flex-direction: column; gap: var(--space-16);
}
.p-ct__hero-h { margin: 0; font-weight: var(--fw-bold); font-size: 32px; line-height: 46px; color: var(--text-secondary); }
.p-ct__hero-sub { margin: 0; font-weight: var(--fw-light); font-size: 16px; line-height: 26px; color: var(--text-default); }

/* ============ イントロ ============ */
.p-ct__intro { padding-block: var(--space-48); display: flex; flex-direction: column; align-items: center; gap: var(--space-16); text-align: center; }
.p-ct__intro-title { margin: 0; font-weight: var(--fw-bold); font-size: 24px; line-height: 38px; letter-spacing: .04em; color: var(--text-secondary); }
.p-ct__intro-lead { margin: 0; font-weight: var(--fw-light); font-size: 16px; line-height: 26px; color: var(--text-default); max-width: 980px; }
.p-ct__intro-note { margin: 0; font-weight: var(--fw-light); font-size: 14px; line-height: 22px; letter-spacing: .04em; color: var(--text-muted); }
/* SP: 見出しは20px（他ラインナップと統一）・リードは左寄せ */
@media (max-width: 599px) {
  .p-ct__intro-title { font-size: 20px; }
  .p-ct__intro-lead { text-align: left; }
  .p-ct__intro-note { text-align: left; font-size: 12px; }
}

/* ============ 共通: 白カードセクション＋緑ハイライト見出し ============ */
.p-ct__section { background: var(--container-white); padding: var(--space-48) var(--space-24); display: flex; flex-direction: column; gap: var(--space-40); }
/* 2つ目のセクション（他にもカタログがあります）は上に40pxのマージン */
.p-ct__section + .p-ct__section { margin-top: var(--space-40); }
.p-ct__hl {
  margin: 0; align-self: center; text-align: center;
  font-weight: var(--fw-bold); font-size: 24px; line-height: 38px; color: var(--text-default);
  text-decoration: underline; text-decoration-color: var(--container-green);
  text-decoration-thickness: 8px; text-underline-offset: -2px; text-decoration-skip-ink: none;
}

/* ============ カタログカード（共通） ============ */
.p-ct__cards { display: grid; gap: var(--space-24) var(--space-24); }
/* SP: カードの行間（ボタン↔下のカード）を40pxに（列間24pxは維持） */
@media (max-width: 599px) { .p-ct__cards { row-gap: var(--space-40); } }
.p-ct__cards--sample { grid-template-columns: repeat(2, 1fr); }
.p-ct__cards--more { grid-template-columns: repeat(2, 1fr); }
.p-ct__card { display: flex; flex-direction: column; gap: var(--space-24); }
.p-ct__card-img { width: 100%; aspect-ratio: 18 / 25; border-radius: var(--radius-8); overflow: hidden; background: var(--container-level1); border: 2px solid #F5F2EE; }
.p-ct__card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.p-ct__card-text { display: flex; flex-direction: column; gap: var(--space-4); }
.p-ct__card-name { margin: 0; font-weight: var(--fw-bold); font-size: 16px; line-height: 24px; letter-spacing: .04em; color: var(--text-default); }
.p-ct__card-desc { margin: 0; font-weight: var(--fw-light); font-size: 14px; line-height: 22px; color: var(--text-default); }
/* サンプルカード: サブグリッドで画像・本文・ボタンの各行高さを2カラム間で揃える */
.p-ct__card--sample { grid-row: span 3; display: grid; grid-template-rows: subgrid; row-gap: var(--space-24); }
.p-ct__sample-body { grid-row: span 2; display: grid; grid-template-rows: subgrid; row-gap: var(--space-24); justify-items: center; }
.p-ct__sample-body .p-ct__card-text { width: 100%; }
.p-ct__cat-btn { width: 100%; min-height: 44px; gap: var(--space-4); padding: var(--space-4) var(--space-16); font-size: 12px; line-height: 18px; text-align: left; }
.p-ct__cat-blank { width: 16px; height: 16px; flex: none; }   /* ブランクアイコンは16px四方固定 */
/* SPのみ「を見る」の前で改行（タブレット以上は改行しない） */
.p-ct__cat-br { display: inline; }
@media (min-width: 600px) { .p-ct__cat-br { display: none; } }

/* ============ ご利用者の声（ベージュパネル＋インタビューカルーセル） ============ */
.p-ct__voice { background: var(--container-highlight); border-radius: var(--radius-24); padding: var(--space-40) var(--space-24); display: flex; flex-direction: column; align-items: center; gap: var(--space-40); }
.p-ct__voice-title { margin: 0; display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: var(--fw-bold); font-size: 24px; line-height: 38px; letter-spacing: .04em; color: var(--text-secondary); }
.p-ct__cutlery { width: auto; height: 26px; flex: none; }
/* カルーセルルート（ベージュパネル＋外出しコントロールを内包） */
.p-ct__voice-block { width: 100%; display: flex; flex-direction: column; gap: var(--space-24); }
.p-ct__viewport { overflow: hidden; width: 100%; }
.p-ct__track { display: flex; gap: var(--space-24); will-change: transform; transition: transform .35s ease; }
.p-ct__iv { flex: 0 0 100%; background: var(--container-white); border-radius: var(--radius-40); padding: var(--space-32); display: flex; flex-direction: column; gap: var(--space-24); }
.p-ct__iv-name { display: flex; gap: var(--space-24); align-items: center; width: 100%; }
.p-ct__iv-user { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; }
.p-ct__iv-user img { width: 100%; height: 100%; object-fit: cover; display: block; }
.p-ct__iv-who { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
.p-ct__iv-whoname { margin: 0; font-weight: var(--fw-bold); font-size: 16px; line-height: 24px; color: var(--text-default); }
.p-ct__iv-whometa { margin: 0; font-weight: var(--fw-light); font-size: 14px; line-height: 22px; letter-spacing: .04em; color: var(--text-default); }
.p-ct__iv-details { width: 100%; display: flex; flex-direction: column; }
.p-ct__iv-row { display: flex; flex-direction: column; padding: var(--space-8); border-bottom: 1px solid var(--border-light); }
.p-ct__iv-label { margin: 0; font-weight: var(--fw-bold); font-size: 14px; line-height: 22px; color: var(--text-default); }
.p-ct__iv-val { margin: 0; font-weight: var(--fw-light); font-size: 14px; line-height: 22px; letter-spacing: .04em; color: var(--text-default); }
.p-ct__iv-list { margin: 0; padding-left: 1.4em; list-style: disc; font-weight: var(--fw-light); font-size: 14px; line-height: 22px; letter-spacing: .04em; color: var(--text-default); }
.p-ct__iv-comment { margin: 0; font-weight: var(--fw-light); font-size: 14px; line-height: 22px; letter-spacing: .04em; color: var(--text-default); }

.p-ct__controls { display: flex; align-items: center; justify-content: space-between; gap: var(--space-16); width: 100%; }
.p-ct__nav { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-primary); background: var(--container-white); color: var(--color-primary); display: grid; place-items: center; cursor: pointer; transition: background-color .2s ease, border-color .2s ease, opacity .2s ease; }
.p-ct__nav:hover:not(:disabled) { border-color: var(--border-primary); background: var(--color-secondary-light); }
.p-ct__nav:focus-visible { outline: 2px solid #0b57d0; outline-offset: 1px; }
.p-ct__nav:disabled { opacity: .35; cursor: default; }
.p-ct__nav svg { width: 16px; height: 16px; }
.p-ct__dots { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-8); }
.p-ct__dots button { width: 12px; height: 12px; padding: 0; border: 0; border-radius: 50%; background: var(--border-default); cursor: pointer; transition: background-color .2s ease; }
.p-ct__dots button.is-active { background: var(--color-primary); }

/* ---------------------------------------------------------------------
   SP専用（<=599）: ご利用者の声セクション
   --------------------------------------------------------------------- */
@media (max-width: 599px) {
  /* フルブリード（セクション左右padding分を相殺して画面幅いっぱいに） */
  .p-ct__voice-block { position: relative; width: auto; margin-inline: calc(-1 * var(--space-24)); }
  .p-ct__voice { border-radius: 0; }
  /* インタビュー本文の値は12px */
  .p-ct__iv-val { font-size: 12px; }
  /* 矢印: 白カードの縦中央・左右端にボタンの半分を被せて配置 */
  .p-ct__controls { justify-content: center; }
  .p-ct__nav { position: absolute; top: calc(50% + 21px); transform: translateY(-50%); z-index: 3; }
  .p-ct__nav--prev { left: 4px; }
  .p-ct__nav--next { right: 4px; }
}

/* ============ Section_Flow（注文の流れ） ============ */
.p-ct__flow { background: var(--container-white); margin-top: var(--space-40); padding: var(--space-48) var(--space-24); display: flex; flex-direction: column; align-items: center; gap: var(--space-40); }
.p-ct__flow-head { display: flex; flex-direction: column; align-items: center; gap: var(--space-24); text-align: center; }
/* SP: 「商品を注文するには」のリードのみ左寄せ（見出しは中央のまま） */
@media (max-width: 599px) {
  .p-ct__flow-head { align-items: stretch; text-align: left; }
  .p-ct__flow-head .p-ct__hl { text-align: center; }
}
.p-ct__flow-lead { margin: 0; font-weight: var(--fw-light); font-size: 16px; line-height: 26px; color: var(--text-default); }
.p-ct__steps { list-style: none; margin: 0; padding: 0; width: 100%; display: flex; flex-direction: column; gap: 52px; }   /* SP: 矢印分の間隔（PCは600で40pxに戻す） */
.p-ct__step { position: relative; display: flex; align-items: center; gap: var(--space-24); }
.p-ct__step-illust { flex: 0 0 75px; width: 75px; height: 75px; display: grid; place-items: center; }   /* SP: 52px（他ラインナップと統一） */
.p-ct__step-illust img { width: 100%; height: 100%; object-fit: contain; }
.p-ct__step-label { display: flex; flex-direction: column; gap: var(--space-8); align-items: flex-start; }
/* SP: ステップ間の下向き矢印（PCの右矢印を90°回転） */
.p-ct__step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: calc(100% + 26px);
  left: 50%;
  width: 48px;
  height: 48px;
  transform: translate(-50%, -50%) rotate(90deg);
  background: url(../img/frozen-step-arrow.webp) center / contain no-repeat;
  pointer-events: none;
}
.p-ct__step-no {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  padding: 0 var(--space-12);
  border-radius: 4px;
  background: var(--text-secondary);
  color: var(--text-white);
  font-weight: var(--fw-bold);
  font-size: 10px;
  line-height: 18px;
  letter-spacing: .04em;
}
.p-ct__step-no span { font-size: 14px; line-height: 22px; }
.p-ct__step-title { font-weight: var(--fw-bold); font-size: 16px; line-height: 24px; color: var(--text-default); }

.p-ct__btn { width: 100%; }
@media (min-width: 600px) { .p-ct__btn { width: 280px; } }

/* ---------------------------------------------------------------------
   タブレット（>=600）
   --------------------------------------------------------------------- */
@media (min-width: 600px) {
  .p-ct__cards--more { grid-template-columns: repeat(3, 1fr); column-gap: var(--space-40); row-gap: var(--space-40); }
  .p-ct__iv { flex: 0 0 calc((100% - var(--space-24)) / 2); }
  .p-ct__steps { flex-direction: row; justify-content: center; gap: var(--space-40); }
  .p-ct__step { flex: 1 1 0; flex-direction: column; text-align: center; gap: var(--space-24); }
  .p-ct__step-illust { flex-basis: auto; width: 200px; height: 200px; max-width: 100%; }
  .p-ct__step-label { align-items: center; text-align: center; }
  .p-ct__step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 100px;
    left: 100%;
    margin-left: calc(var(--space-40) / 2 - 13px);
    transform: translate(0, -50%) rotate(0deg);
    width: 26px;
    height: 64px;
    background: url(../img/frozen-step-arrow.webp) center / contain no-repeat;
  }
  .p-ct__section, .p-ct__flow { border-radius: var(--radius-40); padding: var(--space-64); }
  .p-ct__voice { border-radius: var(--radius-40); padding: var(--space-64); }
}

/* ---------------------------------------------------------------------
   デスクトップ（>=1024）
   --------------------------------------------------------------------- */
@media (min-width: 1024px) {
  .p-ct__hero { padding-top: var(--space-64); }
  .p-ct__hero-img { aspect-ratio: 1200 / 400; border-radius: var(--radius-40); }
  .p-ct__hero-title { width: 600px; padding: var(--space-32) var(--space-40); }
  .p-ct__hero-h { font-size: 40px; line-height: 58px; }

  .p-ct__intro { padding-block: var(--space-64); }
  .p-ct__section, .p-ct__flow { gap: var(--space-64); }
  .p-ct__flow { margin-top: var(--space-40); }
  .p-ct__hl { font-size: 32px; line-height: 52px; }

  .p-ct__cards { gap: var(--space-64); }
  .p-ct__card-name { font-size: 20px; line-height: 34px; }
  .p-ct__card-desc { font-size: 16px; line-height: 26px; }
  .p-ct__sample-body { row-gap: var(--space-40); }
  .p-ct__cat-btn { width: 280px; min-height: 60px; gap: var(--space-8); padding: var(--space-8) var(--space-24); font-size: 16px; line-height: 24px; }
}
