@charset "UTF-8";

/* ==========================================================
   BASE
   ========================================================== */
:root {
	--black: #1a1615;
	--gray: var(--black); /* 一旦グレー文字はすべて黒に（戻すときは #8a8584） */
	--line: #dcd9d6;
	--green: #788b3b; /* 緑（ニット画像 messageImage_1792567940459.jpg の平均色 #525a2a を、黒と見分けがつくよう明るく） */
	--photo-bg: #e9e8e6;
	/* 欧文セリフ：Baskerville 版を確認中。Garamond に戻す場合は下の行と入れ替え
	--serif: 'Cormorant Garamond', 'Shippori Mincho', serif; */
	--serif: 'baskerville-urw', 'Shippori Mincho', serif;
	--mincho: 'Shippori Mincho', 'Yu Mincho', 'YuMincho', serif;
	--sans: 'Lato', 'Yu Gothic Medium', '游ゴシック Medium', YuGothic, 'ヒラギノ角ゴ Pro W3', 'メイリオ', sans-serif;
	--header-h: 72px;
	--side: 40px;
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
}
@media (max-width: 767px) {
	:root {
		--header-h: 56px;
		--side: 16px;
	}
}

*,
*::before,
*::after {
	box-sizing: border-box;
}
html {
	-webkit-text-size-adjust: 100%;
}
body {
	margin: 0;
	background: #fff;
	color: var(--black);
	font-family: var(--sans);
	font-variant-numeric: lining-nums;
	-webkit-font-smoothing: antialiased;
}
img {
	display: block;
	max-width: 100%;
}
a {
	color: inherit;
	text-decoration: none;
}
button {
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
}
figure {
	margin: 0;
}
ul,
ol {
	list-style: none;
	margin: 0;
	padding: 0;
}
h1,
h2,
h3,
p {
	margin: 0;
	font-weight: 400;
}

/* ==========================================================
   HEADER
   ========================================================== */
.header {
	position: fixed;
	inset: 0 0 auto;
	z-index: 50;
	height: var(--header-h);
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 var(--side);
	background: #fff;
}
.header__logo img {
	width: 150px;
	height: auto;
}
.header__season {
	font-family: var(--serif);
	font-size: 14px;
	letter-spacing: 0.16em;
	opacity: 0;
	transition: opacity 0.6s ease;
}
.is-mv-out .header__season {
	opacity: 1;
}
@media (max-width: 767px) {
	.header__logo img {
		width: 112px;
	}
	.header__season {
		display: none; /* SP はロゴだけ（下にタイトルの帯） */
	}
}
/* SP：ヘッダーの下のタイトルの帯（デザイン P10）。MV の帯（PC）の 0.351 倍（360 幅基準）で、左右に振り分け */
.header__band {
	display: none;
}
@media (max-width: 767px) {
	:root {
		--band-h: calc(100vw / 360 * 36); /* デザインは 31.87（90.75 × 0.3512）。二重罫線の間を少し広げた 2026-10-21 */
	}
	.header__band {
		--r: calc(100vw / 360 * 0.3512);
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: flex;
		align-items: center;
		justify-content: space-between;
		height: var(--band-h);
		padding: 0 var(--side);
		color: #000;
		font-family: var(--serif);
		line-height: 1;
		white-space: nowrap;
	}
	.header__year {
		font-size: calc(27.8 * var(--r));
		font-weight: 600;
	}
	.header__name {
		position: absolute;
		left: 50%;
		top: 50%;
		transform: translate(-50%, -50%);
		font-size: calc(55.9 * var(--r));
		font-weight: 600;
		letter-spacing: -0.042em;
		text-indent: -0.042em;
	}
	.header__copy {
		font-family: 'brandon-grotesque', sans-serif;
		font-size: calc(11.8 * var(--r));
		font-weight: 700;
		line-height: 1.27;
		letter-spacing: 0.054em;
		text-align: center;
	}
}

/* ==========================================================
   MAIN VISUAL
   デザイン：デザイン2/babylone_冒頭モーション部分/babylone.pdf
   PDF の座標（PC 1280×800 / SP 360×640）をそのまま「ステージ」の単位にして、
   画面に収まるよう --u で拡大縮小する。縦長の画面は SP レイアウト。
   人物の位置は JS で --x / --y / --h（PC は -pc、SP は -sp）として渡す。
   ========================================================== */
.mv {
	--u: min(calc(100vw / 1280), calc(100svh / 800));
	--t: var(--u); /* タイトルの単位（SP は PC の 0.405 倍） */
	--baskerville: 'baskerville-urw', 'Baskerville', 'Libre Baskerville', serif;
	position: relative;
	height: 100svh;
	overflow: hidden;
	background: #fff;
}
.mv__stage {
	position: absolute;
	left: 50%;
	top: 50%;
	width: calc(1280 * var(--u));
	height: calc(800 * var(--u));
	transform: translate(-50%, -50%);
}
@media (orientation: portrait) {
	.mv {
		--u: min(calc(100vw / 360), calc(100svh / 640));
		--t: calc(var(--u) * 0.405);
	}
	.mv__stage {
		width: calc(360 * var(--u));
		height: calc(640 * var(--u));
	}
}

