/* ==========================================================================
   REBORN サイト共通デザインシステム  rb-system.css
   （lp-u4.css のトークン／コンポーネントを全站スコープへ昇格させたもの）
   --------------------------------------------------------------------------
   スコープ規約（lp-u4.css と同一。理由：テーマを載せ替えても資産が生き残るため）
   - 全セレクタを .rb 配下に閉じる
   - !important は使用しない
   - テーマ既存クラス（.p-page-header .p-faq-list .su-* .speech_balloon 等）に
     一切スタイルを当てない
   - アニメーションは transform / opacity のみ。prefers-reduced-motion で全停止
   --------------------------------------------------------------------------
   トークンの値は lp-u4.css と一致させている（同一ブランドの単一システム）。
   値を変えるときは両方を同時に変えること。
   ========================================================================== */

.rb {
  /* --- 夜 → 朝の背景（フェーズ） --- */
  --rb-night:      #0e1d33;
  --rb-dawn:       #33465f;
  --rb-morning:    #eef3f8;
  --rb-daylight:   #ffffff;

  /* --- テキスト --- */
  --rb-ink:        #16283f;
  --rb-ink-invert: #f2f5f9;
  --rb-muted:      #63758b;

  /* --- アクセント --- */
  --rb-accent:     #5b90c3;
  --rb-sunrise:    #e8a87c;   /* CTA と価格にのみ使用（他用途禁止） */

  /* --- 意味色 --- */
  --rb-ok:         #17796c;
  --rb-caution:    #c05e3c;

  /* --- タイポ --- */
  --rb-font-head:  "Noto Serif JP", "Zen Kaku Gothic New", serif;
  --rb-font-body:  "Noto Sans JP", "Zen Kaku Gothic New", sans-serif;
  --rb-fs-hero:    clamp(26px, 6.2vw, 44px);
  --rb-fs-h2:      clamp(21px, 3.6vw, 32px);
  --rb-fs-h3:      clamp(17px, 2.4vw, 21px);
  --rb-fs-body:    17px;
  --rb-fs-sm:      14px;
  --rb-fs-xs:      12px;
  --rb-fs-price:   clamp(28px, 5.6vw, 44px);
  --rb-lh-body:    1.9;
  --rb-lh-head:    1.45;

  /* --- 余白 --- */
  --rb-space-xs: 8px;
  --rb-space-s:  16px;
  --rb-space-m:  32px;
  --rb-space-l:  64px;
  --rb-space-xl: 96px;

  /* --- 形 --- */
  --rb-radius:   14px;
  --rb-radius-s: 8px;

  /* --- モーション --- */
  --rb-ease:     cubic-bezier(0.22, 1, 0.36, 1);
  --rb-duration: 0.4s;

  /* --- 現在フェーズの実効値（data-phase で切替） --- */
  --rb-bg: var(--rb-daylight);
  --rb-fg: var(--rb-ink);
  --rb-fg-sub: var(--rb-muted);
  --rb-border: rgba(22, 40, 63, 0.14);
  --rb-panel: rgba(255, 255, 255, 0.9);

  font-family: var(--rb-font-body);
  font-size: var(--rb-fs-body);
  line-height: var(--rb-lh-body);
  color: var(--rb-ink);
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}

.rb *,
.rb *::before,
.rb *::after { box-sizing: border-box; }

.rb img { max-width: 100%; height: auto; display: block; }

.rb a { color: inherit; }

/* --------------------------------------------------------------------------
   フェーズ（ページごとに開始フェーズを変えることで「別ページの顔」を作る）
   トップ＝night起点／LP1＝深夜／LP4＝夜→朝／LP3＝明け方／LP2＝日中
   -------------------------------------------------------------------------- */
.rb [data-phase] {
  background-color: var(--rb-bg);
  color: var(--rb-fg);
}

