/* ═══════════════════════════════════════════════
   PULP! STAND（架空・制作デモ）tone-83
   base #F9F6F2 / text #021F43 / accent #E8610C
   密度3/5・形まるい・白場と写真バンドの交互
   ═══════════════════════════════════════════════ */
:root {
  --base: #F9F6F2;
  --navy: #021F43;
  --accent: #E8610C;
  --accent-soft: #FDEBDD;
  --white: #FFFFFF;
  --muted: rgba(2, 31, 67, 0.62);
  --line: rgba(2, 31, 67, 0.12);
  --radius: 22px;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: auto; } /* smoothは使わない（JSアンカーで移動） */

body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  background: var(--base);
  color: var(--navy);
  line-height: 1.85;
  font-size: 16px;
  overflow-x: hidden;
  /* 日本語の改行品質（tone-83 §4.5）
     line-break: strict … 長音符「ー」・小書き仮名を行頭に置かせない（禁則）
     word-break: auto-phrase … 文節のかたまりで折り返す（語中改行の抑制）
     overflow-wrap/word-break の危険な全体指定は使わない */
  line-break: strict;
  word-break: auto-phrase;
  overflow-wrap: normal;
}
/* 表・バッジなど狭い箱だけは、はみ出し回避を優先して素の折り返しに戻す */
.reel-counter, .gauge-counter, .hp-price, .custom-fee { word-break: normal; }

img { max-width: 100%; height: auto; display: block; }

/* ── ヘッダー ── */
.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(249, 246, 242, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.head-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px clamp(16px, 4vw, 32px);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.wordmark {
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  color: var(--accent);
  white-space: nowrap;
}
.wordmark span { color: var(--navy); }
.head-sub {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.head-demo {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 1px 8px;
}

/* ── 共通 ── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
.section { padding: clamp(56px, 9vh, 96px) 0; position: relative; }

.sec-head { margin-bottom: clamp(28px, 5vh, 44px); }
.sec-num {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent);
  letter-spacing: 0.2em;
}
.sec-num::before { content: "["; opacity: 0.6; }
.sec-num::after { content: "]"; opacity: 0.6; }
h2 {
  font-size: clamp(1.7rem, 4.4vw, 2.6rem);
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1.25;
  margin-top: 6px;
  text-wrap: balance;
}
.h2-jp {
  display: block;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-top: 4px;
}
.sec-lead { margin-top: 14px; max-width: 34em; color: var(--muted); font-weight: 500; }
.sec-note { margin-top: 22px; font-size: 0.82rem; color: var(--muted); }

/* ── FV（左テキスト／右縦写真の左右分割型） ── */
.hero { position: relative; overflow: hidden; }
.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(28px, 5vh, 64px) clamp(16px, 4vw, 32px) clamp(40px, 7vh, 80px);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--accent);
}
.hero-title {
  font-size: clamp(2.3rem, 6.4vw, 4.2rem);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: 0.02em;
  margin-top: 12px;
}
.hero-en {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(0.85rem, 1.6vw, 1rem);
  letter-spacing: 0.34em;
  color: var(--navy);
  opacity: 0.55;
  margin-top: 10px;
}
.hero-lead { margin-top: 18px; max-width: 32em; font-weight: 500; }
.hero-product {
  margin-top: 20px;
  display: flex;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
}
.hp-name {
  font-weight: 700;
  font-size: 0.95rem;
  border-left: 4px solid var(--accent);
  padding-left: 12px;
  line-height: 1.5;
}
.hp-g {
  display: inline-block;
  margin-left: 10px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  padding: 0 10px;
  white-space: nowrap;
}
.hp-price {
  font-weight: 900;
  font-size: clamp(3rem, 7vw, 4.6rem);
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
}
.hp-price .yen { font-size: 0.55em; margin-right: 2px; }
.hero-cta-row { margin-top: 22px; }
.btn-cta {
  display: inline-block;
  background: var(--accent);
  color: #FFF8F1;
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  padding: 16px 42px;
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(232, 97, 12, 0.32);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn-cta:hover {
  transform: translateY(-3px);
  background: #F26F1A;
  box-shadow: 0 12px 28px rgba(232, 97, 12, 0.4);
}
.hero-info { margin-top: 18px; font-size: 0.82rem; color: var(--muted); font-weight: 500; }
.nw { display: inline-block; white-space: nowrap; }

.hero-visual { position: relative; }
.hero-visual img {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(2, 31, 67, 0.14);
}
.hero-badge {
  position: absolute;
  top: -12px;
  right: clamp(0px, 3vw, 18px);
  background: var(--navy);
  color: #FFF8F1;
  font-weight: 700;
  font-size: 0.8rem;
  border-radius: 999px;
  padding: 8px 16px;
  transform: rotate(6deg);
  box-shadow: 0 6px 16px rgba(2, 31, 67, 0.25);
}
.hero-badge b { font-size: 1.25em; color: #FFC178; margin: 0 2px; }

/* ── 01 COLOR LINEUP ── */
.sec-lineup { background: var(--white); border-top: 1px solid var(--line); }

/* リール（JS注入）。ステージ比8/5・左右ピーク・番号レール */
.reel-host { margin-bottom: clamp(28px, 5vh, 44px); }
.reel-shell { user-select: none; }
.reel-stage-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1.6vw, 18px);
  touch-action: pan-y;
}
.reel-peek {
  flex: 0 0 clamp(24px, 8vw, 130px);
  aspect-ratio: 8 / 10;
  opacity: 0.55; /* 旧0.36 + grayscale(0.25)。くすんで「中身のない灰色角丸」に見えていた */
  filter: saturate(0.95);
  border-radius: 14px;
  overflow: hidden;
}
.reel-peek canvas { width: 100%; height: 100%; display: block; }
.reel-stage-clip { position: relative; width: min(76vw, 780px); max-width: 92%; }
.reel-stage {
  position: relative;
  aspect-ratio: 8 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white); /* 旧 #0A0A0C。暗い下地＋濃いビネットで中間グレーの箱になっていた */
  border: 1px solid var(--line);
}
.reel-stage canvas { width: 100%; height: 100%; display: block; }
.reel-arrow {
  position: absolute;
  bottom: 14px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 248, 241, 0.6);
  background: rgba(2, 31, 67, 0.6); /* 白地ステージ上でも矢印が読めるように紺ベースへ */
  color: #F9F6F2;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
  z-index: 3;
}
.reel-arrow:hover { background: rgba(232, 97, 12, 0.85); transform: scale(1.06); }
.reel-arrow-prev { left: 14px; }
.reel-arrow-next { right: 14px; }