/* 人物（一覧・オープニング共通） */
.mv__fig {
	--x: var(--x-pc);
	--y: var(--y-pc);
	--h: var(--h-pc);
	position: absolute;
	left: calc(var(--x) * var(--u));
	top: calc(var(--y) * var(--u));
	margin: 0;
	transform: translateX(-50%);
	transform-origin: 50% 100%; /* ランダムで大きくなるモーション（scale）は足元基準 */
}
.mv__fig.is-pop {
	z-index: 1;
}
@media (orientation: portrait) {
	.mv__fig {
		--x: var(--x-sp);
		--y: var(--y-sp);
		--h: var(--h-sp);
	}
}
.mv__fig img {
	height: calc(var(--h) * var(--u));
	width: auto;
	max-width: none;
	transform-origin: center bottom;
	transition: transform 0.6s var(--ease);
}

/* 一覧の人物：オープニング後に順番にフェードイン（.is-loaded） */
.mv__lineup .mv__fig {
	opacity: 0;
	transition: opacity 1.1s var(--ease);
	transition-delay: var(--d, 0s);
}
.is-loaded .mv__lineup .mv__fig {
	opacity: 1;
}
.mv__fig span {
	position: absolute;
	top: -33px;
	left: var(--head, 50%); /* 頭の中心（JSで画像ごとに指定） */
	transform: translateX(-50%);
	font-family: var(--serif);
	font-size: 15px;
	font-weight: 500;
	opacity: 0;
	transition: opacity 0.3s;
}

/* 登場中はマウスに反応させない（登場完了で .is-mv-ready） */
.mv__lineup {
	pointer-events: none;
}
.is-mv-ready .mv__lineup {
	pointer-events: auto;
}
.mv__lineup .mv__fig {
	cursor: pointer;
}
/* 登場後（マウスアウトで戻るとき）は、順番の遅延を登場時の40%に短縮し、フェードはゆっくり */
.is-mv-ready .mv__lineup .mv__fig {
	transition-delay: calc(var(--d, 0s) * 0.4);
	transition-duration: 1.6s;
}
/* PC: マウスオーバーした人物を少し持ち上げる */
@media (hover: hover) and (orientation: landscape) {
	/* 他の人物を薄くする演出は一旦オフ（復活時はコメントを外す）
	.is-mv-ready .mv__lineup:has(.mv__fig:hover) .mv__fig:not(:hover) {
		opacity: 0.45;
		transition-delay: 0s;
		transition-duration: 0.4s;
	}
	.is-mv-ready .mv__lineup .mv__fig:hover {
		opacity: 1;
		transition: none;
	}
	*/
	/* マウスオーバーした人物を最前面に、下端中央を基点に102% */
	.mv__lineup .mv__fig:hover {
		z-index: 2;
	}
	.mv__lineup .mv__fig:hover img {
		transform: translateY(-6px) scale(1.02);
	}
	/* マウスオーバーで頭の上に出す番号は一旦オフ（復活時はコメントを外す）
	.mv__lineup .mv__fig:hover span {
		opacity: 1;
	}
	*/
	/* 足元に＋を表示 */
	.mv__lineup .mv__fig:hover .mv__plus {
		opacity: 1;
	}
	/* カーソルは「VIEW」の丸（.mv__cursor）に置きかえる */
	.is-mv-ready .mv__lineup .mv__fig {
		cursor: none;
	}
}

/* 人物の足元の＋（一覧の写真の＋とそろえる）。PC のマウスオーバーで表示 */
.mv__plus {
	position: absolute;
	top: calc(100% + 8 * var(--u));
	left: 50%;
	width: calc(14 * var(--u));
	height: calc(14 * var(--u));
	margin-left: calc(-7 * var(--u));
	opacity: 0;
	transition: opacity 0.3s;
	pointer-events: none;
}
.mv__plus::before,
.mv__plus::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 0;
	width: 100%;
	height: 1px;
	margin-top: -0.5px;
	background: var(--black);
}
.mv__plus::after {
	transform: rotate(90deg);
}

/* 「VIEW」の丸（.mv の中の位置を JS で translate）
   PC：人物の上でマウスについてくる／タッチ端末：登場後に一度だけ左下→右下へ流れて消える（main.js waveHint） */
.mv__cursor {
	position: absolute;
	left: 0;
	top: 0;
	z-index: 60;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	margin: -36px 0 0 -36px;
	border-radius: 50%;
	background: rgba(26, 22, 21, 0.88);
	color: #fff;
	font-family: 'brandon-grotesque', sans-serif;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-indent: 0.2em;
	pointer-events: none;
	opacity: 0;
	scale: 0.4;
	transition:
		opacity 0.3s,
		scale 0.4s var(--ease);
}
.mv__cursor.is-show {
	opacity: 1;
	scale: 1;
}


/* タイトル：二重罫線の帯に 2026 WINTER / THE COAT GUIDE / コピー
   デザイン：デザイン4/babylone_web1021フォルダー03/babylone_web1021.pdf（PC P5・SP P9）
   位置は帯の中心が基準。各文字の中心を --x / --y（PC の座標、単位 --t）で指定。SP は PC の 0.405 倍で縦積み */
