@charset "UTF-8";

/* ============================================================
   HUBRIDE Front-page First View
   設計書: hubride-design-spec.md §1. トップページ > FV
   - 白ベース × Noto Serif JP × 一文字フェードイン
   - タイミング: 1行目 0.5s / 2行目 2.3s / アクセント 4.2s / CTA 4.8s
   - cache-bust marker: fv-v2
   ============================================================ */

.hubride-fv {
	position: relative;
	height: 80vh;
	min-height: 600px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #ffffff;
	padding: 6rem 1.5rem 8rem;
	overflow: hidden;
	isolation: isolate;
}

/* ---- 背景動画 (inset rounded box) ----
   .hubride-fv { height: 80vh } を親にして height は 100% 基準で計算。
   これで中途半端な幅でも動画が常にセクションにフィットする。
   z-index は付けない（mix-blend-mode が効かなくなるため）。 */
.hubride-fv__bg-video {
	position: absolute;
	top: 2vh;
	left: 5%;
	width: 90%;
	height: calc(100% - 4vh);
	object-fit: cover;
	border-radius: 24px;
	pointer-events: none;
	user-select: none;
}

@media (max-width: 820px) {
	.hubride-fv__bg-video {
		top: 1rem;
		left: 1rem;
		width: calc(100% - 2rem);
		height: calc(100% - 2rem);
		border-radius: 16px;
	}
}

.hubride-fv__inner {
	width: 100%;
	max-width: 100%;
	text-align: left;
	padding-left: 7%;
	padding-right: 7%;
	position: relative;
	/* z-index は付けない。DOM 順 (video→inner) で自動的に inner が上に描画される。
	   z-index: 1 を付けると新しい stacking context ができて h1 の blend mode が
	   背景動画まで届かなくなる。 */
}

/* ---- コピー ----
   NOTE: `.hubride-fv` プレフィックスを付けて詳細度 (0,2,0) = 20 に引き上げ、
   SWELL親テーマの `.post_content h1 { font-size: 2em }` (0,1,1)=11 を蹴散らす。
   font-size は以前の 5.3vw / 5.5rem から 75% に縮小（4vw / 4.1rem）。
   1920px viewport で約66px、設計書の「大胆な明朝体」感は維持しつつ控えめに。 */
.hubride-fv .hubride-fv__copy {
	margin: 0;
	font-family: "Noto Serif JP", "Yu Mincho", "游明朝", serif;
	font-weight: 100;
	color: #ffffff;
	letter-spacing: 0.12em;
	/* 幅・高さ両方でフォントサイズを追従。
	   min-height: 600px で FV が縮まなくなる縦 750px 以下では、
	   9vh を max() で 67.5px に床固定→テキストも連動して縮小停止。 */
	font-size: clamp(1rem, min(4.8vw, max(9vh, 67.5px)), 10rem);
	line-height: 1.6;
	text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.12);
}

/* 文字単位の色は親（.hubride-fv__copy）の rgba から継承させる */
.hubride-fv__line .hubride-fv__char {
	color: inherit;
}

.hubride-fv__line {
	display: block;
	white-space: nowrap;
	/* 初期は非表示にして jaticker 開始前のテキストちらつきを防止。
	   JS 側で is-typing クラスを付与した瞬間に可視化する。 */
	visibility: hidden;
}
.hubride-fv__line.is-typing {
	visibility: visible;
}

.hubride-fv__line + .hubride-fv__line {
	margin-top: 0.35em;
}

/* jaticker IME風タイピング — ルビ読みを非表示にする（jaticker が処理する） */
.hubride-fv__line rt {
	display: none;
}

/* jaticker のカーソルスタイル */
.hubride-fv__line .jaticker-cursor {
	font-weight: 300;
	color: inherit;
}

/* ---- アクセントライン — 非表示 ---- */
.hubride-fv__accent {
	display: none;
}

/* ---- 動画エリア ---- */
.hubride-fv__video {
	margin: 2.4rem auto 0;
	max-width: 720px;
	aspect-ratio: 16 / 9;
	background: #f2f2f2;
	border: 1px solid #e5e5e5;
	position: relative;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 0.8s ease, transform 0.8s ease;
	overflow: hidden;
}

