/* 全画面で見比べるページ（watch.html）。動画が映えるよう、ここだけ濃いこげ茶の地にする。色はサイトのトークンに合わせる */
:root {
  --bg: #1F1B17; --bg-2: #2E2721; --ink: #FFFBF0; --sub: #CFC4B4; --line: rgba(255, 251, 240, .18);
  --gold: #E3C16A; --yellow: #F6D15C; --cta: #E0603C; --cta-top: #EC7A55; --cta-deep: #B8431F;
  --ja: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  --en: "Cormorant Garamond", "Zen Maru Gothic", serif;
  --top: calc(env(safe-area-inset-top, 0px) + 64px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: var(--bg); color: var(--ink); font-family: var(--ja); font-weight: 500; overflow: hidden; -webkit-text-size-adjust: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ---------- 上の帯 ---------- */
.w-top { position: fixed; z-index: 20; inset: 0 0 auto 0; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) 12px 10px; background: linear-gradient(180deg, rgba(20, 17, 14, .86), rgba(20, 17, 14, 0)); pointer-events: none; }
.w-top > * { pointer-events: auto; }
.w-round { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 251, 240, .1); border: 1px solid var(--line); }
.w-round svg { width: 22px; height: 22px; }
.w-round.sm { width: 40px; height: 40px; }
#wMute .on, #wMute[aria-pressed="true"] .off { display: none; }
#wMute[aria-pressed="true"] .on { display: block; }
#wMute[aria-pressed="true"] { background: var(--yellow); color: #3B3530; border-color: var(--yellow); }
.w-tabs { display: flex; padding: 4px; border-radius: 999px; background: rgba(255, 251, 240, .1); border: 1px solid var(--line); }
.w-tabs a { min-height: 36px; display: grid; place-items: center; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--sub); white-space: nowrap; }
.w-tabs a[aria-current] { background: var(--ink); color: #3B3530; }

/* ---------- 1画面に1本 ---------- */
.w-feed { height: 100vh; height: 100dvh; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; outline: none; }
.w-feed::-webkit-scrollbar { display: none; }
.w-slide { position: relative; height: 100vh; height: 100dvh; scroll-snap-align: start; scroll-snap-stop: always; display: flex; flex-direction: column; justify-content: center;
  padding: var(--top) 0 calc(env(safe-area-inset-bottom, 0px) + 44px); background: radial-gradient(120% 60% at 50% 46%, var(--bg-2), var(--bg) 70%); }
.w-in { width: 100%; max-width: 620px; margin: 0 auto; }
.w-video { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.w-video video, .w-video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.w-video video { opacity: 0; transition: opacity .25s; }
.w-video.is-on video { opacity: 1; }
.w-tap { position: absolute; inset: 0; display: grid; place-items: center; }
.w-tap span { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 50%; background: rgba(20, 17, 14, .55); opacity: 0; transition: opacity .2s; }
.w-tap span svg { width: 30px; height: 30px; fill: currentColor; stroke: none; }
.w-video.is-paused .w-tap span { opacity: 1; }
/* 音を出す前だけ、動画の上に案内を出す（はじめて触ると音が出る） */
.w-sound { display: none; position: absolute; left: 10px; bottom: 10px; padding: 5px 12px; border-radius: 999px; background: rgba(20, 17, 14, .7); font-size: 12px; font-weight: 700; pointer-events: none; }
.w-first .w-sound { display: block; }
.w-first .w-video.is-paused .w-tap span { opacity: 0; }
.w-ctl { display: flex; align-items: center; gap: 12px; padding: 10px 18px 0; font-size: 12px; color: var(--sub); font-variant-numeric: tabular-nums; }
.w-ctl input { flex: 1; min-width: 0; height: 28px; appearance: none; -webkit-appearance: none; background: transparent; --p: 0%; }
.w-ctl input::-webkit-slider-runnable-track { height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--gold) var(--p), var(--line) var(--p)); }
.w-ctl input::-moz-range-track { height: 3px; border-radius: 3px; background: var(--line); }
.w-ctl input::-moz-range-progress { height: 3px; border-radius: 3px; background: var(--gold); }
.w-ctl input::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5.5px; border-radius: 50%; background: var(--gold); }
.w-ctl input::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: var(--gold); }

