/* ==========================================================================
   MARO17 LP
   見た目：デザイナーFB（MonoMaxWeb_MARO17_LP_1011.pdf, 1920px）＋ HTML_FB.pdf
           スマホ・横スクロール：MonoMaxWeb_MARO17_LP_SP_1102.pdf（配置例）
   文言：Web原稿＋薬事赤字（20261102）が正
   構成：1.基本 / 2.上部（バナー・ヒーロー） / 3.節の帯 / 4.横スクロール / 5.メイン画像
         6.カード / 7.サブカット / 8.編集長コメント / 9.白コラム / 10.購入ボタン / 11.締め
         12.スマホ（800px以下）
   JS（index.html 末尾）から受け取る値：--bh 上部バナーの高さ / --vh 画面の高さ / --tw 文章の幅（各カード）
   ========================================================================== */

/* ---------- 1. 基本 ---------- */
:root {
  --gray: #dfdfdf;
  --navy: #024a77;
  --green: #41733d;
  --red: #c92942;
  --col: 768px;  /* 本文の幅 */
  /* 横スクロール列：高さ固定。写真の高さ＝列の高さ − 上下の余白 */
  --hs-h: 440px;
  --hs-pad: 30px;
  --hs-gap: 24px;
  --ph: calc(var(--hs-h) - var(--hs-pad) * 2);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  background: var(--gray);
  color: #000;
  font-family: "Noto Sans JP", sans-serif;
  font-feature-settings: "palt";
  font-size: 14px;
  line-height: 20px;
}
img { display: block; max-width: 100%; height: auto; }
br.sp { display: none; }  /* スマホのみの改行 */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }  /* 画面には出さず読み上げ・検索用に残す */

