/* Scene Palette 公式ホームページ — 黒×赤（2026-11-30 本人指定） */
:root {
  --bg: #0b0b0b;
  --surface: #181818;
  --surface-2: #222222;
  --line: #2e2e2e;
  --text: #ffffff;
  --text-2: #e5e5e5;
  --muted: #a3a3a3;
  --red: #e50914;        /* アプリのロゴと同じ赤。白文字とのコントラスト 4.79 */
  --red-press: #c40812;
  --radius: 6px;
  --gutter: 16px;
  --max: 1120px;
  --header-h: 60px;
  --font: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-2);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { color: var(--text); line-height: 1.35; margin: 0; }
h1 { font-weight: 900; letter-spacing: .01em; }
h2 { font-weight: 900; font-size: clamp(1.45rem, 4.6vw, 2.1rem); }
h3 { font-weight: 700; font-size: 1.08rem; }
ul, ol { margin: 0; padding: 0; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; z-index: 100; background: #fff; color: #000; padding: 8px 12px; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  background: linear-gradient(to bottom, rgba(0,0,0,.85), rgba(0,0,0,0));
  transition: background-color .25s ease;
}
.site-header.is-solid { background: #000; }
.site-header .bar { display: flex; align-items: center; gap: 12px; height: 100%; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); font-weight: 900; letter-spacing: .06em; font-size: 1.05rem; white-space: nowrap; }
.logo img { width: 30px; height: 30px; }
.nav-desktop { display: none; margin-left: 20px; gap: 22px; }
.nav-desktop a { color: var(--text-2); text-decoration: none; font-size: .92rem; }
.nav-desktop a:hover, .nav-desktop a[aria-current="page"] { color: var(--text); }
.nav-desktop a[aria-current="page"] { font-weight: 700; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.menu { position: relative; }
.menu > summary {
  list-style: none; cursor: pointer; color: var(--text);
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--radius);
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary svg { width: 22px; height: 22px; }
.menu[open] > summary { background: var(--surface-2); }
.menu nav {
  position: fixed; top: var(--header-h); left: 0; right: 0;
  background: #000; border-top: 1px solid var(--line);
  padding: 8px var(--gutter) 20px;
}
.menu nav a { display: block; padding: 14px 4px; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line); font-weight: 700; }
@media (min-width: 960px) {
  .nav-desktop { display: flex; }
  .menu { display: none; }
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: var(--radius);
  font-weight: 700; font-size: 1rem; text-decoration: none; white-space: nowrap;
  transition: background-color .15s ease, transform .15s ease;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-press); }
