/* =========================================================
   A案 "Velocity" — モータースポーツ / スピード全開
   八幡山ブーメラン 公式サイト デザインリニューアル候補

   - 黒（カーボン）ベース × レーシングレッド
   - 斜めのスピードライン / 鋭角なセクション区切り (clip-path)
   - イタリック & コンデンス系タイポ（Anton / Oswald + Noto Sans JP）
   - ホバーは「加速」— 前へ進む動き + 赤い残像（モーションストリーク）
   - 子供向けチームなのでイエローの差し色で元気さ・楽しさを同居
   - モバイルファースト（基本スタイル = スマホ、min-width で拡張）
   ========================================================= */

/* ---------- Variables ---------- */
:root {
	/* 配色: 黒×赤（ユニフォームカラー）+ 元気の黄色 */
	--carbon:   #0A0A0D;                /* ベースの黒（カーボンブラック） */
	--pit:      #15151B;                /* パネル用のダークグレー */
	--red:      #E10600;                /* レーシングレッド（メイン） */
	--red-hot:  #FF2E1F;                /* 明るい赤（グラデ・残像用） */
	--white:    #FFFFFF;
	--smoke:    #F2F3F5;                /* 明るいセクション背景 */
	--silver:   #C7CBD4;                /* 黒地のサブテキスト */
	--yellow:   #FFC400;                /* 差し色（元気・楽しさ担当） */
	--ink:      #101014;                /* 明るい背景でのテキスト色 */
	--line:     rgba(255, 255, 255, 0.14);

	/* タイポ */
	--font-display: 'Anton', 'Noto Sans JP', sans-serif;             /* 巨大英字見出し */
	--font-cond:    'Oswald', 'Noto Sans JP', sans-serif;            /* コンデンス系ラベル */
	--font-body:    'Noto Sans JP', 'Helvetica Neue', Arial, sans-serif;

	/* 「加速」を感じるイージング（急発進 → スッと停止） */
	--ease-race: cubic-bezier(0.16, 1, 0.3, 1);

	/* 共通の傾き（レーシング角度） */
	--slant: -12deg;

	--container: 1240px;
	--gutter: clamp(16px, 4vw, 40px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
	margin: 0;
	font-family: var(--font-body);
	font-weight: 500;
	color: var(--ink);
	background: var(--white);
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
	width: 100%;
	max-width: 100vw;
}
img, video { max-width: 100%; height: auto; display: block; }
picture { display: contents; }
a { color: inherit; text-decoration: none; }
button { border: 0; background: none; cursor: pointer; font: inherit; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.05; }
p { margin: 0 0 1em; }

::selection { background: var(--red); color: var(--white); }

/* =========================================================
   Utility
   ========================================================= */

/* キッカー: ゼッケン風の赤い平行四辺形ラベル */
.kicker {
	display: inline-block;
	font-family: var(--font-cond);
	font-weight: 700;
	font-size: clamp(13px, 1.2vw, 16px);
	letter-spacing: 0.22em;
	color: var(--white);
	background: var(--red);
	padding: 6px 16px 5px;
	margin-bottom: 18px;
	text-transform: uppercase;
	transform: skewX(var(--slant));
	box-shadow: -6px 0 0 rgba(225, 6, 0, 0.35), -12px 0 0 rgba(225, 6, 0, 0.15); /* 赤い残像 */
}
.kicker-light { background: var(--yellow); color: var(--carbon); box-shadow: -6px 0 0 rgba(255, 196, 0, 0.35), -12px 0 0 rgba(255, 196, 0, 0.15); }

/* ボタン: 平行四辺形 + ホバーで前進 & 残像トレイル */
.btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 15px 30px 14px;
	font-family: var(--font-cond);
	font-weight: 700;
	font-size: 16px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--white);
	background: var(--pit);
	transform: skewX(var(--slant));
	overflow: hidden;
	transition: transform 0.3s var(--ease-race), box-shadow 0.3s var(--ease-race), background 0.25s, color 0.25s;
	will-change: transform;
}
/* 光のスイープ（加速時のハイライト） */
.btn::after {
	content: "";
	position: absolute;
	top: 0; bottom: 0;
	left: -80%;
	width: 50%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
	transform: skewX(-8deg);
	transition: left 0.45s var(--ease-race);
	pointer-events: none;
}
.btn:hover::after { left: 130%; }
.btn .arr { transition: transform 0.3s var(--ease-race); display: inline-block; }
.btn:hover {
	transform: skewX(var(--slant)) translateX(6px);
	box-shadow: -10px 0 0 rgba(225, 6, 0, 0.45), -20px 0 0 rgba(225, 6, 0, 0.2); /* 後方に赤い残像 */
}
.btn:hover .arr { transform: translateX(6px); }
.btn:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-hot); }
.btn-ghost {
	background: transparent;
	color: var(--white);
	box-shadow: inset 0 0 0 2px var(--white);
}
.btn-ghost:hover { background: var(--white); color: var(--carbon); box-shadow: -10px 0 0 rgba(255, 255, 255, 0.4), -20px 0 0 rgba(255, 255, 255, 0.18); }
.btn-yellow { background: var(--yellow); color: var(--carbon); }
.btn-yellow:hover { box-shadow: -10px 0 0 rgba(255, 196, 0, 0.45), -20px 0 0 rgba(255, 196, 0, 0.2); }
.btn-big { padding: 20px 40px 19px; font-size: 19px; }

