/* 参考：ankerjapan.com の作り（白地・薄いグレーの商品枠・太いゴシックの見出し・税込価格・塗りのボタン）。色は SLEEP+ のパッケージ（黒・銀・白） */
:root {
  --bg: #ffffff;
  --tile: #f4f4f5;
  --line: #e6e6e8;
  --text: #16171a;
  --muted: #6b6d72;
  --ink: #111214;
  --on-ink: #ffffff;
  --radius: 16px;
  --sans: "Noto Sans JP", "Hiragino Sans", sans-serif;
  --latin: "Jost", "Noto Sans JP", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.8;
  letter-spacing: 0.02em;
  padding-bottom: 76px;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* お知らせの帯 */
.notice { padding: 8px 16px; background: var(--tile); border-bottom: 1px solid var(--line); text-align: center; font-size: 12px; color: var(--muted); }

/* ワードマーク（パッケージの SLEEP+ と4本線） */
.mark { display: inline-flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--ink); }
.mark-word { font-family: var(--latin); font-weight: 400; font-size: 20px; letter-spacing: 0.16em; line-height: 1; }
.mark-word sup { font-size: 0.55em; margin-left: 1px; vertical-align: 0.7em; }
.mark-lines { width: 60px; height: 8px; background: repeating-linear-gradient(to bottom, currentColor 0 1px, transparent 1px 2.4px); opacity: 0.7; }

/* ヘッダー */
.top { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.top .btn { padding: 8px 16px; font-size: 13px; }

/* ボタン */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 28px; border-radius: 10px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--on-ink);
  font-weight: 700; font-size: 15px; letter-spacing: 0.06em; text-decoration: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.btn:hover { opacity: 0.88; }
.btn:active { transform: scale(0.98); }
.btn-outline { background: transparent; color: var(--on-ink); border-color: rgba(255, 255, 255, 0.85); }
.btn-note { margin: 8px 0 0; font-size: 12px; color: var(--muted); }

/* 見出し */
.sec { padding: 56px 0 0; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px; }
.sec h2 { margin: 0; font-weight: 700; font-size: 22px; line-height: 1.5; }
.eyebrow { display: block; margin-bottom: 4px; font-family: var(--latin); font-size: 12px; letter-spacing: 0.16em; color: var(--muted); }

/* 商品カード */
.product { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.gallery-main { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; transition: opacity 0.35s ease; }
.gallery-main img.is-fading { opacity: 0; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 4px; }
.thumb { flex: none; width: 64px; height: 64px; padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; cursor: pointer; scroll-snap-align: start; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-active { border: 2px solid var(--ink); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; }
.product h1 { margin: 10px 0 12px; font-weight: 700; font-size: 22px; line-height: 1.5; }
main > .sec:first-child { padding-top: 20px; }
.checks { margin: 0 0 16px; padding: 0; list-style: none; }
.checks li { position: relative; padding: 6px 0 6px 26px; border-bottom: 1px solid var(--line); font-size: 14px; }
.checks li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 10px; height: 6px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg); }
.colors { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; font-size: 13px; color: var(--muted); }
.dot { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line); box-shadow: inset 0 0 0 2px #fff; }
.price { margin: 0 0 16px; font-family: var(--latin); font-size: 30px; font-weight: 400; line-height: 1.2; }
.price small { margin-left: 6px; font-family: var(--sans); font-size: 12px; color: var(--muted); }
.product .btn { width: 100%; }

/* 数字のタイル */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stat { padding: 20px 8px; border-radius: 12px; background: var(--tile); text-align: center; }
.stat .num { font-family: var(--latin); font-weight: 300; font-size: 30px; line-height: 1.2; }
.stat .num small { font-size: 0.5em; margin: 0 1px; }
.stat .label { font-size: 12px; color: var(--muted); }
.note { margin: 10px 0 0; font-size: 11px; color: var(--muted); }

