/*
Theme Name: Tokyo Yabai
Description: tokyoyabai.com 用の自作テーマ（白×黒×赤の雑誌風。英語・繁体字・日本語。18歳確認つき。案内役はヤバイ先輩）
Version: 0.3.4
Author: Tokyo Yabai
Text Domain: tyb
*/

:root {
	--bg: #ffffff;
	--paper: #f6f5f3;
	--ink: #111111;
	--ink-2: #3a3a3a;
	--muted: #77736e;
	--line: #e4e1dc;
	--red: #e5172f;
	--red-dark: #b80f22;
	--wrap: 1160px;
	--display: "Anton", "Impact", "Arial Narrow", sans-serif;
	--font: "Noto Sans TC", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "PingFang TC", "Microsoft JhengHei", sans-serif;
}
:lang(ja) { --font: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Segoe UI", sans-serif; }
/* 英語ページは欧文フォントを先に（中国語フォントだと ’ が全角幅になる） */
:lang(en) { --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "Noto Sans TC", sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.85;
	-webkit-font-smoothing: antialiased;
}
a { color: var(--ink); text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { color: var(--red); }
img { max-width: 100%; height: auto; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

/* 見出しの小さなラベル */
.eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	font-family: var(--display); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--red);
	margin: 0 0 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--red); }

/* 上の帯 */
.topbar {
	display: flex; align-items: center; justify-content: center; gap: 10px;
	background: var(--red); color: #fff; font-size: 12px; font-weight: 700; line-height: 1.4;
	padding: 7px 16px; letter-spacing: .04em; text-align: center;
}
.topbar b {
	flex: none; font-family: var(--display); font-weight: 400; font-size: 13px; letter-spacing: .08em;
	background: #fff; color: var(--red); padding: 1px 6px 0;
}
.topbar .short { display: none; }