/* チェッカーフラッグ柄（レース感 + 遊び心） */
.checker,
.ticker::before,
.ticker::after,
.footer-stripe::after {
	background-image: repeating-conic-gradient(var(--carbon) 0% 25%, var(--white) 0% 50%);
	background-size: 18px 18px;
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 12px var(--gutter);
	background: transparent;
	transition: background 0.35s var(--ease-race), box-shadow 0.35s var(--ease-race);
}
/* スクロール後: 半透明の黒 + 赤いアンダーライン */
.site-header.scrolled {
	background: rgba(10, 10, 13, 0.92);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	box-shadow: 0 3px 0 var(--red);
}
.site-header .logo img { width: 64px; height: auto; transition: transform 0.35s var(--ease-race); }
.site-header .logo:hover img { transform: translateX(4px) rotate(-4deg); }

.site-nav { display: none; align-items: center; gap: 26px; }
.nav-list { display: flex; gap: 26px; }
.nav-list a {
	font-family: var(--font-cond);
	font-weight: 600;
	letter-spacing: 0.16em;
	font-size: 15px;
	position: relative;
	padding: 6px 0;
	color: var(--white);
	transition: color 0.2s;
}
/* ホバー: 左から右へ加速して伸びる赤ライン */
.nav-list a::after {
	content: "";
	position: absolute;
	left: 0; bottom: 0;
	width: 100%; height: 3px;
	background: linear-gradient(90deg, var(--red), var(--red-hot));
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.35s var(--ease-race);
}
.nav-list a:hover::after { transform: scaleX(1); }

.cta-mini {
	font-family: var(--font-cond);
	font-weight: 700;
	letter-spacing: 0.14em;
	font-size: 14px;
	padding: 9px 18px 8px;
	background: var(--red);
	color: var(--white);
	transform: skewX(var(--slant));
	transition: transform 0.3s var(--ease-race), box-shadow 0.3s var(--ease-race), background 0.25s;
}
.cta-mini:hover {
	background: var(--red-hot);
	transform: skewX(var(--slant)) translateX(4px);
	box-shadow: -8px 0 0 rgba(225, 6, 0, 0.4);
}

.menu-toggle {
	display: flex;
	width: 44px; height: 44px;
	flex-direction: column;
	justify-content: center;
	align-items: flex-end;
	gap: 6px;
	z-index: 110;
}
/* ハンバーガーも「流線」— 長さ違いの 3 本線 */
.menu-toggle span {
	display: block;
	height: 3px;
	background: var(--white);
	transition: transform 0.3s var(--ease-race), opacity 0.3s var(--ease-race), width 0.3s var(--ease-race);
}
.menu-toggle span:nth-child(1) { width: 28px; }
.menu-toggle span:nth-child(2) { width: 22px; }
.menu-toggle span:nth-child(3) { width: 16px; }
.menu-toggle.open span { width: 26px; }
.menu-toggle.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Mobile Menu: 黒地 + 斜めの赤ストライプ */
.mobile-menu {
	position: fixed;
	inset: 0;
	background:
		repeating-linear-gradient(115deg,
			transparent 0, transparent 90px,
			rgba(225, 6, 0, 0.10) 90px, rgba(225, 6, 0, 0.10) 96px),
		var(--carbon);
	color: var(--white);
	z-index: 90;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 24px;
	padding: 96px 24px 48px;
	min-height: 100vh;
	min-height: 100svh;
	max-height: 100vh;
	max-height: 100svh;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	opacity: 0;
	pointer-events: none;
	transform: translateX(-24px);
	transition: opacity 0.35s var(--ease-race), transform 0.35s var(--ease-race);
}
.mobile-menu.open { opacity: 1; pointer-events: auto; transform: none; }
.mobile-menu ul {
	display: flex;
	flex-direction: column;
	gap: clamp(10px, 2vh, 18px);
	text-align: center;
}
.mobile-menu ul a {
	display: inline-block;
	font-family: var(--font-display);
	font-size: clamp(32px, 8vw, 56px);
	font-style: italic;
	line-height: 1.05;
	letter-spacing: 0.04em;
	color: var(--white);
	padding: 4px 0;
	transition: color 0.2s, transform 0.3s var(--ease-race), text-shadow 0.3s var(--ease-race);
}
.mobile-menu ul a:hover {
	color: var(--red-hot);
	transform: translateX(8px);
	text-shadow: -8px 0 0 rgba(225, 6, 0, 0.35);
}
.mobile-menu .cta-mini { font-size: 18px; padding: 14px 28px; background: var(--yellow); color: var(--carbon); }

@media (max-height: 640px) {
	.mobile-menu { gap: 16px; padding-top: 80px; padding-bottom: 32px; }
	.mobile-menu ul { gap: 8px; }
	.mobile-menu ul a { font-size: clamp(26px, 6vw, 40px); }
}

/* =========================================================
   Hero — グリッドスタート
   ========================================================= */