.hubride-fv__video.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.hubride-fv__video video,
.hubride-fv__video img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.hubride-fv__video-placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #999;
	font-family: "Noto Serif JP", serif;
	font-size: 0.9rem;
	letter-spacing: 0.08em;
}

/* ---- CTA 3ボタン（fv.js が is-visible を付与してふわっと fade-in） ---- */
.hubride-fv__cta {
	position: absolute;
	bottom: 5%;
	right: 7%;
	z-index: 10;
	margin-top: 0;
	display: flex;
	gap: 0.8rem;
	flex-wrap: wrap;
	justify-content: flex-end;
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 0.8s ease, transform 0.8s ease;
}
.hubride-fv__cta.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.hubride-fv__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: clamp(120px, 12vw, 200px);
	padding: clamp(0.6rem, 0.8vw, 1rem) clamp(1rem, 1.5vw, 2rem);
	font-family: "Inter", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
	font-size: clamp(0.75rem, 0.9vw, 0.95rem);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-decoration: none;
	border-radius: 12px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3), 0 2px 12px rgba(0, 0, 0, 0.2);
	transition: background 0.3s ease, color 0.3s ease, opacity 0.3s ease;
}
.hubride-fv__btn:hover,
.hubride-fv__btn:focus-visible {
	transform: none;
}

.hubride-fv__btn--primary {
	background: rgba(26, 26, 26, 0.75);
	color: #ffffff;
	border: 1px solid #1a1a1a;
}
.hubride-fv__btn--primary:hover,
.hubride-fv__btn--primary:focus-visible {
	background: rgba(26, 26, 26, 0.95);
}

.hubride-fv__btn--line {
	background: rgba(6, 199, 85, 0.75);
	color: #ffffff;
	border: 1px solid #06c755;
}
.hubride-fv__btn--line:hover,
.hubride-fv__btn--line:focus-visible {
	background: rgba(6, 199, 85, 0.95);
}

.hubride-fv__btn--ghost {
	background: rgba(255, 255, 255, 0.75);
	color: #1a1a1a;
	border: 1px solid #ffffff;
}
.hubride-fv__btn--ghost:hover,
.hubride-fv__btn--ghost:focus-visible {
	background: rgba(255, 255, 255, 0.95);
}

/* ---- モーション配慮 ---- */
@media (prefers-reduced-motion: reduce) {
	.hubride-fv__char,
	.hubride-fv__accent,
	.hubride-fv__video,
	.hubride-fv__cta {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* ---- スマホ調整 ---- */
@media (max-width: 600px) {
	.hubride-fv {
		padding: 3rem 1rem;
		height: 60vh;
		min-height: 420px;
	}
	.hubride-fv__copy {
		line-height: 1.5;
	}
	/* SP のコピー文字サイズ（テキスト大きめに、4行が 60vh に収まる）。
	   min-height: 420px で FV が縮まなくなる縦 700px 以下では、
	   8vh を max() で 56px に床固定→テキストも連動して縮小停止。 */
	.hubride-fv .hubride-fv__copy {
		font-size: clamp(1.3rem, min(7vw, max(8vh, 56px)), 12rem);
	}
	.hubride-fv .hubride-fv__line + .hubride-fv__line {
		margin-top: 0.2em;
	}
	.hubride-fv {
		overflow: visible;
	}
	.hubride-fv__cta {
		position: absolute;
		bottom: -3.5rem;
		left: 5%;
		right: 5%;
		display: flex;
		flex-direction: row;
		flex-wrap: nowrap;
		gap: 0.5rem;
		justify-content: center;
		z-index: 10;
	}
	.hubride-fv + .hubride-section {
		margin-top: 3rem;
	}
	.hubride-fv__btn {
		min-width: 0;
		flex: 1;
		padding: 0.8rem 1rem;
		font-size: 0.75rem;
		white-space: nowrap;
		box-shadow: none;
		border: none;
	}
	.hubride-fv__btn--ghost {
		border: 1px solid #e7e7e7 !important;
	}
}
