/* =========================================================
   AWAI（架空のスキンケアブランド）— STUDIO AZUR BRAND プランのデモ
   ========================================================= */
:root {
  /* 白（メイン70%）・ベージュ（ベース25%）・柚子（アクセント5%） */
  --bone: #FCFBF8;
  --base: #EEE6DB;
  --base-2: #DCCDBA;
  --paper: #F5F0E9;
  --ink: #1E1712;
  --ink-2: #4A3F36;
  --muted: #8A7B6C;
  --line: rgba(30, 23, 18, .14);
  --yuzu: #E2571E;
  --yuzu-2: #F08A3C;
  --sans: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  --disp: "Archivo", "Zen Kaku Gothic New", sans-serif;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --ease: cubic-bezier(.22, .8, .2, 1);
  --ease-in: cubic-bezier(.7, 0, .2, 1);
  --pad: clamp(16px, 3.2vw, 44px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px; line-height: 1.85; letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
p, h1, h2, h3, h4 { margin: 0; }
h1, h2, h3, p, li, .jp { word-break: auto-phrase; }
.nw { white-space: nowrap; }
@media (max-width: 480px) { .nw { white-space: normal; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.eyebrow {
  font-family: var(--disp); font-size: 11px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--yuzu); }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 24px; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  text-decoration: none; font-size: 13.5px; font-weight: 700; letter-spacing: .06em;
  border: 0; position: relative; overflow: hidden; isolation: isolate;
  transition: color .5s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--yuzu); border-radius: inherit;
  transform: translateY(101%); transition: transform .55s var(--ease);
}
.btn:hover::before { transform: none; }
.btn .arr { transition: transform .5s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn.light { background: var(--paper); color: var(--ink); }
.btn.light:hover { color: var(--paper); }

/* ---------- お知らせバー ---------- */
.announce {
  position: relative; z-index: 60;
  background: var(--base); color: var(--ink);
  height: 36px; display: flex; align-items: center; justify-content: center; gap: 18px;
  font-size: 12px; letter-spacing: .06em;
}
.announce button { background: none; border: 0; color: inherit; opacity: .6; padding: 4px 8px; }
.announce button:hover { opacity: 1; }
.announce-track { position: relative; height: 20px; width: min(420px, 70vw); overflow: hidden; text-align: center; }
.announce-track p {
  position: absolute; inset: 0; line-height: 20px; white-space: nowrap;
  transform: translateY(100%); opacity: 0;
  transition: transform .7s var(--ease), opacity .7s var(--ease);
}
.announce-track p.is-on { transform: none; opacity: 1; }
.announce-track p.is-out { transform: translateY(-100%); opacity: 0; }

/* ---------- ヘッダー ---------- */
.site-head {
  position: fixed; z-index: 50; left: 0; right: 0; top: 36px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 14px var(--pad);
  transition: transform .6s var(--ease), background .4s, top .4s, box-shadow .4s;
}
.site-head.is-solid { top: 0; background: rgba(252, 251, 248, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.site-head.is-hidden { transform: translateY(-110%); }
.head-nav { display: flex; gap: 26px; }
.head-nav a, .head-tools a, .head-tools button {
  text-decoration: none; font-family: var(--disp); font-size: 12px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; background: none; border: 0; padding: 0;
  position: relative;
}
.head-nav a::after, .head-tools a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.head-nav a:hover::after, .head-tools a:hover::after { transform: scaleX(1); transform-origin: left; }
.head-logo {
  font-family: var(--disp); font-weight: 900; font-stretch: 125%; font-size: 22px;
  letter-spacing: .02em; text-decoration: none; line-height: 1;
}
.head-tools { display: flex; justify-content: flex-end; align-items: center; gap: 22px; }
.cart-btn { display: inline-flex; align-items: center; gap: 8px; }
.cart-count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px;
  display: inline-grid; place-items: center;
  background: var(--yuzu); color: #fff; font-size: 11px; letter-spacing: 0;
}
.cart-count.bump { animation: bump .6s var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.45); } 100% { transform: scale(1); } }
.menu-btn { display: none; }
@media (max-width: 760px) {
  .site-head { grid-template-columns: auto 1fr auto; gap: 14px; }
  .head-nav { display: none; }
  .head-logo { justify-self: start; }
  .head-tools .hide-sp { display: none; }
  .menu-btn { display: inline-flex; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px 4px; }
  .menu-btn span { width: 20px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
  body.menu-open .menu-btn span:first-child { transform: translateY(3.25px) rotate(45deg); }
  body.menu-open .menu-btn span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
}
.sp-menu {
  position: fixed; inset: 0; z-index: 45; background: var(--bone);
  padding: 120px var(--pad) 40px; display: flex; flex-direction: column; gap: 6px;
  clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease-in);
}
body.menu-open .sp-menu { clip-path: inset(0 0 0 0); }
.sp-menu a {
  font-family: var(--disp); font-weight: 800; font-stretch: 120%; font-size: 40px; line-height: 1.2;
  text-decoration: none; text-transform: lowercase;
  transform: translateY(30px); opacity: 0; transition: transform .7s var(--ease), opacity .7s;
}
.sp-menu a small { white-space: nowrap; font-family: var(--sans); font-size: 12px; font-weight: 500; margin-left: 10px; color: var(--muted); }
body.menu-open .sp-menu a { transform: none; opacity: 1; }
body.menu-open .sp-menu a:nth-child(2) { transition-delay: .06s; }
body.menu-open .sp-menu a:nth-child(3) { transition-delay: .12s; }
body.menu-open .sp-menu a:nth-child(4) { transition-delay: .18s; }

/* ---------- ヒーロー（商品写真＋びんの後ろを通る見出し） ---------- */
.hero { position: relative; height: 165vh; }
.hero-stick { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.hero-frame {
  position: absolute; inset: 0; overflow: hidden; background: #c4b39f;
  clip-path: inset(calc(var(--p, 0) * 3vw) calc(var(--p, 0) * 3vw) calc(var(--p, 0) * 3vw) calc(var(--p, 0) * 3vw) round calc(var(--p, 0) * 28px));
  will-change: clip-path;
}
/* 背景と切り抜きのびんを、まったく同じ位置・大きさで重ねる */
.stage {
  position: absolute; left: 50%; top: 50%;
  width: max(100vw, 150vh); aspect-ratio: 3 / 2;
  transform: translate(-50%, -50%) scale(calc(1.04 - var(--p, 0) * .06));
  scale: 1.07;
  container-type: inline-size;
}
.is-loaded .stage { scale: 1; transition: scale 2.6s var(--ease); }
.stage > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage-front { z-index: 3; pointer-events: none; }
.stage-front .bottle { position: absolute; inset: auto; left: 41.833%; top: 9.375%; width: 16.25%; height: auto; }
.bottle-label {
  position: absolute; left: 42.04%; width: 15.79%; top: 49.38%; height: 26.93%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .9cqw;
  color: #2a211b; mix-blend-mode: multiply; text-align: center;
  font-family: "Inter Tight", var(--disp); text-transform: uppercase;
}
.bottle-label b { font-family: var(--disp); font-weight: 600; font-stretch: 125%; font-size: 2.1cqw; letter-spacing: .06em; line-height: 1; }
.bottle-label i { width: 4cqw; height: 1px; background: currentColor; opacity: .5; }
.bottle-label span { font-size: .72cqw; letter-spacing: .22em; line-height: 1.6; font-weight: 400; }
.bottle-label small { font-size: .56cqw; letter-spacing: .18em; opacity: .7; margin-top: .6cqw; }

.hero-title {
  position: absolute; z-index: 2; left: 0; right: 0; top: 13vh; margin: 0;
  font-family: "Inter Tight", var(--disp); font-weight: 300; text-transform: uppercase;
  font-size: min(14.2vw, 26vh); line-height: .86; letter-spacing: -.045em; text-align: center;
  color: #f6f0e7; opacity: .92;
  transform: translateY(calc(var(--p, 0) * -22vh));
}
/* 左右の言葉で、キャップ／びんの幅だけ間をあける（--sw＝背景写真の表示幅） */
.hero { --sw: max(100vw, 150vh); }
.hero-title .ln { display: grid; grid-template-columns: 1fr var(--gap) 1fr; overflow: hidden; padding: 0 0 .04em; }
.hero-title .ln-cap { --gap: calc(var(--sw) * .118); }
.hero-title .ln-body { --gap: calc(var(--sw) * .172); }
.hero-title .ln > span { display: block; transform: translateY(105%); }
.hero-title .ln > span:first-child { text-align: right; grid-column: 1; }
.hero-title .ln > span:last-child { text-align: left; grid-column: 3; }
.is-loaded .hero-title .ln > span { transform: none; transition: transform 1.4s var(--ease); }
.is-loaded .hero-title .ln:nth-child(2) > span { transition-delay: .12s; }
.hero-title .ln:nth-child(2) { margin-top: 18vh; }

.hero-copy {
  position: absolute; z-index: 4; left: var(--pad); bottom: 12vh; width: min(330px, 30vw);
  font-family: "Inter Tight", var(--disp); color: var(--ink);
  opacity: calc(1 - var(--p, 0) * 2.2);
}
.hero-copy p { font-size: 14px; line-height: 1.6; letter-spacing: 0; margin-bottom: 22px; }
.hero-copy .fade { opacity: 0; transform: translateY(14px); }
.is-loaded .hero-copy .fade { opacity: 1; transform: none; transition: opacity 1s .6s, transform 1s .6s var(--ease); }
.hero-copy .btn { font-family: "Inter Tight", var(--sans); font-weight: 500; letter-spacing: .02em; }

/* 下に並ぶ小さな映像と写真 */
.hero-thumbs {
  position: absolute; z-index: 4; right: var(--pad); bottom: 5vh;
  display: flex; gap: 6px; opacity: calc(1 - var(--p, 0) * 2.4);
}
.hero-thumbs a {
  display: block; width: clamp(84px, 8.4vw, 132px); aspect-ratio: 4 / 3; overflow: hidden; border-radius: 3px; position: relative;
  opacity: 0; transform: translateY(20px);
}
.is-loaded .hero-thumbs a { opacity: 1; transform: none; transition: opacity .9s, transform .9s var(--ease); }
.is-loaded .hero-thumbs a:nth-child(1) { transition-delay: .7s; }
.is-loaded .hero-thumbs a:nth-child(2) { transition-delay: .78s; }
.is-loaded .hero-thumbs a:nth-child(3) { transition-delay: .86s; }
.is-loaded .hero-thumbs a:nth-child(4) { transition-delay: .94s; }
.is-loaded .hero-thumbs a:nth-child(5) { transition-delay: 1.02s; }
.hero-thumbs img, .hero-thumbs video { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.hero-thumbs a:hover img, .hero-thumbs a:hover video { transform: scale(1.08); }
.hero-thumbs a::after {
  content: attr(data-label); position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 8px 5px;
  font-family: "Inter Tight", var(--disp); font-size: 10px; letter-spacing: .08em; color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, .45));
  transform: translateY(100%); transition: transform .5s var(--ease);
}
.hero-thumbs a:hover::after { transform: none; }

.hero-scroll {
  position: absolute; z-index: 4; left: var(--pad); top: 50vh; writing-mode: vertical-rl;
  font-family: var(--disp); font-size: 10px; letter-spacing: .3em; font-weight: 600; color: var(--ink);
  display: none;
}
@media (max-width: 760px) {
  .hero { height: 140vh; --sw: 210vw; }
  .hero-frame { background: linear-gradient(#c6b5a1 0 50%, #cfbfab 50%); }
  .stage:not(.stage-front)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 9%; background: linear-gradient(rgba(207, 191, 171, 0), #cfbfab); }
  .stage { top: auto; bottom: 15vh; width: var(--sw); transform: translateX(-50%) scale(calc(1.04 - var(--p, 0) * .06)); transform-origin: 50% 100%; }
  .hero-title { top: 14vh; font-size: 12.5vw; letter-spacing: -.03em; }
  .hero-title .ln:nth-child(2) { margin-top: 13vh; }
  .hero-copy { left: var(--pad); right: var(--pad); bottom: 2.5vh; width: auto; text-align: center; }
  .hero-copy p { font-size: 13px; margin: 0 auto 14px; max-width: 300px; }
  .hero-thumbs { display: none; }
}

/* 行ごとに下から出てくる文字（レビューなどで使う） */
.line { display: block; overflow: hidden; padding-bottom: .06em; }
.line > span { display: block; transform: translateY(110%); }
.in .line > span { transform: none; transition: transform 1.1s var(--ease); }
.line:nth-child(2) > span { transition-delay: .1s !important; }
.line:nth-child(3) > span { transition-delay: .2s !important; }

/* ---------- 共通セクション ---------- */
.sec { padding: clamp(80px, 11vw, 150px) var(--pad); position: relative; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 56px); }
.sec-title { font-size: clamp(26px, 3.2vw, 44px); line-height: 1.45; font-weight: 500; letter-spacing: .03em; }
.sec-title .serif { color: var(--yuzu); font-size: 1.18em; }
.sec-lead { color: var(--ink-2); max-width: 32em; }

[data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-mask] { clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease); }
[data-mask].in { clip-path: inset(0 0 0 0); }
[data-mask] img, [data-mask] video { transform: scale(1.18); transition: transform 1.8s var(--ease); }
[data-mask].in img, [data-mask].in video { transform: scale(1); }

/* ---------- 人気の商品（横スクロール） ---------- */
.tabs { display: flex; gap: 22px; align-items: baseline; }
.tab {
  background: none; border: 0; padding: 0;
  font-size: clamp(24px, 2.8vw, 38px); font-weight: 700; color: rgba(30, 23, 18, .28);
  transition: color .4s; display: inline-flex; align-items: center; gap: 12px;
}
.tab::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); transform: scale(0); transition: transform .5s var(--ease); }
.tab.is-on { color: var(--ink); }
.tab.is-on::before { transform: scale(1); }
.rail-wrap { margin: 0 calc(var(--pad) * -1); position: relative; }
.rail {
  display: flex; gap: clamp(12px, 1.4vw, 20px);
  overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
  padding: 0 var(--pad) 8px; cursor: grab;
}
.rail::-webkit-scrollbar { display: none; }
.rail.is-drag { cursor: grabbing; scroll-snap-type: none; }
.rail.is-drag a { pointer-events: none; }
.rail[hidden] { display: none; }
.rail .card { flex: 0 0 clamp(250px, 24vw, 360px); scroll-snap-align: start; }
.rail.is-swap .card { animation: cardin .9s var(--ease) both; }
.rail.is-swap .card:nth-child(2) { animation-delay: .06s; }
.rail.is-swap .card:nth-child(3) { animation-delay: .12s; }
.rail.is-swap .card:nth-child(4) { animation-delay: .18s; }
.rail.is-swap .card:nth-child(5) { animation-delay: .24s; }
@keyframes cardin { from { opacity: 0; transform: translateX(60px); } to { opacity: 1; transform: none; } }
.rail-bar { margin: 36px auto 0; width: min(240px, 50vw); height: 2px; background: var(--line); position: relative; overflow: hidden; }
.rail-bar span { position: absolute; top: 0; bottom: 0; left: 0; width: 30%; background: var(--ink); transition: transform .15s linear; }