.reel-rail {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  max-width: min(76vw, 780px);
  margin-left: auto;
  margin-right: auto;
}
.reel-tick { width: 2px; height: 28px; background: var(--accent); flex: none; }
.reel-markers {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.reel-marker {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  position: relative;
  padding: 4px 6px 12px;
  transition: color 0.25s ease, font-size 0.25s ease;
}
.reel-marker.is-active {
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 700;
}
.reel-marker.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(-50%);
}
.reel-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  max-width: min(76vw, 780px);
  margin: 8px auto 0;
}
.reel-title { font-weight: 700; font-size: 1rem; }
.reel-counter { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }

.cup-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 2vw, 24px);
}
.cup-card {
  background: var(--base);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.cup-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.cup-desc {
  padding: 14px 16px 16px;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
  flex: 1;
}
.cup-band {
  background: var(--navy);
  color: #FFF8F1;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 0.9rem;
}
.cup-band b { color: #FFC178; font-size: 1.15rem; font-weight: 900; }

/* ── 02 110g OF FRUIT ── */
.sec-fruit { background: var(--base); }
.fruit-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}
.fruit-photo img {
  border-radius: var(--radius);
  box-shadow: 0 14px 36px rgba(2, 31, 67, 0.12);
}
.fruit-copy p + p { margin-top: 16px; }
.fruit-copy p { font-weight: 500; }

.scrub-wrap { margin-top: clamp(40px, 7vh, 64px); }
.scrub-title {
  font-weight: 900;
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  margin-bottom: 18px;
}
.scrub-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(14px, 2vw, 24px);
  max-width: 760px;
}
.scrub-strip figure { margin: 0; }
.scrub-strip img { border-radius: var(--radius); border: 1px solid var(--line); }
.scrub-strip figcaption {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 8px;
  letter-spacing: 0.08em;
}
.scrub-note { margin-top: 18px; font-size: 0.9rem; color: var(--muted); font-weight: 500; max-width: 36em; }

