/*
Theme Name: 369 IV Archive
Theme URI: https://369iv.jp/
Author: 369 Inc.
Description: Cinematic dark archive theme for 369 IV Streaming. Criterion-style presentation of Japanese image video for an international audience.
Version: 1.0.0
Requires PHP: 7.4
Text Domain: iv369theme
*/

:root {
	--bg: #0e0e12;
	--surface: #16161c;
	--surface-2: #1d1d25;
	--line: #2a2a33;
	--text: #e8e6e1;
	--muted: #9a97a0;
	--accent: #c1272d;
	--gold: #c9a86a;
	--serif: "Cormorant Garamond", "Times New Roman", serif;
	--sans: "Inter", -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--text); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold); }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(14,14,18,.92);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
}
.site-header .inner {
	max-width: 1200px; margin: 0 auto; padding: 14px 24px;
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 46px; width: auto; display: block; }
.brand .iv {
	font-size: 11px; letter-spacing: .34em; color: var(--gold);
	text-transform: uppercase; font-weight: 600; padding-bottom: 2px;
}
.site-header .inner { padding-top: 10px; padding-bottom: 10px; }
.site-nav { display: flex; align-items: center; gap: 26px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.site-nav a { color: var(--muted); }
.site-nav a:hover { color: var(--text); }
.site-nav .nav-cta {
	color: #fff; background: var(--accent); padding: 8px 18px; border-radius: 3px;
	letter-spacing: .12em;
}
.site-nav .nav-cta:hover { background: #a81f25; color: #fff; }

/* ---------- Hero ---------- */
.hero {
	position: relative; min-height: 68vh; display: flex; align-items: center;
	background: url(assets/hero.jpg) center/cover no-repeat;
}
.hero::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(14,14,18,.55) 0%, rgba(14,14,18,.35) 45%, var(--bg) 100%);
}
.hero .inner { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 90px 24px; }
.hero .miroku {
	position: absolute; z-index: 1; right: 5vw; top: 50%; transform: translateY(-52%) rotate(-3deg);
	font-family: "Yuji Mai", serif; writing-mode: vertical-rl;
	font-size: clamp(110px, 19vw, 260px); line-height: 1; letter-spacing: .04em;
	color: var(--gold); opacity: .055; pointer-events: none; user-select: none;
}
@media (max-width: 760px) { .hero .miroku { opacity: .04; right: 0; } }
.hero-logo { height: 130px; width: auto; display: block; margin-bottom: 22px; filter: drop-shadow(0 6px 22px rgba(0,0,0,.5)); }
@media (max-width: 760px) { .hero-logo { height: 96px; } }
.hero .kicker {
	font-size: 12px; letter-spacing: .4em; text-transform: uppercase; color: var(--gold);
	margin-bottom: 18px;
}
.hero h1 {
	font-family: var(--serif); font-weight: 500; font-size: clamp(38px, 6vw, 64px);
	line-height: 1.15; margin: 0 0 18px; max-width: 15ch;
}
.hero p.lead { color: var(--muted); max-width: 52ch; font-size: 17px; margin: 0 0 30px; }
.btn {
	display: inline-block; padding: 14px 34px; border-radius: 3px; font-size: 13px;
	letter-spacing: .18em; text-transform: uppercase; font-weight: 600;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #a81f25; color: #fff; }
.btn-ghost { border: 1px solid var(--line); color: var(--text); margin-left: 12px; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.hero .marks { margin-top: 40px; display: flex; gap: 28px; flex-wrap: wrap; font-size: 12px; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
.hero .marks span::before { content: "— "; color: var(--gold); }

/* ---------- Sections ---------- */
.section { max-width: 1200px; margin: 0 auto; padding: 70px 24px; }
.section-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 34px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.section-head h2 { font-family: var(--serif); font-weight: 500; font-size: 32px; margin: 0; }
.section-head .en { font-size: 11px; letter-spacing: .3em; color: var(--gold); text-transform: uppercase; }
.section-head .section-more { margin-left: auto; font-size: 12px; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; white-space: nowrap; }
.section-head .section-more:hover { color: var(--gold); }
.section-lead { color: var(--muted); margin: -18px 0 26px; font-size: 15px; }

/* ---------- Persona / collectors section ---------- */
.collectors { display: grid; grid-template-columns: 1.1fr 1fr; gap: 46px; align-items: center; }
.collectors img { border-radius: 4px; border: 1px solid var(--line); }
.collectors h3 { font-family: var(--serif); font-size: 30px; font-weight: 500; margin: 0 0 14px; }
.collectors p { color: var(--muted); }
.collectors ul { list-style: none; padding: 0; margin: 20px 0 0; }
.collectors li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.collectors li strong { color: var(--gold); font-weight: 600; margin-right: 8px; font-family: var(--serif); font-size: 17px; }
@media (max-width: 860px) { .collectors { grid-template-columns: 1fr; } }

/* ---------- Series grid (plugin cards restyle) ---------- */
.iv369-grid { gap: 26px !important; }
.iv369-card {
	background: var(--surface) !important; border: 1px solid var(--line); border-radius: 4px !important;
	overflow: hidden; transition: transform .25s, border-color .25s;
}
.iv369-card:hover { transform: translateY(-4px); border-color: var(--gold); }
/* ジャケット原寸は約1500x1730 = 13:15（DVD/BDジャケット） */
.iv369-card img { aspect-ratio: 13/15; object-fit: cover; object-position: center top; display: block; filter: saturate(.94); width: 100%; }
.iv369-thumb-ph {
	display: flex; align-items: center; justify-content: center; aspect-ratio: 13/15;
	background: linear-gradient(135deg, #1a1a22 0%, #24242e 60%, #1a1a22 100%);
	font-family: var(--serif); font-size: 44px; color: #3c3c48; letter-spacing: .1em;
}
.iv369-card-title { font-family: var(--serif) !important; font-size: 19px !important; font-weight: 600; padding: 14px 16px 2px !important; }
.iv369-card-sub { padding: 0 16px !important; color: var(--muted) !important; font-size: 12px !important; letter-spacing: .08em; text-transform: uppercase; }
.iv369-card > .iv369-card-sub:last-child { padding-bottom: 14px !important; }

/* ---------- Free sample ---------- */
.iv369-sample { margin: 34px 0 10px; }
.iv369-sample .iv369-player-frame { width: 100%; }
.iv369-sample-label {
	font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold);
	margin: 0 0 10px;
}
.iv369-sample-label::before { content: "▸ "; }
.iv369-player-frame video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: #000; }
.iv369-free-badge, .iv369-now-badge {
	display: inline-block; margin: 12px 16px 0; padding: 2px 10px; border-radius: 2px;
	font-size: 10px; letter-spacing: .22em; text-transform: uppercase; width: fit-content;
}
.iv369-free-badge { border: 1px solid #55555f; color: var(--muted); }
.iv369-now-badge { background: var(--accent); border: 1px solid var(--accent); color: #fff; font-weight: 600; }

/* ---------- Rotation notice on series page ---------- */
.iv369-rotation {
	margin: 26px 0; padding: 20px 24px; border: 1px solid var(--line);
	border-radius: 6px; background: var(--surface);
}
.iv369-rotation p { margin: 0 0 14px; color: var(--muted); }
.iv369-rotation strong { color: var(--text); font-size: 16px; letter-spacing: .02em; }
.iv369-rotation-on { border-color: var(--accent); background: linear-gradient(180deg, rgba(193,39,45,.10), transparent 70%), var(--surface); }
.iv369-rotation-on strong { color: #ff8b8f; }

/* ---------- Chapters ---------- */
.iv369-chapters { gap: 14px !important; }
.iv369-chapter {
	background: var(--surface) !important; border: 1px solid var(--line) !important; border-radius: 4px !important;
	transition: border-color .2s, transform .2s;
}
.iv369-chapter:hover { border-color: var(--gold) !important; transform: translateY(-2px); }
.iv369-chapter-no { font-family: var(--serif); font-size: 18px; letter-spacing: .05em; }
.iv369-play { color: var(--gold) !important; }

/* ---------- Content / entry ---------- */
.entry { max-width: 900px; margin: 0 auto; padding: 60px 24px; }
.entry-header .code {
	font-size: 11px; letter-spacing: .3em; color: var(--gold); text-transform: uppercase; display: block; margin-bottom: 8px;
}
.entry h1.entry-title { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 4.4vw, 44px); margin: 0 0 8px; line-height: 1.2; }
.entry .entry-meta { color: var(--muted); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 30px; }
.entry-content { color: #d5d3ce; }
.entry-content a { color: var(--gold); }

/* ---------- Plugin forms (account/subscribe) on dark ---------- */
.iv369-form {
	background: var(--surface) !important; border: 1px solid var(--line) !important; color: var(--text);
}
.iv369-form h3 { font-family: var(--serif); font-weight: 600; font-size: 24px; }
.iv369-form input { background: var(--bg) !important; border: 1px solid var(--line) !important; color: var(--text) !important; }
.iv369-form label { color: var(--muted) !important; }
.iv369-btn { border-radius: 3px !important; letter-spacing: .12em; text-transform: uppercase; font-size: 13px !important; }
.iv369-btn-primary { background: var(--accent) !important; border-color: var(--accent) !important; }
.iv369-notice { background: var(--surface) !important; color: var(--text); }
.iv369-box { background: var(--surface) !important; border-color: var(--line) !important; color: var(--text); }

/* ---------- Compliance footer (plugin) ---------- */
.iv369-compliance { border-top: 1px solid var(--line) !important; }
.iv369-legal { color: #6d6b74 !important; }

/* ---------- Site footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; }
.site-footer .inner {
	max-width: 1200px; margin: 0 auto; padding: 34px 24px 44px;
	display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap;
	font-size: 12px; color: var(--muted); letter-spacing: .08em;
}
.site-footer nav { display: flex; gap: 22px; text-transform: uppercase; letter-spacing: .14em; font-size: 11px; }
.site-footer nav a { color: var(--muted); }
.site-footer nav a:hover { color: var(--text); }

/* ---------- Utility ---------- */
.center { text-align: center; }
.cta-band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cta-band .section { padding: 56px 24px; text-align: center; }
.cta-band h2 { font-family: var(--serif); font-weight: 500; font-size: 34px; margin: 0 0 10px; }
.cta-band p { color: var(--muted); margin: 0 0 26px; }