.w-info { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; padding: 14px 18px 0; align-items: start; }
.w-info .en { font-family: var(--en); font-style: italic; font-weight: 600; font-size: 16px; color: var(--gold); line-height: 1.2; }
.w-info h2 { font-size: clamp(26px, 8vw, 34px); font-weight: 900; line-height: 1.2; letter-spacing: .02em; }
.w-catch { font-size: 13px; color: var(--sub); line-height: 1.6; margin-top: 4px; }
.w-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-top: 10px; }
.w-price { font-size: 28px; font-weight: 900; color: var(--yellow); font-variant-numeric: tabular-nums; line-height: 1.1; }
.w-price small { font-size: 12px; font-weight: 500; color: var(--sub); margin-left: 4px; }
.w-spec { font-size: 13px; color: var(--sub); }
.w-save { grid-row: span 3; display: grid; justify-items: center; gap: 4px; font-size: 11px; font-weight: 700; color: var(--sub); }
.w-save i { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 251, 240, .1); border: 1px solid var(--line); transition: transform .2s, background .2s; }
.w-save svg { width: 26px; height: 26px; }
.w-save[aria-pressed="true"] { color: var(--yellow); }
.w-save[aria-pressed="true"] i { background: var(--yellow); border-color: var(--yellow); color: var(--cta); transform: scale(1.06); }
.w-save[aria-pressed="true"] svg { fill: currentColor; }
.w-btns { grid-column: 1 / -1; display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; margin-top: 14px; }
.w-btn { min-height: 52px; display: grid; place-items: center; padding: 6px 12px; border-radius: 999px; font-size: 15px; font-weight: 700; text-align: center; line-height: 1.3; border: 1px solid var(--line); background: rgba(255, 251, 240, .06); }
.w-btn.main { border: 0; color: #fff; background: linear-gradient(180deg, var(--cta-top), var(--cta)); box-shadow: 0 3px 0 var(--cta-deep); }
/* 「このムービーを申し込む」に、ときどき光がななめに横切る（style.css の .btn.shine と同じ動き） */
.w-info .w-btn.main { position: relative; overflow: hidden; }
.w-info .w-btn.main::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; pointer-events: none;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .15) 30%, rgba(255, 255, 255, .7) 50%, rgba(255, 255, 255, .15) 70%, rgba(255, 255, 255, 0) 100%);
  transform: translateX(-140%) skewX(-18deg); animation: btn-shine 4.5s ease-in-out 1.2s infinite;
}
@keyframes btn-shine { 0%, 82% { transform: translateX(-140%) skewX(-18deg); } 100% { transform: translateX(300%) skewX(-18deg); } }
@media (prefers-reduced-motion: reduce) { .w-info .w-btn.main::after { display: none; } }
.w-hint { position: absolute; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom, 0px) + 60px); text-align: center; font-size: 12px; color: var(--sub); letter-spacing: .08em; }
.w-hint::before { content: ""; display: block; width: 1px; height: 14px; margin: 0 auto 4px; background: var(--sub); animation: w-up 1.6s ease-in-out infinite; }
@keyframes w-up { 0%, 100% { transform: translateY(4px); opacity: .3; } 50% { transform: translateY(-2px); opacity: 1; } }

/* ---------- 最後の画面 ---------- */
.w-end .w-in { padding: 0 24px; text-align: center; }
.w-end .en { font-family: var(--en); font-style: italic; font-weight: 600; font-size: 20px; color: var(--gold); }
.w-end h2 { font-size: 30px; font-weight: 900; margin: 6px 0 12px; }
.w-end p { font-size: 14px; line-height: 1.9; color: var(--sub); }
.w-end .w-btn { margin-top: 12px; }
.w-end .w-btn:first-of-type { margin-top: 24px; }