.hero {
	position: relative;
	min-height: 100svh;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	overflow: hidden;
	color: var(--white);
	background: var(--carbon);
}
.hero-video-wrap { position: absolute; inset: 0; overflow: hidden; }
.hero-video {
	position: absolute;
	inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
}
/* オーバーレイ: 黒 → 赤の斜めグラデで速度感 */
.hero-overlay {
	position: absolute; inset: 0;
	background:
		linear-gradient(105deg,
			rgba(10, 10, 13, 0.82) 0%,
			rgba(10, 10, 13, 0.55) 45%,
			rgba(225, 6, 0, 0.45) 100%);
}
/* モーションストリーク: 画面を横切る流線（右へ流れる） */
.hero-streaks { position: absolute; inset: 0; pointer-events: none; }
.hero-streaks span {
	position: absolute;
	height: 2px;
	width: 38vw;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55));
	transform: skewY(-6deg);
	animation: streak 3.2s linear infinite;
	opacity: 0;
}
.hero-streaks span:nth-child(1) { top: 16%; animation-delay: 0s;    }
.hero-streaks span:nth-child(2) { top: 32%; animation-delay: 0.9s;  width: 26vw; }
.hero-streaks span:nth-child(3) { top: 55%; animation-delay: 1.7s;  background: linear-gradient(90deg, transparent, rgba(255, 46, 31, 0.75)); }
.hero-streaks span:nth-child(4) { top: 71%; animation-delay: 0.5s;  width: 30vw; }
.hero-streaks span:nth-child(5) { top: 86%; animation-delay: 2.3s;  background: linear-gradient(90deg, transparent, rgba(255, 196, 0, 0.6)); width: 22vw; }
@keyframes streak {
	0%   { left: -40vw; opacity: 0; }
	10%  { opacity: 1; }
	60%  { opacity: 1; }
	100% { left: 110vw; opacity: 0; }
}

.hero-inner {
	position: relative;
	z-index: 2;
	padding: 110px var(--gutter) 60px;
	max-width: var(--container);
	width: 100%;
	margin: 0 auto;
}
.hero-tag span {
	display: inline-block;
	background: var(--yellow);
	color: var(--carbon);
	font-family: var(--font-cond);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.2em;
	padding: 6px 14px 5px;
	transform: skewX(var(--slant));
	margin-bottom: 22px;
	box-shadow: -6px 0 0 rgba(255, 196, 0, 0.35);
}
/* 巨大イタリック見出し + 赤い残像 (text-shadow) */
.hero-title {
	font-family: var(--font-display);
	font-weight: 400;
	font-style: italic;
	/* 17vw (幅基準) に加えて 18vh (高さ基準) でも制限:
	   高さの低いデスクトップ (1366x768 等) で 3 行目 WIN がファーストビューから見切れるのを防ぐ */
	font-size: clamp(60px, min(17vw, 18vh), 210px);
	line-height: 0.9;
	letter-spacing: 0;
	margin: 0 0 24px;
	text-transform: uppercase;
}
.hero-title .line {
	display: block;
	transform: translateX(-70px) skewX(-6deg);
	opacity: 0;
	animation: heroDash 0.75s var(--ease-race) forwards;
}
.hero-title .line-1 {
	animation-delay: 0.15s;
	color: var(--white);
	text-shadow: -8px 0 0 rgba(225, 6, 0, 0.4), -18px 0 0 rgba(225, 6, 0, 0.18);
}
.hero-title .line-2 {
	animation-delay: 0.32s;
	color: var(--red-hot);
	margin-left: clamp(16px, 6vw, 110px);
	text-shadow: -8px 0 0 rgba(255, 255, 255, 0.25), -18px 0 0 rgba(255, 255, 255, 0.1);
}
.hero-title .line-3 {
	animation-delay: 0.49s;
	color: var(--yellow);
	margin-left: clamp(32px, 12vw, 220px);
	text-shadow: -8px 0 0 rgba(225, 6, 0, 0.4), -18px 0 0 rgba(225, 6, 0, 0.18);
}
/* 左から加速して飛び込む */
@keyframes heroDash {
	0%   { transform: translateX(-70px) skewX(-6deg); opacity: 0; }
	100% { transform: translateX(0); opacity: 1; }
}

.hero-sub {
	font-size: clamp(15px, 1.5vw, 18px);
	max-width: 480px;
	margin: 0 0 32px;
	font-weight: 500;
	opacity: 0;
	animation: fadeUp 0.8s var(--ease-race) 0.75s forwards;
}
.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	padding-left: 8px; /* skew したボタンの左端はみ出し対策 */
	opacity: 0;
	animation: fadeUp 0.8s var(--ease-race) 0.9s forwards;
}
@keyframes fadeUp {
	from { opacity: 0; transform: translateY(20px); }
	to   { opacity: 1; transform: none; }
}

/* Ticker: ピットウォールのサインボード風（上下チェッカー柄） */
.ticker {
	position: relative;
	z-index: 2;
	margin-top: auto;
	overflow: hidden;
	background: var(--red);
	color: var(--white);
	padding: 12px 0;
}
.ticker::before,
.ticker::after {
	content: "";
	position: absolute;
	left: 0; right: 0;
	height: 9px;
}
.ticker::before { top: 0; }
.ticker::after { bottom: 0; }
.ticker-track {
	display: flex;
	width: max-content;
	gap: 40px;
	padding: 10px 0;
	animation: ticker 24s linear infinite;
	font-family: var(--font-cond);
	font-weight: 700;
	font-style: italic;
	font-size: clamp(18px, 2.2vw, 26px);
	letter-spacing: 0.16em;
	white-space: nowrap;
}
@keyframes ticker {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}