.card { position: relative; }
.card-media {
  display: block; position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  background: var(--paper); border-radius: 4px;
}
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card-media .img-b { clip-path: inset(100% 0 0 0); transition: clip-path .9s var(--ease), transform 1.2s var(--ease); transform: scale(1.12); }
.card:hover .card-media .img-b { clip-path: inset(0 0 0 0); transform: scale(1); }
.card:hover .card-media .img-a { transform: scale(1.06); }
.card-tag {
  position: absolute; z-index: 2; left: 14px; top: 12px;
  font-family: var(--disp); font-size: 10px; font-weight: 700; letter-spacing: .16em; line-height: 1.5;
  mix-blend-mode: difference; color: #fff;
}
.card-tag small { display: block; font-weight: 500; opacity: .75; }
.card-add {
  position: absolute; z-index: 3; right: 12px; top: calc((100% - 92px) - 52px);
  width: 42px; height: 42px; border-radius: 50%; border: 0;
  background: var(--paper); color: var(--ink); font-size: 20px; line-height: 1;
  display: grid; place-items: center;
  transform: scale(.6); opacity: 0; transition: transform .5s var(--ease), opacity .4s, background .3s, color .3s;
}
.card:hover .card-add, .card-add:focus-visible { transform: scale(1); opacity: 1; }
.card-add:hover { background: var(--yuzu); color: #fff; }
@media (hover: none) { .card-add { transform: scale(1); opacity: 1; } }
.card-info { padding: 14px 2px 0; display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; min-height: 92px; }
.card-info h3 { font-size: 14.5px; font-weight: 700; line-height: 1.6; }
.card-info h3 a { text-decoration: none; }
.card-meta { color: var(--muted); font-size: 12px; grid-column: 1; }
.price { font-family: var(--disp); font-weight: 600; font-size: 14px; letter-spacing: .02em; grid-column: 2; grid-row: 1; text-align: right; white-space: nowrap; }
.price s { color: var(--muted); font-weight: 400; font-size: 12px; display: block; }

/* ---------- カテゴリ（縦の大文字） ---------- */
.cats { display: flex; gap: 10px; height: clamp(520px, 74vh, 760px); padding: 0 var(--pad); }
.cat {
  position: relative; flex: 1 1 0; overflow: hidden; border-radius: 6px; text-decoration: none; color: #fff;
  transition: flex-grow .9s var(--ease);
}
.cats:hover .cat { flex-grow: .8; }
.cats .cat:hover { flex-grow: 1.6; }
.cat img, .cat video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.cat:hover img, .cat:hover video { transform: scale(1.05); }
.cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .28), rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .3)); }
.cat-word {
  position: absolute; z-index: 2; left: 18px; top: 18px;
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-family: var(--disp); font-weight: 500; font-size: clamp(56px, 7vw, 104px); line-height: 1; letter-spacing: -.02em;
}
.cat-foot { position: absolute; z-index: 2; left: 18px; right: 18px; bottom: 18px; display: flex; justify-content: space-between; align-items: end; gap: 10px; }
.cat-foot p { font-size: 13px; line-height: 1.6; max-width: 15em; }
.cat-pill { background: #fff; color: var(--ink); border-radius: 999px; padding: 8px 16px; font-size: 12px; font-weight: 700; white-space: nowrap; transition: background .3s, color .3s; }
.cat:hover .cat-pill { background: var(--yuzu); color: #fff; }
@media (max-width: 760px) {
  .cats { flex-direction: column; height: auto; }
  .cat { flex: none; height: 64vh; }
  .cats:hover .cat, .cats .cat:hover { flex-grow: 0; }
}

/* ---------- ものづくり（スクロールで切り替わる） ---------- */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); padding-top: 0; }
.story-media { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; align-self: start; }
.story-stack { position: relative; width: 100%; aspect-ratio: 4 / 5; max-height: 82vh; border-radius: 6px; overflow: hidden; background: var(--ink); }
.story-stack > * {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.1); transition: opacity 1s var(--ease), transform 1.6s var(--ease);
}
.story-stack > .is-on { opacity: 1; transform: none; }
.story-idx {
  position: absolute; z-index: 3; left: 18px; bottom: 16px; color: #fff;
  font-family: var(--disp); font-size: 12px; font-weight: 600; letter-spacing: .18em; mix-blend-mode: difference;
}
.story-steps { padding: 30vh 0 20vh; }
.story-intro { margin-bottom: 30vh; }
.story-intro .sec-title { margin: 18px 0 22px; }
.step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; opacity: .22; transition: opacity .8s var(--ease); }
.step.is-on { opacity: 1; }
.step-no { font-family: var(--disp); font-weight: 800; font-stretch: 125%; font-size: clamp(56px, 7vw, 110px); line-height: 1; color: var(--base-2); margin-bottom: 18px; }
.step h3 { font-size: clamp(20px, 2vw, 28px); margin-bottom: 14px; }
.step p { color: var(--ink-2); max-width: 26em; }
@media (max-width: 860px) {
  .story { grid-template-columns: 1fr; }
  .story-media { top: 0; height: 52vh; z-index: 3; background: var(--bone); padding-top: 60px; }
  .story-stack { aspect-ratio: auto; height: 100%; max-height: none; }
  .story-steps { padding: 6vh 0 10vh; position: relative; z-index: 2; }
  .story-intro { margin-bottom: 10vh; }
  .step { min-height: 46vh; padding: 18px 0; }
}