/* 参考：tential.jp のアイマスクのページ（端まで広がる写真・中央の見出し・Detail は写真と説明を交互・Design は写真カード3枚） */
.wide-photo { margin-top: 56px; }
.wide-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 65% center; }
.statement { padding: 48px 0 0; text-align: center; }
.statement h2 { margin: 0 0 16px; font-weight: 700; font-size: 20px; line-height: 1.7; }
.statement > .wrap > p { margin: 0 auto 28px; max-width: 34em; color: var(--muted); font-size: 14px; }
.statement .note { text-align: left; }
.sec-title { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.sec-title .en { font-family: var(--latin); font-weight: 400; font-size: 28px; letter-spacing: 0.02em; }
.sec-title .ja { padding-left: 14px; border-left: 1px solid var(--text); font-size: 12px; color: var(--muted); }
.cards { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 12px; margin-top: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.card { margin: 0; scroll-snap-align: start; }
.card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; background: var(--tile); }
.card figcaption { margin-top: 12px; font-size: 13px; line-height: 1.8; color: var(--muted); }

/* Detail：tential.jp の製品ページの作り（白地・角丸の写真と、見出し＋本文を左右交互に。スマホは写真が上・文字が下） */
.detail-list { display: grid; gap: 40px; margin-top: 20px; }
.detail { scroll-margin-top: 70px; }
.detail img { display: block; width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; border-radius: 12px; background: var(--tile); }
.detail-text { padding-top: 16px; }
.detail h3 { margin: 0 0 10px; font-weight: 700; font-size: 20px; line-height: 1.5; }
.detail-text > p:not(.detail-note) { margin: 0; font-size: 14px; line-height: 1.9; }
.detail-note { margin: 10px 0 0; font-size: 10px; color: var(--muted); }

/* 仕様 */
.spec { margin: 0; display: grid; grid-template-columns: 7.5em minmax(0, 1fr); border-top: 1px solid var(--line); }
.spec dt, .spec dd { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.spec dt { color: var(--muted); }

/* 最後のバナー */
/* 締めのバナー（黒地に白い文字） */
.banner { position: relative; overflow: hidden; border-radius: var(--radius); display: flex; flex-direction: column; color: #fff; }
.banner::before { content: ""; position: absolute; inset: 0; }
.banner > * { position: relative; }
.closing { margin-top: 56px; }
.closing .banner { min-height: 0; padding: 48px 24px; align-items: flex-start; justify-content: center; background: #111214; }
.closing .banner::before { background: radial-gradient(120% 120% at 100% 0%, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0) 60%); }
.closing h2 { margin: 0 0 20px; font-weight: 700; font-size: 24px; line-height: 1.5; color: #fff; }

/* フッター */
.foot { margin-top: 56px; padding: 32px 0 40px; background: var(--tile); border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.foot .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* 下に固定のボタン（スマホ） */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, 0.96); border-top: 1px solid var(--line); }
.sticky-cta .btn { width: 100%; }

/* プライバシーポリシー */
.doc { padding: 40px 0 72px; }
.doc h1 { font-size: 24px; }
.doc h2 { margin-top: 32px; font-size: 16px; }
.doc p, .doc li { color: var(--muted); font-size: 14px; }

@media (min-width: 820px) {
  body { font-size: 16px; padding-bottom: 0; }
  .sticky-cta { display: none; }
  .wrap { padding: 0 24px; }
  .sec { padding-top: 88px; }
  .sec h2 { font-size: 26px; }
  main > .sec:first-child { padding-top: 32px; }
  .product { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
  .product .btn { width: auto; min-width: 280px; }
  .thumbs { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; overflow: visible; }
  .thumb { width: auto; height: auto; aspect-ratio: 1 / 1; }
  .stat { padding: 32px 8px; }
  .stat .num { font-size: 44px; }
  .wide-photo { margin-top: 88px; }
  .wide-photo img { aspect-ratio: 21 / 9; object-position: center; }
  .statement { padding-top: 72px; }
  .detail-list { gap: 64px; margin-top: 28px; }
  .detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
  .detail:nth-child(even) img { order: 2; }
  .detail-text { padding-top: 0; }
  .detail h3 { font-size: 24px; }
  .detail-text > p:not(.detail-note) { font-size: 15px; }
  .statement h2 { font-size: 26px; }
  .statement > .wrap > p { font-size: 15px; }
  .sec-title .en { font-size: 32px; }
  .cards { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; overflow: visible; }
  .closing .banner { padding: 72px 64px; }
  .closing h2 { font-size: 32px; }
}