.rb [data-phase="night"] {
  --rb-bg: var(--rb-night);
  --rb-fg: var(--rb-ink-invert);
  --rb-fg-sub: #a9bad0;
  --rb-border: rgba(242, 245, 249, 0.18);
  --rb-panel: rgba(255, 255, 255, 0.05);
}

.rb [data-phase="dawn"] {
  --rb-bg: var(--rb-dawn);
  --rb-fg: var(--rb-ink-invert);
  --rb-fg-sub: #c2cddc;
  --rb-border: rgba(242, 245, 249, 0.22);
  --rb-panel: rgba(255, 255, 255, 0.08);
}

.rb [data-phase="morning"] {
  --rb-bg: var(--rb-morning);
  --rb-fg: var(--rb-ink);
  --rb-fg-sub: var(--rb-muted);
  --rb-border: rgba(22, 40, 63, 0.12);
  --rb-panel: rgba(255, 255, 255, 0.86);
}

.rb [data-phase="daylight"] {
  --rb-bg: var(--rb-daylight);
  --rb-fg: var(--rb-ink);
  --rb-fg-sub: var(--rb-muted);
  --rb-border: rgba(22, 40, 63, 0.14);
  --rb-panel: #f7f9fc;
}

/* 紙（サイト層B案「専門店」路線の基調。温かみのある白） */
.rb [data-phase="paper"] {
  --rb-bg: #f7f4ee;
  --rb-fg: var(--rb-ink);
  --rb-fg-sub: #6b7280;
  --rb-border: rgba(22, 40, 63, 0.16);
  --rb-panel: #ffffff;
}

