/* =====================================================
   VENEX 膝裏まくら Good Sleep LP
   ===================================================== */

:root {
  --c-white: #fff;
  --c-bg: #ffffff;
  --c-silver-1: #c9ccce;
  --c-silver-2: #b7babc;
  --c-silver-3: #c0c3c5;
  --c-silver-mist: #d8dadc;
  --c-charcoal: #6c6e72;
  --c-paper: #faf8f3;
  --c-tan: #b5a48a;
  --c-tan-dark: #998668;
  --c-tan-soft: #e6ddca;
  --c-line: #b8babc;
  --c-soft-line: #d8d9d9;
  --c-navy: #25282a;
  --c-text: #25282a;
  --c-muted: #6b6e72;
  --c-accent: #b5a48a;
  --font-sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-serif: "Noto Serif JP", "Hiragino Mincho ProN", "YuMincho", serif;
  --container: 980px;
  --container-wide: 1120px;
  --container-narrow: 760px;
  --pad-x: clamp(20px, 5vw, 40px);
  --section-y: 96px;
}

/* SP 専用改行 (お戻し対応: スマホの見出し改行位置調整用) */
.lp.p-goodsleep .u-sp { display: none; }
@media (max-width: 760px) {
  .lp.p-goodsleep .u-sp { display: inline; }
}

/* =====================================================
   Common
   ===================================================== */
.lp.p-goodsleep {
  overflow-x: hidden;
  background: var(--c-bg);
  color: var(--c-text);
  font-size: 15px;
  letter-spacing: 0.02em;
  line-height: 1.85;
  font-family: var(--font-sans);
}
/* スコープドリセット — h1/h2/h3/p/figure/dl/dd のmarginリセットは W2 共通の common.css が
   `body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0 }` で適用するので
   ここでは重複させない（重複させると `.gs-attention { margin: 0 auto }` を打ち消してしまうため）。 */
.lp.p-goodsleep :where(*, *::before, *::after) { box-sizing: border-box; }
.lp.p-goodsleep :where(img) { display: block; max-width: 100%; height: auto; }
.lp.p-goodsleep :where(a) { text-decoration: none; }
.lp.p-goodsleep :where(button) { font: inherit; }
.lp.p-goodsleep :where(ul, ol) { list-style: none; padding: 0; }
.lp.p-goodsleep :where(sup) { font-size: 0.55em; line-height: 1; vertical-align: super; }

.lp.p-goodsleep :focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
}

.gs-section {
  padding: var(--section-y) 0;
  scroll-margin-top: 80px;
}
.gs-section__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.gs-section__inner--narrow {
  max-width: var(--container-narrow);
}
.gs-rule-title {
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  padding: 17px 10px;
  margin: 0 0 56px;
  text-align: center;
  font-family: var(--font-serif);
  font-size: clamp(18px, 2.1vw, 24px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.12em;
  color: var(--c-text);
  background: rgba(255, 255, 255, 0.42);
}
.gs-heading {
  margin-bottom: 22px;
  color: var(--c-text);
  font-family: var(--font-serif);
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 500;
  line-height: 1.65;
  letter-spacing: 0.08em;
}
.gs-heading--large {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.2vw, 24px);
  line-height: 1.55;
}
.gs-subheading {
  margin: -10px 0 18px;
  color: var(--c-charcoal);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
}
.gs-note {
  color: var(--c-muted);
  font-size: 11px;
  line-height: 1.7;
}
.gs-center {
  margin-top: 44px;
  text-align: center;
}
.gs-note + .gs-button {
  margin-top: 28px;
}
.gs-button {
  min-width: 280px;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 32px;
  border: 0;
  border-radius: 2px;
  background: var(--c-tan);
  color: var(--c-white);
  box-shadow: 0 4px 16px rgba(149, 130, 100, 0.18);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.3;
  cursor: pointer;
  transition: background-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.gs-button::after {
  content: "〉";
  font-size: 16px;
  font-weight: 300;
}
/* <a class="gs-button"> 用: common.css の a:link/:visited { color: inherit }
   (詳細度 11) が .gs-button (詳細度 10) を上回るので、リンク状態でも白を保つ */
.gs-button:link,
.gs-button:visited {
  color: var(--c-white);
}
.gs-button:hover {
  background: var(--c-tan-dark);
  color: var(--c-white);
  box-shadow: 0 8px 24px rgba(149, 130, 100, 0.28);
  transform: translateY(-2px);
}
.gs-split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(40px, 6vw, 68px);
  align-items: center;
}
.gs-split--reverse .gs-split__media { order: 2; }
.gs-split--reverse .gs-split__body { order: 1; }
/* お戻し対応(260612): SP は「見出し → 画像 → 本文」の順にするため見出しを分離。
   PC は上下の 1fr スペーサー行で head+body ブロックを縦中央に置き、従来の見た目を維持する */