.mv__title {
	position: absolute;
	left: calc(641.4 * var(--u));
	top: calc(399.9 * var(--u));
	width: 0;
	height: 0;
	font-family: var(--baskerville);
	color: #000;
	line-height: 1;
	white-space: nowrap;
	opacity: 0;
	transition: opacity 1.6s ease 1.1s;
}
@media (orientation: portrait) {
	.mv__title {
		left: calc(180 * var(--u));
		top: calc(320.75 * var(--u));
	}
}
.is-loaded .mv__title {
	opacity: 1;
}
.mv__title > span {
	position: absolute;
	left: calc(var(--x, 0) * var(--t));
	top: calc(var(--y, 0) * var(--t));
	transform: translate(-50%, -50%);
}
/* 二重罫線（外側が太線、内側が細線）。--r は線の単位 */
.mv__rules,
.header__band {
	background:
		linear-gradient(currentColor, currentColor) 0 0 / 100% calc(3.25 * var(--r)) no-repeat,
		linear-gradient(currentColor, currentColor) 0 calc(5.25 * var(--r)) / 100% calc(1 * var(--r)) no-repeat,
		linear-gradient(currentColor, currentColor) 0 calc(100% - 5.5 * var(--r)) / 100% calc(1 * var(--r)) no-repeat,
		linear-gradient(currentColor, currentColor) 0 100% / 100% calc(3.25 * var(--r)) no-repeat;
}
.header__band {
	background-color: #fff; /* 上の background で消えるのでここで指定 */
}
.mv__rules {
	--r: var(--t);
	width: calc(1023.75 * var(--t));
	height: calc(90.75 * var(--t));
}
.mv__year {
	--x: -377.95;
	--y: -0.85;
	font-size: calc(27.8 * var(--t));
	font-weight: 600;
}
.mv__name {
	--x: -0.3;
	--y: -0.65;
	font-size: calc(55.9 * var(--t));
	font-weight: 600;
	/* Baskerville URW は PDF（Baskerville SemiBold）より字幅が広いので、字間を詰めて幅 466 に合わせる */
	letter-spacing: -0.042em;
	text-indent: -0.042em;
}
.mv__copy {
	--x: 372.3;
	--y: -0.1;
	font-family: 'brandon-grotesque', sans-serif;
	font-size: calc(11.8 * var(--t));
	font-weight: 700;
	line-height: 1.27;
	letter-spacing: 0.054em;
	text-align: center;
}
@media (orientation: portrait) {
	.mv__rules {
		width: 100vw; /* SP は画面幅いっぱい */
	}
	.mv__year {
		--x: 4.8;
		--y: -79.6;
	}
	.mv__name {
		--x: 4.8;
		--y: 0.15;
	}
	.mv__copy {
		--x: 4.6;
		--y: 84.9;
		font-size: calc(11.8 * var(--t) + 2px); /* デザインより 2px 大きく */
	}
}

/* OPENING */
.intro {
	position: absolute;
	inset: 0;
	z-index: 5;
	background: #fff;
	transition: opacity 0.6s ease;
}
.intro.is-done {
	opacity: 0;
	pointer-events: none;
}
/* ロゴ → 1人 → 3人 → 5人。前の人物は残したまま、順にフェードイン（2026-10-21 デザイン5） */
.intro__step {
	opacity: 0;
	transition: opacity 0.7s var(--ease);
}
.intro__step.is-in {
	opacity: 1;
}
.intro__logo {
	position: absolute;
	left: calc(494 * var(--u));
	top: calc(376 * var(--u));
	width: calc(291.3 * var(--u));
	height: auto;
}
@media (orientation: portrait) {
	.intro__logo {
		left: calc(106.9 * var(--u));
		top: calc(307.9 * var(--u));
		width: calc(145.6 * var(--u));
	}
}
.intro__ui {
	pointer-events: none;
}
.intro__skip {
	position: absolute;
	left: calc(641.85 * var(--u));
	top: calc(753.6 * var(--u));
	width: calc(53.9 * var(--u));
	height: calc(12.7 * var(--u) + 2px); /* 上下 padding 1px ずつ */
	padding: 1px 0;
	transform: translateX(-50%);
	border: 1px solid var(--black); /* .filter の罫線と揃える */
	font-family: var(--sans); /* .filter__label と同じゴシック */
	font-weight: 400;
	font-size: calc(10.6 * var(--u));
	line-height: 1;
	letter-spacing: 0.08em; /* デザインに合わせて詰める */
	text-indent: 0.08em; /* 字間ぶん右にずれないよう中央を補正 */
	color: #000;
	background: #fff;
	pointer-events: auto;
}
.intro__skip::before {
	/* クリック範囲を広げる */
	content: '';
	position: absolute;
	inset: -12px -16px;
}
@media (orientation: portrait) {
	.intro__skip {
		left: calc(181.85 * var(--u));
		top: calc(598.6 * var(--u));
	}
}

/* ヘッダーはメインビジュアルが70%見切れたら表示（MVのデザインと重ならないように） */
.header {
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.6s ease;
}
.is-mv-out .header {
	opacity: 1;
	pointer-events: auto;
}

/* ==========================================================
   THEME（CHIC〜COLOR のスライドショー）
   デザイン：デザイン4/babylone_web1021フォルダー/babylone_webオープニング.pdf
   PC：4ルックを横に並べる（PDF 1389×868）／SP：2×2
   切り替え：画面に固定し、スクロールで CHIC → BROWN → NUANCE → COLOR をフェードで切り替え（2026-10-21）
   .themes の高さ ＝ 固定する高さ ＋ 3.5 × --theme-step（1枚ぶんのスクロール量）
   最後の COLOR は一覧へ流れる前に少し長めに止める（＋0.5 枚ぶん。main.js の THEME_LAST と合わせる）
   ========================================================== */