.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 var(--pad); }
.stat { padding: 34px 20px 30px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat-num { font-family: var(--disp); font-weight: 800; font-stretch: 115%; font-size: clamp(44px, 5.4vw, 80px); line-height: 1; }
.stat-num small { font-size: .32em; font-weight: 600; margin-left: 6px; }
.stat-num + p { color: var(--ink-2); font-size: 13px; margin-top: 12px; }
.stats-note { margin: 12px var(--pad) 0; font-size: 11.5px; color: var(--muted); }
@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-left: 0; border-top: 1px solid var(--line); }
  .stat:first-child { border-top: 0; }
}

/* ---------- オイルの帯（動画） ---------- */
.band { position: relative; margin-top: 0; height: clamp(220px, 30vw, 420px); overflow: hidden; }
.band video, .band img { position: absolute; left: 0; width: 100%; height: 130%; top: -15%; object-fit: cover; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(60, 25, 5, .1), rgba(60, 25, 5, .45)); }
.band-text {
  position: absolute; z-index: 2; inset: 0; display: grid; place-items: center; text-align: center; color: #fff; text-shadow: 0 2px 24px rgba(60, 25, 5, .45);
  font-size: clamp(22px, 3.2vw, 44px); font-weight: 700; padding: 0 var(--pad);
}
.band-text .serif { color: #fff; font-size: 1.2em; text-shadow: 0 2px 30px rgba(120, 50, 0, .35); }

/* ---------- 定期便のバナー ---------- */
.sub {
  position: relative; margin: clamp(80px, 10vw, 140px) var(--pad) 0; border-radius: 10px; overflow: hidden;
  min-height: clamp(460px, 62vh, 640px); color: var(--ink); display: flex; align-items: flex-end; background: var(--base);
}
.sub > img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; }
.sub-word {
  position: absolute; left: 0; right: 0; top: 2%; text-align: center; white-space: nowrap;
  font-family: var(--disp); font-weight: 900; font-stretch: 125%; line-height: .85; letter-spacing: -.01em;
  font-size: 18vw; color: #fff; mix-blend-mode: soft-light; pointer-events: none;
}
.sub::after { content: ""; position: absolute; inset: 0; background: linear-gradient(20deg, rgba(238, 230, 219, .85) 0%, rgba(238, 230, 219, 0) 62%); }
.sub-body { position: relative; z-index: 2; padding: clamp(24px, 4vw, 56px); max-width: 560px; }