.gs-split--head {
  grid-template-rows: 1fr auto auto 1fr;
  grid-template-areas:
    "media ."
    "media head"
    "media body"
    "media .";
  row-gap: 0;
}
.gs-split--head.gs-split--reverse {
  grid-template-areas:
    ". media"
    "head media"
    "body media"
    ". media";
}
.gs-split--head .gs-split__head { grid-area: head; }
.gs-split--head .gs-split__media { grid-area: media; order: initial; }
.gs-split--head .gs-split__body { grid-area: body; order: initial; }
.gs-split__body {
  color: var(--c-text);
  font-size: 15px;
  line-height: 1.95;
}
.gs-split__body p + p,
.gs-split__body .gs-note {
  margin-top: 16px;
}
/* お戻し対応(260612): 本文直下のボタンとの間隔を空ける */
.gs-split__body .gs-button {
  margin-top: 28px;
}
/* お戻し対応(260611): 画像のグレー枠は付けない */
.gs-split__media img {
  width: 100%;
  background: var(--c-paper);
}

/* Animation (fade-up) — failsafe design (refund_guarantee_program_01 と同方式)
 * 要素はデフォルトで表示。.is-visible が付いた時のみアニメで再フェードインする演出設計。
 * JS が動かない / Observer 未対応環境でも永続表示される。 */
@keyframes gs-fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.lp.p-goodsleep [data-anim="fade-up"].is-visible {
  animation: gs-fade-up 0.8s ease both;
}
@media (prefers-reduced-motion: reduce) {
  .lp.p-goodsleep [data-anim="fade-up"].is-visible { animation: none; }
}

/* =====================================================
   Hero
   ===================================================== */
.gs-hero {
  padding: 30px 0 0;
  background: var(--c-silver-mist);
}
.gs-hero__inner {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0;
  border-bottom: 1px solid var(--c-line);
  aspect-ratio: 2401 / 801;
  background:
    linear-gradient(90deg, rgba(37, 40, 42, 0) 0%, rgba(37, 40, 42, 0.08) 42%, rgba(37, 40, 42, 0.42) 100%),
    url("../img/artboard-01.webp") center / contain no-repeat;
}
.gs-hero__copy {
  position: absolute;
  top: 17%;
  right: 7.5%;
  bottom: 13%;
  width: 51%;
  display: grid;
  align-content: start;
  grid-template-rows: auto auto 1fr auto;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.36);
}
.gs-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(14px, 3.75vw, 48px);
  font-weight: 500;
  line-height: 1.35;
  color: #fff;
  white-space: nowrap;
}
.gs-hero__lead {
  margin-top: clamp(8px, 1.72vw, 22px);
  font-family: var(--font-serif);
  font-size: clamp(9px, 2.1vw, 27px);
  line-height: 1.45;
  white-space: nowrap;
}
.gs-hero__name {
  align-self: end;
  justify-self: end;
  font-family: var(--font-serif);
  font-size: clamp(13px, 3.35vw, 43px);
  line-height: 1.2;
  white-space: nowrap;
}
.gs-hero__name span {
  margin-left: clamp(4px, 0.94vw, 12px);
  font-family: var(--font-sans);
  font-size: 0.62em;
  font-weight: 400;
}
/* お戻し対応(260611): 見出しなので文字サイズを拡大 */
.gs-attention {
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px var(--pad-x);
  border-bottom: 1px solid var(--c-line);
  background: var(--c-white);
  text-align: center;
  font-family: var(--font-serif);
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.08em;
}