.themes {
	--theme-top: var(--header-h); /* 止まる位置（ヘッダーの下） */
	--theme-h: calc(100svh - var(--theme-top));
	--theme-step: 80svh;
	position: relative;
	height: calc(var(--theme-h) + 3.5 * var(--theme-step));
	background: var(--photo-bg);
}
.themes__slides {
	position: sticky;
	top: var(--theme-top);
	height: var(--theme-h);
	overflow: hidden;
}
.themes__slide {
	position: absolute;
	inset: 0;
	display: block;
	color: #fff;
	opacity: 0;
	transition: opacity 0.8s ease;
}
.themes__slide.is-active {
	z-index: 1;
	opacity: 1;
}
.themes__photos {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	height: 100%;
}
.themes__photo {
	position: relative;
	overflow: hidden;
}
.themes__photo img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.themes__text {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 0 var(--side);
	text-align: center;
	text-shadow: 0 0 24px rgba(0, 0, 0, 0.18); /* 明るい服の上でも読めるように */
}
.themes__ttl {
	font-family: var(--serif);
	font-size: clamp(40px, 5.2vw, 96px);
	font-weight: 700;
	text-transform: uppercase;
	line-height: 1;
	letter-spacing: -0.01em;
}
.themes__lead {
	max-width: 30em;
	margin-top: clamp(16px, 2.4vw, 36px);
	font-family: var(--serif);
	font-weight: 500; /* マーキー（.marquee span）と同じ書体・太さ */
	font-size: clamp(12px, 1vw, 17px);
	line-height: 1.6;
	letter-spacing: 0.02em;
}
/* タイトル：.chapter__ttl と同じく、表示中のスライドで1文字ずつ下から上へ（消えていく間は表示したまま）
   リードはモーションなし（スライドのフェードと一緒に表示 2026-10-21） */
.themes__ttl span span {
	display: inline-block;
	opacity: 0;
	transform: translateY(0.4em);
	transition:
		opacity 0.8s ease,
		transform 0.8s var(--ease);
	transition-delay: calc(var(--i) * 0.08s);
}
.themes__slides.is-in .is-active .themes__ttl span span,
.themes__slide.is-leaving .themes__ttl span span {
	opacity: 1;
	transform: none;
}
@media (max-width: 767px) {
	.themes {
		--theme-top: calc(var(--header-h) + var(--band-h)); /* タイトルの帯の下 */
		--theme-step: 70svh;
	}
	.themes__photos {
		grid-template-columns: repeat(2, 1fr);
		grid-template-rows: repeat(2, 1fr);
	}
	.themes__ttl {
		font-size: 44px;
	}
	.themes__lead {
		max-width: 24em;
		font-size: 12px;
	}
}

/* ==========================================================
   FILTER
   ========================================================== */
.filter {
	position: sticky;
	top: var(--header-h);
	z-index: 40;
	background: #fff;
	border-top: 1px solid var(--black);
	border-bottom: 1px solid var(--black);
}
.filter__inner {
	display: flex;
	align-items: center;
	gap: 56px;
	height: 56px;
	padding: 0 var(--side);
}
.filter__group {
	--bx: 9px; /* ボタン左右の余白（クリック範囲を広げる） */
	display: flex;
	align-items: center;
	gap: 16px;
}
.filter__label {
	font-size: 10px;
	letter-spacing: 0.2em;
	color: var(--gray);
	margin-right: 4px;
}
.filter__group button {
	position: relative;
	font-family: var(--serif);
	font-size: 15.5px;
	font-weight: 600;
	text-transform: uppercase;
	line-height: 1;
	padding: 10px var(--bx);
	color: var(--gray);
}
.filter__group button::after {
	content: '';
	position: absolute;
	left: var(--bx); /* 下線は文字幅だけ */
	right: var(--bx);
	bottom: 4px;
	height: 1px;
	background: var(--black);
	transform: scaleX(0);
	transition: transform 0.4s var(--ease);
}
.filter__group button:hover {
	color: var(--black);
}
/* 選択中は緑の文字＋黒の下線 */
.filter__group button.is-active {
	color: var(--green);
}
.filter__group button.is-active::after {
	transform: scaleX(1);
}

/* 登場：ラベル → 各ボタンが遅延しながら下から上へ（.filter.is-in で発火） */
.filter__label,
.filter__count {
	opacity: 0;
	transition: opacity 0.6s ease;
}
.filter__count {
	transition-delay: 0.3s;
}
.filter__group button {
	opacity: 0;
	transform: translateY(12px);
	transition:
		color 0.3s,
		opacity 0.7s ease var(--d),
		transform 0.9s var(--ease) var(--d);
}
.filter__group button:nth-of-type(1) {
	--d: 0.5s;
}
.filter__group button:nth-of-type(2) {
	--d: 0.6s;
}
.filter__group button:nth-of-type(3) {
	--d: 0.7s;
}
.filter__group button:nth-of-type(4) {
	--d: 0.8s;
}
.filter__group button:nth-of-type(5) {
	--d: 0.9s;
}
.filter.is-in .filter__label,
.filter.is-in .filter__count {
	opacity: 1;
}
.filter.is-in .filter__group button {
	opacity: 1;
	transform: none;
}
.filter__count {
	margin-left: auto;
	font-size: 10px;
	letter-spacing: 0.2em;
}
.filter__count span {
	color: var(--green);
	font-family: var(--serif);
	font-size: 24px;
	font-weight: 500; /* 数字だけ少し太く（LOOKS は 400 のまま） */
	letter-spacing: 0.04em;
	margin-right: 4px;
}
@media (max-width: 767px) {
	/* ヘッダー下のタイトルの帯（.header__band）の下で止める。帯の下の罫線があるので上の罫線はなし */
	.filter {
		top: calc(var(--header-h) + var(--band-h));
		border-top: none;
	}
	/* デザイン案：見出し（TYPE / THEME）を上に置き、項目を中央揃えで1行に。件数は出さない（各章の見出し横に表示） */
	.filter__inner {
		flex-direction: column;
		gap: 1px;
		height: auto;
		padding: 7px var(--side) 8px;
	}
	.filter__group {
		--bx: clamp(4px, 2vw, 9px); /* THEME 5項目が1行に収まるよう 320px で約6px → 375px で約7.5px */
		flex-wrap: wrap;
		justify-content: center;
		gap: 0;
	}
	.filter__label {
		flex-basis: 100%;
		margin: 0;
		font-size: 9px;
		text-align: center;
		text-indent: 0.2em; /* 字間のぶん中央がずれないように */
	}
	.filter__group button {
		font-size: min(16px, 4.2vw); /* 375px で約15.75px */
		padding: 5px var(--bx) 6px;
	}
	.filter__group button::after {
		bottom: 3px;
	}
	.filter__count {
		display: none;
	}
}