.btn-ghost { background: rgba(109,109,110,.7); color: #fff; }
.btn-ghost:hover { background: rgba(109,109,110,.5); }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: .86rem; }
.btn svg { width: 18px; height: 18px; }
.cta { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.cta .btns { display: flex; flex-wrap: wrap; gap: 10px; }
.cta .note { color: var(--muted); font-size: .84rem; margin: 0; }
@media (max-width: 420px) { .cta .btns .btn { flex: 1 1 100%; } }

/* ---------- ファーストビュー ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: calc(var(--header-h) + 56px) 0 56px;
  min-height: min(92svh, 760px);
  display: flex; align-items: flex-end;
}
.hero.sub { min-height: 0; padding-bottom: 40px; padding-top: calc(var(--header-h) + 48px); }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg .glow {
  position: absolute; inset: -20% -40% auto auto; width: 120%; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(229,9,20,.32), rgba(229,9,20,0) 70%);
}
.hero-bg .loop { position: absolute; right: -18%; top: 6%; width: 110%; max-width: 980px; opacity: .22; }
.hero.sub .hero-bg .loop { width: 70%; right: -14%; top: -10%; opacity: .16; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(11,11,11,.35) 0%, rgba(11,11,11,.55) 45%, var(--bg) 100%);
}
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-weight: 700; font-size: .86rem; letter-spacing: .04em; margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 22px; height: 3px; background: var(--red); border-radius: 2px; }
.hero h1 { font-size: clamp(2.1rem, 9vw, 4.2rem); max-width: 16em; }
.hero.sub h1 { font-size: clamp(1.75rem, 7vw, 3rem); }
.hero .lead { margin-top: 18px; font-size: 1.02rem; color: var(--text-2); max-width: 40em; }
.hero .price-line { display: inline-block; margin-top: 14px; font-weight: 700; color: var(--text); border-left: 3px solid var(--red); padding-left: 10px; }

/* ---------- 区切り ---------- */
.section { padding: 48px 0; }
.section + .section { padding-top: 16px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-head a { color: var(--muted); font-size: .9rem; white-space: nowrap; text-decoration: none; }
.section-head a:hover { color: var(--text); text-decoration: underline; }
.section .intro { margin-top: 10px; max-width: 44em; }
.more { display: inline-block; margin-top: 18px; color: var(--text); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--red); padding-bottom: 2px; }
.more:hover { color: #fff; border-color: #fff; }
.after-rail { margin-top: 16px; }

/* こんなことはありませんか */
.pains { list-style: none; display: grid; gap: 10px; margin-top: 18px; }
.pains li { background: var(--surface); border-left: 3px solid var(--red); padding: 14px 16px; border-radius: 0 var(--radius) var(--radius) 0; color: var(--text); }

/* ---------- 横に流れるカードの列 ---------- */
.rail {
  list-style: none; display: grid; grid-auto-flow: column;
  grid-auto-columns: 78%; gap: 12px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-left: var(--gutter);
  padding: 6px var(--gutter) 18px; margin: 0 calc(var(--gutter) * -1);
  scrollbar-width: thin; scrollbar-color: #444 transparent;
}
.rail > li { scroll-snap-align: start; }
@media (min-width: 640px) { .rail { grid-auto-columns: 46%; } }
@media (min-width: 960px) { .rail { grid-auto-columns: calc((100% - 36px) / 3.3); } .rail.two { grid-auto-columns: calc((100% - 12px) / 2); } }
.card {
  height: 100%; background: var(--surface); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover, .card:focus-within { transform: scale(1.03); box-shadow: 0 10px 28px rgba(0,0,0,.6); }
.card .visual {
  aspect-ratio: 16 / 9; position: relative;
  background: linear-gradient(135deg, #2a0a0c 0%, #141414 60%);
  display: flex; align-items: flex-end; padding: 14px 16px;
}
.card .visual.slim { aspect-ratio: auto; height: 64px; }
.card .visual.slim svg { width: 30px; height: 30px; top: 17px; }
.card .visual .num {font-size: 3.4rem; font-weight: 900; line-height: 1; color: var(--red); }
.card .visual svg { position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; color: #fff; opacity: .9; }
.card .tag { position: absolute; left: 14px; top: 12px; font-size: .74rem; font-weight: 700; color: #fff; background: rgba(0,0,0,.55); border: 1px solid #444; padding: 2px 8px; border-radius: 3px; }
.card .body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card .body p { margin: 0; font-size: .95rem; }
.card .body .price { color: var(--text); font-weight: 900; font-size: 1.15rem; }
.card .body .btn { margin-top: auto; align-self: flex-start; }
.card.qa .body h3 { font-size: 1rem; }
.card.qa .body h3::before { content: "Q. "; color: var(--red); }

/* 番号付きリスト（流れ） */
.steps { list-style: none; counter-reset: s; display: grid; gap: 0; margin-top: 18px; position: relative; }
.steps > li { counter-increment: s; position: relative; padding: 0 0 22px 56px; }
.steps > li::before {
  content: counter(s); position: absolute; left: 0; top: 0;
  width: 38px; height: 38px; border-radius: 50%; background: var(--red); color: #fff;
  display: grid; place-items: center; font-weight: 900;
}
.steps > li::after { content: ""; position: absolute; left: 18px; top: 40px; bottom: 2px; width: 2px; background: var(--line); }
.steps > li:last-child::after { display: none; }
.steps > li:last-child { padding-bottom: 0; }
.steps h3 { padding-top: 6px; }
.steps p { margin: 4px 0 0; }

/* 30日の流れ（時間軸） */
.timeline { list-style: none; display: grid; gap: 10px; margin-top: 18px; }
.timeline li { display: grid; grid-template-columns: 7.2em 1fr; gap: 12px; background: var(--surface); padding: 14px 16px; border-radius: var(--radius); }
.timeline .when { color: var(--text); font-weight: 900; }
.timeline .when small { display: block; color: var(--muted); font-weight: 400; font-size: .8rem; }
@media (max-width: 420px) { .timeline li { grid-template-columns: 1fr; gap: 2px; } }

/* 箇条書き */
.list { list-style: none; display: grid; gap: 8px; margin-top: 14px; }
.list li { position: relative; padding-left: 20px; }
.list li::before { content: ""; position: absolute; left: 2px; top: .72em; width: 8px; height: 8px; background: var(--red); border-radius: 1px; }
.values { list-style: none; display: grid; gap: 14px; margin-top: 18px; counter-reset: v; }
.values li { counter-increment: v; background: var(--surface); padding: 16px; border-radius: var(--radius); }
.values li h3::before { content: counter(v, decimal-leading-zero) "  "; color: var(--red); font-weight: 900; }
.values li p { margin: 6px 0 0; }

/* 料金表 */
.table-wrap { overflow-x: auto; margin-top: 18px; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; min-width: 480px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--surface); color: var(--text); font-size: .88rem; font-weight: 700; }
tbody th { color: var(--text); font-weight: 900; white-space: nowrap; }
tbody td { color: var(--text); }
tr:last-child th, tr:last-child td { border-bottom: 0; }
tr.em th, tr.em td { box-shadow: inset 0 1px 0 var(--red), inset 0 -1px 0 var(--red); }
tr.em th { box-shadow: inset 3px 0 0 var(--red), inset 0 1px 0 var(--red), inset 0 -1px 0 var(--red); }
td.num, th.num { text-align: right; white-space: nowrap; }
/* スマホでは料金表を1行ずつの箱に積む（横スクロールさせない） */
@media (max-width: 599px) {
  .table-wrap { border: 0; overflow: visible; }
  table.stack { min-width: 0; }
  table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.stack tr { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
  table.stack tr.em { border-color: var(--red); }
  table.stack tr.em th, table.stack tr.em td { box-shadow: none; }
  table.stack th, table.stack td { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); text-align: right; white-space: normal; }
  table.stack th { display: block; text-align: left; font-size: 1.05rem; }
  table.stack td::before { content: attr(data-label); color: var(--muted); font-size: .86rem; text-align: left; font-weight: 400; }
  table.stack tr > *:last-child { border-bottom: 0; }
}
.prose { margin-top: 16px; max-width: 46em; }
.prose h3 { margin: 22px 0 6px; }
.badge-plan { display: inline-block; font-size: .78rem; font-weight: 700; color: #fff; border: 1px solid var(--red); padding: 1px 8px; border-radius: 3px; margin-left: 6px; vertical-align: 2px; }

/* よくある質問（帯の開閉） */
.faq-group { margin-top: 32px; }
.faq-group:first-of-type { margin-top: 8px; }
.faq-group h2 { font-size: clamp(1.2rem, 4vw, 1.5rem); margin-bottom: 10px; }
.faq { background: var(--surface); margin-top: 6px; border-radius: 2px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 52px 16px 16px; position: relative;
  color: var(--text); font-weight: 700; font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 18px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background: linear-gradient(#fff,#fff) center/14px 2px no-repeat, linear-gradient(#fff,#fff) center/2px 14px no-repeat;
  transition: transform .2s ease;
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq summary h3 { display: inline; font-size: inherit; font-weight: inherit; }
.faq .answer { padding: 0 16px 18px; border-top: 1px solid #000; padding-top: 14px; }
.faq .answer p { margin: 0; }

/* 運営者 */
.person { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); padding: 18px; border-radius: var(--radius); margin-top: 18px; }
.person .avatar { flex: none; width: 56px; height: 56px; border-radius: 50%; background: #000; display: grid; place-items: center; }
.person .avatar img { width: 34px; height: 34px; }
.person .name { color: var(--text); font-weight: 900; font-size: 1.1rem; margin: 0; }
.person .role { color: var(--muted); font-size: .84rem; margin: 0 0 6px; }
.person p { margin: 0; }

/* 最後のボタン */
.final { position: relative; overflow: hidden; isolation: isolate; text-align: left; padding: 56px 0 64px; margin-top: 24px; border-top: 1px solid var(--line); }
.final::before { content: ""; position: absolute; inset: auto -30% -60% auto; width: 90%; aspect-ratio: 1; z-index: -1; background: radial-gradient(closest-side, rgba(229,9,20,.22), rgba(229,9,20,0)); }
.final h2 { max-width: 18em; }

/* 本文の読み物（/about） */
.essay { max-width: 40em; }
.essay p { font-size: 1.05rem; color: var(--text-2); }
.essay .closing { color: var(--text); font-weight: 700; border-left: 3px solid var(--red); padding-left: 14px; margin-top: 28px; }

/* フッター */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; color: var(--muted); font-size: .9rem; margin-top: 24px; }
.site-footer .cols { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .site-footer .cols { grid-template-columns: 1.2fr 1fr 1fr; } }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.site-footer .login small { display: block; font-size: .78rem; }
.site-footer .copy { margin-top: 28px; font-size: .8rem; }

/* 404 */
.notfound { min-height: 70svh; display: flex; align-items: center; padding-top: var(--header-h); }
.notfound .links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* 控えめなフェードイン（JSがある時だけ隠す） */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .card:hover, .card:focus-within { transform: none; }
}

/* Scene Palette cinema catalogue */
:root { --bg:#100f12; --surface:#1d1b20; --red:#ce2c47; --red-press:#ac2038; --max:1400px; --gutter:clamp(18px,4.8vw,76px); }
.site-header {background:linear-gradient(#111016ed,#14101766,transparent);}
.site-header.is-solid {background:#100f12f5;}
.logo {font-family:Arial,sans-serif;letter-spacing:-.055em;font-size:clamp(18px,2vw,28px);}
.logo img {width:27px;height:32px;}
.feature {min-height:clamp(500px,41vw,640px);display:grid;align-items:center;padding:100px 0 50px;color:white;background-color:#211b20;background-image:linear-gradient(0deg,var(--bg),transparent 21%),linear-gradient(90deg,#111015 3%,#151117ed 30%,#18101988 55%,#25101612 85%),url('/stylist.jpg');background-position:center,center,center 43%;background-size:cover;}
.feature-copy {max-width:620px;}
.feature-brand {font:700 .78rem/1.4 Arial,sans-serif;letter-spacing:.27em;color:#ff98aa;margin:0 0 17px;}
.feature h1 {font-size:clamp(3.15rem,5.7vw,6rem);line-height:1.12;letter-spacing:-.06em;text-shadow:0 2px 16px #0005;}
.feature-lead {max-width:30em;font-size:clamp(.94rem,1.2vw,1.1rem);line-height:1.85;color:#f2e9ea;margin:18px 0;}
.feature-actions {display:flex;gap:9px;flex-wrap:wrap;}
.btn-light {background:#fff;color:#171017;} .btn-glass {background:#4b4149df;color:white;} .btn-light:hover,.btn-glass:hover {box-shadow:0 0 0 2px #f7bac6;}
.scene-section {padding:8px 0 40px;} .scene-section h2 {margin:0 0 16px;font-size:clamp(1.35rem,2.2vw,2.15rem);letter-spacing:-.04em;}
.scene-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;align-items:start;}
.scene {background:#211e23;border-radius:8px;}
.scene summary {position:relative;display:flex;align-items:flex-end;aspect-ratio:1.95;overflow:hidden;border-radius:8px;cursor:pointer;background:#31252b;isolation:isolate;list-style:none;}
.scene summary::-webkit-details-marker {display:none;}
.scene summary img,.scene summary::before {position:absolute;inset:0;width:100%;height:100%;z-index:-1;}
.scene summary img {object-fit:cover;transition:transform .2s;}
.scene summary::before {content:"";z-index:0;background:linear-gradient(0deg,#120d14ed,#190f1730 80%);}
.scene summary:hover img {transform:scale(1.035);}
.poster-text {z-index:1;margin:0 38px 16px 16px;line-height:1.3;}
.poster-text small,.poster-text strong {display:block;}
.poster-text small {font-size:.74rem;color:#ffe1e7;margin:0 0 6px;}
.poster-text strong {font-size:clamp(1rem,1.5vw,1.5rem);letter-spacing:-.035em;color:white;}
.expand {position:absolute;bottom:17px;right:12px;border:1px solid #fffc;border-radius:50%;width:24px;height:24px;display:grid;place-items:center;color:white;line-height:1;}
.expand::before {content:"+";} .scene[open] .expand::before {content:"−";}
.scene-body {padding:18px;font-size:.94rem;} .scene-body h3 {color:#ff9caf;font-size:.85rem;} .scene-body p:last-child {margin-bottom:0;}
@media(max-width:700px){
 .feature {min-height:550px;align-items:end;padding-bottom:34px;background-position:center,center,60% top;background-size:cover,cover,auto 72%;background-repeat:no-repeat;background-image:linear-gradient(0deg,var(--bg) 10%,#100f12f5 33%,#100f1230 73%),linear-gradient(90deg,#100f1266,transparent),url('/stylist.jpg');}
 .feature-brand {margin-bottom:12px;} .feature-lead {max-width:28em;margin:12px 0 16px;}
 .feature-actions .btn {min-height:43px;padding:0 14px;font-size:.85rem;}
 .scene-grid {display:flex;overflow-x:auto;align-items:flex-start;scroll-snap-type:x proximity;padding:3px 2px 12px;gap:10px;}
 .scene {flex:0 0 84%;scroll-snap-align:start;} .scene-section {padding-bottom:20px;}
}
@media(prefers-reduced-motion:reduce){.scene summary img {transition:none;}}