/* =====================================================
   Sections
   ===================================================== */
.gs-intro .gs-split__media img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.gs-market {
  background: var(--c-silver-mist);
}
.gs-features {
  background: var(--c-paper);
}
/* お戻し対応(260611):
   - PC は画像の上面をテキスト(特徴ラベル)の上面に揃える
   - SP は「見出し → 画像 → 本文」の順に並べる
   ため、head / media / body の 3 エリアの grid で構成 */
.gs-feature {
  padding: 52px 0;
  border-bottom: 1px solid var(--c-soft-line);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "media head"
    "media body";
  column-gap: clamp(40px, 6vw, 68px);
  align-items: start;
}
.gs-feature--reverse {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  grid-template-areas:
    "head media"
    "body media";
}
.gs-feature:first-of-type {
  padding-top: 0;
}
.gs-feature:last-of-type {
  border-bottom: 0;
}
.gs-feature__head { grid-area: head; }
.gs-feature__media {
  grid-area: media;
}
.gs-feature__media img {
  width: 100%;
  background: var(--c-paper);
}
.gs-feature__body {
  grid-area: body;
  color: var(--c-text);
  font-size: 15px;
  line-height: 1.95;
}
.gs-feature__body p + p,
.gs-feature__body .gs-note {
  margin-top: 16px;
}
/* お戻し対応(260611): 「特徴1」ラベルを拡大 (特徴2、3 同様) */
.gs-feature__label {
  width: fit-content;
  margin-bottom: 16px;
  padding: 5px 16px;
  border: 1px solid var(--c-tan);
  color: var(--c-tan-dark);
  background: rgba(255, 255, 255, 0.6);
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.5;
}
/* お戻し対応(260611): 濃いグレーをやめ上部セクションと同じグレーに、見出しバーは白に */
.gs-recommend {
  background: var(--c-silver-mist);
}
.gs-recommend .gs-rule-title {
  background: var(--c-white);
}
.gs-recommend__list {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  color: var(--c-text);
  line-height: 2.4;
}
.gs-recommend__list li {
  position: relative;
  padding-left: 1.4em;
  font-family: var(--font-serif);
  font-size: clamp(16px, 2vw, 20px);
  letter-spacing: 0.08em;
}
.gs-recommend__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-tan);
}
.gs-about {
  background: var(--c-white);
}
.gs-about__posture {
  margin-bottom: 56px;
}
/* お戻し対応(260611): 「商品一式」は横長フル幅に。カード枠・画像の枠はトルツメ */
.gs-product-info {
  display: block;
}
.gs-product-info img {
  width: 100%;
}
.gs-small-title {
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--c-line);
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-align: center;
}
/* お戻し対応(260611): 説明文は「商品一式」画像の直下に近接配置 */
.gs-about__caption {
  max-width: var(--container-narrow);
  margin: 16px auto 0;
  color: var(--c-muted);
  font-size: 13px;
  line-height: 1.9;
}
/* Usage */
.gs-usage {
  background: var(--c-silver-mist);
}
.gs-usage__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 38px;
}
.gs-step-card,
.gs-usage__bottom {
  padding: 24px;
  border: 1px solid rgba(184, 186, 188, 0.68);
  background: rgba(255, 255, 255, 0.78);
}
.gs-step-card__label {
  color: var(--c-tan-dark);
  font-family: var(--font-serif);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
}
.gs-step-card h3,
.gs-usage__bottom h3 {
  margin: 4px 0 18px;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.06em;
}
.gs-step-card img {
  width: 100%;
  margin-bottom: 14px;
  border: 1px solid rgba(184, 186, 188, 0.68);
}
.gs-step-card p:last-child,
.gs-fit-grid figcaption {
  color: var(--c-muted);
  font-size: 13px;
  line-height: 1.8;
}
.gs-usage__bottom {
  margin-top: 8px;
}
.gs-fit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.gs-fit-grid img {
  width: 100%;
  margin-bottom: 10px;
  border: 1px solid rgba(184, 186, 188, 0.68);
}
.gs-video {
  margin-top: 56px;
}
.gs-video__frame {
  max-width: 640px;
  margin: 0 auto;
  background: var(--c-charcoal);
  aspect-ratio: 16 / 9;
}
.gs-video__frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
/* Store / Brand */
.gs-store {
  background: var(--c-silver-3);
}
.gs-store__list {
  margin-top: 18px;
  color: var(--c-text);
  line-height: 2.05;
}
.gs-store__list li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.38);
  padding: 4px 0;
}
/* お戻し対応(260611): このブロックは白ベースに */
.gs-brand {
  padding-bottom: 108px;
  background: var(--c-white);
}