/* =========================================================
   Stats — テレメトリー（計器盤）風
   ========================================================= */
.stats {
	background:
		repeating-linear-gradient(115deg,
			transparent 0, transparent 120px,
			rgba(255, 255, 255, 0.025) 120px, rgba(255, 255, 255, 0.025) 124px),
		var(--carbon);
	color: var(--white);
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	border-bottom: 4px solid var(--red);
}
.stat-item {
	position: relative;
	padding: 36px var(--gutter);
	display: flex;
	flex-direction: column;
	gap: 8px;
	border-bottom: 1px solid var(--line);
}
/* 斜めの区切り線（スラッシュ）で速度感 */
.stat-item::before {
	content: "";
	position: absolute;
	top: 20%; bottom: 20%;
	left: 0;
	width: 2px;
	background: var(--line);
	transform: skewX(-14deg);
}
.stat-item:nth-child(odd)::before { display: none; }
.stat-num {
	font-family: var(--font-display);
	font-style: italic;
	font-size: clamp(46px, 8vw, 92px);
	line-height: 1;
	color: var(--white);
	text-shadow: -5px 0 0 rgba(225, 6, 0, 0.35);
}
.stat-item:nth-child(3) .stat-num { color: var(--red-hot); text-shadow: -5px 0 0 rgba(255, 255, 255, 0.2); }
.stat-item:nth-child(4) .stat-num { color: var(--yellow); }
.stat-label {
	font-family: var(--font-cond);
	font-weight: 600;
	letter-spacing: 0.18em;
	font-size: 13px;
	color: var(--silver);
	text-transform: uppercase;
}
.stat-label small { display: block; font-family: var(--font-body); font-size: 12px; opacity: 0.75; letter-spacing: 0.02em; margin-top: 6px; }

/* =========================================================
   Sections (共通)
   ========================================================= */
.section {
	position: relative;
	padding: clamp(72px, 12vw, 150px) var(--gutter);
	max-width: var(--container);
	margin: 0 auto;
}
.section-head { margin-bottom: clamp(36px, 6vw, 64px); max-width: 960px; }
/* 見出し: 極太イタリック（skew で強制オブリーク）+ 赤いアクセント */
.section-title {
	font-family: var(--font-body);
	font-weight: 900;
	font-size: clamp(42px, 9vw, 110px);
	line-height: 1.02;
	letter-spacing: 0.01em;
	transform: skewX(-8deg);
	transform-origin: left bottom;
}
.section-title em {
	font-style: normal;
	display: inline-block;
	background: var(--red);
	color: var(--white);
	padding: 0 16px 4px 12px;
	margin-top: 6px;
	white-space: nowrap;
	box-shadow: -8px 0 0 rgba(225, 6, 0, 0.3), -16px 0 0 rgba(225, 6, 0, 0.12); /* 残像 */
}
.section-title-light { color: var(--white); }
.section-title-light em { background: var(--yellow); color: var(--carbon); box-shadow: -8px 0 0 rgba(255, 196, 0, 0.3), -16px 0 0 rgba(255, 196, 0, 0.12); }
.section-lead {
	font-size: clamp(15px, 1.4vw, 17px);
	margin-top: 26px;
	max-width: 640px;
}
.section-lead-light { color: var(--silver); }
.section-lead-light strong { color: var(--yellow); }

/* =========================================================
   Team — ガレージ（白背景で読みやすく）
   ========================================================= */
.section-team {
	background: var(--white);
	max-width: none;
	margin: 0;
}
.section-team .section-head,
.section-team .team-intro,
.section-team .team-grid {
	max-width: var(--container);
	margin-left: auto;
	margin-right: auto;
}
.team-intro {
	margin-top: clamp(24px, 3vw, 40px);
	margin-bottom: clamp(28px, 4vw, 56px);
}
.team-intro p {
	font-size: clamp(15px, 1.4vw, 17px);
	line-height: 1.9;
	margin: 0 0 1.2em 0;
	max-width: 780px;
	color: var(--carbon);
}
.team-intro p:last-child { margin-bottom: 0; }
.team-intro strong {
	background: var(--red);
	color: var(--white);
	padding: 2px 8px;
	letter-spacing: 0.06em;
	font-weight: 700;
}
.team-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(28px, 4vw, 56px);
	align-items: start;
}
/* 写真: 右下を鋭角にカット + 左端にレーシングストライプ */
.team-photo {
	margin: 0;
	position: relative;
	overflow: hidden;
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - 34px), calc(100% - 34px) 100%, 0 100%);
	border-left: 10px solid var(--red);
	box-shadow: 0 20px 50px rgba(10, 10, 13, 0.18);
}
.team-photo::before {
	/* ストライプの白い細線（赤帯の右） */
	content: "";
	position: absolute;
	top: 0; bottom: 0; left: 0;
	width: 4px;
	background: var(--carbon);
	z-index: 1;
}
.team-photo img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform 0.7s var(--ease-race);
}
.team-photo:hover img { transform: scale(1.05) translateX(6px); }
.team-photo figcaption {
	position: absolute;
	left: 14px; bottom: 12px;
	background: var(--carbon);
	color: var(--white);
	font-family: var(--font-cond);
	font-weight: 700;
	letter-spacing: 0.18em;
	padding: 7px 16px 6px;
	font-size: 13px;
	transform: skewX(var(--slant));
	box-shadow: -6px 0 0 rgba(225, 6, 0, 0.8); /* 赤の残像タブ */
}