/* フェーズ間のつなぎ（段差を作らない） */
.rb-bridge { height: 72px; }
.rb-bridge--night-dawn    { background: linear-gradient(180deg, #0e1d33, #33465f); }
.rb-bridge--dawn-morning  { background: linear-gradient(180deg, #33465f, #eef3f8); }
.rb-bridge--morning-daylight { background: linear-gradient(180deg, #eef3f8, #ffffff); }
.rb-bridge--daylight-morning { background: linear-gradient(180deg, #ffffff, #eef3f8); }

/* --------------------------------------------------------------------------
   レイアウト
   -------------------------------------------------------------------------- */
.rb-inner {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.rb-inner--narrow { max-width: 760px; }

.rb-sec {
  padding: var(--rb-space-l) 0;
}

.rb-sec__head {
  margin-bottom: var(--rb-space-m);
}

/* セクション自動採番（LP4と同じ思想。数字で「編集された誌面」のリズムを作る）
   .rb-sec__head 内の .rb-h2 に 01〜 が自動で付く。手動管理はしない */
.rb { counter-reset: rbsec; }

.rb-sec__head .rb-h2::before {
  counter-increment: rbsec;
  content: counter(rbsec, decimal-leading-zero);
  display: block;
  font-family: var(--rb-font-head);
  font-size: 13px;
  letter-spacing: 0.28em;
  color: var(--rb-accent);
  margin-bottom: 10px;
}

.rb-h2 {
  font-family: var(--rb-font-head);
  font-size: var(--rb-fs-h2);
  font-weight: 700;
  line-height: var(--rb-lh-head);
  margin: 0 0 12px;
  letter-spacing: 0.01em;
}

.rb-h3 {
  font-family: var(--rb-font-head);
  font-size: var(--rb-fs-h3);
  font-weight: 700;
  line-height: var(--rb-lh-head);
  margin: 0 0 8px;
}

.rb-lead {
  font-size: var(--rb-fs-body);
  color: var(--rb-fg-sub);
  margin: 0;
}

.rb-note {
  font-size: var(--rb-fs-xs);
  line-height: 1.8;
  color: var(--rb-fg-sub);
  margin: 12px 0 0;
}

.rb-ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rb-ul > li {
  position: relative;
  padding: 12px 0 12px 22px;
  border-bottom: 1px solid var(--rb-border);
}

.rb-ul > li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 24px;
  width: 8px;
  height: 1px;
  background: var(--rb-accent);
}

/* --------------------------------------------------------------------------
   ボタン（タップ領域は最低 44px。主CTAは 56px 以上）
   橙 --rb-sunrise は CTA と価格のみ
   -------------------------------------------------------------------------- */
.rb-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 56px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--rb-radius);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--rb-duration) var(--rb-ease),
              background-color var(--rb-duration) var(--rb-ease);
}

.rb-btn:hover { transform: translateY(-1px); }
.rb-btn:focus-visible { outline: 3px solid var(--rb-sunrise); outline-offset: 2px; }

.rb-btn__sub {
  font-size: var(--rb-fs-xs);
  font-weight: 400;
  opacity: 0.85;
}

.rb-btn--sunrise {
  background: var(--rb-sunrise);
  color: #2a1c12;
  border-color: var(--rb-sunrise);
}

.rb-btn--outline {
  background: transparent;
  color: var(--rb-fg);
  border-color: var(--rb-border);
}

.rb-btn--ghost {
  background: var(--rb-panel);
  color: var(--rb-fg);
  border-color: var(--rb-border);
}

.rb-btn--line {
  background: #06c755;
  color: #ffffff;
  border-color: #06c755;
}

.rb-btn--sm { min-height: 44px; font-size: 15px; padding: 8px 16px; }

.rb-cta-set { display: grid; gap: 10px; }
.rb-cta-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* 2列に並ぶ二次CTAは幅が半分になる。375pxで電話番号が折り返さないよう、
   左右パディングを詰めてラベルは折り返さない（補足行だけ折り返す） */
.rb-cta-row .rb-btn { padding-left: 10px; padding-right: 10px; white-space: nowrap; }
.rb-cta-row .rb-btn__sub { white-space: normal; }

/* --------------------------------------------------------------------------
   信頼行・許可番号・注記
   -------------------------------------------------------------------------- */
.rb-trustline {
  font-size: var(--rb-fs-xs);
  line-height: 1.7;
  color: var(--rb-fg-sub);
  margin: 14px 0 0;
}

.rb-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rb-chips > li {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  padding: 6px 12px;
  border: 1px solid var(--rb-border);
  border-radius: 999px;
  background: var(--rb-panel);
}

.rb-disclaimer {
  font-size: var(--rb-fs-xs);
  line-height: 1.9;
  color: var(--rb-fg-sub);
}

/* 未確定の表示（公開前に 0 件にする） */
.rb-todo {
  display: inline-block;
  font-size: var(--rb-fs-xs);
  font-weight: 700;
  color: var(--rb-caution);
  border: 1px dashed var(--rb-caution);
  border-radius: var(--rb-radius-s);
  padding: 2px 8px;
}

/* --------------------------------------------------------------------------
   ヒーロー（全ページ共通の骨格。中身の密度だけページで変える）
   FV に「何者か・価格・CTA・許可番号」を必ず入れる
   -------------------------------------------------------------------------- */
.rb-hero {
  position: relative;
  overflow: hidden;
  padding: 28px 0 36px;
}

.rb-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.rb-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rb-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  /* 文字の可読性を保ちつつ、KVの製品が見えるだけの透過を残す
     （実在確認に来た人に「実物」を見せるため、暗くしすぎない） */
  background: linear-gradient(180deg, rgba(14, 29, 51, 0.88) 0%, rgba(14, 29, 51, 0.58) 48%, rgba(14, 29, 51, 0.92) 100%);
}

.rb-hero__content { position: relative; z-index: 1; }

/* 写真用の暗幕は、CSSアートの空には掛けない（空は自前で明度設計しているため） */
.rb-hero__media.rb-sky::after { content: none; }

/* 明るいヒーロー（B案「専門店」路線）：
   紙の上にインクで刷ったような組み。背景演出なし、書体と余白と罫線だけで持たせる */
.rb-hero--light {
  padding-top: 40px;
}

.rb-hero--light .rb-hero__title {
  /* 375pxで「CPAP（シーパップ）を、」が1行に収まる上限が約26px。
     これを超えると「を、」だけが孤立して折れる（実測済み） */
  font-size: clamp(24px, 6.9vw, 52px);
  line-height: 1.55;
  letter-spacing: 0.02em;
}

.rb-hero--light .rb-hero__rule {
  width: 44px;
  height: 3px;
  background: var(--rb-ink);
  margin: 0 0 18px;
}

.rb-hero--light .rb-hero__sub { color: var(--rb-fg-sub); font-size: 16px; }

/* 事実を1行で並べる（チップの「浮いた錠剤」感を消し、紙面の索引らしく） */
.rb-factline {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  margin: 0 0 18px;
  padding: 10px 0;
  border-top: 1px solid var(--rb-border);
  border-bottom: 1px solid var(--rb-border);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.9;
}

.rb-factline > span { display: inline-flex; align-items: center; }

.rb-factline > span:not(:last-child)::after {
  content: "・";
  color: var(--rb-fg-sub);
  font-weight: 400;
  margin: 0 6px;
}

/* --------------------------------------------------------------------------
   夜明けの空（CSSアート）
   写真が無い期間のヒーロー背景。外部ライブラリ0・画像0・追加約2KB。
   実機写真が入ったら .rb-sky を .rb-hero__media(img) に差し替えるか、
   写真の背後に残す（グラデーションとの馴染みは検証すること）。
   ※機器そのものは描かない（実物と異なる機器の表現は暫定AI画像と同じ理由で不可）
   ※橙 --rb-sunrise は使わない（CTAと価格のみの規約を守る。空は青〜白で夜明け前を表現）
   -------------------------------------------------------------------------- */
.rb-sky {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(120% 55% at 50% 108%, rgba(214, 226, 238, 0.34) 0%, rgba(214, 226, 238, 0) 60%),
    linear-gradient(180deg,
      #081222 0%,
      #0e1d33 36%,
      #16283f 58%,
      #24384f 74%,
      #33465f 86%,
      #46596f 100%);
}

/* 星：小さなタイルを繰り返す。数を絞り、明滅は opacity のみ */
.rb-sky__stars {
  position: absolute;
  inset: 0 0 38% 0;
  background-image:
    radial-gradient(1px 1px at 22px 34px, rgba(255, 255, 255, 0.9), transparent 55%),
    radial-gradient(1px 1px at 128px 12px, rgba(255, 255, 255, 0.55), transparent 55%),
    radial-gradient(1.5px 1.5px at 214px 86px, rgba(255, 255, 255, 0.75), transparent 55%),
    radial-gradient(1px 1px at 76px 128px, rgba(255, 255, 255, 0.45), transparent 55%),
    radial-gradient(1px 1px at 180px 158px, rgba(255, 255, 255, 0.6), transparent 55%),
    radial-gradient(1.5px 1.5px at 44px 196px, rgba(255, 255, 255, 0.5), transparent 55%);
  background-size: 260px 220px;
  animation: rb-twinkle 7s ease-in-out infinite alternate;
}

/* 地平線の手前の光：ゆっくり呼吸させる（transform のみ） */
.rb-sky__glow {
  position: absolute;
  left: 50%;
  bottom: -34%;
  width: 150%;
  height: 62%;
  background: radial-gradient(closest-side, rgba(233, 240, 248, 0.20), rgba(233, 240, 248, 0) 72%);
  transform: translateX(-50%);
  animation: rb-breathe 16s ease-in-out infinite alternate;
}

/* 粒子（フィルムグレイン）：のっぺりした「デジタルの平面」を消す */
.rb-sky__grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  opacity: 0.07;
}

@keyframes rb-twinkle {
  from { opacity: 0.55; }
  to   { opacity: 1; }
}

@keyframes rb-breathe {
  from { transform: translateX(-50%) scale(1); }
  to   { transform: translateX(-50%) scale(1.08) translateY(-2%); }
}

.rb-hero__eyebrow {
  font-size: var(--rb-fs-xs);
  letter-spacing: 0.14em;
  color: var(--rb-fg-sub);
  margin: 0 0 10px;
}

.rb-hero__title {
  font-family: var(--rb-font-head);
  font-size: var(--rb-fs-hero);
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 12px;
  letter-spacing: 0.01em;
}

.rb-hero__sub {
  font-size: 15px;
  line-height: 1.8;
  color: var(--rb-fg-sub);
  margin: 0 0 14px;
}

.rb-hero__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
  font-size: var(--rb-fs-sm);
  color: var(--rb-fg-sub);
}

.rb-hero__price-num {
  font-size: 26px;
  font-weight: 700;
  color: var(--rb-sunrise);
  letter-spacing: 0.01em;
}

.rb-hero__cue {
  display: inline-block;
  margin-top: 12px;
  font-size: var(--rb-fs-sm);
  text-decoration: underline;
  text-underline-offset: 4px;
  min-height: 44px;
  line-height: 44px;
}

/* --------------------------------------------------------------------------
   ペルソナ振り分け（トップの心臓部）
   「訴求の言い換え」ではなく「誰が」で分ける。1行で自分だと分かること
   -------------------------------------------------------------------------- */
.rb-hub { display: grid; gap: 12px; }

.rb-hub__item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 16px 18px;
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius);
  background: var(--rb-panel);
  text-decoration: none;
  transition: transform var(--rb-duration) var(--rb-ease),
              border-color var(--rb-duration) var(--rb-ease);
}

.rb-hub__item:hover {
  transform: translateY(-2px);
  border-color: var(--rb-accent);
}

.rb-hub__label {
  font-family: var(--rb-font-head);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  display: block;
}

.rb-hub__sub {
  font-size: 13px;
  line-height: 1.7;
  color: var(--rb-fg-sub);
  display: block;
  margin-top: 4px;
}

.rb-hub__arrow {
  font-size: 18px;
  color: var(--rb-accent);
}

/* --------------------------------------------------------------------------
   カード / 機種
   -------------------------------------------------------------------------- */
.rb-cards { display: grid; gap: 16px; }

.rb-card {
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius);
  background: var(--rb-panel);
  padding: 20px;
}