/* ==========================================================
   INDEX / CHAPTERS
   ========================================================== */
.chapters {
	transition: opacity 0.25s;
}
.chapters.is-fading {
	opacity: 0;
}
.chapter {
	padding-bottom: 40px;
}
.chapter[hidden] {
	display: none;
}
.chapter__head {
	display: flex;
	align-items: center; /* タイトル・件数を上下中央で揃える */
	gap: 32px;
	padding: 120px var(--side) 36px;
}
.chapter__no {
	display: none;
}
.chapter__ttl {
	font-family: var(--serif);
	font-size: clamp(28px, 3.5vw, 52px); /* 旧 clamp(40px, 5vw, 74px) の約70% */
	font-weight: 600;
	text-transform: uppercase;
	line-height: 0.8;
	letter-spacing: 0.01em;
}
.chapter__count {
	/* .filter__count と同じ組み方（LOOKS はゴシック、数字はセリフ） */
	margin-left: auto;
	font-size: 10px;
	letter-spacing: 0.2em;
	white-space: nowrap;
}
.chapter__count--all {
	display: none; /* SP の絞り込みなしのときだけ表示 */
}
.chapter__count span {
	color: var(--green);
	font-family: var(--serif);
	font-size: 17px;
	letter-spacing: 0.04em;
	margin-right: 4px;
}

/* 登場：タイトルを1文字ずつ下から上へ → 件数をフェードイン（.chapter__head.is-in で発火） */
.chapter__ttl span span {
	display: inline-block;
	opacity: 0;
	transform: translateY(0.4em);
	transition:
		opacity 0.8s ease,
		transform 0.8s var(--ease);
	transition-delay: calc(var(--i) * 0.08s);
}
.chapter__count {
	opacity: 0;
	transition: opacity 0.8s ease;
	/* 最後の文字が出きる少し前から */
	transition-delay: calc(var(--n) * 0.08s + 0.5s);
}
.chapter__head.is-in .chapter__ttl span span,
.chapter__head.is-in .chapter__count {
	opacity: 1;
	transform: none;
}

.grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 36px 8px;
	padding: 0 var(--side);
}
.tile[hidden] {
	display: none;
}
.tile__link {
	display: block;
	width: 100%;
	text-align: left;
}
.tile__photo {
	position: relative;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	background: var(--photo-bg);
}
.tile__photo img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition:
		opacity 0.6s ease,
		transform 1.2s var(--ease);
}
.tile__photo img + img {
	opacity: 0;
}
.tile__no {
	display: none; /* 一旦非表示（復活時はこの行を削除） */
	position: absolute;
	top: 14px;
	right: 18px;
	z-index: 1;
	font-family: var(--serif);
	font-size: 32px;
	line-height: 1;
}
.tile__name {
	position: absolute;
	top: 50%;
	left: 8%;
	right: 8%;
	z-index: 1;
	transform: translateY(-50%);
	font-family: 'brandon-grotesque', sans-serif;
	font-weight: 700;
	font-style: normal;
	font-size: 20px;
	line-height: 1.5;
	letter-spacing: 0.12em;
	color: #fff;
	text-align: center;
	text-transform: uppercase;
	pointer-events: none;
}
.tile__cap {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	padding-top: 12px;
}
.tile__en {
	display: none; /* 一旦非表示（タグのみ表示） */
	font-family: var(--serif);
	font-size: 17px;
}
.tile__tag {
	font-size: 9px;
	letter-spacing: 0.18em;
	color: var(--gray);
	white-space: nowrap;
}
/* クリックを促す＋マーク（写真の右下）。マウスオーバーで90度回転 */
.tile__plus {
	position: absolute;
	right: 16px;
	bottom: 16px;
	z-index: 1;
	width: 18px;
	height: 18px;
	transition: transform 0.5s var(--ease);
}
.tile__plus::before,
.tile__plus::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 0;
	width: 100%;
	height: 1px;
	margin-top: -0.5px;
	background: #fff; /* 黒にするときは var(--black) */
}
.tile__plus::after {
	transform: rotate(90deg);
}
@media (hover: hover) {
	.tile__link:hover .tile__plus {
		transform: rotate(90deg);
	}
	.tile__link:hover .tile__photo img + img {
		opacity: 1;
	}
	.tile__link:hover .tile__photo img {
		transform: scale(1.02);
	}
}

/* scroll appear：1枚ずつフェードイン（.tile.is-shown で発火、同時に入った写真は少しずつずらす） */
.tile__link {
	opacity: 0;
	transition: opacity 1s ease var(--rd, 0s);
}
.tile.is-shown .tile__link {
	opacity: 1;
}