/* スペック表: レギュレーションシート風 */
.team-spec {
	margin: 0;
	border-top: 3px solid var(--carbon);
}
.team-spec > div {
	display: grid;
	grid-template-columns: 110px 1fr;
	align-items: baseline;
	gap: 16px;
	padding: 16px 0 16px 14px;
	border-bottom: 1px solid rgba(16, 16, 20, 0.18);
	position: relative;
	transition: background 0.25s, transform 0.3s var(--ease-race);
}
/* 行頭の斜めレッドマーカー */
.team-spec > div::before {
	content: "";
	position: absolute;
	left: 0; top: 22px;
	width: 5px; height: 20px;
	background: var(--red);
	transform: skewX(-14deg);
}
.team-spec > div:hover { background: var(--smoke); transform: translateX(6px); }
.team-spec dt {
	font-family: var(--font-cond);
	font-weight: 600;
	letter-spacing: 0.14em;
	font-size: 13px;
	color: var(--red);
	text-transform: uppercase;
}
.team-spec dd { margin: 0; font-weight: 700; font-size: clamp(17px, 1.8vw, 21px); }

/* =========================================================
   Join — ナイトサーキット（黒地 + 斜めスピードライン）
   ========================================================= */
.section-join {
	background: var(--carbon);
	color: var(--white);
	max-width: none;
	margin: 0;
	overflow: hidden;
	/* 鋭角なセクション区切り（上下を斜めにカット） */
	clip-path: polygon(0 0, 100% 3.5vw, 100% 100%, 0 calc(100% - 3.5vw));
	padding-top: calc(clamp(72px, 12vw, 150px) + 3.5vw);
	padding-bottom: calc(clamp(72px, 12vw, 150px) + 3.5vw);
}
.section-join .section-head,
.section-join .join-grid,
.section-join .join-cta {
	max-width: var(--container);
	margin-left: auto;
	margin-right: auto;
	position: relative;
	z-index: 1;
}
/* 背景の斜めスピードライン（赤） */
.bg-speedlines {
	position: absolute;
	inset: 0;
	background-image:
		repeating-linear-gradient(115deg,
			transparent 0, transparent 110px,
			rgba(225, 6, 0, 0.12) 110px, rgba(225, 6, 0, 0.12) 116px),
		repeating-linear-gradient(115deg,
			transparent 0, transparent 260px,
			rgba(255, 255, 255, 0.04) 260px, rgba(255, 255, 255, 0.04) 262px);
	pointer-events: none;
}

.join-photo {
	position: relative;
	z-index: 1;
	margin: 0 auto clamp(36px, 6vw, 60px);
	max-width: var(--container);
	overflow: hidden;
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), calc(100% - 40px) 100%, 0 100%);
	border-top: 6px solid var(--red);
}
.join-photo img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	transition: transform 0.7s var(--ease-race);
}
.join-photo:hover img { transform: scale(1.04); }
.join-photo figcaption {
	position: absolute;
	left: 0; bottom: 0;
	background: var(--yellow);
	color: var(--carbon);
	font-family: var(--font-cond);
	font-weight: 700;
	letter-spacing: 0.16em;
	padding: 8px 18px 7px;
	font-size: 13px;
}

.join-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
}
/* カード: ゼッケンナンバー付きピットパネル */
.join-card {
	position: relative;
	padding: 30px 26px 32px;
	background: var(--pit);
	border-left: 6px solid var(--red);
	overflow: hidden;
	transition: transform 0.35s var(--ease-race), box-shadow 0.35s var(--ease-race), border-color 0.3s;
}
.join-card:nth-child(2) { border-left-color: var(--white); }
.join-card:nth-child(3) { border-left-color: var(--yellow); }
/* カード奥の巨大な斜めナンバー装飾 */
.join-card::before {
	content: "";
	position: absolute;
	top: -20%; right: -12%;
	width: 55%; height: 140%;
	background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.035) 100%);
	transform: skewX(-14deg);
	pointer-events: none;
}
/* ホバー: 前へ加速 + 残像 */
.join-card:hover {
	transform: translateX(10px);
	box-shadow: -12px 0 0 rgba(225, 6, 0, 0.35), -24px 0 0 rgba(225, 6, 0, 0.14);
}
.join-card:nth-child(2):hover { box-shadow: -12px 0 0 rgba(255, 255, 255, 0.25), -24px 0 0 rgba(255, 255, 255, 0.1); }
.join-card:nth-child(3):hover { box-shadow: -12px 0 0 rgba(255, 196, 0, 0.35), -24px 0 0 rgba(255, 196, 0, 0.14); }

.card-num {
	display: block;
	font-family: var(--font-display);
	font-style: italic;
	font-size: 58px;
	line-height: 1;
	color: var(--red-hot);
	margin-bottom: 16px;
	text-shadow: -5px 0 0 rgba(255, 46, 31, 0.3);
}
.join-card:nth-child(2) .card-num { color: var(--white); text-shadow: -5px 0 0 rgba(255, 255, 255, 0.25); }
.join-card:nth-child(3) .card-num { color: var(--yellow); text-shadow: -5px 0 0 rgba(255, 196, 0, 0.3); }
.join-card h3 {
	font-weight: 900;
	font-size: 21px;
	letter-spacing: 0.02em;
	margin-bottom: 12px;
	line-height: 1.3;
}
.join-card p { margin: 0; font-size: 15px; line-height: 1.75; color: var(--silver); }