/* ---------- 2. 上部：黒線・バナー（画面上に固定）・ヒーロー ---------- */
.topbar { height: 20px; background: #000; }
.banner { position: sticky; top: 0; z-index: 10; height: 70px; background: #e9c46a url(images/banner_bg.jpg) center / cover no-repeat; }  /* 背景：1920px以下は中央を切り抜き、それより広い画面は横に伸ばす（グラデを途切れさせない） */
.banner__inner { height: 100%; display: flex; align-items: center; justify-content: center; gap: 21px; font-weight: 700; }
.banner__date { display: inline-block; width: 177px; height: 38px; line-height: 36px; text-align: center; background: #fff; border: 1px solid #000; font-size: 15px; }
.banner__text { font-size: 24px; line-height: 1; }

.hero { position: relative; height: 835px; background: #000 url(images/hero.jpg) center top / 1920px 835px no-repeat; }
.hero__lead { position: absolute; left: 50%; top: 588px; width: var(--col); margin-left: calc(var(--col) / -2); color: #fff; font-size: 16px; line-height: 28px; font-weight: 600; text-align: justify; }
.hero__pr { margin-top: 4px; text-align: right; font-size: 14px; line-height: 24px; }
.hero__pr span { display: inline-block; margin-right: 6px; padding: 0 4px; border: 1px solid #fff; line-height: 20px; font-size: 13px; }

/* ---------- 3. 節の帯：バナーの直下に固定（節の終わりまで）。文字は帯の上下中央 ---------- */
.band {
  position: sticky;
  top: var(--bh, 70px);
  z-index: 5;
  height: 120px;
  background:
    url(images/band_rule.png) left 7px / 100% 3px no-repeat,
    url(images/band_rule.png) left bottom 7px / 100% 3px no-repeat,
    var(--navy);
  color: #fff;
  font-weight: 700;
}
.band--green { background-color: var(--green); }
.band--red { background-color: var(--red); }
.band__in { display: flex; align-items: center; width: var(--col); height: 100%; margin: 0 auto; }
.band__pic { flex: none; }
.band__logo { width: 228px; height: 98px; margin-left: -4px; max-width: none; }
.band__txt { display: flex; flex-direction: column; margin: 0 0 0 12px; }
.band__catch { font-size: 20px; line-height: 26px; font-weight: 500; padding-left: 14px; }
.band__title { font-size: 30px; line-height: 40px; font-weight: 700; margin: 0 0 0 15px; }
/* スキンケア：ロゴなし・中央揃え */
.band--center .band__in { justify-content: center; text-align: center; }
.band--center .band__txt { margin: 0; }
.band--center .band__catch { padding-left: 0; }
.band--center .band__title { margin-left: 0; }

/* ---------- 4. 節の構成と横スクロール ----------
   帯 → メイン画像 → 商品解説の列（.hs__track）。ページは普通に縦スクロール。
   列は高さ固定で横に自由スクロール。カードの幅は文章の量で決まる（JS が --tw を広げる）ので上下に余白が出ない。
   JSが列を .hs__scroll で包む（JSが動かない時は .hs__view が横スクロール） */
.hs__view { position: relative; overflow-x: auto; background: #000; color: #fff; }
.hs__scroll { overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none; }
.hs__scroll::-webkit-scrollbar { display: none; }
.hs__track { display: flex; align-items: stretch; width: max-content; height: var(--hs-h); }
.hs__track > * { flex: none; }
/* 矢印ボタン（JSが追加）：端では消える */
.hs__nav { position: absolute; top: 50%; z-index: 2; width: 52px; height: 52px; margin-top: -26px; border: 0; border-radius: 50%; background: rgba(120, 120, 120, .85); box-shadow: 0 1px 8px rgba(0, 0, 0, .35); cursor: pointer; transition: opacity .2s, visibility .2s; }
.hs__nav::before { content: ""; position: absolute; left: 50%; top: 50%; margin: -11px 0 0 -7px; border: solid transparent; border-width: 11px 0 11px 18px; border-left-color: #fff; }
.hs__nav--prev { left: 20px; transform: scaleX(-1); }
.hs__nav--next { right: 20px; }
.is-scrolling .hs__nav { opacity: .3; }  /* スクロール中は文字が読めるよう薄く */
.hs__nav.is-off { opacity: 0; visibility: hidden; }

/* ---------- 5. メイン画像と受賞バッジ ----------
   PC：黒地の中央。高さ＝画面の高さ − バナー − 帯（上限＝原寸1000px）＝帯と画像で1画面。幅は縦横比のまま（画面が狭い時は左右を切る） */
.hs__bg { position: relative; background: #000; overflow: hidden; }
.hs__bgbox { position: relative; height: min(1000px, calc(100vh - var(--bh, 70px) - 120px)); height: min(1000px, calc(var(--vh, 100lvh) - var(--bh, 70px) - 120px)); aspect-ratio: 1300 / 1000; max-width: 100%; margin: 0 auto; }
.hs__bgbox picture { display: block; height: 100%; }
.hs__bgbox picture img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; right: 7%; top: 6%; width: 15%; }
.badge[src$="badge01.webp"] { width: 16%; }  /* 3段バッジ：1つ1つのマークを他の節のバッジと同じ大きさに */

/* ---------- 6. カード（枠なし）：高さは列いっぱい ---------- */
.card, .column { padding: var(--hs-pad) var(--hs-gap); }

/* 商品紹介カード（価格の箱＋本文） */
.ptext { --tw: 500px; width: calc(var(--tw) + var(--hs-gap) * 2); }
.credit { position: relative; margin-top: 9px; padding: 22px 16px 14px; background: #fff; color: #000; text-align: center; font-weight: 600; line-height: 21px; font-feature-settings: normal; }
.ribbon { position: absolute; left: -6px; top: -9px; padding: 0 10px; background: var(--sc, var(--red)); color: #fff; font-size: 13px; line-height: 24px; font-weight: 700; white-space: nowrap; }  /* 「Amazonブラックフライデーに登場！」：色は節ごと（HTMLの --sc） */
/* 購入ボタン共通：節の色＋金の縁 */
.pill, .buy a {
  border: 2px solid transparent;
  background: linear-gradient(var(--sc), var(--sc)) padding-box, linear-gradient(100deg, #f8e7a8, #c8952a 40%, #fff1b8 70%, #b5832a) border-box;
  color: #fff;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
.pill { display: block; width: 210px; margin: 10px auto 0; border-radius: 24px; font-size: 16px; line-height: 40px; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }  /* 価格の箱の購入ボタン */
.desc { margin-top: 16px; font-size: 22px; line-height: 30px; text-align: justify; }
/* スキンケア：2本分の価格（グレーの箱）を左に上下で並べ、説明は右 */
.credits2 { display: flex; flex-direction: column; gap: 20px; }
.credits2 > .credit { flex: 1 1 0; min-width: 0; }
.sec--dark .credit { display: flex; flex-direction: column; justify-content: center; margin-top: 0; background: var(--gray); }
.sec--dark .ptext { --tw: 420px; --cw: 340px; width: auto; }
.sec--dark .ptext__body { display: grid; grid-template-columns: var(--cw) var(--tw); column-gap: var(--hs-gap); height: 100%; }
.desc2 > .desc:first-child { margin-top: 0; }
.desc2 > .desc + .desc { margin-top: 12px; }

/* ---------- 7. サブカット：写真（左）＋見出し・本文（右） ---------- */
.detail { --tw: 330px; display: grid; grid-template-columns: auto var(--tw); grid-template-rows: auto 1fr; column-gap: 18px; }
.detail > img, .pair { grid-row: 1 / 3; }
.detail > img { width: auto; max-width: none; height: var(--ph); }
.detail h3 { font-size: 24px; line-height: 32px; font-weight: 700; white-space: nowrap; }  /* 改行は HTML の br で指定 */
.detail p { margin-top: 8px; font-size: 22px; line-height: 30px; text-align: justify; }
.pair { display: flex; height: var(--ph); }  /* 写真2枚並び：縦長に切って横幅を抑える */
.pair img { width: calc(var(--ph) * .85); max-width: none; height: 100%; object-fit: cover; }

/* ---------- 8. 編集長コメント：吹き出し＋写真 ---------- */
.voice { --tw: 280px; display: grid; grid-template-columns: var(--tw) auto; grid-template-rows: auto 1fr; column-gap: 20px; align-content: start; }
.voice__head { position: relative; z-index: 1; font-weight: 700; margin-bottom: 12px; white-space: nowrap; }
.voice__bubble { position: relative; align-self: start; padding: 14px 18px; background: #fff; color: #000; border-radius: 16px; font-size: 22px; line-height: 32px; font-weight: 700; text-align: left; }
.voice__bubble::before { content: ""; position: absolute; right: -16px; top: 40%; border: solid transparent; border-width: 10px 0 10px 18px; border-left-color: #fff; }  /* 吹き出しのしっぽ（写真のほうへ） */
.voice__img { grid-column: 2; grid-row: 1 / 3; }
.voice img { width: auto; max-width: none; height: var(--ph); }
/* 02：写真が左、吹き出しが右 */
.voice:not(.voice--down) { grid-template-columns: auto var(--tw); }
.voice:not(.voice--down) .voice__img { grid-column: 1; margin-right: calc(var(--ph) * -.31); }  /* 写真右側の透明な余白（幅の約22%）を詰めて吹き出しを編集長に寄せる */
.voice:not(.voice--down) .voice__head, .voice:not(.voice--down) .voice__bubble { grid-column: 2; }
.voice:not(.voice--down) .voice__bubble::before { right: auto; left: -16px; border-width: 10px 18px 10px 0; border-color: transparent #fff transparent transparent; }

/* ---------- 9. 白コラム（詰め替え・190mL）：列の先頭。写真（左）＋見出し・価格の箱・本文（右） ---------- */
.column { --tw: 460px; background: #fff; color: #000; }
.column__in { display: grid; grid-template-columns: auto var(--tw); grid-template-rows: auto auto 1fr; column-gap: 20px; }
.refills, .refill, .single { display: contents; }
.column__in img { grid-column: 1; grid-row: 1 / 4; width: auto; max-width: none; height: var(--ph); }
.column__head { grid-column: 2; background: var(--gray); border-radius: 18px; text-align: center; font-size: 20px; line-height: 36px; font-weight: 700; }
.refill__credit { position: relative; grid-column: 2; margin-top: 21px; padding: 22px 12px 14px; text-align: center; background: var(--gray); font-weight: 600; line-height: 21px; }
.column__text { grid-column: 2; margin-top: 10px; font-size: 22px; line-height: 30px; text-align: justify; }
.tax { font-feature-settings: normal; }
.nw { white-space: nowrap; }  /* 商品名・価格は語のまとまりでだけ折り返す（「プ」だけ次行などを防ぐ） */

/* ---------- 10. 購入ボタン（大） ----------
   画像の直後の通常フローに置き、画像と商品紹介の列の間（黒い余白）の上下中央に置く。画面の高さでは縮めない */
.buy { --bt: 80px; position: relative; display: flex; justify-content: center; height: var(--bt); margin: 20px 16px; text-align: center; }
.buy a { display: inline-flex; align-items: center; justify-content: center; width: min(460px, 100%); height: var(--bt); line-height: 1; border-radius: 999px; font-size: 28px; white-space: nowrap; box-shadow: 0 4px 8px rgba(0, 0, 0, .6); }
.buy:not(.buy--pair) { --bt: 88px; margin: 24px 16px; }  /* 01〜03（1つ）：黒い余白いっぱいに大きく */
.buy:not(.buy--pair) a { width: min(560px, 100%); font-size: 32px; letter-spacing: .04em; }
.sec--dark .buy { margin-top: 30px; margin-bottom: 0; }  /* スキンケア：下のカードの余白（30px）も黒いので、見た目の上下をそろえる */
.buy.buy--pair a { position: absolute; top: 0; left: 0; }  /* 横位置・幅のみ JS（商品の中央を基準に、ボタン同士の間隔も確保） */

/* ---------- 11. スキンケアの節・締め（リード・注釈・クレジット） ---------- */
.sec--dark { background: #000; }
.outro { width: var(--col); margin: 0 auto; padding: 27px 0 70px; }
.outro__lead { text-align: center; font-size: 17px; line-height: 25.5px; font-weight: 700; }
.outro__lead .ln { display: block; }  /* PCの行。スマホは続けて組み、.nw のまとまりで折り返す */
.outro__notes { margin-top: 36px; font-size: 12px; line-height: 18px; text-align: justify; }
.outro__credit { margin-top: 35px; text-align: center; font-size: 11px; line-height: 16.5px; }

/* ==========================================================================
   12. スマホ（800px以下）：MonoMaxWeb_MARO17_LP_SP_1102.pdf の配置例に準拠
   ========================================================================== */
@media (max-width: 800px) {
  :root { --col: calc(100vw - 32px); --hs-h: 340px; --hs-pad: 15px; --hs-gap: 14px; }
  body { line-height: 1.7; }
  br.sp { display: inline; }
  .band__title, .band__catch, .outro__lead, .column__head { word-break: auto-phrase; }  /* 文節で改行 */

  /* 上部：見出しは画像に焼き込み（配置例の組み。h1 は .vh で本文として残す） */
  .banner { height: auto; padding: 8px 16px; background-size: cover; }
  .banner__inner { flex-direction: column; gap: 4px; }
  .banner__date { width: 150px; height: 26px; line-height: 24px; font-size: 13px; }
  .banner__text { font-size: min(18px, 4.6vw); }
  .hero { height: auto; background-image: url(images/hero_sp.jpg); background-size: 100% auto; padding-top: calc(100vw * 352 / 390); }
  .hero__lead { position: relative; z-index: 1; left: auto; top: auto; width: var(--col); margin: 0 auto; padding: 4px 0 24px; font-size: 15px; line-height: 1.75; }

  /* 節の帯：左に縦組みのロゴ、商品名は大きく2行まで */
  .band { height: 100px; }
  .band__pic { width: 64px; }
  .band__logo { width: auto; height: 66px; margin-left: 0; }
  .band__txt { height: 66px; justify-content: space-between; margin: 0; }
  .band__catch { font-size: min(15px, (100vw - 92px) / 20); line-height: 1; padding-left: 0; margin-top: -1px; }
  .band__title { font-size: min(23px, (100vw - 88px) / 13.5); line-height: 1.15; margin: 0 0 0 -1px; white-space: nowrap; }
  .band--green .band__title::after { content: "\A\200b"; white-space: pre; }  /* 03はタイトルが1行：空の2行目を足して、01・02の1行目と同じ位置に置く */
  .band--center .band__txt { height: auto; }
  .band--center .band__title { margin-top: 2px; line-height: 1.25; font-size: min(22px, (100vw - 32px) / 15); }
  .band--center .band__catch { font-size: 14px; line-height: 1.3; }

  /* 横スクロール */
  .hs__nav { width: 44px; height: 44px; margin-top: -22px; }
  .hs__nav::before { margin: -9px 0 0 -6px; border-width: 9px 0 9px 15px; }
  .hs__nav--prev { left: 6px; }
  .hs__nav--next { right: 6px; }

  /* メイン画像：正方形（専用の切り抜き）。購入ボタンは余白を挟んで画像の下に置く */
  .hs__bgbox { width: 100%; height: auto; aspect-ratio: 1; }
  .badge { right: 1%; top: 5%; width: 24%; }
  .badge[src$="badge01.webp"] { width: 23.5%; }
  .badge[src$="badge03.webp"] { width: 28%; }
  .buy { --bt: 68px; margin: 18px 12px; }
  .buy a { width: min(420px, 100%); font-size: 23px; }
  .buy:not(.buy--pair) { --bt: 76px; margin: 14px 8px; }  /* 01〜03（1つ）：画面幅いっぱい近くまで */
  .buy:not(.buy--pair) a { width: 100%; font-size: min(27px, 7vw); }
  .sec--dark .buy { margin: 18px 12px 3px; }  /* 下のカードの余白（15px）も黒い */
  .buy.buy--pair { gap: 10px; }
  .buy.buy--pair a { position: static; flex: 1; min-width: 0; width: auto; max-width: 420px; font-size: clamp(15px, calc((100vw - 58px) / 16.5), 22px); }

  /* カード：本文14px（配置例） */
  .ptext { --tw: 360px; }
  .sec--dark .ptext { --tw: 300px; --cw: 250px; }
  .credit { padding: 16px 10px 10px; line-height: 1.45; }
  .ribbon { font-size: 12px; line-height: 22px; }
  .pill { width: 220px; margin-top: 6px; font-size: 17px; line-height: 44px; }
  .desc, .detail p, .column__text { font-size: 14px; line-height: 20px; }
  .desc { margin-top: 10px; }
  .credits2 { gap: 10px; }
  .desc2 > .desc + .desc { margin-top: 6px; }
  .detail { --tw: 180px; column-gap: 12px; }
  .detail h3 { font-size: 17px; line-height: 25px; }
  .detail p { margin-top: 4px; }

  .voice { --tw: 170px; column-gap: 12px; }
  .voice:not(.voice--down) { padding-right: 36px; }  /* 見出しが吹き出しより長いぶん、横スクロールの終端に余白を取る */
  .voice__head { font-size: 13px; line-height: 20px; margin-bottom: 8px; }
  .voice__bubble { padding: 10px 12px; font-size: 15px; line-height: 25px; }
  .voice__bubble::before { right: -10px; border-width: 8px 0 8px 12px; }
  .voice:not(.voice--down) .voice__bubble::before { left: -10px; border-width: 8px 12px 8px 0; }

  .column { --tw: 300px; }
  .column__in { column-gap: 14px; }
  .column__head { font-size: 15px; line-height: 30px; border-radius: 15px; }
  .refill__credit { margin-top: 18px; padding: 15px 8px 8px; line-height: 1.45; }
  .column__text { margin-top: 6px; }

  /* 締め */
  .outro { padding: 32px 0 48px; }
  .outro__lead .ln { display: inline; }
  .outro__notes { margin-top: 28px; text-align: left; }  /* 両端揃えだと英字（Amazon.co.jp 等）の前後が大きく空くため */
  .outro__credit { margin-top: 28px; }
}