/* スクラブ・ステージ（JSが hidden を外す） */
.scrub-stage {
  position: relative;
  max-width: 760px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--navy);
}
.scrub-canvas-box { aspect-ratio: 8 / 5; }
.scrub-canvas-box canvas { width: 100%; height: 100%; display: block; }
.scrub-captions {
  position: absolute;
  left: 18px;
  bottom: 16px;
  display: grid;
}
.scrub-captions span {
  grid-area: 1 / 1;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: #FFF8F1;
  background: rgba(2, 31, 67, 0.72);
  border-radius: 999px;
  padding: 6px 16px;
  opacity: 0;
  clip-path: inset(50% 0 50% 0);
  transition: opacity 0.3s cubic-bezier(0.65, 0, 0.35, 1), clip-path 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}
.scrub-captions span.is-on { opacity: 1; clip-path: inset(0 0 0 0); }
.film-gauge {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.gauge-tape {
  display: block;
  width: 24px;
  height: 180px;
  border-radius: 8px;
  background-color: rgba(249, 246, 242, 0.14);
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(249, 246, 242, 0.85) 0 6px,
    transparent 6px 16px
  );
  background-position-y: 0;
  border: 1px solid rgba(249, 246, 242, 0.3);
}
.gauge-counter {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #FFF8F1;
  font-variant-numeric: tabular-nums;
  background: rgba(2, 31, 67, 0.72);
  border-radius: 6px;
  padding: 2px 6px;
}

/* ── 03 MAKE IT YOURS ── */
.sec-custom { background: var(--white); border-top: 1px solid var(--line); }
.custom-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 28px);
}
.custom-item {
  background: var(--base);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
}
.custom-icon { display: inline-block; width: 84px; height: 84px; }
.custom-icon svg { width: 100%; height: 100%; }
.custom-item h3 { font-size: 1.1rem; font-weight: 900; margin-top: 12px; }
.custom-item p { font-size: 0.88rem; color: var(--muted); font-weight: 500; margin-top: 8px; text-align: left; }
.custom-fee {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--mono);
  font-weight: 700;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  padding: 2px 16px;
  font-size: 0.85rem;
}
.custom-item .custom-fee { text-align: center; }