.join-cta {
	margin-top: 48px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 28px;
	justify-content: space-between;
}
.join-cta p { margin: 0; max-width: 520px; font-size: 15px; color: var(--silver); }
.join-cta-link {
	display: inline-block;
	margin-top: 8px;
	font-family: var(--font-cond);
	font-weight: 700;
	letter-spacing: 0.1em;
	color: var(--yellow);
	border-bottom: 2px solid var(--yellow);
	padding-bottom: 2px;
	transition: color 0.2s, border-color 0.2s, transform 0.3s var(--ease-race);
}
.join-cta-link:hover { color: var(--red-hot); border-bottom-color: var(--red-hot); transform: translateX(6px); }

/* =========================================================
   Schedule — レースカレンダー（白背景）
   ========================================================= */
.section-schedule {
	background: var(--white);
	max-width: none;
	margin: 0;
}
.section-schedule .section-head,
.section-schedule .schedule-grid,
.section-schedule .schedule-flow,
.section-schedule .schedule-photo,
.section-schedule .schedule-cta {
	max-width: var(--container);
	margin-left: auto;
	margin-right: auto;
}
.schedule-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
	margin-bottom: 44px;
}
.schedule-flow {
	margin-bottom: clamp(28px, 4vw, 44px);
}
.schedule-flow p {
	font-size: clamp(15px, 1.4vw, 17px);
	line-height: 1.9;
	margin: 0;
	max-width: 820px;
	color: var(--carbon);
}
.schedule-flow strong {
	background: var(--carbon);
	color: var(--yellow);
	padding: 2px 8px;
	letter-spacing: 0.06em;
	font-weight: 700;
}
/* カード: 上端レーシングストライプ + ホバーで加速 */
.schedule-card {
	position: relative;
	background: var(--white);
	border: 2px solid var(--carbon);
	border-top: 0;
	padding: 26px 22px 24px;
	overflow: hidden;
	transition: transform 0.35s var(--ease-race), box-shadow 0.35s var(--ease-race);
}
.schedule-card::before {
	/* 赤 → 黒のレーシングストライプ */
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 8px;
	background: linear-gradient(90deg, var(--red) 0 62%, var(--carbon) 62% 70%, var(--red) 70% 82%, var(--carbon) 82% 100%);
}
.schedule-card:hover {
	transform: translateX(8px) translateY(-4px);
	box-shadow: -12px 6px 0 rgba(225, 6, 0, 0.25), -24px 12px 0 rgba(225, 6, 0, 0.1);
}
.schedule-card .ico {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 6px 0 8px;
	color: var(--red);
}
.schedule-card .ico svg { display: block; width: 36px; height: 36px; }
.schedule-card h3 {
	font-family: var(--font-cond);
	font-weight: 700;
	letter-spacing: 0.14em;
	font-size: 13px;
	margin-bottom: 12px;
	color: var(--red);
	text-transform: uppercase;
}
.schedule-card .big {
	font-weight: 900;
	font-size: clamp(26px, 3vw, 36px);
	line-height: 1.1;
	margin: 0 0 4px;
	transform: skewX(-6deg);
	transform-origin: left bottom;
}
.schedule-card p { margin: 0; font-size: 14px; }
.schedule-card .note { margin-top: 8px; font-size: 12px; opacity: 0.7; letter-spacing: 0.02em; }

.schedule-photo {
	margin: 0 auto 40px;
	position: relative;
	overflow: hidden;
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - 34px), calc(100% - 34px) 100%, 0 100%);
	border-left: 10px solid var(--red);
	box-shadow: 0 20px 50px rgba(10, 10, 13, 0.18);
}
.schedule-photo img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}
.schedule-photo figcaption {
	position: absolute;
	left: 0; bottom: 0;
	right: 0;
	background: linear-gradient(90deg, rgba(10, 10, 13, 0.92), rgba(10, 10, 13, 0.6));
	color: var(--white);
	padding: 12px 16px;
	font-weight: 700;
	font-size: 13px;
}
.schedule-cta { display: flex; justify-content: center; }

/* =========================================================
   FAQ — ピットレーン（明るいグレー）
   ========================================================= */
.section-faq { background: var(--smoke); max-width: none; margin: 0; }
.section-faq .section-head,
.section-faq .faq-list { max-width: var(--container); margin-left: auto; margin-right: auto; }