/* 素の（箱なし）カード：罫線1本と余白で区切るエディトリアル型。
   「全部が同じ角丸の箱」になるのを避けるため、機種一覧はこちらを使う */
.rb-cards--bare { gap: 28px; }

.rb-cards--bare .rb-card {
  border: 0;
  border-top: 2px solid var(--rb-fg);
  border-radius: 0;
  background: transparent;
  padding: 18px 0 0;
}

.rb-cards--bare .rb-model__price { font-size: clamp(28px, 4.5vw, 36px); }

.rb-model__name {
  font-family: var(--rb-font-head);
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 6px;
}

/* スペックの主役数値（24.5dB / 219.5g など、事実の数字を大きく組む） */
.rb-model__stat {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 0 0 4px;
}

.rb-model__stat b {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.rb-model__stat small {
  font-size: 12px;
  color: var(--rb-fg-sub);
  font-weight: 400;
}

.rb-model__spec {
  font-size: var(--rb-fs-sm);
  line-height: 1.9;
  color: var(--rb-fg-sub);
  margin: 0 0 12px;
}

.rb-model__price {
  font-size: 24px;
  font-weight: 700;
  color: var(--rb-sunrise);
  margin: 0 0 14px;
}

.rb-model__price small { font-size: 13px; font-weight: 400; color: var(--rb-fg-sub); }

/* --------------------------------------------------------------------------
   図版（撮影前は pending 枠で「まだ無い」ことを明示する）
   -------------------------------------------------------------------------- */
.rb-figure { margin: 0 0 var(--rb-space-s); }

.rb-figure figcaption {
  font-size: var(--rb-fs-xs);
  color: var(--rb-fg-sub);
  margin-top: 8px;
}

/* 撮影待ちの枠：点線の「工事中」ではなく、静かな面として置く
   （プレビューを見た人の印象を壊さない。ラベルは小さく残して差し替え漏れは防ぐ） */
.rb-figure--pending {
  display: grid;
  place-items: end start;
  min-height: 180px;
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius);
  background:
    linear-gradient(135deg, rgba(91, 144, 195, 0.10), rgba(91, 144, 195, 0.02) 55%),
    var(--rb-panel);
  color: var(--rb-fg-sub);
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 14px 16px;
}

