/*
 * トップページ：索引（2026-10-29 比較案Iを採用）
 * 参考にした型：海外のデザイン事務所や雑誌サイトに多い「名前の一覧にふれると、絵と色が出てくる」索引。
 * ふだんは白い紙に、大きな文字だけ。作品名にふれた行だけ、その世界の色があふれ、絵がカーソルについてくる。
 */
:root {
	--paper: #f3f0e9; --ink: #101010; --dim: #6b6862;
	--font: "Zen Kaku Gothic New", system-ui, sans-serif;
	--font-en: "Bebas Neue", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); line-height: 1.8; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; max-width: 100%; }

.top { position: sticky; top: 0; z-index: 50; display: flex; justify-content: space-between; align-items: center; padding: 18px clamp(20px, 4vw, 48px); background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(6px); border-bottom: 1px solid var(--ink); }
.logo { font-weight: 900; text-decoration: none; letter-spacing: 0.02em; }
.nav { display: flex; gap: 26px; font-size: 14px; font-weight: 700; }
.nav a { text-decoration: none; }
.nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* 題字：画面の幅いっぱい */
.mast { padding: clamp(28px, 4vw, 56px) clamp(20px, 4vw, 48px) 40px; }
.mast__word {
	margin: 0; font-family: var(--font-en); font-weight: 400;
	font-size: 21.5vw; line-height: 0.8; letter-spacing: -0.01em;
	animation: mast-in 1.1s cubic-bezier(.2, .8, .2, 1) both;
}
.mast__word span { color: #ff2bd6; }
@keyframes mast-in { from { opacity: 0; transform: translateY(6%); letter-spacing: 0.04em; } }
.mast__row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: end; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--ink); }
.mast__copy { margin: 0; font-weight: 900; font-size: clamp(28px, 4vw, 54px); line-height: 1.2; letter-spacing: -0.02em; }
.mast__sub { margin: 0; justify-self: end; max-width: 26em; font-size: 15px; font-weight: 700; color: var(--dim); }

/* 索引 */
.index { position: relative; padding: 60px 0 40px; }
.index__label { display: flex; justify-content: space-between; margin: 0; padding: 0 clamp(20px, 4vw, 48px) 10px; font-family: var(--font-en); font-size: 18px; letter-spacing: 0.1em; color: var(--dim); }
.index__list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.index__list > li { border-bottom: 1px solid var(--ink); }
.row {
	position: relative; isolation: isolate; overflow: hidden;
	display: grid; grid-template-columns: 5em 1fr minmax(0, 22em) 2.5em; align-items: center; gap: 20px;
	padding: 6px clamp(20px, 4vw, 48px); text-decoration: none; color: #101010;
	transition: color 0.35s ease;
}
.row::before { /* ふれると、左からその世界の色が満ちる */
	content: ""; position: absolute; inset: 0; z-index: -1; background: var(--bg);
	transform: scaleX(0); transform-origin: left; transition: transform 0.5s cubic-bezier(.7, 0, .2, 1);
}
a.row:hover, a.row:focus-visible { color: var(--ink); }
a.row:hover::before, a.row:focus-visible::before { transform: none; }
.row__no { font-family: var(--font-en); font-size: 22px; letter-spacing: 0.08em; }
.row__en { font-family: var(--font-en); font-size: clamp(64px, 10.5vw, 168px); line-height: 0.92; letter-spacing: 0.005em; transition: transform 0.5s cubic-bezier(.2, .8, .2, 1); }
a.row:hover .row__en { transform: translateX(18px); }
.row__meta { font-size: 13px; line-height: 1.7; color: inherit; opacity: 0.85; }
.row__meta b { display: block; font-size: 17px; }
.row__catch { display: inline-block; margin-top: 4px; }
.row__go { justify-self: end; font-size: 34px; transition: transform 0.4s; }
a.row:hover .row__go { transform: translateX(6px) rotate(-45deg); }
.row__thumb { display: none; }
.row--next { color: #a5a29b; }

/* 行の色：明るい世界は黒い字、暗い世界は白い字 */
a.row[href*="glitcher"]:hover .row__en { text-shadow: -4px 0 rgb(0 229 255 / 0.9), 4px 0 rgb(255 43 214 / 0.9); }

/* カーソルについてくる絵 */
.peek {
	position: fixed; left: 0; top: 0; z-index: 40; width: 300px; aspect-ratio: 1; pointer-events: none;
	display: grid; place-items: center;
	opacity: 0; scale: 0.6; transition: opacity 0.25s ease, scale 0.35s cubic-bezier(.3, 1.5, .5, 1);
}
.peek.is-on { opacity: 1; scale: 1; }
.peek img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 24px 30px rgb(0 0 0 / 0.35)); }
.peek.is-fig { width: 300px; aspect-ratio: 2 / 3; }