/* ---------- 保存したムービー ---------- */
.w-saved-btn { position: fixed; z-index: 15; right: 12px; bottom: calc(env(safe-area-inset-bottom, 0px) + 10px); min-height: 40px; display: flex; align-items: center; gap: 6px; padding: 0 14px;
  border-radius: 999px; background: var(--yellow); color: #3B3530; font-size: 13px; font-weight: 700; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.w-saved-btn svg { width: 16px; height: 16px; fill: var(--cta); stroke: var(--cta); }
.w-sheet { position: fixed; z-index: 30; inset: 0; display: flex; align-items: flex-end; justify-content: center; }
.w-sheet[hidden] { display: none; }
.w-sheet-bg { position: absolute; inset: 0; background: rgba(10, 8, 6, .6); }
.w-sheet-in { position: relative; width: 100%; max-width: 620px; max-height: 82dvh; overflow-y: auto; background: #FFFBF0; color: #3B3530; border-radius: 24px 24px 0 0; padding: 18px 18px calc(env(safe-area-inset-bottom, 0px) + 20px); }
.w-sheet-in header { display: grid; grid-template-columns: 1fr auto; align-items: center; margin-bottom: 10px; }
.w-sheet-in header .en { font-family: var(--en); font-style: italic; font-weight: 600; color: #B88A2E; font-size: 16px; }
.w-sheet-in header h2 { font-size: 20px; font-weight: 900; grid-column: 1; }
.w-sheet-in header .w-round { grid-column: 2; grid-row: 1 / 3; background: #fff; border-color: #EFE7D6; }
.w-sheet-in ul { list-style: none; display: grid; gap: 10px; }
.w-sheet-in li { display: grid; grid-template-columns: 112px 1fr; gap: 12px; align-items: center; background: #fff; border: 1px solid #EFE7D6; border-radius: 16px; padding: 8px; }
.w-sheet-in li img { width: 112px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; display: block; }
.w-sheet-in li b { display: block; font-size: 16px; font-weight: 900; }
.w-sheet-in li small { display: block; font-size: 12px; color: #6F665D; }
.w-sheet-in li .acts { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; font-size: 13px; font-weight: 700; }
.w-sheet-in li .acts a, .w-sheet-in li .acts button { min-height: 32px; display: inline-flex; align-items: center; text-decoration: underline; text-underline-offset: 3px; }
.w-sheet-in li .acts a.go { color: #D2502C; }
.w-sheet-in li .acts button { color: #6F665D; font-weight: 500; }
.w-set { display: block; margin-top: 14px; padding: 14px 16px; border-radius: 16px; text-align: center; color: #fff; font-weight: 700; background: linear-gradient(180deg, var(--cta-top), var(--cta)); box-shadow: 0 3px 0 var(--cta-deep); }
.w-set small { display: block; font-weight: 500; font-size: 12px; opacity: .92; }
.w-set-tip { margin-top: 12px; font-size: 13px; line-height: 1.7; color: #6F665D; }
.w-empty { font-size: 14px; line-height: 1.8; color: #6F665D; padding: 8px 2px; }
.w-sheet-note { margin-top: 12px; font-size: 12px; color: #6F665D; }

/* 横向き・パソコン：動画を左、説明を右に */
@media (min-width: 900px), (orientation: landscape) and (max-height: 560px) {
  .w-in { max-width: 1120px; display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); align-items: center; gap: 0 12px; padding: 0 20px; }
  .w-end .w-in { display: block; max-width: 520px; }
  .w-video { grid-row: 1; border-radius: 14px; }
  .w-ctl { grid-row: 2; grid-column: 1; padding: 8px 4px 0; }
  .w-info { grid-row: 1 / 3; grid-column: 2; }
}
@media (orientation: landscape) and (max-height: 560px) {
  .w-slide { padding-top: calc(env(safe-area-inset-top, 0px) + 60px); padding-bottom: 8px; }
  .w-info h2 { font-size: 22px; } .w-catch { display: none; } .w-btns { grid-template-columns: 1fr; gap: 8px; } .w-btn { min-height: 44px; } .w-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) { .w-hint::before { animation: none; } .w-feed { scroll-behavior: auto; } }