/* --------------------------------------------------------------------------
   ストーリー（代表・会社）
   -------------------------------------------------------------------------- */
.rb-story {
  display: grid;
  gap: 20px;
}

.rb-story__quote {
  font-family: var(--rb-font-head);
  font-size: clamp(18px, 3vw, 24px);
  line-height: 1.8;
  margin: 0;
}

/* --------------------------------------------------------------------------
   定義リスト（会社情報・スペック表）
   -------------------------------------------------------------------------- */
.rb-dl {
  margin: 0;
  border-top: 1px solid var(--rb-border);
}

.rb-dl > div {
  display: grid;
  grid-template-columns: 7em 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rb-border);
}

.rb-dl dt {
  font-size: var(--rb-fs-sm);
  font-weight: 700;
  color: var(--rb-fg-sub);
  margin: 0;
}

.rb-dl dd { margin: 0; font-size: var(--rb-fs-sm); line-height: 1.8; }

/* --------------------------------------------------------------------------
   商品ページ（PDP）
   -------------------------------------------------------------------------- */
.rb-pdp__buybox {
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius);
  background: var(--rb-panel);
  padding: 20px;
}

.rb-pdp__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 6px;
}

.rb-pdp__price-num {
  font-size: var(--rb-fs-price);
  font-weight: 700;
  color: var(--rb-sunrise);
  line-height: 1.2;
}

