/* =========================================
   こだわり商品研究所 商品ページ（マスターパターン準拠）
   ルバンシュ スキンローション
   BEMプレフィックス: kdw-rvlotion__
   ファイル名: revanche-skinlotion.css
   配色: マンダリンオレンジ（#d9781c / #9c5210 / #fef5e9 / #f0d7b5）
   ========================================= */

/* ── ラッパー ───────────────────────── */
.kdw-rvlotion__wrap {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.9;
  color: #333;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 8px;
  font-size: 16px;
  box-sizing: border-box;
  background: none;
}

/* ── 商品名バッジ（英字表記） ─────────── */
.kdw-rvlotion__product-badge {
  display: block;
  width: fit-content;
  margin: 28px auto 14px;
  background: #fbe6c8;
  color: #9c5210;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 5px 18px;
  border-radius: 20px;
}

/* ── 商品名 ─────────────────────────── */
.kdw-rvlotion__product-name {
  font-size: 27px;
  font-weight: 800;
  color: #9c5210;
  text-align: center;
  line-height: 1.45;
  margin: 0 0 26px;
}

/* ── キービジュアル・チャプター画像（カード外） */
.kdw-rvlotion__keyvisual {
  width: 100%;
  display: block;
  margin: 0 0 6px;
  background: none;
}
.kdw-rvlotion__keyvisual img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

.kdw-rvlotion__chapter-img {
  width: 100%;
  display: block;
  margin: 0 0 20px;
  background: none;
}
.kdw-rvlotion__chapter-img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}
/* 章末・リストの途中など、見出し直下ではない場所に写真を挟む場合はこちらを追加で使う（上に余白を作る） */
.kdw-rvlotion__chapter-img--inline {
  margin: 24px 0 0;
}

/* ── インナー ───────────────────────── */
.kdw-rvlotion__inner {
  max-width: 760px;
  padding: 0 8px;
  box-sizing: border-box;
}

/* ── セクション ─────────────────────── */
.kdw-rvlotion__section {
  margin: 0 0 32px;
}

/* ── カード ─────────────────────────── */
.kdw-rvlotion__card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 18px 14px;
  margin: 12px 0;
  box-sizing: border-box;
}

/* ── 音声ナレーションカード（テキストの枠内に設置する想定） ─── */
.kdw-rvlotion__audio-card {
  background: #fef5e9;
  border: 1px solid #f0d7b5;
  border-radius: 8px;
  padding: 14px 16px;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-sizing: border-box;
}
.kdw-rvlotion__audio-label {
  font-size: 12px;
  font-weight: 700;
  color: #d9781c;
  letter-spacing: 0.08em;
  white-space: nowrap;
  flex-shrink: 0;
}
.kdw-rvlotion__audio-card audio {
  width: 100%;
  height: 36px;
  flex: 1;
  min-width: 0;
}

/* ── 中見出し（導入文）：枠＋枠内背景色 ─── */
.kdw-rvlotion__lead-card {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.9;
  margin: 0 0 20px;
  padding: 14px 16px;
  background: #fef5e9;
  border: 2px solid #d9781c;
  border-radius: 10px;
  text-align: center;
  box-sizing: border-box;
}
.kdw-rvlotion__lead-card p {
  margin: 0;
}

/* ── チャプター見出しの左上コメント（キッカー） ─── */
/* 見出しの存在感・表現力を高めるための一言。商品ごとに文言を差し替える想定。
   スマホでの本文幅を確保するため、番号は見出し本体ではなくここに集約する */
.kdw-rvlotion__chapter-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 32px 4px 6px;
  color: #d9781c;
}
.kdw-rvlotion__chapter-kicker-num {
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}
.kdw-rvlotion__chapter-kicker-text {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.4;
  padding-left: 10px;
  border-left: 1px solid currentColor;
}