/* このプロジェクトについて */
.about { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; padding: 110px clamp(20px, 4vw, 48px) 120px; border-top: 1px solid var(--ink); margin-top: 60px; }
.about__label { margin: 0; font-family: var(--font-en); font-size: clamp(60px, 8vw, 120px); line-height: 0.85; }
.about__lead { margin: 0; font-weight: 900; font-size: clamp(22px, 2.8vw, 40px); line-height: 1.35; letter-spacing: -0.02em; }
.about__text { margin: 26px 0 0; max-width: 40em; font-size: 16px; line-height: 2.1; color: #34322e; }
.about__wish { margin: 26px 0 0; font-weight: 900; }
.about__wish::before { content: "→ "; color: #ff2bd6; }

.foot { background: var(--ink); color: #cfcac0; padding: 40px clamp(20px, 4vw, 48px) 90px; }
.foot__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 13px; }
.foot p { margin: 0; }
.foot__name { color: #fff; font-weight: 900; }
.foot__rights { flex-basis: 100%; font-size: 12px; opacity: 0.7; }

@media (max-width: 860px) {
	.nav { display: none; }
	.mast__row { grid-template-columns: 1fr; }
	.mast__sub { justify-self: start; }
	.row { grid-template-columns: 2.4em 1fr 64px; gap: 12px; padding-block: 14px; }
	.row__en { font-size: 15vw; grid-column: 2; }
	.row__meta { grid-column: 2; grid-row: 2; }
	.row__no { grid-row: 1 / span 2; align-self: start; padding-top: 6px; font-size: 18px; }
	.row__thumb { display: block; grid-column: 3; grid-row: 1 / span 2; width: 64px; height: 64px; object-fit: contain; }
	.row__go { display: none; }
	.row::before { transform: none; opacity: 0; transition: opacity 0.3s; }
	.about { grid-template-columns: 1fr; gap: 16px; }
	.peek { display: none; }
}
@media (prefers-reduced-motion: reduce) { .mast__word { animation: none; } .row::before, .row__en { transition: none; } }

/* お知らせ */
.news-sec { padding: 40px clamp(20px, 4vw, 48px) 0; }
.news-sec__label { display: flex; align-items: baseline; gap: 14px; margin: 0 0 14px; font-family: var(--font-en); font-size: 18px; letter-spacing: 0.1em; color: var(--dim); }
.news-sec__label span { font-family: var(--font); font-size: 13px; font-weight: 700; letter-spacing: 0.1em; }
.news { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.news__item { display: flex; gap: 28px; padding: 16px 0; border-bottom: 1px solid var(--ink); }
.news__date { flex: none; font-family: var(--font-en); font-size: 18px; letter-spacing: 0.06em; }
.news__text { margin: 0; font-size: 15px; font-weight: 700; }
.foot__rights p { margin: 0; }
.foot__rights p + p { margin-top: 4px; }
.row__meta, .about__lead, .mast__sub { text-wrap: pretty; }

/* Adopted series icons: compensate for the v4 mark canvas padding. */
.row__thumb[src$="nut.svg"], .peek img[src$="nut.svg"] { transform: scale(1.22); }