.rb-pdp__price-tail { font-size: var(--rb-fs-sm); color: var(--rb-fg-sub); }

/* 信頼ブロック
   ★ product-trust-block.php が出力するマークアップと同一構造。
     クラス名・階層を変えるときは必ず両方を直すこと。
     このCSSを子テーマに読み込んだ後は、PHP側のインライン <style> は削除してよい。 */
.rb-trust {
  margin: 20px 0;
  padding: 16px 18px;
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius-s);
  background: var(--rb-panel);
}

.rb-trust__title { margin: 0 0 8px; font-weight: 700; font-size: 15px; }

.rb-trust__list { list-style: none; margin: 0 0 10px; padding: 0; }

.rb-trust__list li {
  position: relative;
  padding: 4px 0 4px 22px;
  font-size: var(--rb-fs-sm);
  line-height: 1.8;
}

.rb-trust__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 11px;
  width: 6px;
  height: 11px;
  border-right: 2px solid var(--rb-accent);
  border-bottom: 2px solid var(--rb-accent);
  transform: rotate(45deg);
}

.rb-trust__note { margin: 0; font-size: 13px; line-height: 1.8; color: var(--rb-fg-sub); }

/* インライン購入パネル（2026-09-05会議決定：ページ遷移させず、
   商品ページ内で展開してそのまま決済まで完結させる。遷移離脱を防ぐため） */
.rb-buy { margin-top: 16px; }

.rb-buy > summary {
  list-style: none;
  cursor: pointer;
}

.rb-buy > summary::-webkit-details-marker { display: none; }

.rb-buy__panel {
  margin-top: 12px;
  padding: 18px;
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius);
  background: #ffffff;
  display: grid;
  gap: 14px;
}

.rb-buy__photo img { border-radius: var(--rb-radius-s); }