.sub-body h2 { font-size: clamp(30px, 4vw, 54px); line-height: 1.25; margin: 16px 0 14px; }
.sub-body p { margin-bottom: 26px; font-size: 14.5px; }

/* ---------- 成分 ---------- */
.ingr { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 28px); }
.ingr-card .ingr-img { aspect-ratio: 3 / 4; overflow: hidden; border-radius: 4px; margin-bottom: 18px; }
.ingr-card .ingr-img img { width: 100%; height: 100%; object-fit: cover; }
.ingr-card h3 { font-size: 17px; margin-bottom: 8px; display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.ingr-card h3 small { font-family: var(--disp); font-size: 10px; letter-spacing: .16em; color: var(--muted); font-weight: 600; }
.ingr-card p { color: var(--ink-2); font-size: 14px; }
.ingr-card:nth-child(2) { margin-top: clamp(0px, 6vw, 90px); }
.ingr-card:nth-child(3) { margin-top: clamp(0px, 12vw, 180px); }
@media (max-width: 760px) {
  .ingr { grid-template-columns: 1fr; gap: 40px; }
  .ingr-card:nth-child(n) { margin-top: 0; }
}

/* ---------- 使い方（動画＋3ステップ） ---------- */
.ritual { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 6vw, 100px); align-items: center; }
.ritual-video { position: relative; aspect-ratio: 9 / 13; border-radius: 6px; overflow: hidden; }
.ritual-video video, .ritual-video img { width: 100%; height: 100%; object-fit: cover; }
.ritual-list { list-style: none; padding: 0; margin: 34px 0 34px; counter-reset: r; }
.ritual-list li { counter-increment: r; display: grid; grid-template-columns: 56px 1fr; gap: 6px; padding: 22px 0; border-top: 1px solid var(--line); }
.ritual-list li:last-child { border-bottom: 1px solid var(--line); }
.ritual-list li::before { content: "0" counter(r); font-family: var(--disp); font-weight: 700; color: var(--yuzu); font-size: 14px; padding-top: 3px; }
@media (max-width: 760px) { .ritual { grid-template-columns: 1fr; } .ritual-video { aspect-ratio: 4 / 5; } }