/* =====================================================
   Product Modal
   ===================================================== */
.gs-product-modal {
  /* W2 bundle.css の `dialog { position: absolute; margin: auto }` が <dialog> の
     showModal 時の top-layer 挙動を上書きしているため、明示的に viewport 中央に
     固定配置する。指定しないと showModal でページがトップにスクロールしてしまう。 */
  position: fixed;
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  transform: translate(-50%, -50%);
  margin: 0;
  width: min(760px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--c-text);
  overflow-y: auto;
}
.gs-product-modal::backdrop {
  background: rgba(37, 40, 42, 0.48);
}
.gs-product-modal__panel {
  position: relative;
  padding: 38px;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  box-shadow: 0 18px 48px rgba(37, 40, 42, 0.24);
}
.gs-product-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.gs-product-modal__close::before,
.gs-product-modal__close::after {
  content: "";
  position: absolute;
  top: 14px;
  left: 6px;
  width: 18px;
  height: 1px;
  background: var(--c-charcoal);
}
.gs-product-modal__close::before { transform: rotate(45deg); }
.gs-product-modal__close::after { transform: rotate(-45deg); }
.gs-product-modal__eyebrow {
  text-align: center;
  color: var(--c-tan-dark);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
}
.gs-product-modal h2 {
  margin: 6px 0 26px;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.08em;
}
.gs-product-modal__content {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 30px;
  align-items: center;
  padding: 26px;
  background: var(--c-white);
  border: 1px solid var(--c-soft-line);
  border-radius: 4px;
}
/* お戻し対応(260611): メインコピーの級数を拡大し、サブコピーを追加 */
.gs-product-modal__catch {
  margin-bottom: 6px;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.08em;
}
.gs-product-modal__sub {
  margin-bottom: 16px;
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--c-charcoal);
}
.gs-product-modal__spec {
  display: grid;
  gap: 6px;
  font-size: 12px;
  line-height: 1.7;
}
.gs-product-modal__spec div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
}
.gs-product-modal__spec dt { color: var(--c-muted); }
.gs-product-modal__price {
  margin-top: 16px;
  color: var(--c-tan-dark);
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
}
.gs-product-modal__price span {
  margin-left: 4px;
  font-family: var(--font-sans);
  font-size: 12px;
}
.gs-product-modal__link {
  min-height: 48px;
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: var(--c-tan);
  color: var(--c-white);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  transition: background-color 0.25s ease;
}
.gs-product-modal__link::after {
  content: "〉";
  margin-left: 14px;
  font-size: 15px;
  font-weight: 300;
}
/* <a> の :link/:visited (詳細度 11) が common.css の color: inherit を継承して
   親色 (≒ 黒) になるのを防ぐ。.gs-button と同じ対策。 */
.gs-product-modal__link:link,
.gs-product-modal__link:visited {
  color: var(--c-white);
}
.gs-product-modal__link:hover {
  background: var(--c-tan-dark);
  color: var(--c-white);
}