/* filter appear */
.tile.is-in {
	animation: tileIn 0.8s var(--ease) both;
	animation-delay: var(--d, 0s);
}
@keyframes tileIn {
	from {
		opacity: 0;
		transform: translateY(16px);
	}
}

/* 章と章の間に流れるテキスト */
.marquee {
	overflow: hidden;
	/* 上の余白（.chapter の 40px + 120px）を、下の余白（40px + 次の章見出しの 120px）とそろえる */
	padding: 120px 0 40px;
	white-space: nowrap;
}
.marquee[hidden] {
	display: none;
}
.marquee__track {
	display: flex;
	width: max-content;
	animation: marquee 40s linear infinite; /* 秒数は main.js の fitMarquee で文の長さから計算して上書き */
	will-change: transform;
}
.marquee p {
	display: flex;
	flex-shrink: 0;
}
.marquee span {
	padding-right: 0.8em; /* 文と文の間隔 */
	font-family: var(--serif);
	font-weight: 500;
	font-size: clamp(16px, 1.4vw, 28px); /* デザイン案：1文が画面幅の約1/3 */
	line-height: 1.2;
	letter-spacing: 0.02em;
}
@keyframes marquee {
	to {
		transform: translateX(-50%);
	}
}

.empty {
	display: none;
	padding: 160px var(--side);
	text-align: center;
	font-size: 13px;
	color: var(--gray);
}
.empty.is-show {
	display: block;
}

@media (max-width: 767px) {
	/* デザイン案：タイトルは左、件数は右（大きな数字の下に斜体の LOOKS）。下端で揃える */
	.chapter__head {
		align-items: flex-end;
		gap: 10px;
		padding: 72px var(--side) 20px;
	}
	.chapter__ttl {
		font-size: 28px; /* 旧 40px の70% */
	}
	.chapter__count {
		display: flex;
		flex-direction: column;
		align-items: center;
		font-family: var(--serif);
		font-size: 13px;
		font-style: italic;
		letter-spacing: 0.02em;
		line-height: 1;
	}
	.chapter__count span {
		margin: 0 0 4px;
		font-size: 48px;
		font-style: normal;
		font-weight: 500;
		letter-spacing: -0.02em;
	}
	/* 絞り込みなし（ALL / ALL）：最初の章だけ全体の件数（30 LOOKS）、ほかの章の件数は出さない */
	.chapters.is-all .chapter__count,
	.chapters:not(.is-all) .chapter__count--all {
		display: none;
	}
	.chapters.is-all .chapter__count--all {
		display: flex;
	}
	.grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 24px 6px;
		padding: 0 6px;
	}
	.tile__no {
		top: 8px;
		right: 10px;
		font-size: 22px;
	}
	.marquee {
		padding: 56px 0 24px; /* 上 40 + 56 ＝ 下 24 + 72 */
	}
	.marquee span {
		font-size: 16px;
	}
	.marquee__track {
		animation-duration: 27s;
	}
	.tile__name {
		font-size: 12px;
		letter-spacing: 0.1em;
	}
	.tile__plus {
		right: 10px;
		bottom: 10px;
		width: 14px;
		height: 14px;
	}
	.tile__cap {
		display: block;
		padding: 8px 4px 0;
	}
	.tile__en {
		/* display: block; 一旦非表示（復活時はコメントを外す） */
		font-size: 14px;
	}
	.tile__tag {
		font-size: 8px;
	}
}

/* ==========================================================
   FOOTER
   ========================================================== */
.footer {
	margin-top: 120px;
	padding: 80px var(--side) 48px;
	border-top: 1px solid var(--line);
	text-align: center;
}
.footer__logo {
	width: 150px;
	margin: 0 auto;
}
.footer__season {
	margin-top: 14px;
	font-family: var(--serif);
	font-size: 11.7px; /* 13px の90% */
	letter-spacing: 0.16em;
}
.footer__credit {
	margin-top: 40px;
	font-size: 10px;
	line-height: 2;
	letter-spacing: 0.06em;
}
.footer__credit span {
	color: var(--gray);
}
.footer__sns {
	display: flex;
	justify-content: center;
	gap: 16px;
	margin-top: 36px;
}
.footer__sns a {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	color: var(--black);
	transition: opacity 0.3s;
}
.footer__sns a:hover {
	opacity: 0.5;
}
.footer__sns svg {
	width: 24px;
	height: 24px;
}
.footer__store {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	margin-top: 28px;
	padding: 14px 28px;
	background: var(--black);
	color: #fff;
	font-size: 10px;
	letter-spacing: 0.22em;
	transition: opacity 0.3s;
}
.footer__store:hover {
	opacity: 0.75;
}
.footer__copy {
	margin-top: 40px;
	font-size: 10px;
	letter-spacing: 0.1em;
	color: var(--gray);
}
@media (max-width: 767px) {
	.footer {
		margin-top: 72px;
		padding-top: 56px;
	}
	.footer__credit {
		font-size: 9px;
	}
}

/* ==========================================================
   VIEWER
   ========================================================== */
.viewer {
	--bar-h: var(--header-h); /* ロゴ位置をヘッダーと揃える */
	--rail-w: 140px;
	position: fixed;
	inset: 0;
	z-index: 100;
	background: #fff;
	display: grid;
	grid-template-columns: var(--rail-w) 1fr;
	grid-template-rows: var(--bar-h) 1fr;
	opacity: 0;
	transition: opacity 0.45s ease;
}
.viewer[hidden] {
	display: none;
}
.viewer.is-open {
	opacity: 1;
}