/* ヘッダー：ロゴ｜メニュー｜言語 を1行に。狭い画面では ロゴ＋言語 の下にメニュー */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ink); color: #fff; }
.site-header .wrap { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0 28px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; min-width: 0; }
.logo img { flex: none; width: 38px; height: 38px; border-radius: 50%; background: #fff; }
.logo > span { display: block; min-width: 0; }
.logo .name { display: block; font-family: var(--display); font-size: 24px; letter-spacing: .06em; line-height: 1; white-space: nowrap; }
.logo .name b { color: var(--red); font-weight: 400; }
.logo small {
	display: block; font-size: 10px; line-height: 1.2; letter-spacing: .16em; text-transform: uppercase; color: #a9a5a0;
	margin-top: 5px; font-family: var(--font); font-weight: 700; white-space: nowrap;
}
.logo:hover { color: #fff; }
.nav { display: flex; justify-content: flex-end; gap: 26px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.nav a { color: #e9e6e1; text-decoration: none; padding: 21px 0 19px; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--red); }
.lang { display: flex; align-items: stretch; height: 28px; font-size: 12px; font-weight: 700; border: 1px solid #4a4a4a; }
.lang a { display: flex; align-items: center; color: #a9a5a0; text-decoration: none; padding: 0 10px; }
.lang a + a { border-left: 1px solid #4a4a4a; }
.lang a:hover { color: #fff; }
.lang a.is-current { color: var(--ink); background: #fff; }

@media (max-width: 960px) {
	.topbar .long { display: none; }
	.topbar .short { display: inline; }
	.site-header .wrap { grid-template-columns: 1fr auto; gap: 0 12px; min-height: 0; padding-top: 10px; }
	.logo { padding-bottom: 8px; }
	.lang { align-self: center; margin-bottom: 8px; }
	.nav {
		grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; gap: 22px; overflow-x: auto;
		margin: 0 -16px; padding: 0 16px; border-top: 1px solid #2a2a2a; scrollbar-width: none;
		-webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent);
	}
	.nav::-webkit-scrollbar { display: none; }
	.nav a { padding: 11px 0 9px; font-size: 13.5px; }
	.nav a:last-child { padding-right: 32px; }
}
@media (max-width: 420px) {
	.logo { gap: 9px; }
	.logo img { width: 32px; height: 32px; }
	.logo .name { font-size: 20px; }
	.logo small { font-size: 8.5px; letter-spacing: .1em; margin-top: 4px; }
	.lang { height: 26px; font-size: 11px; }
	.lang a { padding: 0 7px; }
}

/* 本文 */
main { padding: 48px 0 88px; }
.home main { padding-top: 0; }
.entry { max-width: 760px; margin: 0 auto; }
.home .entry { max-width: none; }
.entry > h1 {
	font-size: clamp(28px, 5vw, 44px); line-height: 1.25; margin: 0 0 28px; font-weight: 900; letter-spacing: -.01em;
	padding-bottom: 20px; border-bottom: 3px solid var(--ink);
}
.entry h2 { font-size: 24px; font-weight: 900; margin: 56px 0 14px; line-height: 1.4; }
.entry h2::before { content: ""; display: block; width: 32px; height: 3px; background: var(--red); margin-bottom: 14px; }
.entry h3 { font-size: 18px; margin: 28px 0 8px; font-weight: 900; }
.entry p, .entry li { color: var(--ink-2); }
.entry ul, .entry ol { padding-left: 1.3em; }
.entry li + li { margin-top: 6px; }
.entry strong { color: var(--ink); }
.entry table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; border-top: 2px solid var(--ink); }
.entry th, .entry td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.entry th { font-weight: 700; width: 32%; color: var(--ink); }
.entry code { background: var(--paper); padding: 1px 6px; font-size: 14px; }
.updated { color: var(--muted); font-size: 13px; letter-spacing: .02em; }

.note { background: var(--paper); border-left: 3px solid var(--red); padding: 16px 20px; margin: 28px 0; font-size: 15px; }
.pr-label {
	display: inline-block; font-family: var(--display); font-size: 12px; letter-spacing: .16em;
	color: #fff; background: var(--ink); padding: 2px 10px; margin: 0 0 8px;
}

.btn {
	display: inline-flex; align-items: center; gap: 10px; background: var(--red); color: #fff; text-decoration: none;
	font: inherit; font-weight: 900; font-size: 15px; letter-spacing: .02em;
	padding: 14px 24px; margin: 12px 10px 0 0; border: 2px solid var(--red); cursor: pointer;
	transition: background .15s, color .15s;
}
.btn::after { content: "→"; font-family: var(--font); }
.btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.plain::after { content: none; }

/* 先輩の吹き出し */
.senpai-says { display: flex; gap: 16px; align-items: flex-start; margin: 28px 0; }
.senpai-says img { width: 60px; height: 60px; border-radius: 50%; flex: none; border: 2px solid var(--ink); }
.senpai-says .bubble { position: relative; background: var(--paper); padding: 14px 18px; font-size: 15px; }
.senpai-says .bubble::before {
	content: ""; position: absolute; left: -10px; top: 20px; border: 10px solid transparent; border-left: 0; border-right-color: var(--paper);
}
.senpai-says .bubble p { margin: 0; }

/* ===== トップ ===== */
.hero { position: relative; overflow: hidden; padding: 64px 0 56px; border-bottom: 3px solid var(--ink); }
.hero .wm {
	position: absolute; right: -2%; top: 50%; transform: translateY(-50%);
	font-family: "Noto Sans JP", sans-serif; font-weight: 900; font-size: clamp(120px, 22vw, 300px); line-height: 1;
	color: transparent; -webkit-text-stroke: 1.5px #ece9e4; letter-spacing: -.04em; pointer-events: none; user-select: none; white-space: nowrap;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; align-items: center; }
.hero h1 {
	font-family: var(--display); font-weight: 400; text-transform: uppercase;
	font-size: clamp(56px, 10vw, 128px); line-height: .9; letter-spacing: .005em; margin: 0 0 18px;
}
.hero h1 span { display: block; color: var(--red); font-size: .48em; letter-spacing: .02em; margin-top: 10px; }
.hero h1 .loc { font-family: var(--font); font-weight: 900; text-transform: none; letter-spacing: 0; }
.hero .lead { font-size: clamp(18px, 2.2vw, 22px); font-weight: 900; color: var(--ink); line-height: 1.5; margin: 0 0 14px; max-width: 34em; }
.hero p { margin: 0 0 8px; max-width: 38em; color: var(--ink-2); }
.hero .art { position: relative; justify-self: center; width: min(100%, 360px); }
.hero .art img { display: block; width: 100%; transform: rotate(-4deg); filter: drop-shadow(10px 12px 0 var(--ink)); }
.hero .stamp {
	position: absolute; right: -6px; bottom: 8%; width: 108px; height: 108px; border-radius: 50%;
	background: var(--red); color: #fff; display: grid; place-content: center; text-align: center;
	font-family: var(--display); line-height: .95; transform: rotate(10deg); box-shadow: 4px 4px 0 var(--ink);
}
.hero .stamp b { font-size: 40px; font-weight: 400; }
.hero .stamp small { font-size: 12px; letter-spacing: .12em; }
@media (max-width: 860px) {
	.hero { padding: 36px 0 40px; }
	.hero-grid { grid-template-columns: 1fr; gap: 20px; }
	.hero .art { order: -1; width: 220px; }
	.hero .stamp { width: 84px; height: 84px; right: -18px; }
	.hero .stamp b { font-size: 30px; }
}

/* 数字の帯 */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.stats div { padding: 26px 20px; border-right: 1px solid var(--line); }
.stats div:last-child { border-right: 0; }
.stats b { display: block; font-family: var(--display); font-weight: 400; font-size: 44px; line-height: 1; }
.stats b em { font-style: normal; color: var(--red); }
.stats span { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin-top: 8px; line-height: 1.5; }
@media (max-width: 760px) {
	.stats { grid-template-columns: repeat(2, 1fr); }
	.stats div:nth-child(2) { border-right: 0; }
	.stats div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
	.stats b { font-size: 36px; }
}

.section { padding: 64px 0 8px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-head h2 { margin: 0; font-size: clamp(26px, 4vw, 36px); font-weight: 900; line-height: 1.2; }
.section-head h2::before { content: none; }
.section-head .more { font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; }

/* ランキング（クリエイターのカード） */
.picks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pick { position: relative; }
.pick .ph {
	position: relative; aspect-ratio: 3 / 4; background: var(--paper); overflow: hidden;
	background-image: repeating-linear-gradient(135deg, transparent 0 14px, rgba(0,0,0,.025) 14px 28px);
}
.pick .ph::after {
	content: attr(data-soon); position: absolute; inset: auto 0 0 0; padding: 10px 12px;
	font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--muted); background: linear-gradient(transparent, rgba(255,255,255,.9));
}
.pick .no {
	position: absolute; left: 10px; top: 4px; font-family: var(--display); font-size: 64px; line-height: 1; color: var(--ink);
}
.pick:nth-child(1) .no { color: var(--red); }
.pick h3 { margin: 12px 0 2px; font-size: 16px; font-weight: 900; }
.pick p { margin: 0; font-size: 13px; color: var(--muted); }
.pick .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pick .tags span { font-size: 11px; font-weight: 700; border: 1px solid var(--line); padding: 1px 8px; color: var(--ink-2); }
@media (max-width: 860px) { .picks { grid-template-columns: repeat(2, 1fr); gap: 14px; } }

/* 番号つきの説明 */
.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 3px solid var(--ink); }
.points > div { padding: 24px 24px 8px 0; border-right: 1px solid var(--line); }
.points > div + div { padding-left: 24px; }
.points > div:last-child { border-right: 0; }
.points .n { font-family: var(--display); font-size: 40px; color: var(--red); line-height: 1; }
.points h3 { font-size: 19px; font-weight: 900; margin: 12px 0 6px; }
.points p { margin: 0 0 16px; color: var(--ink-2); font-size: 15px; }
@media (max-width: 760px) {
	.points { grid-template-columns: 1fr; }
	.points > div, .points > div + div { padding: 20px 0 4px; border-right: 0; border-bottom: 1px solid var(--line); }
}

/* 12時間の約束 */
.promise {
	display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center;
	background: var(--ink); color: #fff; padding: 28px 32px; margin: 32px 0;
}
.promise .clock { font-family: var(--display); font-size: 84px; line-height: .85; color: #fff; }
.promise .clock small { display: block; font-size: 16px; letter-spacing: .3em; color: var(--red); margin-top: 6px; }
.promise strong { display: block; font-size: 20px; font-weight: 900; color: #fff; line-height: 1.45; }
.promise p { margin: 6px 0 0; color: #bdb8b2; font-size: 14px; }
.promise a { color: #fff; }
.promise .btn { margin: 0; white-space: nowrap; }
.promise .btn:hover { background: #fff; color: var(--ink); border-color: #fff; }
@media (max-width: 760px) {
	.promise { grid-template-columns: auto 1fr; padding: 22px 20px; gap: 16px 18px; }
	.promise .clock { font-size: 60px; }
	.promise .btn { grid-column: 1 / -1; justify-content: center; }
}

/* 先輩のルール */
.rules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; list-style: none; padding: 0 !important; margin: 0; counter-reset: rule; }
.rules li { counter-increment: rule; position: relative; padding: 16px 0 16px 48px; border-bottom: 1px solid var(--line); margin: 0 !important; color: var(--ink-2); }
.rules li::before { content: counter(rule, decimal-leading-zero); position: absolute; left: 0; top: 14px; font-family: var(--display); font-size: 22px; color: var(--red); }
@media (max-width: 760px) { .rules { grid-template-columns: 1fr; } }

/* 手順 */
.steps { counter-reset: step; list-style: none; padding: 0 !important; border-top: 3px solid var(--ink); }
.steps > li { counter-increment: step; position: relative; padding: 18px 0 18px 64px; margin: 0 !important; border-bottom: 1px solid var(--line); }
.steps > li::before {
	content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 14px;
	font-family: var(--display); font-size: 36px; line-height: 1; color: var(--red);
}
.steps > li strong { display: block; font-size: 17px; margin-bottom: 2px; }

/* よくある質問 */
.faq { border-top: 3px solid var(--ink); margin-top: 24px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 44px 18px 0; font-weight: 900; font-size: 17px; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 26px; font-weight: 400; color: var(--red); }
.faq details[open] summary::after { content: "−"; }
.faq .a { padding: 0 0 18px; }
.faq .a p:first-child { margin-top: 0; }

/* プロフィール */
.profile { display: grid; grid-template-columns: 200px 1fr; gap: 32px; align-items: center; margin: 8px 0 24px; }
.profile img { width: 100%; transform: rotate(-3deg); filter: drop-shadow(6px 8px 0 var(--ink)); }
@media (max-width: 600px) { .profile { grid-template-columns: 1fr; } .profile img { max-width: 160px; } }

/* フッター */
.site-footer { background: var(--ink); color: #a9a5a0; padding: 48px 0 40px; font-size: 13px; }
.site-footer .foot-logo { font-family: var(--display); font-size: 40px; letter-spacing: .04em; color: #fff; line-height: 1; margin-bottom: 18px; }
.site-footer .foot-logo b { color: var(--red); font-weight: 400; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-bottom: 18px; }
.site-footer nav a { color: #fff; text-decoration: none; font-weight: 700; }
.site-footer nav a:hover { color: var(--red); }
.site-footer p { margin: 6px 0; max-width: 60em; }
.adult-badge { display: inline-block; background: var(--red); color: #fff; padding: 0 6px; font-weight: 900; margin-right: 8px; }

/* 18歳確認 */
.age-gate {
	position: fixed; inset: 0; z-index: 1000; display: none;
	background: rgba(17, 17, 17, .94); padding: 16px; overflow-y: auto;
}
.age-gate.is-open { display: grid; place-items: center; }
html.age-locked, html.age-locked body { overflow: hidden; }
.age-gate .box { width: 100%; max-width: 480px; background: #fff; padding: 32px 28px 26px; text-align: center; border-top: 6px solid var(--red); }
.age-gate .face { width: 92px; height: 92px; margin: 0 auto 6px; display: block; }
.age-gate .big { font-family: var(--display); font-size: 56px; line-height: 1; color: var(--red); margin: 0; }
.age-gate h2 { margin: 6px 0 12px; font-size: 20px; font-weight: 900; }
.age-gate p { color: var(--ink-2); font-size: 14px; margin: 0 0 8px; line-height: 1.7; }
.age-gate .legal { color: var(--muted); font-size: 10.5px; line-height: 1.5; margin-top: 16px; text-align: left; }
.age-gate .actions { display: grid; gap: 10px; margin-top: 20px; }
.age-gate .actions .btn { margin: 0; justify-content: center; }
.age-gate .langs { margin-top: 16px; font-size: 13px; font-weight: 700; }
.age-gate .langs a { color: var(--muted); margin: 0 8px; text-decoration: none; }
.age-gate .langs a.is-current { color: var(--ink); text-decoration: underline; text-decoration-color: var(--red); }