/* ---------- レビュー ---------- */
.reviews { background: var(--base); color: var(--ink); }
.rv-score { display: flex; align-items: baseline; gap: 14px; }
.rv-score b { font-family: var(--disp); font-size: clamp(54px, 6vw, 84px); font-weight: 800; font-stretch: 115%; line-height: 1; }
.rv-score span { font-size: 13px; color: rgba(30, 23, 18, .7); }
.stars { color: var(--yuzu); letter-spacing: .14em; font-size: 13px; }
.rv-track { position: relative; min-height: 290px; }
.rv {
  position: absolute; inset: 0; display: grid; grid-template-columns: 160px 1fr; gap: clamp(20px, 4vw, 56px); align-items: center;
  opacity: 0; pointer-events: none;
}
.rv.is-on { opacity: 1; pointer-events: auto; }
.rv .rv-img { aspect-ratio: 1; border-radius: 50%; overflow: hidden; transform: scale(.85); transition: transform 1.2s var(--ease); }
.rv.is-on .rv-img { transform: none; }
.rv .rv-img img { width: 100%; height: 100%; object-fit: cover; }
.rv blockquote { margin: 0; font-size: clamp(19px, 2.2vw, 30px); line-height: 1.7; font-weight: 500; }
.rv blockquote .line > span { transform: translateY(110%); transition: transform 1s var(--ease); }
.rv.is-on blockquote .line > span { transform: none; }
.rv figcaption { margin-top: 18px; font-size: 12.5px; color: rgba(30, 23, 18, .65); }
.rv-nav { display: flex; align-items: center; gap: 18px; margin-top: 40px; }
.rv-dots { display: flex; gap: 8px; }
.rv-dots button { width: 34px; height: 2px; padding: 0; border: 0; background: rgba(30, 23, 18, .25); position: relative; overflow: hidden; }
.rv-dots button span { position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.rv-dots button.is-on span { animation: rvbar 6s linear forwards; }
@keyframes rvbar { to { transform: scaleX(1); } }
.rv-note { font-size: 11.5px; color: rgba(30, 23, 18, .5); }
@media (max-width: 640px) {
  .rv-track { min-height: 430px; }
  .rv { grid-template-columns: 1fr; align-content: start; }
  .rv .rv-img { width: 96px; }
}

/* ---------- 読みもの ---------- */
.journal { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: clamp(14px, 2vw, 28px); }
.jc { text-decoration: none; display: block; }
.jc-img { overflow: hidden; border-radius: 4px; aspect-ratio: 4 / 5; margin-bottom: 16px; }
.jc:first-child .jc-img { aspect-ratio: 5 / 6; }
.jc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.jc:hover .jc-img img { transform: scale(1.06); }
.jc small { font-family: var(--disp); font-size: 10.5px; letter-spacing: .16em; color: var(--muted); font-weight: 600; }
.jc h3 { font-size: 17px; line-height: 1.6; margin-top: 6px; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; display: inline; transition: background-size .6s var(--ease); }
.jc:hover h3 { background-size: 100% 1px; }
@media (max-width: 760px) { .journal { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- メール登録＋フッター（幕が上がる） ---------- */
main { position: relative; z-index: 2; background: var(--bone); }
.news { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: end; border-top: 1px solid var(--line); }
.news form { display: flex; border-bottom: 1.5px solid var(--ink); }
.news input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 15px; padding: 14px 0; outline: none; }
.news button { background: none; border: 0; font-weight: 700; font-size: 13.5px; padding: 0 4px; }
.news .form-msg { font-size: 12px; color: var(--yuzu); margin-top: 10px; min-height: 1.6em; }
@media (max-width: 760px) { .news { grid-template-columns: 1fr; } }
.foot {
  position: sticky; bottom: 0; z-index: 1;
  background: var(--base); color: var(--ink);
  padding: 56px var(--pad) 90px; overflow: hidden;
}
.foot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; font-size: 13px; }
.foot-grid h4 { font-family: var(--disp); font-size: 10.5px; letter-spacing: .18em; margin-bottom: 12px; opacity: .75; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { text-decoration: underline; }
.foot-word {
  margin-top: 40px; line-height: .78; white-space: nowrap;
  font-family: var(--disp); font-weight: 900; font-stretch: 125%;
  display: flex; justify-content: space-between;
}
.foot-word span { display: inline-block; transform: translateY(60%); opacity: 0; transition: transform 1.2s var(--ease), opacity 1s; }
.foot.in .foot-word span { transform: none; opacity: 1; }
.foot.in .foot-word span:nth-child(2) { transition-delay: .07s; }
.foot.in .foot-word span:nth-child(3) { transition-delay: .14s; }
.foot.in .foot-word span:nth-child(4) { transition-delay: .21s; }
.foot-legal { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 11.5px; margin-top: 18px; opacity: .85; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- カート（右から出る） ---------- */
.veil { position: fixed; inset: 0; z-index: 90; background: rgba(30, 23, 18, .4); opacity: 0; pointer-events: none; transition: opacity .5s; }
.cart {
  position: fixed; z-index: 95; top: 0; right: 0; bottom: 0; width: min(440px, 100%);
  background: var(--bone); display: flex; flex-direction: column;
  transform: translateX(102%); transition: transform .75s var(--ease);
}
body.cart-open .veil { opacity: 1; pointer-events: auto; }
body.cart-open .cart { transform: none; }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.cart-head h2 { font-size: 15px; }
.cart-close { background: none; border: 0; font-size: 13px; text-decoration: underline; }
.ship { padding: 16px 24px; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.ship-bar { height: 4px; border-radius: 2px; background: var(--line); margin-top: 8px; overflow: hidden; }
.ship-bar span { display: block; height: 100%; background: var(--yuzu); width: 0; transition: width .8s var(--ease); }
.cart-items { flex: 1; overflow-y: auto; padding: 8px 24px; }
.ci { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); animation: ciin .6s var(--ease) both; }
@keyframes ciin { from { opacity: 0; transform: translateX(30px); } }
.ci img { width: 76px; height: 92px; object-fit: cover; border-radius: 3px; }
.ci h3 { font-size: 13.5px; line-height: 1.5; }
.ci p { font-size: 12px; color: var(--muted); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; margin-top: 8px; }
.qty button { background: none; border: 0; width: 30px; height: 30px; }
.qty span { min-width: 18px; text-align: center; font-size: 13px; }
.ci .price { text-align: right; }
.ci-rm { display: block; margin-top: 10px; background: none; border: 0; padding: 0; font-size: 11.5px; color: var(--muted); text-decoration: underline; margin-left: auto; }
.cart-empty { padding: 40px 0; color: var(--muted); font-size: 14px; }
.cart-foot { padding: 20px 24px 24px; border-top: 1px solid var(--line); }
.cart-sum { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 4px; }
.cart-foot small { display: block; color: var(--muted); font-size: 11.5px; margin-bottom: 14px; }
.cart-foot .btn { width: 100%; justify-content: center; }
.cart-msg { font-size: 12px; color: var(--yuzu); margin-top: 10px; min-height: 1.5em; }

/* ---------- カーソル ---------- */
.cursor {
  position: fixed; z-index: 99; left: 0; top: 0; pointer-events: none;
  width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%;
  background: var(--yuzu); color: #fff; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; letter-spacing: .08em;
  transform: translate3d(var(--x, -200px), var(--y, -200px), 0) scale(0);
  transition: transform .45s var(--ease);
}
.cursor.is-on { transform: translate3d(var(--x), var(--y), 0) scale(1); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- ページ切り替え ---------- */
.wipe { position: fixed; inset: 0; z-index: 200; background: var(--base); pointer-events: none; transform: scaleY(0); transform-origin: bottom; }
.wipe.is-in { transform: scaleY(1); transition: transform .6s var(--ease-in); }
.wipe.is-leave { transform: scaleY(1); transform-origin: top; }
.wipe.is-leave.go { transform: scaleY(0); transition: transform .8s var(--ease-in); }

/* ---------- デモの案内 ---------- */
.demo-bar {
  position: fixed; z-index: 120; left: 14px; bottom: 14px;
  max-width: min(620px, calc(100% - 28px));
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 10px 14px 10px 16px;
  background: rgba(10, 10, 10, .92); color: #fff;
  border-left: 3px solid #F25F1A;
  font-size: 11.5px; line-height: 1.6; letter-spacing: .02em;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.demo-bar p { flex: 1 1 280px; }
.demo-bar small { display: block; color: rgba(255, 255, 255, .62); font-size: 10.5px; }
.demo-bar a { flex: 0 0 auto; color: #F25F1A; text-decoration: none; font-weight: 700; border-bottom: 1px solid rgba(242, 95, 26, .5); white-space: nowrap; }
.demo-bar a:hover { color: #fff; border-color: #fff; }

/* =========================================================
   商品ページ
   ========================================================= */
.pdp { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 70px); padding: 110px var(--pad) 0; }
.pdp-gallery { display: grid; gap: 10px; }
.pdp-gallery figure { margin: 0; border-radius: 4px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--paper); }
.pdp-gallery figure:nth-child(2), .pdp-gallery figure:nth-child(3) { aspect-ratio: 1; }
.pdp-gallery .duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pdp-gallery img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info { position: sticky; top: 90px; align-self: start; padding-bottom: 40px; }
.crumb { font-size: 12px; color: var(--muted); margin-bottom: 26px; }
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--ink); }
.pdp-info h1 { font-size: clamp(25px, 3vw, 42px); line-height: 1.35; margin: 14px 0 10px; }
.pdp-rate { display: flex; gap: 10px; align-items: center; font-size: 12.5px; color: var(--ink-2); }
.pdp-price { font-family: var(--disp); font-size: 26px; font-weight: 700; margin: 22px 0 4px; display: flex; align-items: baseline; gap: 12px; }
.pdp-price s { font-size: 15px; color: var(--muted); font-weight: 400; }
.pdp-price small { font-family: var(--sans); font-size: 12px; color: var(--muted); font-weight: 400; }
.pdp-lead { color: var(--ink-2); margin: 18px 0 26px; }
.opt-label { font-size: 12px; font-weight: 700; margin-bottom: 10px; letter-spacing: .06em; }
.sizes { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.sizes button { border: 1px solid var(--line); background: none; border-radius: 999px; padding: 9px 18px; font-size: 13px; transition: background .3s, color .3s, border-color .3s; }
.sizes button.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.buy { display: grid; gap: 8px; margin-bottom: 22px; }
.buy label { display: grid; grid-template-columns: 20px 1fr auto; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; cursor: pointer; transition: border-color .3s, background .3s; }
.buy label:has(input:checked) { border-color: var(--ink); background: #fff; }
.buy input { accent-color: var(--yuzu); width: 16px; height: 16px; margin: 0; }
.buy b { font-size: 13.5px; }
.buy small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 400; }
.buy .tagoff { background: var(--yuzu); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.buy select { grid-column: 2 / 4; font: inherit; font-size: 13px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--bone); display: none; }
.buy label:has(input:checked) select { display: block; }
.atc { display: flex; gap: 10px; }
.atc .qty { margin: 0; height: 52px; padding: 0 6px; }
.atc .qty button { height: 50px; }
.atc .btn { flex: 1; justify-content: space-between; height: 52px; }
.atc .btn.done::before { transform: none; }
.pdp-notes { list-style: none; padding: 0; margin: 20px 0 30px; font-size: 12.5px; color: var(--ink-2); display: grid; gap: 4px; }
.pdp-notes li::before { content: "— "; color: var(--yuzu); }
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; display: flex; justify-content: space-between; padding: 16px 0; font-size: 14px; font-weight: 700; cursor: pointer; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-weight: 400; transition: transform .4s var(--ease); }
.acc details[open] summary::after { transform: rotate(45deg); }
.acc .acc-body { overflow: hidden; font-size: 13.5px; color: var(--ink-2); padding-bottom: 18px; }
.feat { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(60px, 8vw, 110px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-inline: var(--pad); }
.feat div { padding: 30px 22px; border-left: 1px solid var(--line); }
.feat div:first-child { border-left: 0; }
.feat b { display: block; font-family: var(--disp); font-weight: 800; font-stretch: 115%; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.1; margin-bottom: 8px; }
.feat p { font-size: 13px; color: var(--ink-2); }
.rv-dist { display: grid; gap: 6px; font-size: 12px; max-width: 320px; }
.rv-dist div { display: grid; grid-template-columns: 26px 1fr 34px; gap: 10px; align-items: center; }
.rv-dist i { height: 4px; background: rgba(30, 23, 18, .2); border-radius: 2px; overflow: hidden; }
.rv-dist i::after { content: ""; display: block; height: 100%; width: var(--w); background: var(--yuzu); transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease); }
.in .rv-dist i::after, .rv-dist.in i::after { transform: none; }
.rv-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.rv-card { border: 1px solid rgba(30, 23, 18, .18); border-radius: 6px; padding: 24px; }
.rv-card p { font-size: 14px; margin: 12px 0 14px; }
.rv-card small { font-size: 11.5px; color: rgba(30, 23, 18, .6); }
@media (max-width: 860px) {
  .pdp { grid-template-columns: minmax(0, 1fr); padding-top: 96px; }
  .pdp-info { min-width: 0; }
  .pdp-gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad); scrollbar-width: none; }
  .pdp-gallery::-webkit-scrollbar { display: none; }
  .pdp-gallery figure, .pdp-gallery .duo { flex: 0 0 86%; scroll-snap-align: center; }
  .pdp-gallery .duo { display: contents; }
  .pdp-gallery figure:nth-child(n) { aspect-ratio: 4 / 5; }
  .pdp-info { position: static; }
  .feat, .rv-list { grid-template-columns: 1fr; }
  .feat div { border-left: 0; border-top: 1px solid var(--line); }
  .feat div:first-child { border-top: 0; }
}
.sticky-atc {
  position: fixed; z-index: 70; left: 0; right: 0; bottom: 0;
  background: var(--bone); border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px; padding: 10px var(--pad) 12px;
  transform: translateY(105%); transition: transform .6s var(--ease);
}
.sticky-atc.is-on { transform: none; }
.sticky-atc img { width: 44px; height: 54px; object-fit: cover; border-radius: 3px; }
.sticky-atc div { flex: 1; min-width: 0; font-size: 13px; line-height: 1.5; }
.sticky-atc b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sticky-atc .btn { padding: 12px 20px; }
body.has-sticky .demo-bar { bottom: 90px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  [data-reveal], [data-mask] { opacity: 1; transform: none; clip-path: none; }
}

/* phrase-wrap (2026-10-29) */
body { word-break: keep-all; overflow-wrap: break-word; line-break: strict; }
body * { word-break: keep-all !important; }
p, li, dd, td { text-wrap: pretty; }

/* fit-lines (2026-10-29): スマホでは見出しを行ごとに固定し、どの機種でも同じ改行にする */
.fit .l { white-space: normal; }
@media (max-width: 760px) {
  .fit .l { display: block; white-space: nowrap; font-size: min(1em, calc((100vw - var(--g, 40px)) / var(--n))); }
  .fit wbr { display: none; }
}