.viewer__bar {
	grid-column: 1 / -1;
	display: flex;
	align-items: center;
	gap: 32px;
	padding: 0 24px 0 var(--side);
}
.viewer__logo {
	width: 150px;
}
.viewer__state {
	font-size: 10px;
	letter-spacing: 0.2em;
	color: var(--gray);
}
.viewer__close {
	position: relative;
	margin-left: auto;
	width: 44px;
	height: 44px;
}
.viewer__close::before,
.viewer__close::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 26px;
	height: 1px;
	background: var(--black);
	transform: translate(-50%, -50%) rotate(45deg);
}
.viewer__close::after {
	transform: translate(-50%, -50%) rotate(-45deg);
}

/* rail */
.viewer__rail {
	overflow-y: auto;
	scrollbar-width: none;
	padding: 8px 20px 40px var(--side);
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.viewer__rail::-webkit-scrollbar {
	display: none;
}
.rail__btn {
	display: block;
	width: 100%;
}
.rail__btn figure {
	margin: 0;
	padding: 3px;
	border: 1px solid transparent;
	transition: border-color 0.3s;
}
.rail__btn img {
	width: 100%;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	background: var(--photo-bg);
	transition: opacity 0.3s;
}
.rail__btn span {
	display: block;
	margin-top: 4px;
	text-align: center;
	font-family: var(--serif);
	font-size: 13px;
	color: var(--gray);
}
.rail__btn:hover img {
	opacity: 0.7;
}
.rail__btn.is-active figure {
	border-color: #b3aeab; /* 罫線（--line）と文字グレー（--gray）の中間の暖かいグレー */
}
.rail__btn.is-active span {
	color: var(--black);
}

/* マウス・タッチ操作中はフォーカス枠を消す（.is-pointer は main.js で付け外し） */
.is-pointer :focus {
	outline: none;
}

/* body / each look */
.viewer__body {
	overflow-y: auto;
	scroll-snap-type: y mandatory;
	outline: none;
}
.vlook {
	/* 右カラム幅、写真に使える幅、写真の高さ
	   写真は左右を最大10%ずつまで cover で切る（表示幅 = 3:4 の80%まで）。それより狭い画面では高さごと縮める */
	--info-w: clamp(300px, 26vw, 400px);
	--avail-w: calc(100vw - var(--rail-w) - var(--info-w) - 64px - 72px);
	--main-h: min(calc(100svh - var(--bar-h) - 56px), calc(var(--avail-w) / 0.6));
	height: 100%;
	scroll-snap-align: start;
	scroll-snap-stop: always;
	display: grid;
	grid-template-columns: auto var(--info-w);
	justify-content: center;
	align-content: center;
	gap: 0 64px;
	padding: 16px 48px 40px 24px;
}

.vlook__main {
	position: relative;
	height: var(--main-h);
	width: min(calc(var(--main-h) * 0.75), var(--avail-w));
	background: var(--photo-bg);
	overflow: hidden;
}
.vlook__slides {
	display: flex;
	height: 100%;
}
.vlook__slide {
	flex: none;
	width: 100%;
	height: 100%;
}
.vlook__slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity 0.35s ease;
}
.vlook__slide:not(:first-child) {
	display: none;
}
.vlook__slide img.is-swapping {
	opacity: 0;
}
.vlook__counter {
	position: absolute;
	top: 18px;
	left: 22px;
	z-index: 1;
	font-family: var(--serif);
	line-height: 1;
}
.vlook__counter b {
	font-weight: 400;
	font-size: 56px;
}
.vlook__counter small {
	font-size: 20px;
	margin-left: 6px;
}
.vlook__dots {
	display: none;
}
.vlook__toInfo {
	display: none;
}

.vlook__info {
	display: flex;
	flex-direction: column;
	min-height: 0;
	padding-top: 8px;
}
.vlook__tag {
	font-size: 10px;
	letter-spacing: 0.2em;
	color: var(--gray);
}
.vlook__en {
	margin-top: 22px;
	font-family: var(--serif);
	font-size: 40px;
	line-height: 1.1;
	text-transform: uppercase;
}
.vlook__en.is-bracket {
	text-indent: -0.5em;
}
/* メインのコート（クレジットの一番上）：価格・ブランドと BUY */
.vlook__feature {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 18px;
	padding: 14px 0;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}
.vlook__featurePrice {
	font-size: 13px;
	letter-spacing: 0.08em;
}
.vlook__featurePrice small {
	color: var(--gray);
	font-size: inherit;
}
.vlook__subs {
	display: grid;
	grid-template-columns: repeat(4, 1fr); /* 全カット（3〜4枚）を並べる */
	gap: 8px;
	margin-top: 36px;
	max-height: 30%;
}
.vlook__sub {
	position: relative;
	overflow: hidden;
	background: var(--photo-bg);
	aspect-ratio: 3 / 4;
	max-height: 100%;
}
.vlook__sub img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition:
		opacity 0.35s ease,
		transform 0.8s var(--ease);
}
.vlook__sub:hover img {
	transform: scale(1.04);
}
.vlook__sub.is-current img {
	opacity: 0.35; /* メインに表示中のカット */
}
.vlook__sub.is-current {
	cursor: default;
}
.vlook__sub.is-current:hover img {
	transform: none;
}

