/* GALLERY ページ：「FAVOLA MAGAZINE」の一冊をめくるように。
 * 表紙（クリーム）→ 見開きの章（クリーム。毎回違う組み方）→ ときどき赤いポスター → 裏表紙（クリーム）→ フッター（赤）
 * TOP・MENU・ABOUT と共通：書体、二重線の帯、波形の縁、点線。GALLERY だけの表現：雑誌の表紙・目次・バーコード・ノド（見開きの中央の折り目）・図版番号・ページ番号
 *
 * 動き（gallery-page.js が付ける印）
 * - .is-in：画面に入ったら 1 回だけ
 * - --p：章が画面を通り過ぎる進み具合（0〜1。0.5 で画面の中央）。PC・タブレットだけ。スマホと動きを減らす設定では付けない（＝ 0.5 の完成の状態）
 */

:root { --wine: #4A1216; }

/* 仮ページ用の幅の制限（base.css）を外す。見出しの下からはヘッダーに地の色の帯を付ける（色は gallery-page.js が下の地に合わせる） */
body:not(.home) main:has(> .gl) { max-width: none; margin: 0; padding: 0; }
body:has(.gl) .site-header__bar { background: var(--header-bg); }
body:has(.gl) .site-header.is-nav-open .site-header__bar { background: transparent; }

.gl { overflow-x: clip; }
.gl-letters { display: inline-block; white-space: nowrap; }
.gl-l { display: inline-block; }

/* 二重線の帯 */
.gl-rule {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 9px 0 7px;
	border-top: 4px double currentColor;
	border-bottom: 1px solid currentColor;
	font: 600 10px/1 var(--f-label);
	letter-spacing: .3em;
	text-transform: uppercase;
	white-space: nowrap;
}

/* ======================= 表紙 ======================= */

.gl-cover { padding: calc(var(--adminbar-h, 0px) + var(--notice-h) + var(--header-h) + clamp(20px, 3vh, 40px)) var(--gutter) clamp(80px, 11vh, 130px); color: var(--red); }
.gl-cover__inner { max-width: 1400px; margin: 0 auto; }
.gl-cover__stage {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	grid-template-rows: auto 1fr auto;
	column-gap: clamp(28px, 4vw, 64px);
	margin-top: clamp(12px, 2vh, 24px);
}
/* 誌名：画面幅いっぱいの GALLERIA。写真の上にかかる（雑誌の表紙のように誌名が写真の手前） */
.gl-cover__title {
	grid-area: 1 / 1 / 2 / 3;
	position: relative;
	z-index: 2;
	margin: 0 0 0 -.05em;
	font: 500 clamp(80px, 17.6vw, 300px)/.8 var(--f-display);
	letter-spacing: -.05em;
	text-transform: uppercase;
	-webkit-text-stroke: .025em var(--cream);
	paint-order: stroke fill;
	translate: calc((var(--p, .5) - .5) * -4%) 0;
}
.gl-cover__photo { grid-area: 1 / 1 / 4 / 2; position: relative; z-index: 1; margin: clamp(90px, 11vw, 190px) 0 0 clamp(40px, 8vw, 140px); }
.gl-cover__frame { overflow: hidden; border: clamp(10px, 1vw, 16px) solid #FFFAF2; box-shadow: 0 34px 60px rgb(32 6 5 / .25); rotate: -2deg; }
.gl-cover__img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
/* 表紙の丸い見出し（「特集」） */
.gl-cover__badge {
	position: absolute;
	right: -7%;
	top: 30%;
	display: grid;
	place-content: center;
	gap: 6px;
	width: clamp(120px, 11vw, 170px);
	aspect-ratio: 1;
	margin: 0;
	border-radius: 50%;
	background: var(--tomato);
	color: var(--cream);
	text-align: center;
	rotate: 12deg;
	box-shadow: 0 14px 30px rgb(32 6 5 / .25);
}
.gl-cover__badge span { font: 600 10px/1 var(--f-label); letter-spacing: .24em; text-transform: uppercase; }
.gl-cover__badge strong { font: 500 clamp(18px, 1.6vw, 24px)/1 var(--f-display); }
.gl-cover__side { grid-area: 2 / 2 / 3 / 3; align-self: end; padding-bottom: clamp(8px, 2vh, 24px); }
.gl-cover__lead { color: var(--charcoal); font-size: 16px; line-height: 2.05; letter-spacing: .05em; word-break: keep-all; overflow-wrap: anywhere; }
/* 表紙の目次（雑誌のカバーライン） */
.gl-toc { margin: 30px 0 0; padding: 0; list-style: none; border-top: 1.5px solid var(--red); }
.gl-toc a { display: grid; grid-template-columns: 52px 1fr; column-gap: 12px; padding: 12px 0 10px; border-bottom: 1px dashed rgb(167 25 22 / .4); color: var(--red); text-decoration: none; }
.gl-toc__page { grid-row: span 2; padding-top: 6px; font: 600 11px/1 var(--f-label); letter-spacing: .14em; }
.gl-toc__title { font: 500 clamp(24px, 2.2vw, 32px)/1.05 var(--f-display); transition: translate .5s var(--ease-out); }
.gl-toc__kicker { color: var(--charcoal); font: italic 500 13px/1.6 var(--f-display); opacity: .8; }
.gl-toc a:hover .gl-toc__title { translate: 8px 0; }
.gl-barcode { grid-area: 3 / 2 / 4 / 3; justify-self: end; width: 120px; height: auto; margin-top: 24px; background: #FFFAF2; padding: 8px 8px 4px; }
.gl-barcode rect { fill: var(--charcoal); }
.gl-barcode text { fill: var(--charcoal); font: 600 7px/1 var(--f-label); letter-spacing: .1em; text-anchor: middle; }
/* 「めくる」の合図：右下の角が少しだけ折れている */
.gl-cue { position: absolute; right: 0; bottom: -64px; display: flex; align-items: center; gap: 14px; color: var(--red); font: 500 22px/1 var(--f-display); text-decoration: none; }
.gl-cue__corner { position: relative; width: 44px; height: 44px; background: linear-gradient(225deg, var(--cream) 0 48%, rgb(32 6 5 / .18) 50%, var(--red) 52% 100%); border-radius: 0 0 4px 0; }

/* ======================= 見開き ======================= */

.gl-spread { --p: .5; position: relative; padding: clamp(80px, 11vh, 130px) var(--gutter); color: var(--red); }
.gl-spread + .gl-spread { padding-top: clamp(40px, 6vh, 80px); }
.gl-spread__inner {
	position: relative;
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	column-gap: clamp(16px, 2.2vw, 36px);
	row-gap: clamp(20px, 3vh, 36px);
	max-width: 1320px;
	margin: 0 auto;
	padding: clamp(32px, 4vw, 64px) clamp(20px, 3vw, 48px) clamp(56px, 6vw, 80px);
	background: #FBF3E6;
	box-shadow: 0 30px 60px rgb(32 32 29 / .08), 0 2px 0 rgb(32 32 29 / .05);
	perspective: 1800px;
}
/* ノド（見開きの中央の折り目） */
.gl-spread__inner::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; z-index: 0; width: 64px; translate: -50% 0; background: linear-gradient(90deg, transparent, rgb(32 32 29 / .07) 46%, rgb(32 32 29 / .13) 50%, rgb(32 32 29 / .07) 54%, transparent); pointer-events: none; }
.gl-spread__inner > * { position: relative; z-index: 1; }
.gl-spread__no { font: 600 11px/1 var(--f-label); letter-spacing: .3em; text-transform: uppercase; }
.gl-spread__no span { color: var(--charcoal); opacity: .7; }
.gl-spread__title { margin: .12em 0 0 -.04em; font: 500 clamp(76px, 11vw, 190px)/.84 var(--f-display); letter-spacing: -.045em; translate: calc((var(--p, .5) - .5) * -10%) 0; }
.gl-spread__kicker { margin-top: 14px; color: var(--tomato); font: italic 500 clamp(20px, 1.8vw, 28px)/1.3 var(--f-display); }
.gl-spread__text { max-width: 24em; color: var(--charcoal); font-size: 16px; line-height: 2.05; letter-spacing: .04em; text-wrap: pretty; }
.gl-spread__text::first-letter { float: left; margin: .12em .12em 0 0; color: var(--red); font: 500 3.4em/.78 var(--f-jp); }
.gl-fig { margin: 0; }
.gl-fig__frame { overflow: hidden; background: rgb(167 25 22 / .1); }
.gl-fig__img { display: block; width: 100%; height: 100%; object-fit: cover; transition: scale 1.2s var(--ease-out); }
.gl-fig__cap { display: flex; gap: 10px; margin-top: 10px; color: var(--charcoal); font-size: 12.5px; line-height: 1.6; opacity: .85; }
.gl-fig__cap span { flex: none; color: var(--red); font: 600 10px/1.9 var(--f-label); letter-spacing: .18em; text-transform: uppercase; }
.gl-fig--main .gl-fig__frame { aspect-ratio: 4 / 5; }
.gl-fig--sub1 .gl-fig__frame,
.gl-fig--sub2 .gl-fig__frame { aspect-ratio: 4 / 5; }
/* 小さな写真は、ポラロイドのように白いふちを付けて少し傾ける */
.gl-fig--sub1,
.gl-fig--sub2 { padding: 10px 10px 0; background: #FFFAF2; box-shadow: 0 18px 34px rgb(32 32 29 / .16); }
.gl-fig--sub1 { rotate: -3deg; }
.gl-fig--sub2 { rotate: 4deg; }
.gl-fig--sub1 .gl-fig__cap,
.gl-fig--sub2 .gl-fig__cap { padding-bottom: 10px; }
/* ページ番号 */
.gl-folio { position: absolute; left: clamp(20px, 3vw, 48px); right: clamp(20px, 3vw, 48px); bottom: 18px; display: flex; justify-content: space-between; gap: 16px; color: var(--charcoal); font: 600 10px/1 var(--f-label); letter-spacing: .24em; text-transform: uppercase; opacity: .6; }

/* 組み方 a：大きな写真が左ページ全面、右ページに題名・文章・小さな写真 2 枚 */
.gl-spread--a .gl-fig--main { grid-column: 1 / 7; grid-row: 1 / 5; }
.gl-spread--a .gl-fig--main .gl-fig__frame { aspect-ratio: auto; height: 100%; min-height: 560px; }
.gl-spread--a .gl-spread__head { grid-column: 7 / 13; grid-row: 1; padding-left: 4%; }
.gl-spread--a .gl-spread__text { grid-column: 8 / 13; grid-row: 2; }
.gl-spread--a .gl-fig--sub1 { grid-column: 7 / 10; grid-row: 3; align-self: start; margin-left: 4%; }
.gl-spread--a .gl-fig--sub2 { grid-column: 10 / 13; grid-row: 3; align-self: start; margin-top: 30%; }
/* 組み方 b：題名が左ページを横切り、右ページに大きな写真。小さな写真は折り目をまたいで重なる */
.gl-spread--b .gl-spread__head { grid-column: 1 / 8; grid-row: 1; z-index: 3; }
.gl-spread--b .gl-fig--main { grid-column: 7 / 13; grid-row: 1 / 4; }
.gl-spread--b .gl-fig--main .gl-fig__frame { border-radius: 999px 999px 0 0; }
.gl-spread--b .gl-spread__text { grid-column: 1 / 6; grid-row: 2; }
.gl-spread--b .gl-fig--sub1 { grid-column: 4 / 8; grid-row: 3; align-self: end; z-index: 2; margin-bottom: 8%; }
.gl-spread--b .gl-fig--sub2 { grid-column: 1 / 4; grid-row: 3; align-self: start; }
/* 組み方 c：横長の大きな写真が見開いっぱいに広がり、題名はその上端に重なる。下に文章と小さな写真 */
.gl-spread--c .gl-spread__head { grid-column: 1 / 13; grid-row: 1; z-index: 3; text-align: right; }
.gl-spread--c .gl-fig--main { grid-column: 1 / 13; grid-row: 2; margin-top: calc(clamp(76px, 11vw, 190px) * -.42); }
.gl-spread--c .gl-fig--main .gl-fig__frame { aspect-ratio: 21 / 9; }
.gl-spread--c .gl-spread__text { grid-column: 1 / 6; grid-row: 3; }
.gl-spread--c .gl-fig--sub1 { grid-column: 7 / 10; grid-row: 3; margin-top: -14%; }
.gl-spread--c .gl-fig--sub2 { grid-column: 10 / 13; grid-row: 3; margin-top: -4%; }
.gl-spread--c .gl-spread__title { text-shadow: 0 6px 24px rgb(251 243 230 / .7); -webkit-text-stroke: .03em #FBF3E6; paint-order: stroke fill; }
/* 組み方 d：右ページに大きな写真と小さな写真が重なり、左ページは縦長の題名と文章 */
.gl-spread--d .gl-spread__head { grid-column: 1 / 7; grid-row: 1; }
.gl-spread--d .gl-spread__text { grid-column: 1 / 6; grid-row: 2; }
.gl-spread--d .gl-fig--main { grid-column: 7 / 13; grid-row: 1 / 4; }
.gl-spread--d .gl-fig--main .gl-fig__frame { aspect-ratio: 3 / 4; border-radius: 50% / 38%; }
.gl-spread--d .gl-fig--sub1 { grid-column: 2 / 5; grid-row: 3; }
.gl-spread--d .gl-fig--sub2 { grid-column: 5 / 8; grid-row: 3; margin-top: 18%; z-index: 2; }
/* 小さな写真が折り目をまたいで重なる組み方（b・d）は、大きな写真の説明を右に寄せて、小さな写真に隠れないように */
.gl-spread--b .gl-fig--main .gl-fig__cap,
.gl-spread--d .gl-fig--main .gl-fig__cap { justify-content: flex-end; text-align: right; }
/* 組み方 c はひとことが写真の上に重なるので、紙の色の帯を敷く */
.gl-spread--c .gl-spread__kicker { display: inline-block; padding: 4px 14px 2px; background: #FBF3E6; }
/* 小さな写真が 1 枚・0 枚の章は、空いたところを文章が使う */
.gl-spread--n1 .gl-spread__text,
.gl-spread--n0 .gl-spread__text { grid-row: 2 / 4; }
.gl-spread--n0 .gl-spread__head,
.gl-spread--n0 .gl-spread__text { grid-column: 2 / 12; }

/* ======================= ポスター（赤） ======================= */

.gl-poster { --scallop: var(--red); position: relative; overflow: hidden; padding: clamp(110px, 15vh, 180px) var(--gutter); background: var(--red); color: var(--cream); text-align: center; }
.gl-poster::before,
.gl-poster::after { content: ""; position: absolute; left: 0; right: 0; z-index: 2; height: 22px; pointer-events: none; }
.gl-poster::before { top: 0; background: radial-gradient(circle at 50% 0, var(--cream) 15.5px, transparent 16px) 0 0 / 44px 22px repeat-x; }
.gl-poster::after { bottom: 0; background: radial-gradient(circle at 50% 100%, var(--cream) 15.5px, transparent 16px) 0 100% / 44px 22px repeat-x; }
/* 光の筋（レトロなポスターの放射線） */
.gl-poster__rays { position: absolute; left: 50%; top: 50%; width: max(150vw, 1600px); aspect-ratio: 1; translate: -50% -50%; background: repeating-conic-gradient(from 0deg, rgb(32 6 5 / .14) 0 5deg, transparent 5deg 10deg); -webkit-mask-image: radial-gradient(circle, #000 0 20%, transparent 60%); mask-image: radial-gradient(circle, #000 0 20%, transparent 60%); rotate: calc((var(--p, .5) - .5) * 30deg); pointer-events: none; }
.gl-poster__inner { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; }
.gl-poster__top { display: flex; justify-content: center; gap: 18px; font: 600 11px/1 var(--f-label); letter-spacing: .4em; text-transform: uppercase; }
.gl-poster__title { margin: .3em 0 0; font: 500 clamp(72px, 13vw, 230px)/.86 var(--f-display); letter-spacing: -.04em; text-transform: uppercase; }
.gl-poster__line { display: block; overflow: hidden; padding: .02em 0 .1em; }
.gl-poster__line > span { display: inline-block; }
.gl-poster__line:nth-child(2) { color: #FFD9B8; }
.gl-poster__kicker { display: inline-block; margin-top: 28px; padding: 10px 22px 8px; border: 1.5px solid rgb(245 232 213 / .7); border-radius: 999px; font: italic 500 clamp(18px, 1.7vw, 24px)/1.2 var(--f-display); }
.gl-folio--poster { position: static; justify-content: center; margin-top: 44px; color: var(--cream); }

/* ======================= 裏表紙 ======================= */

.gl-back { padding: clamp(110px, 15vh, 180px) var(--gutter) clamp(130px, 17vh, 200px); color: var(--red); text-align: center; }
.gl-back__inner { max-width: 1000px; margin: 0 auto; }
.gl-back__fine { font: 600 11px/1 var(--f-label); letter-spacing: .4em; text-transform: uppercase; }
.gl-back__title { margin: .5em 0 0; font: 500 clamp(44px, 6.4vw, 100px)/1.02 var(--f-display); letter-spacing: -.03em; }
.gl-back__lead { margin-top: 1.4em; color: var(--charcoal); font-size: 17px; letter-spacing: .1em; }
.gl-back__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 24px 48px; margin-top: 48px; }

/* ======================= PC：写真にマウスを乗せると少し寄る ======================= */

@media (hover: hover) and (min-width: 900px) {
	.gl-fig:hover .gl-fig__img { scale: 1.05; }
	.gl-fig--sub1,
	.gl-fig--sub2 { transition: rotate .6s var(--ease-out), translate .6s var(--ease-out); }
	.gl-fig--sub1:hover,
	.gl-fig--sub2:hover { rotate: 0deg; translate: 0 -6px; }
	.gl-cover__photo:hover .gl-cover__img { scale: 1.04; }
	.gl-cover__img { transition: scale 1.2s var(--ease-out); }
}

/* ======================= タブレット（〜899px）：見開きを 2 段に ======================= */

@media (max-width: 899px) {
	.gl-cover__stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto auto; }
	.gl-cover__title { grid-area: 1 / 1 / 2 / 2; font-size: 17.4vw; }
	.gl-cover__photo { grid-area: 2 / 1 / 3 / 2; width: min(82%, 520px); margin: calc(17.4vw * -.32) 0 0 auto; }
	.gl-cover__side { grid-area: 3 / 1 / 4 / 2; padding-top: 32px; }
	.gl-barcode { grid-area: 4 / 1 / 5 / 2; }
	.gl-cue { position: static; justify-self: start; margin-top: 24px; }
	.gl-cover__badge { right: auto; left: -12%; top: 62%; }
	.gl-spread__inner { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.gl-spread__inner::before { display: none; }
	.gl-spread__inner > * { grid-column: 1 / -1 !important; grid-row: auto !important; margin: 0 !important; }
	.gl-spread__head { order: 1; text-align: left !important; }
	.gl-fig--main { order: 2; }
	.gl-spread__text { order: 3; }
	.gl-fig--main .gl-fig__frame { aspect-ratio: 4 / 3 !important; height: auto !important; min-height: 0 !important; border-radius: 0 !important; }
	.gl-fig--sub1 { order: 4; grid-column: 1 / 4 !important; width: 92%; }
	.gl-fig--sub2 { order: 5; grid-column: 4 / 7 !important; width: 92%; justify-self: end; margin-top: 18% !important; }
	.gl-spread--n2 .gl-fig--sub1 { grid-column: 2 / 6 !important; }
	.gl-folio { order: 9; position: static; margin-top: 12px !important; }
	.gl-spread__title { translate: none; }
}

/* ======================= スマホ（〜599px）：写真は縦 1 列 ======================= */

@media (max-width: 599px) {
	.gl-rule__mid { display: none; }
	.gl-cover__title { font-size: 18vw; -webkit-text-stroke: .02em var(--cream); }
	.gl-cover__photo { width: 86%; }
	.gl-cover__badge { width: 96px; left: -8%; }
	.gl-cover__badge strong { font-size: 16px; }
	.gl-cover__lead { font-size: 15.5px; }
	.gl-spread { padding-inline: 12px; }
	.gl-spread__inner { padding: 28px 18px 44px; }
	.gl-spread__title { font-size: 19vw; }
	.gl-spread__text { font-size: 15.5px; }
	.gl-fig--sub1,
	.gl-fig--sub2 { grid-column: 1 / -1 !important; width: 78%; justify-self: start; margin-top: 0 !important; }
	.gl-fig--sub2 { justify-self: end; }
	.gl-spread--n2 .gl-fig--sub1 { justify-self: center; }
	.gl-folio { flex-wrap: wrap; letter-spacing: .14em; }
	.gl-poster__title { font-size: 15vw; }
	.gl-poster__rays { width: 240vw; }
	.gl-back__title { font-size: 11vw; }
}

/* ======================= 動き（JS が動いているときだけ。動きを減らす設定では最初から完成の状態） ======================= */

@media (prefers-reduced-motion: no-preference) {
	html:has(.gl) { scroll-behavior: smooth; }

	/* ---- 表紙：活字を組むように、GALLERIA の文字が上下交互に落ちてきて揃う（1.6 秒）。写真は刷り上がるように上から現れ、特集の丸が最後に貼られる ---- */
	.gl-motion .gl-cover__title .gl-l { opacity: 0; transform: translateY(-60%) rotate(-8deg); transition: opacity .35s calc(var(--i) * 70ms), transform .9s calc(var(--i) * 70ms) cubic-bezier(.25, 1.5, .5, 1); }
	.gl-motion .gl-cover__title .gl-l:nth-child(even) { transform: translateY(60%) rotate(8deg); }
	.gl-motion .gl-cover.is-in .gl-cover__title .gl-l { opacity: 1; transform: none; }
	.gl-motion .gl-cover__frame { clip-path: inset(0 0 100% 0); transition: clip-path 1.2s .35s cubic-bezier(.7, 0, .2, 1); }
	.gl-motion .gl-cover.is-in .gl-cover__frame { clip-path: inset(0 0 0 0); }
	.gl-motion .gl-cover__img { scale: 1.12; transition: scale 1.8s .35s var(--ease-out); }
	.gl-motion .gl-cover.is-in .gl-cover__img { scale: 1; }
	.gl-motion .gl-cover__badge { scale: 0; rotate: -90deg; transition: scale .6s 1.3s cubic-bezier(.3, 1.7, .5, 1), rotate .7s 1.3s var(--ease-out); }
	.gl-motion .gl-cover.is-in .gl-cover__badge { scale: 1; rotate: 12deg; }
	.gl-motion :is(.gl-cover__side, .gl-barcode, .gl-cue) { opacity: 0; transform: translateY(16px); transition: opacity .8s .9s var(--ease-out), transform .8s .9s var(--ease-out); }
	.gl-motion .gl-cover.is-in :is(.gl-cover__side, .gl-barcode, .gl-cue) { opacity: 1; transform: none; }
	/* めくりの合図：角がときどき「ぺらっ」と動く（6 秒に 1 回） */
	.gl-cue__corner { animation: gl-curl 6s 2.4s ease-in-out infinite; transform-origin: right bottom; }

	/* ---- 見開き：ノドを軸に左右のページが開く（PC・タブレット）。題名は 1 文字ずつ、写真は少し遅れて ---- */
	.gl-motion .gl-spread__inner { transform: rotateX(8deg) translateY(50px); opacity: 0; transform-origin: 50% 100%; transition: transform 1.1s var(--ease-out), opacity .7s var(--ease-out); }
	.gl-motion .gl-spread.is-in .gl-spread__inner { transform: none; opacity: 1; }
	.gl-motion .gl-spread__title .gl-l { opacity: 0; transform: translateX(-.25em); transition: opacity .5s calc(.25s + var(--i) * 45ms), transform .8s calc(.25s + var(--i) * 45ms) var(--ease-out); }
	.gl-motion .gl-spread.is-in .gl-spread__title .gl-l { opacity: 1; transform: none; }
	.gl-motion .gl-fig--main .gl-fig__frame { clip-path: inset(0 0 0 100%); transition: clip-path 1.3s .35s cubic-bezier(.7, 0, .2, 1); }
	.gl-motion .gl-spread--a .gl-fig--main .gl-fig__frame { clip-path: inset(0 100% 0 0); }
	.gl-motion .gl-spread--c .gl-fig--main .gl-fig__frame { clip-path: inset(0 50% 0 50%); }
	.gl-motion .gl-spread--d .gl-fig--main .gl-fig__frame { clip-path: inset(100% 0 0 0); }
	.gl-motion .gl-spread.is-in .gl-fig--main .gl-fig__frame { clip-path: inset(0 0 0 0); }
	.gl-motion :is(.gl-fig--sub1, .gl-fig--sub2) { opacity: 0; translate: 0 40px; transition: opacity .6s 1s, translate .9s 1s cubic-bezier(.2, 1.3, .4, 1); }
	.gl-motion .gl-fig--sub2 { transition-delay: 1.15s; }
	.gl-motion .gl-spread.is-in :is(.gl-fig--sub1, .gl-fig--sub2) { opacity: 1; translate: 0 0; }
	.gl-motion :is(.gl-spread__kicker, .gl-spread__text) { opacity: 0; transition: opacity .9s .7s; }
	.gl-motion .gl-spread.is-in :is(.gl-spread__kicker, .gl-spread__text) { opacity: 1; }

	/* ---- ポスター：言葉が 1 行ずつ左右から滑り込み、光の筋はスクロールでゆっくり回る ---- */
	.gl-motion .gl-poster__line > span { transform: translateX(-30%); opacity: 0; transition: transform 1s calc(var(--i) * 140ms) var(--ease-out), opacity .6s calc(var(--i) * 140ms); }
	.gl-motion .gl-poster__line:nth-child(even) > span { transform: translateX(30%); }
	.gl-motion .gl-poster.is-in .gl-poster__line > span { transform: none; opacity: 1; }
	.gl-motion :is(.gl-poster__top, .gl-poster__kicker, .gl-folio--poster) { opacity: 0; transition: opacity .8s .5s; }
	.gl-motion .gl-poster.is-in :is(.gl-poster__top, .gl-poster__kicker, .gl-folio--poster) { opacity: 1; }

}
/* スマホ：見開きの傾きはやめて、ふわっと現れるだけ（軽く） */
@media (prefers-reduced-motion: no-preference) and (max-width: 599px) {
	.gl-motion .gl-spread__inner { transform: translateY(30px); }
	.gl-motion .gl-fig--main .gl-fig__frame,
	.gl-motion .gl-spread--a .gl-fig--main .gl-fig__frame,
	.gl-motion .gl-spread--c .gl-fig--main .gl-fig__frame,
	.gl-motion .gl-spread--d .gl-fig--main .gl-fig__frame { clip-path: inset(0 0 100% 0); }
}
@keyframes gl-curl { 0%, 88%, 100% { transform: none; } 92% { transform: scale(1.35) rotate(-6deg); } 96% { transform: scale(1.1); } }
@media (prefers-reduced-motion: reduce) {
	.gl-spread,
	.gl-poster,
	.gl-cover { --p: .5 !important; }
}

/* ======================================================================
 * 改良（v2）：章ごとの雰囲気・はみ出す写真・章番号・ゆっくり現れる写真・裏表紙のクライマックス
 * 雰囲気は .gl-spread--cucina / vino / tavola / locale / notte（管理画面で選ぶ。空なら並び順）
 * ====================================================================== */

/* 章の切り替わり：巨大な章番号（輪郭だけ）が、見開きの上の余白を横切る */
.gl-spread { padding-top: clamp(130px, 17vh, 200px); }
.gl-spread + .gl-spread { padding-top: clamp(130px, 17vh, 200px); }
.gl-spread__numeral {
	position: absolute;
	left: var(--gutter);
	top: clamp(24px, 4vh, 48px);
	z-index: 0;
	color: transparent;
	font: 500 clamp(120px, 16vw, 260px)/.8 var(--f-display);
	letter-spacing: -.04em;
	-webkit-text-stroke: 1.5px rgb(167 25 22 / .28);
	translate: calc((var(--p, .5) - .5) * -36vw) 0;
	pointer-events: none;
	user-select: none;
}
.gl-spread:nth-of-type(even) .gl-spread__numeral { left: auto; right: var(--gutter); translate: calc((var(--p, .5) - .5) * 36vw) 0; }
.gl-spread__inner { z-index: 1; }

/* 大きな写真は、スクロールに合わせて少しずつ寄る（枠の中で動くので、はみ出さない） */
.gl-fig--main .gl-fig__img { scale: calc(1.1 - (var(--p, .5) - .5) * .16); transition: none; }
/* 小さな写真は、ほんの少し違う速さで動く（奥行き） */
[data-gl-depth] { translate: 0 calc(var(--dy, 0) * 1px); }

/* ---- Cucina：大きな写真が画面の左端まではみ出し、巨大な題名がその端にかかる ---- */
.gl-spread--cucina .gl-fig--main { margin-left: calc((clamp(20px, 3vw, 48px) + var(--gutter) + max(0px, (100vw - 1320px - var(--gutter) * 2) / 2)) * -1); }
.gl-spread--cucina .gl-fig--main .gl-fig__frame { min-height: 660px; }
.gl-spread--cucina .gl-fig--main .gl-fig__cap { padding-left: calc(clamp(20px, 3vw, 48px) + var(--gutter)); }
.gl-spread--cucina .gl-spread__head { z-index: 3; padding-left: 0; }
.gl-spread--cucina .gl-spread__title { margin-left: -.9em; font-size: clamp(90px, 13vw, 230px); -webkit-text-stroke: .03em #FBF3E6; paint-order: stroke fill; }
.gl-spread--cucina .gl-fig--sub1 { z-index: 3; margin-left: -22%; margin-top: 8%; width: 118%; }

/* ---- Vino：余白を広く、静かに。題名は小さめ、ワイン色の二重線、写真はゆっくり ---- */
.gl-spread--vino .gl-spread__inner { padding-block: clamp(64px, 7vw, 110px) clamp(72px, 7vw, 110px); }
.gl-spread--vino .gl-spread__head { padding-top: 22px; border-top: 4px double rgb(74 18 22 / .55); }
.gl-spread--vino .gl-spread__title { color: var(--wine); font-size: clamp(70px, 8.4vw, 150px); }
.gl-spread--vino .gl-spread__kicker { color: var(--red); }
.gl-spread--vino .gl-fig--main { grid-column: 8 / 12; }
.gl-spread--vino .gl-fig--sub1 { grid-column: 4 / 7; rotate: -1.5deg; }
.gl-spread--vino .gl-spread__text { line-height: 2.2; }

/* ---- Tavola：写真が皿のように丸く、高さを変えてリズミカルに。下に赤いギンガムチェック ---- */
.gl-spread--tavola .gl-spread__inner { padding-bottom: clamp(96px, 9vw, 130px); }
.gl-spread--tavola .gl-spread__inner::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 40px;
	background: repeating-linear-gradient(90deg, rgb(167 25 22 / .55) 0 20px, transparent 20px 40px), repeating-linear-gradient(0deg, rgb(167 25 22 / .55) 0 20px, transparent 20px 40px), #FBF3E6;
	background-blend-mode: multiply;
	opacity: .8;
}
.gl-spread--tavola .gl-folio { bottom: 54px; }
.gl-spread--tavola .gl-fig--sub1,
.gl-spread--tavola .gl-fig--sub2 { padding: 0; background: none; box-shadow: none; }
.gl-spread--tavola .gl-fig--sub1 .gl-fig__frame,
.gl-spread--tavola .gl-fig--sub2 .gl-fig__frame { aspect-ratio: 1; border: 10px solid #FFFAF2; border-radius: 50%; box-shadow: 0 0 0 1px rgb(167 25 22 / .25), 0 18px 34px rgb(32 32 29 / .2); }
.gl-spread--tavola .gl-fig--sub1 .gl-fig__cap,
.gl-spread--tavola .gl-fig--sub2 .gl-fig__cap { justify-content: center; text-align: center; }

/* ---- Il Locale：横長の写真が画面の左右いっぱいに広がる。スクロールで少しずつ引いて全体が見えてくる ---- */
.gl-spread--e .gl-spread__head { grid-column: 1 / 9; grid-row: 1; }
.gl-spread--e .gl-fig--main { grid-column: 1 / 13; grid-row: 2; margin-inline: calc((clamp(20px, 3vw, 48px) + var(--gutter) + max(0px, (100vw - 1320px - var(--gutter) * 2) / 2)) * -1); }
.gl-spread--e .gl-fig--main .gl-fig__frame { aspect-ratio: 21 / 8; }
.gl-spread--e .gl-fig--main .gl-fig__img { scale: calc(1.22 - (var(--p, .5) - .5) * .3); }
.gl-spread--e .gl-fig--main .gl-fig__cap { justify-content: flex-end; padding-right: calc(clamp(20px, 3vw, 48px) + var(--gutter)); }
.gl-spread--e .gl-spread__text { grid-column: 1 / 6; grid-row: 3; }
.gl-spread--e .gl-fig--sub1 { grid-column: 7 / 10; grid-row: 3; margin-top: -18%; z-index: 2; }
.gl-spread--e .gl-fig--sub2 { grid-column: 10 / 13; grid-row: 3; margin-top: 4%; }
.gl-spread--e.gl-spread--n2 .gl-fig--sub1 { grid-column: 8 / 12; }

/* ---- Notte：夜の地（ワイン色の黒）に、灯りのような題名と、光をまとった写真 ---- */
.gl-spread--notte .gl-spread__inner { background: #1D1315; color: var(--cream); box-shadow: 0 30px 70px rgb(32 6 5 / .35); }
.gl-spread--notte .gl-spread__inner::before { background: linear-gradient(90deg, transparent, rgb(0 0 0 / .25) 46%, rgb(0 0 0 / .45) 50%, rgb(0 0 0 / .25) 54%, transparent); }
.gl-spread--notte .gl-spread__numeral { -webkit-text-stroke-color: rgb(74 18 22 / .5); }
.gl-spread--notte .gl-spread__title { color: #FFE2C2; text-shadow: 0 0 22px rgb(255 170 90 / .55), 0 0 60px rgb(217 91 48 / .4); }
.gl-spread--notte .gl-spread__no span,
.gl-spread--notte .gl-folio,
.gl-spread--notte .gl-fig__cap { color: rgb(245 232 213 / .8); }
.gl-spread--notte .gl-spread__kicker { color: #F2A27E; }
.gl-spread--notte .gl-spread__text { color: rgb(245 232 213 / .9); }
.gl-spread--notte .gl-spread__text::first-letter { color: #F2A27E; }
.gl-spread--notte .gl-fig--main .gl-fig__frame { box-shadow: 0 0 0 1px rgb(255 200 140 / .25), 0 0 80px rgb(255 160 80 / .22); }
.gl-spread--notte .gl-fig__cap span { color: #F2A27E; }
.gl-spread--notte .gl-fig--sub1,
.gl-spread--notte .gl-fig--sub2 { background: #2A1C1E; box-shadow: 0 18px 40px rgb(0 0 0 / .45); }

/* ---- 裏表紙（クライマックス）：読み終えた号のページが扇のように広がり、その下から予約へ ---- */
.gl-back { position: relative; overflow: hidden; padding-top: clamp(120px, 15vh, 180px); }
.gl-back__inner { max-width: 1100px; }
.gl-back__fine span { color: var(--tomato); }
.gl-fan { position: relative; height: clamp(230px, 24vw, 340px); margin: 40px auto 0; }
.gl-fan__page {
	position: absolute;
	left: 50%;
	bottom: 0;
	width: clamp(140px, 15vw, 220px);
	margin: 0;
	padding: 10px 10px 0;
	background: #FFFAF2;
	box-shadow: 0 20px 40px rgb(32 32 29 / .2);
	transform-origin: 50% 320%;
	translate: -50% 0;
	rotate: calc(var(--k) * 9deg);
}
.gl-fan__img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.gl-fan__page figcaption { padding: 8px 0 9px; color: var(--red); font: 500 clamp(14px, 1.2vw, 18px)/1 var(--f-display); }
.gl-back__title { margin-top: .6em; font-size: clamp(48px, 7.4vw, 124px); line-height: .98; }
.gl-back__line { display: block; overflow: hidden; padding: .02em 0 .12em; }
.gl-back__line > span { display: inline-block; }
.gl-back__title em { color: var(--tomato); font-style: italic; }
.gl-back__actions { margin-top: 44px; }
.gl-back__actions .link-arrow--light { color: var(--charcoal); }
.gl-back__actions .link-arrow--light .link-arrow__icon { background: var(--red); }
.gl-back__actions .link-arrow--light .link-arrow__icon::before { background: var(--cream); }
.gl-back__actions .link-arrow--light .link-arrow__icon::after { border-color: var(--cream); }
/* 予約：雑誌の切り取りクーポンのような、点線のふちの赤い札 */
.gl-back__cta {
	display: grid;
	grid-template-columns: auto auto;
	align-items: center;
	column-gap: 22px;
	padding: 20px 34px 18px;
	background: var(--red);
	color: var(--cream);
	text-align: left;
	text-decoration: none;
	outline: 2px dashed rgb(245 232 213 / .6);
	outline-offset: -9px;
	rotate: -2deg;
	box-shadow: 0 20px 40px rgb(167 25 22 / .3);
	transition: rotate .5s var(--ease-out), scale .5s var(--ease-out);
}
.gl-back__cta-small { font: 600 10px/1 var(--f-label); letter-spacing: .26em; text-transform: uppercase; opacity: .85; }
.gl-back__cta-big { grid-row: 2; margin-top: 6px; font: 500 22px/1.3 var(--f-jp); letter-spacing: .1em; }
.gl-back__cta-arrow { grid-row: 1 / 3; grid-column: 2; font: 500 40px/1 var(--f-display); transition: translate .5s var(--ease-out); }
.gl-back__cta:hover,
.gl-back__cta:focus-visible { rotate: 0deg; scale: 1.04; }
.gl-back__cta:hover .gl-back__cta-arrow { translate: 8px 0; }
.gl-back__colophon { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 28px; margin-top: 64px; padding-top: 18px; border-top: 1px solid rgb(167 25 22 / .3); color: var(--charcoal); font: 600 10px/1 var(--f-label); letter-spacing: .24em; text-transform: uppercase; opacity: .65; }

@media (max-width: 899px) {
	.gl-spread__numeral { font-size: 30vw; }
	.gl-spread--cucina .gl-fig--main,
	.gl-spread--e .gl-fig--main { margin-inline: calc((clamp(20px, 3vw, 48px)) * -1) !important; }
	.gl-spread--cucina .gl-fig--main .gl-fig__cap,
	.gl-spread--e .gl-fig--main .gl-fig__cap { padding-inline: clamp(20px, 3vw, 48px); justify-content: flex-start; }
	.gl-spread--cucina .gl-spread__title { margin-left: 0; }
	.gl-spread--cucina .gl-fig--sub1 { width: 70%; }
	.gl-spread--e .gl-fig--main .gl-fig__frame { aspect-ratio: 4 / 3 !important; }
	.gl-spread--tavola .gl-fig--sub1,
	.gl-spread--tavola .gl-fig--sub2 { width: 70%; }
}
@media (max-width: 599px) {
	.gl-spread { padding-top: 110px; }
	.gl-spread + .gl-spread { padding-top: 110px; }
	.gl-spread--cucina .gl-fig--main,
	.gl-spread--e .gl-fig--main { margin-inline: -18px !important; }
	.gl-spread--cucina .gl-fig--main .gl-fig__cap,
	.gl-spread--e .gl-fig--main .gl-fig__cap { padding-inline: 18px; }
	.gl-spread--cucina .gl-spread__title,
	.gl-spread--vino .gl-spread__title { font-size: 19vw; }
	.gl-fan { height: 210px; }
	.gl-fan__page { width: 118px; padding: 6px 6px 0; rotate: calc(var(--k) * 8deg); } /* 両端のページとキャプションが画面の外に出ない開き方 */
	.gl-fan__page figcaption { font-size: 12px; padding: 5px 0 6px; }
	.gl-back__title { font-size: 12.5vw; }
	.gl-back__cta { padding: 16px 24px 14px; }
	.gl-back__cta-big { font-size: 18px; }
}

@media (prefers-reduced-motion: no-preference) {
	/* Cucina：写真は大胆に、文字より先に。Vino：ゆっくり静かに。Tavola：丸い皿がぽんぽんと置かれる。Notte：灯りがふっとともる */
	.gl-motion .gl-spread--vino .gl-fig--main .gl-fig__frame { transition-duration: 2s; }
	.gl-motion .gl-spread--vino .gl-spread__title .gl-l { transition-duration: 1s, 1.4s; }
	.gl-motion .gl-spread--tavola :is(.gl-fig--sub1, .gl-fig--sub2) { scale: .6; transition: opacity .4s 1s, translate .9s 1s, scale .8s 1s cubic-bezier(.3, 1.7, .5, 1); }
	.gl-motion .gl-spread--tavola .gl-fig--sub2 { transition-delay: 1.2s; }
	.gl-motion .gl-spread--tavola.is-in :is(.gl-fig--sub1, .gl-fig--sub2) { scale: 1; }
	.gl-motion .gl-spread--notte .gl-spread__title { text-shadow: none; transition: text-shadow 1.6s 1s; }
	.gl-motion .gl-spread--notte.is-in .gl-spread__title { text-shadow: 0 0 22px rgb(255 170 90 / .55), 0 0 60px rgb(217 91 48 / .4); }

	/* 裏表紙：ページが重なった状態から扇に広がり、言葉が 1 行ずつ。最後に予約の札がひらりと */
	.gl-motion .gl-fan__page { rotate: 0deg; translate: -50% 40px; opacity: 0; transition: rotate 1.3s calc(.2s + (var(--k) + 3) * 60ms) cubic-bezier(.2, 1.2, .4, 1), translate 1.3s .2s var(--ease-out), opacity .6s .2s; }
	.gl-motion .gl-back.is-in .gl-fan__page { rotate: calc(var(--k) * 9deg); translate: -50% 0; opacity: 1; }
	.gl-motion :is(.gl-back__fine, .gl-back__lead, .gl-back__colophon) { opacity: 0; transition: opacity 1s .9s; }
	.gl-motion .gl-back.is-in :is(.gl-back__fine, .gl-back__lead, .gl-back__colophon) { opacity: 1; }
	.gl-motion .gl-back__line > span { transform: translateY(110%); transition: transform 1.1s var(--ease-out); }
	.gl-motion .gl-back__line:nth-child(1) > span { transition-delay: .7s; }
	.gl-motion .gl-back__line:nth-child(2) > span { transition-delay: .85s; }
	.gl-motion .gl-back.is-in .gl-back__line > span { transform: none; }
	.gl-motion .gl-back__actions { opacity: 0; translate: 0 20px; transition: opacity .8s 1.3s, translate 1s 1.3s cubic-bezier(.2, 1.3, .4, 1); }
	.gl-motion .gl-back.is-in .gl-back__actions { opacity: 1; translate: 0 0; }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 599px) {
	.gl-motion .gl-fan__page { transition-delay: .2s; }
	.gl-motion .gl-back.is-in .gl-fan__page { rotate: calc(var(--k) * 8deg); }
}
@media (prefers-reduced-motion: reduce) {
	[data-gl-depth] { --dy: 0 !important; }
}


/* 幅 360 未満（320 など）：扇のページを少し小さく（両端のキャプションが画面に収まるように） */
@media (max-width: 359px) {
	.gl-fan__page { width: 104px; }
}
