/* めでてこて｜共通の見た目（墨×金茶×生成り・和紙・映画） */
@import url("https://fonts.googleapis.com/css2?family=Shippori+Mincho+B1:wght@500;600;700;800&family=Zen+Kaku+Gothic+New:wght@400;500;700&display=swap");
:root { --ink:#2b2219; --mute:#6b5a47; --gold:#d9b26a; --gold-d:#a8741f; --cream:#f6ecd8; --paper:#f3e9d6; --night:#0f0b07; --line:#06c755; --red:#b8322a; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: "Zen Kaku Gothic New", sans-serif; color: var(--ink); background: var(--night); line-height: 1.9; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
.m { font-family: "Shippori Mincho B1", serif; }
.wrap { width: min(1080px, 100% - 40px); margin: 0 auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* 帯 */
.sec { position: relative; padding: 110px 0; overflow: hidden; }
.sec.paper { background: var(--paper) url(../../src/washi.jpg) center/cover; color: var(--ink); }
.sec.paper::before { content: ""; position: absolute; inset: 0; background: rgba(243,233,214,.55); }
.sec.dark { background: var(--night); color: var(--cream); }
.sec > * { position: relative; }
.photo-band { position: absolute; inset: 0; background-size: cover; background-position: center; }
.photo-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,7,4,.78), rgba(10,7,4,.55) 50%, rgba(10,7,4,.85)); }
.grain { position: absolute; inset: 0; pointer-events: none; opacity: .16; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

/* 見出し */
.kicker { display: inline-flex; align-items: center; gap: 10px; font-family: "Shippori Mincho B1"; font-size: 13px; letter-spacing: .4em; color: var(--gold-d); }
.dark .kicker { color: var(--gold); }
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.h2 { font-family: "Shippori Mincho B1"; font-weight: 800; font-size: clamp(26px, 3.6vw, 42px); line-height: 1.45; letter-spacing: .06em; margin-top: 12px; text-wrap: balance; }
.h2 em { font-style: normal; color: var(--gold-d); } .dark .h2 em { color: var(--gold); }
.lead { font-size: clamp(15px, 1.5vw, 17px); margin-top: 18px; color: inherit; opacity: .9; }
.center { text-align: center; } .center .kicker::after { content: ""; width: 28px; height: 1px; background: currentColor; }
.mz { width: min(520px, 80%); margin: 26px auto 0; }

/* ボタン */
.btn { display: inline-flex; align-items: center; gap: 12px; background: var(--line); color: #fff; font-weight: 700; font-size: 17px; padding: 17px 32px; border-radius: 999px; text-decoration: none; position: relative; overflow: hidden; animation: pulse 2.2s infinite; }
.btn::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); animation: shine 3s infinite; }
.btn .ic { width: 30px; height: 30px; border-radius: 8px; background: #fff; color: var(--line); display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.btn .arr { margin-left: 4px; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(6,199,85,.55); } 70% { box-shadow: 0 0 0 16px rgba(6,199,85,0); } 100% { box-shadow: 0 0 0 0 rgba(6,199,85,0); } }
@keyframes shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.cta-box { text-align: center; margin-top: 36px; }
.cta-box small { display: block; font-size: 13px; letter-spacing: .1em; margin-bottom: 10px; }
.cta-box .notes { font-size: 12px; opacity: .75; margin-top: 12px; line-height: 1.7; }

/* スクロールで出てくる */
.rv { opacity: 0; transform: translateY(28px); transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1); }
.rv.on { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .12s; } .rv.d2 { transition-delay: .24s; } .rv.d3 { transition-delay: .36s; }
.float { animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* 下に付いてくるボタン（スマホ） */
.sticky { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; display: none; }
.sticky .btn { width: 100%; justify-content: center; font-size: 15px; padding: 14px; }
.sticky.hide { opacity: 0; pointer-events: none; }

/* フッター */
.foot { background: #0a0705; color: #bfae8e; font-size: 13px; padding: 46px 0 90px; text-align: center; }
.foot a { color: #e3cf9c; text-decoration: none; margin: 0 10px; }
.foot .foot-brand { font-family: "Shippori Mincho B1"; font-size: 16px; color: var(--gold); letter-spacing: .3em; margin-bottom: 12px; }

/* 下層ページ */
.page { background: var(--paper); color: var(--ink); min-height: 100vh; padding: 70px 0 90px; }
.page h1 { font-family: "Shippori Mincho B1"; font-size: 26px; margin-bottom: 26px; }
.page table { width: 100%; border-collapse: collapse; font-size: 14px; background: #fffaf0; }
.page th, .page td { border: 1px solid #d8c6a3; padding: 12px 14px; text-align: left; vertical-align: top; }
.page th { width: 30%; background: #efe2c6; font-weight: 700; }
.page h2 { font-family: "Shippori Mincho B1"; font-size: 18px; margin: 28px 0 8px; }
.page p, .page li { font-size: 14px; }
.page .back { display: inline-block; margin-top: 30px; color: var(--gold-d); }

@media (max-width: 768px) {
  .sec { padding: 76px 0; }
  .btn { font-size: 15px; padding: 15px 22px; }
  .sticky { display: block; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } .rv { opacity: 1; transform: none; } }

.nw { white-space: nowrap; display: inline-block; }
@media (max-width: 768px) { .scenes figcaption { font-size: 12px; } .book .h2 { font-size: 22px; } }