.vlook__credits {
	margin-top: auto;
}
.vlook__credits li {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 4px 0;
	font-size: 11px;
	letter-spacing: 0.08em;
}
.vlook__credits li p {
	flex: 1;
}
.vlook__credits li p small {
	color: var(--gray);
	font-size: inherit;
}
.btn-buy {
	flex: none;
	font-size: 10px;
	letter-spacing: 0.16em;
	padding: 5px 12px 4px;
	border: 1px solid var(--black);
	transition:
		background 0.3s,
		color 0.3s;
}
.btn-buy:hover {
	background: var(--black);
	color: #fff;
}
/* 販売開始前：リンクなし（BUY の代わり） */
.btn-buy.is-soon {
	border-color: var(--gray);
	color: var(--gray);
	pointer-events: none;
}
/* BUY のコメントアウトを外したら COMING SOON は自動で隠す（index.html の #creditsSrc） */
.btn-buy:not(.is-soon) ~ .is-soon {
	display: none;
}
.vlook__note {
	margin-top: 10px;
	font-size: 10px;
	color: var(--gray);
}
.vlook__store {
	align-self: flex-end;
	display: inline-flex;
	align-items: center;
	gap: 14px;
	margin-top: 20px;
	padding: 14px 22px;
	background: var(--black);
	color: #fff;
	font-size: 10px;
	letter-spacing: 0.22em;
	transition: opacity 0.3s;
}
.vlook__store:hover {
	opacity: 0.75;
}

/* viewer – 高さの低いPC画面：アイテム数が多いLOOK（最大7点）でも収まるよう余白を詰める */
@media (min-width: 1024px) and (max-height: 860px) {
	.vlook__subs {
		margin-top: 24px;
	}
	.vlook__credits li {
		padding: 3px 0;
	}
	.vlook__store {
		margin-top: 14px;
		padding: 12px 20px;
	}
}

@media (max-width: 767px) {
	.viewer__logo {
		width: 112px; /* .header__logo img と同じ */
	}
}

/* viewer – tablet / SP */
@media (max-width: 1023px) {
	.viewer {
		grid-template-columns: 1fr;
		grid-template-rows: var(--bar-h) 1fr auto; /* サムネイル列は下部に固定 */
	}
	.viewer__body {
		grid-row: 2;
	}
	.viewer__bar {
		padding: 0 6px 0 var(--side);
	}
	.viewer__state {
		display: none;
	}
	.viewer__rail {
		flex-direction: row;
		overflow-x: auto;
		overflow-y: hidden;
		gap: 4px;
		grid-row: 3;
		padding: 8px var(--side) calc(8px + env(safe-area-inset-bottom));
		border-top: 1px solid var(--line);
		background: #fff;
	}
	.rail__btn {
		flex: none;
		width: 46px;
	}
	.rail__btn figure {
		padding: 2px;
	}
	.rail__btn span {
		font-size: 11px;
		margin-top: 2px;
	}
	.viewer__body {
		scroll-snap-type: none;
	}
	.vlook {
		height: auto;
		display: block;
		padding: 0 0 56px;
	}
	.vlook__main {
		height: auto;
		width: 100%;
		aspect-ratio: 3 / 4;
		max-width: 560px;
		margin: 0 auto;
	}
	.vlook__slides {
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
	}
	.vlook__slides::-webkit-scrollbar {
		display: none;
	}
	.vlook__slide {
		scroll-snap-align: start;
	}
	.vlook__slide:not(:first-child) {
		display: block;
	}
	.vlook__counter {
		top: 14px;
		left: 16px;
	}
	.vlook__counter b {
		font-size: 40px;
	}
	.vlook__counter small {
		font-size: 15px;
	}
	.vlook__dots {
		position: absolute;
		left: var(--side); /* 靴にかからないよう左下 */
		bottom: 16px;
		display: flex;
		gap: 8px;
	}
	.vlook__toInfo {
		position: absolute;
		right: 6px;
		bottom: 2px;
		display: flex;
		align-items: center;
		gap: 6px;
		padding: 8px 10px; /* タップしやすい範囲 */
		font-size: 9px;
		letter-spacing: 0.2em;
		line-height: 1;
	}
	.vlook__toInfo span {
		font-size: 11px;
		letter-spacing: 0;
	}
	.vlook__dots i {
		width: 5px;
		height: 5px;
		border-radius: 50%;
		background: rgba(26, 22, 21, 0.25);
		transition: background 0.3s;
	}
	.vlook__dots i.is-active {
		background: var(--black);
	}
	.vlook__info {
		max-width: 560px;
		margin: 0 auto;
		padding: 22px var(--side) 0;
	}
	.vlook__en {
		margin-top: 12px;
		font-size: 30px;
	}
	.vlook__feature {
		margin-top: 14px;
		padding: 12px 0;
	}
	.vlook__subs {
		display: none;
	}
	.vlook__credits {
		margin-top: 28px;
	}
	.vlook__store {
		align-self: stretch;
		justify-content: center;
	}
}

/* ==========================================================
   MOTION
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		transition-delay: 0s !important;
	}
}

/* ==========================================================
   「/」を大文字の高さに合わせる
   Cormorant Garamond の「/」は上下にはみ出す（100px時：上 73.3 / 下 -16.6、大文字は 62.5）ため、
   69.5% に縮小し、ベースラインまで持ち上げる
   ========================================================== */
.slash {
	/* Baskerville URW（100px時：上 65.6 / 下 -22.5、大文字は 66.7） */
	font-size: 75.7%;
	vertical-align: 0.225em;
	/* Cormorant Garamond に戻す場合
	font-size: 69.5%;
	vertical-align: 0.166em; */
}