@media (max-width: 760px) {
  :root {
    --pad-x: 18px;
    --section-y: 56px;
  }
  .lp.p-goodsleep {
    font-size: 14px;
    letter-spacing: 0;
  }
  .gs-hero__inner,
  .gs-split,
  .gs-usage__top,
  .gs-product-modal__content {
    grid-template-columns: 1fr;
  }
  .gs-split--reverse .gs-split__media,
  .gs-split--reverse .gs-split__body {
    order: initial;
  }
  .gs-hero {
    padding-top: 0;
  }
  /* お戻し対応(260611): SP メインビジュアルのモックに合わせ、
     暗グラデーションをやめて左寄せ、商品名は下部の紺帯に
     お戻し対応(260612): 文字色は黒(紺)ではなく白に。視認性のため PC と同じ控えめなシャドウを付ける */
  .gs-hero__inner {
    aspect-ratio: 920 / 1226;
    overflow: hidden;
    background: url("../img/MV_sp.webp") center top / cover no-repeat;
  }
  .gs-hero__inner::before {
    content: none;
  }
  .gs-hero__copy {
    position: absolute;
    inset: 0;
    width: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: clamp(22px, 6vw, 34px) 20px 20px;
    background: transparent;
    color: var(--c-white);
    text-align: left;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.36);
  }
  .gs-hero h1 {
    font-size: 26px;
    line-height: 1.45;
    color: var(--c-white);
    white-space: normal;
  }
  .gs-hero__lead {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.7;
    white-space: nowrap;
  }
  .gs-hero__name {
    align-self: flex-start;
    justify-self: auto;
    margin-top: auto;
    padding: 9px 18px;
    background: var(--c-navy);
    color: var(--c-white);
    font-size: 17px;
    line-height: 1.4;
    white-space: nowrap;
  }
  .gs-hero__name span {
    color: var(--c-tan-soft);
  }
  .gs-attention {
    padding-top: 14px;
    padding-bottom: 14px;
    font-size: 15px;
    line-height: 1.8;
    letter-spacing: 0.04em;
  }
  .gs-intro {
    padding-top: 44px;
    padding-bottom: 56px;
  }
  .gs-intro .gs-split__media {
    width: min(86vw, 300px);
    margin: 0 auto;
  }
  .gs-intro .gs-split__media img {
    width: 100%;
  }
  /* お戻し対応(260612): SP は「見出し → 画像 → 本文」の順。
     行間は .gs-split の gap(30px) に任せ、見出し下マージンは打ち消す */
  .gs-split--head,
  .gs-split--head.gs-split--reverse {
    grid-template-rows: auto;
    grid-template-areas:
      "head"
      "media"
      "body";
  }
  .gs-split--head .gs-split__head {
    margin-bottom: 0;
  }
  .gs-rule-title {
    margin-bottom: 34px;
    padding: 14px 8px;
    font-size: 17px;
    letter-spacing: 0.08em;
  }
  .gs-heading,
  .gs-heading--large {
    font-size: 18px;
    letter-spacing: 0.05em;
  }
  .gs-button {
    min-width: 220px;
    min-height: 52px;
    padding: 0 24px;
    font-size: 14px;
  }
  /* お戻し対応(260612): SP は本文中のボタンも中央配置 */
  .gs-split__body .gs-button {
    display: flex;
    width: fit-content;
    margin-inline: auto;
  }
  .gs-split {
    gap: 30px;
  }
  .gs-split__body {
    font-size: 14px;
  }
  /* お戻し対応(260611): SP は「見出し → 画像 → 本文」の順 */
  .gs-feature,
  .gs-feature--reverse {
    padding: 38px 0;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "head"
      "media"
      "body";
  }
  .gs-feature__body {
    margin-top: 18px;
    font-size: 14px;
  }
  .gs-step-card,
  .gs-usage__bottom {
    padding: 18px;
  }
  .gs-fit-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px 12px;
  }
  .gs-product-modal__panel {
    padding: 26px 18px 20px;
  }
  .gs-product-modal__content {
    padding: 18px;
  }
}

@media (max-width: 420px) {
  .gs-fit-grid {
    grid-template-columns: 1fr;
  }
}