/* ── 04 STOP BY ── */
.sec-stopby { background: var(--base); }
.stopby-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
.stopby-table div {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.stopby-table dt {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  padding-top: 3px;
}
.stopby-table dd { font-weight: 500; font-size: 0.95rem; }
.dd-note { display: block; font-size: 0.78rem; color: var(--muted); }
.mini-faq { margin-top: 26px; }
.mini-faq div { padding: 12px 0; border-bottom: 1px dashed var(--line); }
.mini-faq dt { font-weight: 700; font-size: 0.92rem; }
.mini-faq dt::before { content: "Q. "; color: var(--accent); font-weight: 900; }
.mini-faq dd { font-size: 0.88rem; color: var(--muted); font-weight: 500; margin-top: 2px; }
.btn-tel {
  display: inline-block;
  margin-left: 10px;
  background: none;
  border: 1.5px solid var(--navy);
  border-radius: 999px;
  padding: 3px 14px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--navy);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn-tel:hover { background: var(--navy); color: #FFF8F1; }
.tel-note { display: block; font-size: 0.78rem; color: var(--accent); margin-top: 4px; }
.stopby-photo { position: relative; }
.stopby-photo img {
  border-radius: var(--radius);
  box-shadow: 0 14px 36px rgba(2, 31, 67, 0.14);
}
.hashtag {
  position: absolute;
  right: 16px;
  bottom: 14px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.85rem;
  color: #FFF8F1;
  background: rgba(2, 31, 67, 0.72);
  border-radius: 999px;
  padding: 6px 16px;
}
.stopby-copy { margin-top: 28px; max-width: 40em; font-weight: 500; }

/* ── クロージング（紺地・型C: 色面＋コピー＋ボタン） ── */
.closing {
  background: var(--navy);
  color: #FFF8F1;
  text-align: center;
  padding: clamp(72px, 13vh, 130px) 0;
}
.closing-en {
  font-weight: 900;
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  line-height: 1.15;
  letter-spacing: 0.03em;
}
.closing-jp { margin-top: 18px; font-weight: 500; opacity: 0.85; }
.closing .btn-cta { margin-top: 30px; }
.btn-cta-closing { box-shadow: 0 8px 26px rgba(0, 0, 0, 0.35); }

/* ── フッター ── */
.footer {
  background: var(--navy);
  color: rgba(255, 248, 241, 0.75);
  text-align: center;
  padding: 36px 20px 44px;
  border-top: 1px solid rgba(249, 246, 242, 0.14);
  font-size: 0.8rem;
}
.footer-name { font-weight: 900; font-size: 1rem; color: #FFF8F1; letter-spacing: 0.06em; }
.footer-demo { margin-top: 12px; line-height: 1.9; }
.footer-credit { margin-top: 12px; font-family: var(--mono); font-size: 0.72rem; opacity: 0.7; }

/* ── 液体グリフ（JS生成の固定キャンバス） ── */
.glyph-canvas {
  position: fixed;
  top: 0;
  /* 旧: right:-4vw / width:42vw → 実測 x=794〜1331(vw1280) で 02 の本文カラム(〜1168)に
     がっつり重なり、段落の上に L の輪郭ストロークが乗っていた。
     右マージン側へ寄せ、さらに本文側は左フェードのマスクで消す（濃度もJS側で下げた）。 */
  right: -10vw;
  width: 30vw;
  height: 100vh;
  pointer-events: none;
  z-index: 30;
  -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.5) 50%, #000 78%);
  mask-image: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.5) 50%, #000 78%);
}

/* ── FrameReveal帯（JS生成）用 ── */
.js-frame { position: relative; }
.frame-strip {
  position: absolute;
  left: -2px;
  right: -2px;
  pointer-events: none;
  z-index: 5;
}

/* ── レスポンシブ ── */
@media (max-width: 900px) {
  .head-inner { padding: 10px 16px; gap: 8px; }
  .wordmark { font-size: 1.05rem; }
  .head-sub { font-size: 0.66rem; gap: 5px; }
  .head-demo { font-size: 0.56rem; padding: 0 6px; }
  .hero-inner { grid-template-columns: 1fr; gap: 10px; padding-top: 12px; padding-bottom: 36px; }
  .hero-visual { order: -1; }
  .hero-visual img { max-width: min(46vw, 180px); border-radius: 16px; }
  .hero-badge { right: clamp(16px, 14vw, 80px); top: -8px; font-size: 0.7rem; padding: 6px 12px; }
  .hero-eyebrow { font-size: 0.66rem; letter-spacing: 0.14em; }
  .hero-title { font-size: clamp(1.75rem, 7.6vw, 2.3rem); line-height: 1.18; margin-top: 6px; }
  .hero-en { font-size: 0.72rem; margin-top: 6px; letter-spacing: 0.26em; }
  .hero-lead { font-size: 0.86rem; line-height: 1.7; margin-top: 10px; }
  .hero-product { margin-top: 10px; gap: 10px; }
  .hp-name { font-size: 0.85rem; }
  .hp-price { font-size: 2.4rem; }
  .hero-cta-row { margin-top: 12px; }
  .btn-cta { padding: 13px 30px; font-size: 0.95rem; }
  .hero-info { margin-top: 12px; font-size: 0.74rem; }
  .cup-grid { grid-template-columns: 1fr 1fr; }
  .fruit-grid { grid-template-columns: 1fr; }
  .custom-row { grid-template-columns: 1fr; }
  .custom-item { display: grid; grid-template-columns: 64px 1fr; gap: 6px 18px; text-align: left; align-items: center; }
  .custom-icon { width: 64px; height: 64px; grid-row: 1 / 4; }
  .custom-item h3 { margin-top: 0; }
  .custom-item .custom-fee { justify-self: start; }
  .stopby-grid { grid-template-columns: 1fr; }
  .glyph-canvas { display: none; }
  .reel-peek { display: none; }
  .reel-stage-clip { width: 100%; max-width: 100%; }
  .reel-rail, .reel-meta { max-width: 100%; }
}

@media (max-width: 560px) {
  .cup-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cup-desc { font-size: 0.78rem; padding: 10px 12px 12px; }
  .cup-band { font-size: 0.78rem; padding: 10px 12px; }
  .cup-band b { font-size: 1rem; }
  .scrub-strip { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stopby-table div { grid-template-columns: 92px 1fr; }
  .hero-eyebrow { font-size: 0.68rem; letter-spacing: 0.16em; }
}

/* ── prefers-reduced-motion: 全演出を無効化（静止レイアウトで成立） ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
}