/* ── チャプター見出し（h2相当） ────────── */
/* 番号バッジは廃止（スマホで本文の幅を圧迫するため）。番号は左上のキッカーに集約 */
.kdw-rvlotion__chapter-heading {
  background: #d9781c;
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 0.05em;
  padding: 14px 18px;
  border-radius: 6px;
  margin: 0 0 14px;
  line-height: 1.5;
}
.kdw-rvlotion__chapter-text {
  flex: 1 1 auto;
}

/* ── セクション見出し（h3相当） ───────── */
.kdw-rvlotion__section-heading {
  font-size: 16px;
  font-weight: bold;
  color: #d9781c;
  border-left: 5px solid #d9781c;
  padding: 4px 0 4px 12px;
  margin: 24px 0 10px;
  line-height: 1.5;
  background: none;
}

/* ── 数字バッジ付きリスト見出し ─────── */
.kdw-rvlotion__badge-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin: 24px 0 10px;
  line-height: 1.5;
}
.kdw-rvlotion__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #d9781c;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  border-radius: 3px;
  min-width: 24px;
  height: 20px;
  padding: 0 6px;
  flex-shrink: 0;
  letter-spacing: 0;
}

/* ── TOC（目次） ─────────────────────── */
.kdw-rvlotion__toc {
  background: #fff;
  border: 1px solid #d9781c;
  border-radius: 8px;
  padding: 18px 14px;
  margin: 12px 0 24px;
}
.kdw-rvlotion__toc-title {
  font-size: 14px;
  font-weight: bold;
  color: #d9781c;
  text-align: center;
  margin: 0 0 10px;
  letter-spacing: 0.05em;
}
.kdw-rvlotion__toc-note {
  font-size: 12px;
  color: #8a6a45;
  text-align: center;
  margin: 0 0 14px;
  padding: 8px 10px;
  background: #fef5e9;
  border-radius: 6px;
  line-height: 1.7;
}
.kdw-rvlotion__toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.kdw-rvlotion__toc-list li {
  border-bottom: 1px dashed #f0d7b5;
  padding: 0;
}
.kdw-rvlotion__toc-list li:last-child {
  border-bottom: none;
}
.kdw-rvlotion__toc-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #d9781c;
  color: #fff;
  font-size: 10.5px;
  font-weight: bold;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  letter-spacing: 0;
}

/* ── マーカー強調 ───────────────────── */
.kdw-rvlotion__marker {
  background: linear-gradient(transparent 50%, rgba(250, 220, 50, 0.55) 50%);
  font-weight: bold;
  color: #333;
}

/* ── 強調テキスト（赤） ───────────────── */
.kdw-rvlotion__em {
  color: #d9781c;
  font-weight: bold;
}

/* ── データカード ────────────────────── */
.kdw-rvlotion__data-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  margin: 20px 0;
}
.kdw-rvlotion__data-card img {
  width: 100%;
  height: auto;
  display: block;
}
.kdw-rvlotion__data-card-body {
  padding: 14px 14px;
  font-size: 14.5px;
  line-height: 1.8;
  color: #555;
  border-top: 1px solid #eee;
}
.kdw-rvlotion__data-card-body p {
  margin: 0;
}

/* ============================================================
   折りたたみコラム（デフォルト閉じ／＋ボタンで開く）
   <details class="kdw-rvlotion__col">
     <summary><span class="kdw-rvlotion__colmk" aria-hidden="true"></span><span>見出し</span></summary>
     <div class="kdw-rvlotion__colbody"> ... </div>
   </details>
   ============================================================ */