.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item {
	background: var(--white);
	border-left: 6px solid var(--red);
	box-shadow: 0 4px 14px rgba(10, 10, 13, 0.08);
	transition: transform 0.35s var(--ease-race), box-shadow 0.35s var(--ease-race);
}
.faq-item:hover,
.faq-item[open] {
	transform: translateX(8px);
	box-shadow: -10px 0 0 rgba(225, 6, 0, 0.25), 0 6px 18px rgba(10, 10, 13, 0.1);
}
.faq-item summary {
	list-style: none;
	cursor: pointer;
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 14px;
	padding: 20px 20px;
	font-weight: 700;
	font-size: clamp(15px, 1.5vw, 18px);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .q {
	font-family: var(--font-display);
	font-style: italic;
	color: var(--red);
	font-size: 26px;
	line-height: 1;
}
.faq-item .q-icon {
	font-family: var(--font-display);
	font-size: 30px;
	line-height: 1;
	color: var(--carbon);
	transition: transform 0.35s var(--ease-race), color 0.2s;
}
.faq-item[open] .q-icon { transform: rotate(45deg); color: var(--red); }
.faq-body { padding: 0 20px 20px 60px; }
.faq-body p { margin: 0; color: #34363c; }

/* =========================================================
   Contact — レッドゾーン（赤地に反転）
   ========================================================= */
.section-contact {
	background: var(--red);
	color: var(--white);
	max-width: none;
	margin: 0;
	overflow: hidden;
	/* 鋭角に切り込む上端 */
	clip-path: polygon(0 3.5vw, 100% 0, 100% 100%, 0 100%);
	padding-top: calc(clamp(72px, 12vw, 150px) + 3.5vw);
}
.section-contact .section-head,
.section-contact .contact-actions,
.section-contact .contact-note {
	max-width: var(--container);
	margin-left: auto;
	margin-right: auto;
	position: relative;
	z-index: 1;
}
.contact-speedlines {
	position: absolute;
	inset: 0;
	background-image: repeating-linear-gradient(115deg,
		transparent 0, transparent 90px,
		rgba(10, 10, 13, 0.08) 90px, rgba(10, 10, 13, 0.08) 96px);
	pointer-events: none;
}
.section-contact .kicker { background: var(--carbon); color: var(--yellow); box-shadow: -6px 0 0 rgba(10, 10, 13, 0.35), -12px 0 0 rgba(10, 10, 13, 0.15); }
.section-contact .section-title em { background: var(--carbon); color: var(--yellow); box-shadow: -8px 0 0 rgba(10, 10, 13, 0.3), -16px 0 0 rgba(10, 10, 13, 0.12); }
.section-contact .section-lead { color: var(--white); }

.contact-actions {
	display: grid;
	grid-template-columns: 1fr;
	gap: 18px;
	margin-bottom: 32px;
}
/* DM ボタン: ブランドカラー + 加速ホバー */
.dm-btn {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 22px 26px;
	color: var(--white);
	border: 3px solid var(--carbon);
	box-shadow: 6px 6px 0 var(--carbon);
	transition: transform 0.3s var(--ease-race), box-shadow 0.3s var(--ease-race);
	will-change: transform;
}
.dm-btn:hover {
	transform: translateX(6px) translateY(-3px);
	box-shadow: -8px 9px 0 var(--carbon), -18px 9px 0 rgba(10, 10, 13, 0.4);
}
.dm-btn:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }
.dm-btn .arr { display: inline-block; transition: transform 0.3s var(--ease-race); }
.dm-btn:hover .arr { transform: translateX(6px); }
.dm-icon { flex: 0 0 auto; }
.dm-label { display: flex; flex-direction: column; gap: 2px; line-height: 1.2; }
.dm-service {
	font-family: var(--font-cond);
	font-weight: 700;
	font-style: italic;
	font-size: clamp(22px, 2.4vw, 28px);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.dm-action { font-size: 14px; letter-spacing: 0.02em; }

.dm-instagram {
	background: linear-gradient(120deg, #F58529 0%, #DD2A7B 50%, #8134AF 100%);
}
.dm-facebook { background: #0866FF; }

.contact-note {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	max-width: 760px;
	margin: 0 auto;
	font-size: 14px;
	color: var(--white);
	background: rgba(10, 10, 13, 0.35);
	border-left: 4px solid var(--yellow);
	padding: 14px 18px;
}
.contact-note-mark {
	font-family: var(--font-display);
	font-size: 20px;
	line-height: 1;
	color: var(--yellow);
	flex: 0 0 auto;
}

/* =========================================================
   Final CTA — チェッカーフラッグ（ゴール）
   ========================================================= */
.final-cta {
	position: relative;
	min-height: 72vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 120px var(--gutter);
	color: var(--white);
	overflow: hidden;
	background: var(--carbon);
}
.final-cta-bg { position: absolute; inset: 0; }
.final-cta-bg img {
	width: 100%; height: 100%;
	object-fit: cover;
	opacity: 0.3;
	filter: contrast(1.1) saturate(0.9);
}
.final-cta-bg::after {
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(115deg, rgba(10, 10, 13, 0.85) 0%, rgba(225, 6, 0, 0.5) 100%);
}
/* ゴールへ向かう流線 */
.final-cta-streaks { position: absolute; inset: 0; pointer-events: none; }
.final-cta-streaks span {
	position: absolute;
	height: 2px;
	width: 30vw;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5));
	transform: skewY(-6deg);
	animation: streak 3.8s linear infinite;
	opacity: 0;
}
.final-cta-streaks span:nth-child(1) { top: 22%; animation-delay: 0.3s; }
.final-cta-streaks span:nth-child(2) { top: 52%; animation-delay: 1.6s; background: linear-gradient(90deg, transparent, rgba(255, 46, 31, 0.7)); }
.final-cta-streaks span:nth-child(3) { top: 80%; animation-delay: 2.6s; width: 22vw; background: linear-gradient(90deg, transparent, rgba(255, 196, 0, 0.55)); }

.final-cta-inner {
	position: relative;
	z-index: 1;
	text-align: center;
	max-width: 920px;
}
.final-title {
	font-family: var(--font-display);
	font-style: italic;
	font-size: clamp(56px, 14vw, 190px);
	line-height: 0.92;
	text-transform: uppercase;
	margin-bottom: 22px;
	text-shadow: -8px 0 0 rgba(225, 6, 0, 0.4), -18px 0 0 rgba(225, 6, 0, 0.18);
}
.final-title em {
	font-style: italic;
	color: var(--yellow);
	display: inline-block;
	text-shadow: -8px 0 0 rgba(255, 196, 0, 0.3), -18px 0 0 rgba(255, 196, 0, 0.12);
}
.final-lead { font-size: clamp(16px, 1.6vw, 20px); margin-bottom: 36px; font-weight: 700; }

/* =========================================================
   Footer — ピットガレージ
   ========================================================= */
.site-footer {
	background: var(--carbon);
	color: var(--white);
	padding: 0 var(--gutter) 24px;
}
/* トリプルレーシングストライプ + チェッカー */
.footer-stripe {
	position: relative;
	height: 14px;
	margin: 0 calc(-1 * var(--gutter)) 64px;
	background: linear-gradient(90deg,
		var(--red) 0 55%,
		var(--carbon) 55% 60%,
		var(--red) 60% 72%,
		var(--carbon) 72% 76%,
		var(--yellow) 76% 84%,
		var(--carbon) 84% 100%);
}
.footer-stripe::after {
	content: "";
	position: absolute;
	right: 0; top: 0; bottom: 0;
	width: 90px;
}
.footer-inner {
	max-width: var(--container);
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr;
	gap: 40px;
}
.footer-brand img { filter: invert(1) brightness(2); margin-bottom: 16px; }
.footer-brand p { color: var(--silver); font-size: 14px; }
.footer-nav h4, .footer-sns h4 {
	font-family: var(--font-cond);
	font-weight: 700;
	letter-spacing: 0.2em;
	font-size: 13px;
	color: var(--red-hot);
	margin-bottom: 14px;
}
.footer-nav ul, .footer-sns ul { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a, .footer-sns a {
	display: inline-block;
	font-size: 14px;
	transition: color 0.2s, transform 0.3s var(--ease-race);
}
.footer-nav a:hover, .footer-sns a:hover { color: var(--red-hot); transform: translateX(6px); }
.footer-bottom {
	max-width: var(--container);
	margin: 56px auto 0;
	padding-top: 20px;
	border-top: 1px solid var(--line);
	color: #9096a2;
	font-size: 12px;
}

/* =========================================================
   Reveal (Intersection Observer) — 左から加速して登場
   ========================================================= */
.reveal {
	opacity: 0;
	transform: translateX(-50px) skewX(-2deg);
	transition: opacity 0.65s var(--ease-race), transform 0.65s var(--ease-race);
	will-change: opacity, transform;
}
.reveal[data-direction="left"]  { transform: translateX(-70px) skewX(-3deg); }
.reveal[data-direction="right"] { transform: translateX(70px) skewX(3deg); }
.reveal[data-direction="up"]    { transform: translateY(40px); }
.reveal.in-view { opacity: 1; transform: none; }

/* 動きを減らす設定のユーザーには装飾アニメーションを止める
   （※Hero 動画の再生は script.js 側で止めない — iOS 低電力モード既知問題のため） */
@media (prefers-reduced-motion: reduce) {
	.reveal { opacity: 1; transform: none; transition: none; }
	.hero-title .line { transform: none; opacity: 1; animation: none; }
	.hero-sub, .hero-actions { opacity: 1; animation: none; }
	.ticker-track { animation: none; }
	.hero-streaks span, .final-cta-streaks span { animation: none; opacity: 0; }
}

/* =========================================================
   Responsive（モバイルファースト: min-width で拡張）
   ========================================================= */

/* --- タブレット --- */
@media (min-width: 640px) {
	.stats { grid-template-columns: repeat(4, 1fr); }
	.stat-item { border-bottom: 0; padding: 44px var(--gutter); }
	.stat-item:nth-child(odd)::before { display: block; }
	.stat-item:first-child::before { display: none; }

	.schedule-grid { grid-template-columns: repeat(2, 1fr); }
	.join-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
	.contact-actions { grid-template-columns: repeat(2, 1fr); }
	.footer-inner { grid-template-columns: 2fr 1fr 1fr; }
}

/* --- デスクトップ --- */
@media (min-width: 961px) {
	.site-nav { display: flex; }
	.menu-toggle { display: none; }

	.hero-inner { padding-top: 140px; padding-bottom: 80px; }

	.team-grid { grid-template-columns: 1.2fr 1fr; }
	.team-spec > div { grid-template-columns: 140px 1fr; }

	.schedule-grid { grid-template-columns: repeat(4, 1fr); }
	.schedule-photo img { aspect-ratio: 16 / 7; }

	.btn { font-size: 17px; }
	.btn-big { font-size: 21px; padding: 22px 46px 21px; }
}

/* 高さの低いデスクトップ (ノート PC 等): Hero の縦余白を詰めて
   tag + 3 行見出し + sub + ボタン + ticker を 1 画面に収める */
@media (min-width: 961px) and (max-height: 840px) {
	.hero-inner { padding-top: 96px; padding-bottom: 48px; }
	.hero-title { margin-bottom: 18px; }
	.hero-tag span { margin-bottom: 16px; }
	.hero-sub { margin-bottom: 24px; }
}