.rb-buy__note { font-size: var(--rb-fs-xs); line-height: 1.8; color: var(--rb-fg-sub); margin: 0; }

/* 購入特典（橙はCTAと価格専用のため、特典は緑で示す） */
.rb-gift { padding: 12px 14px; border: 1px solid var(--rb-ok); border-radius: var(--rb-radius-s); }
.rb-gift__title { margin: 0 0 4px; font-size: 15px; font-weight: 700; color: var(--rb-ok); }
.rb-gift__text { margin: 0; font-size: var(--rb-fs-sm); line-height: 1.8; }
.rb-gift__badge { display: inline-block; margin: 0 0 8px; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; color: #ffffff; background: var(--rb-ok); }

/* カート落ち対策の3ブロック（支払い方法／決済エラー救済／持ち帰り層の戻り道） */
.rb-pay,
.rb-later {
  padding-top: 14px;
  border-top: 1px solid var(--rb-border);
}

.rb-pay__title,
.rb-later__title { margin: 0 0 6px; font-size: 15px; font-weight: 700; }

.rb-pay__list { margin: 0; padding: 0; list-style: none; }

.rb-pay__list li {
  font-size: var(--rb-fs-sm);
  line-height: 1.8;
  padding: 6px 0;
}

.rb-payhelp {
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius-s);
  background: var(--rb-panel);
}

.rb-payhelp > summary {
  cursor: pointer;
  list-style: none;
  min-height: 48px;
  padding: 12px 40px 12px 14px;
  position: relative;
  font-size: 15px;
  font-weight: 700;
}

.rb-payhelp > summary::-webkit-details-marker { display: none; }

.rb-payhelp > summary::after {
  content: "＋";
  position: absolute;
  right: 14px;
  top: 12px;
  color: var(--rb-accent);
}

.rb-payhelp[open] > summary::after { content: "−"; }

.rb-payhelp__body {
  padding: 0 14px 14px;
  font-size: var(--rb-fs-sm);
  line-height: 1.8;
}

.rb-payhelp__body ul { margin: 8px 0 12px; padding-left: 1.2em; }

.rb-later .rb-btn { margin: 8px 0; }

/* 購入までの流れ */
.rb-steps { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }

.rb-steps > li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  align-items: start;
}

.rb-step__num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--rb-accent);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.rb-step__body { font-size: var(--rb-fs-sm); line-height: 1.9; }

.rb-step__title { font-weight: 700; font-size: 16px; display: block; margin-bottom: 2px; }

/* --------------------------------------------------------------------------
   FAQ（テーマの .p-faq-list は使わない。独自スコープで完結させる）
   -------------------------------------------------------------------------- */
.rb-faq { border-top: 1px solid var(--rb-border); }

.rb-faq__item { border-bottom: 1px solid var(--rb-border); }

.rb-faq__item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 32px 18px 0;
  position: relative;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.7;
  min-height: 44px;
}

.rb-faq__item summary::-webkit-details-marker { display: none; }

.rb-faq__item summary::after {
  content: "＋";
  position: absolute;
  right: 4px;
  top: 18px;
  color: var(--rb-accent);
}

.rb-faq__item[open] summary::after { content: "−"; }

.rb-faq__body {
  padding: 0 0 18px;
  font-size: var(--rb-fs-sm);
  line-height: 1.9;
  color: var(--rb-fg-sub);
}

/* --------------------------------------------------------------------------
   お知らせ（日付が腐るため、更新できないなら日付を出さない運用）
   -------------------------------------------------------------------------- */
.rb-topics { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }

.rb-topics > li {
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius-s);
  padding: 14px 16px;
  font-size: var(--rb-fs-sm);
  line-height: 1.8;
}

/* --------------------------------------------------------------------------
   固定バー（モバイルのみ。ヒーロー通過後に出す）
   -------------------------------------------------------------------------- */