.kdw-rvlotion__col {
  border: 1px solid #f0d7b5;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  margin: 14px 0;
}
.kdw-rvlotion__col > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 15px;
  background: #fef5e9;
  color: #d9781c;
  font-weight: bold;
  font-size: 15px;
  line-height: 1.5;
}
.kdw-rvlotion__col > summary::-webkit-details-marker {
  display: none;
}
.kdw-rvlotion__colmk {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #d9781c;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
}
.kdw-rvlotion__colmk::before {
  content: "＋";
}
.kdw-rvlotion__col[open] .kdw-rvlotion__colmk {
  background: #9c5210;
}
.kdw-rvlotion__col[open] .kdw-rvlotion__colmk::before {
  content: "－";
}
.kdw-rvlotion__colbody {
  padding: 14px 16px 16px;
  border-top: 1px solid #f5e6cf;
}
.kdw-rvlotion__colbody img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin: 0 0 12px;
}
.kdw-rvlotion__colbody p {
  font-size: 15px;
  line-height: 1.9;
  margin: 0 0 10px;
  color: #444;
}
.kdw-rvlotion__colbody p:last-child {
  margin-bottom: 0;
}
.kdw-rvlotion__colbody hr {
  margin: 14px 0;
}

/* ── 補助ボックス ────────────────────── */
.kdw-rvlotion__aux-box {
  background: #fef5e9;
  border: 1px solid #f0d7b5;
  border-radius: 8px;
  padding: 14px 12px;
  margin: 10px 0;
  font-size: 15px;
  line-height: 1.8;
  color: #444;
}
.kdw-rvlotion__aux-box p {
  margin: 0;
}

/* ── 仕切り線（本文中に <hr> を直接入れた場合、自動でこの見た目になる） ─── */
.kdw-rvlotion__wrap hr {
  border: none;
  border-top: 1px dashed #d4b8a8;
  height: 0;
  margin: 18px 0;
}

/* ── 仕切り線（クラス指定用・上と同じ見た目） ─────── */
.kdw-rvlotion__divider {
  border: none;
  border-top: 1px dashed #d4b8a8;
  margin: 20px 0;
}

/* ── 目次リンク（行全体がクリックできるタイプ／リンクは通常時は無色、ホバーで色がつく） ─── */
.kdw-rvlotion__toc-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 4px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  transition: background 0.2s, color 0.2s;
}
.kdw-rvlotion__toc-list a:hover {
  background: #fef5e9;
  color: #d9781c;
}

/* ── カード内 p タグリセット ─────────── */
.kdw-rvlotion__card p,
.kdw-rvlotion__aux-box p,
.kdw-rvlotion__data-card-body p {
  margin: 0 0 10px;
  font-size: 15.5px;
  line-height: 1.9;
}
.kdw-rvlotion__card p:last-child,
.kdw-rvlotion__aux-box p:last-child,
.kdw-rvlotion__data-card-body p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   写真なしの章を補う「CSSだけの図解」部品（このページで新規追加）
   ============================================================ */

/* ── 数字パネル（旧 → 新） ─────────── */
.kdw-rvlotion__stat {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 8px;
  margin: 0 0 20px;
}
.kdw-rvlotion__stat-item {
  flex: 1 1 0;
  border: 1px solid #f0d7b5;
  border-radius: 8px;
  background: #fff;
  padding: 14px 6px;
  text-align: center;
  box-sizing: border-box;
}
.kdw-rvlotion__stat-item--now {
  background: #fef5e9;
  border: 2px solid #d9781c;
}
.kdw-rvlotion__stat-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #8a6a45;
  letter-spacing: 0.06em;
  line-height: 1.4;
}
.kdw-rvlotion__stat-num {
  display: block;
  font-size: 30px;
  font-weight: 800;
  color: #999;
  line-height: 1.3;
}
.kdw-rvlotion__stat-item--now .kdw-rvlotion__stat-num {
  font-size: 40px;
  color: #d9781c;
}
.kdw-rvlotion__stat-num small {
  font-size: 0.5em;
  font-weight: 700;
}
.kdw-rvlotion__stat-arrow {
  align-self: center;
  color: #d9781c;
  font-size: 18px;
  flex: none;
}
.kdw-rvlotion__stat-note {
  font-size: 12px;
  color: #8a6a45;
  text-align: center;
  margin: -12px 0 20px;
  line-height: 1.6;
}

/* ── 2枚並びカード（2種類の水など） ─── */
.kdw-rvlotion__duo {
  display: flex;
  gap: 10px;
  margin: 0 0 20px;
}
.kdw-rvlotion__duo-item {
  flex: 1 1 0;
  background: #fef5e9;
  border: 1px solid #f0d7b5;
  border-top: 4px solid #d9781c;
  border-radius: 8px;
  padding: 14px 10px;
  text-align: center;
  box-sizing: border-box;
}
.kdw-rvlotion__duo-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #9c5210;
  letter-spacing: 0.06em;
  line-height: 1.5;
}
.kdw-rvlotion__duo-name {
  display: block;
  font-size: 17px;
  font-weight: 800;
  color: #333;
  line-height: 1.5;
  margin: 4px 0;
}
.kdw-rvlotion__duo-text {
  display: block;
  font-size: 13px;
  color: #555;
  line-height: 1.6;
}

/* ── 成分チップ ─────────────────────── */
.kdw-rvlotion__chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
}
.kdw-rvlotion__chips li {
  background: #fff;
  border: 1px solid #d9781c;
  color: #9c5210;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  padding: 6px 14px;
  border-radius: 20px;
}

/* ── 流れ図（ステップ） ─────────────── */
.kdw-rvlotion__flow {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}
.kdw-rvlotion__flow li {
  position: relative;
  background: #fff;
  border: 1px solid #f0d7b5;
  border-left: 5px solid #d9781c;
  border-radius: 6px;
  padding: 10px 12px;
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.6;
  color: #333;
}
.kdw-rvlotion__flow li::after {
  content: "▼";
  position: absolute;
  left: 50%;
  bottom: -21px;
  transform: translateX(-50%);
  color: #d9781c;
  font-size: 12px;
  line-height: 1.6;
}
.kdw-rvlotion__flow li:last-child {
  margin-bottom: 0;
  background: #fef5e9;
  border-color: #d9781c;
  font-weight: 700;
}
.kdw-rvlotion__flow li:last-child::after {
  content: none;
}
.kdw-rvlotion__flow-step {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #9c5210;
  letter-spacing: 0.06em;
}

/* ── 全成分テーブル ─────────────────── */
.kdw-rvlotion__table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 14px;
  line-height: 1.6;
  margin: 12px 0;
}
.kdw-rvlotion__table th,
.kdw-rvlotion__table td {
  border: 1px solid #f0d7b5;
  padding: 8px 8px;
  text-align: left;
  vertical-align: top;
  word-break: break-all;
}
.kdw-rvlotion__table th {
  background: #d9781c;
  color: #fff;
  font-weight: 700;
  text-align: center;
  border-color: #d9781c;
}
.kdw-rvlotion__table td:first-child {
  width: 38%;
  font-weight: 700;
  color: #333;
  background: #fef5e9;
}
.kdw-rvlotion__table td {
  color: #555;
}

/* ── リンクボタン（AIによる商品分析など） ─ */
.kdw-rvlotion__link-btn {
  display: block;
  margin: 28px auto 12px;
  max-width: 420px;
  background: #fff;
  border: 2px solid #d9781c;
  border-radius: 30px;
  color: #9c5210;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  padding: 12px 16px;
  line-height: 1.5;
  box-sizing: border-box;
  transition: background 0.2s, color 0.2s;
}
.kdw-rvlotion__link-btn:hover {
  background: #d9781c;
  color: #fff;
}

/* ===== モバイル：画面端の余白を狭める ===== */
@media screen and (max-width: 600px) {
  .kdw-rvlotion__wrap {
    padding: 0 4px;
  }
  .kdw-rvlotion__inner {
    padding: 0 4px;
  }
  .kdw-rvlotion__table {
    font-size: 12.5px;
  }
  .kdw-rvlotion__table th,
  .kdw-rvlotion__table td {
    padding: 6px 5px;
  }
  .kdw-rvlotion__stat-item--now .kdw-rvlotion__stat-num {
    font-size: 34px;
  }
  .kdw-rvlotion__stat-num {
    font-size: 24px;
  }
}