/* 固定バーは白地に濃色文字（LP4で実証済みのパターンに合わせる）。
   ★2026-07-31修正：当初は紺地に半透明ボタンで作っていたが、電話・LINEが
   「塗りつぶされた箱」に見えて視認性が死んでいた（CV導線が潰れる）。
   ページがどのフェーズ配色でも、バーは常に白＋高コントラストで浮かせる */
.rb-fixedbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9998;
  display: none;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 8px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid rgba(22, 40, 63, 0.14);
  box-shadow: 0 -2px 12px rgba(14, 29, 51, 0.12);
}

.rb--js .rb-fixedbar.is-visible { display: grid; }

.rb-fixedbar__btn {
  min-height: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-radius: var(--rb-radius-s);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  color: var(--rb-ink);
  background: #ffffff;
  border: 1.5px solid rgba(22, 40, 63, 0.36);
}

.rb-fixedbar__btn span { font-size: 11px; font-weight: 400; color: var(--rb-muted); }

.rb-fixedbar__btn--main {
  background: var(--rb-sunrise);
  color: #2a1c12;
  border-color: var(--rb-sunrise);
  font-size: 15px;
}

/* LINEはブランド色で即認識させる（緑＝LINEの学習済み記号を利用） */
.rb-fixedbar__btn--line {
  background: #06c755;
  border-color: #06c755;
  color: #ffffff;
}

.rb-fixedbar__btn--line span { color: rgba(255, 255, 255, 0.85); }

/* --------------------------------------------------------------------------
   フッター
   -------------------------------------------------------------------------- */
.rb-footer { padding: var(--rb-space-m) 0 120px; }

.rb-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  font-size: var(--rb-fs-sm);
}

.rb-footer__links a { min-height: 44px; display: inline-flex; align-items: center; }

/* --------------------------------------------------------------------------
   入場アニメ（JS有効時のみ。無効時は最初から最終状態）
   -------------------------------------------------------------------------- */
.rb--js .rb-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--rb-ease), transform 0.6s var(--rb-ease);
}

.rb--js .rb-reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .rb *,
  .rb *::before,
  .rb *::after {
    animation: none;
    transition: none;
  }
  .rb--js .rb-reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   ブレークポイント（既存LPと同一：750px / 767px）
   -------------------------------------------------------------------------- */
@media screen and (min-width: 750px) {
  .rb-sec { padding: var(--rb-space-xl) 0; }
  .rb-hero { padding: 72px 0 80px; }
  .rb-hero__content { max-width: 660px; }
  .rb-cta-set { grid-template-columns: auto auto; justify-content: start; align-items: start; }
  .rb-cta-row { grid-template-columns: auto auto; }
  .rb-btn { padding: 14px 28px; }
  .rb-hub { grid-template-columns: 1fr 1fr; }
  .rb-cards--3 { grid-template-columns: repeat(3, 1fr); }
  .rb-story { grid-template-columns: 1fr 1fr; align-items: center; }
  .rb-dl > div { grid-template-columns: 10em 1fr; }
}

@media screen and (min-width: 768px) {
  .rb-fixedbar { display: none; }
  .rb--js .rb-fixedbar.is-visible { display: none; }
  .rb-footer { padding-bottom: var(--rb-space-l); }
}

/* 商品ページ：カゴに追加ボタン直下の開閉案内（2026-10-31） */
.rb-sec--tight { padding: var(--rb-space-s) 0; }
.rb-buy__toggle {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 56px;
  padding: 14px 44px 14px 16px;
  position: relative;
  border: 1.5px solid var(--rb-ink);
  border-radius: var(--rb-radius-s);
  background: #ffffff;
  font-size: 16px;
  font-weight: 700;
}
.rb-buy__toggle span { font-size: 13px; font-weight: 400; color: var(--rb-fg-sub); }
.rb-buy__toggle::after { content: "＋"; position: absolute; right: 16px; top: 16px; color: var(--rb-accent); }
.rb-buy[open] > .rb-buy__toggle::after { content: "−"; }
