/* 企画グループ展「きらめきの途中で」専用スタイル(共通styles.cssは読み込まない)
   デザインの核: 夜の中で一点ずつ作品に出会い、作家紹介に入るあたりから、長い距離をかけてゆっくり明るくなる。
   - 冒頭から作品までは、蒼川わかの夜より少し青い夜の色。作品は明るいもの(むすびの白)から暗いもの(蒼川わかの夜の街)へ並べる
   - 作品を見ている終盤(佐藤静紅の作品)から背景が明るくなりはじめ、作家紹介に入る頃には明るくなりつつある。文字のない間(八太栄里の前)を経て、八太栄里・むすびの紹介を読み進めるうちに淡い色へ届く
   - 明るさが変わる途中では、暗い地には明るい文字、明るい地には暗い文字を置き、中間の明るさの部分には文字を置かない
   - 展示名は「きらめきの」と「途中で」を少しずらして組み、読み終わりに間を残す
   文字: 展示名はHina Mincho(細い払いの先が光を受けるような明朝。大きく組んでも読みやすい)、作家名はKaisei Opti、本文・開催情報はIBM Plex Sans JP */
:root {
  /* 明るい地(作家紹介の後半・開催概要) */
  --paper: #F3F0EB;
  --ink: #24272B;
  --ink-soft: #41464C;
  --ink-muted: #565B62;
  --rule: rgba(36, 39, 43, 0.16);
  --accent: #2C4760;
  --thumb-bg: rgba(36, 39, 43, 0.05);
  --gutter: clamp(16px, 5vw, 64px);
  --title: 'Hina Mincho', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --mincho: 'Kaisei Opti', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --sans: 'IBM Plex Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  /* 背景の移り変わり(暗い → 明るい) */
  --n0: #121522;   /* 冒頭 */
  --d0: #171A28;   /* 佐藤静紅の作品の終わり(ここから少しずつ明るく) */
  --d1: #1F2231;   /* 庄司理子の作品の終わり */
  --d2: #2A2D3D;   /* 蒼川わかの作品の終わり */
  --d3: #34374A;   /* 作家紹介の見出し */
  --n2: #45485B;   /* 庄司理子の紹介の終わり(ここまで明るい文字) */
  --n3: #BAB6BF;   /* 八太栄里の紹介の始まり(ここから暗い文字) */
  --n4: #E4E0DC;   /* 八太栄里の紹介の終わり */
  --n5: #F3F0EB;   /* むすびの紹介以降 */
}
/* 暗い地の部分の文字色 */
.topnav, .opening, .passage, .artists-head, .pf-shoji, .skip {
  --ink: #ECEEF3;
  --ink-soft: #C3C9D4;
  --ink-muted: #B6BDC9;
  --rule: rgba(236, 238, 243, 0.22);
  --accent: #A9C6E0;
  --thumb-bg: rgba(236, 238, 243, 0.06);
  --paper: var(--n0);
  color: var(--ink);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { background: var(--n0); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.85; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; z-index: 10; background: var(--paper); padding: 0 12px; min-height: 44px; display: inline-flex; align-items: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nb { white-space: nowrap; }

.topnav { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0 1.2rem; padding: 0.5rem var(--gutter) 0; font-size: 0.9rem; color: var(--ink-soft); }
.topnav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.topnav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.topnav-sub { display: flex; gap: 1.4rem; }

.link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; text-decoration-color: currentColor; }
.link:hover { color: var(--accent); }

/* ---- 入口 ---- */
.opening { max-width: 1180px; margin: 0 auto; padding: clamp(2.5rem, 8vh, 5.5rem) var(--gutter) clamp(3rem, 8vh, 5rem); }
.h1 { font-weight: 400; }
.h1-kind { display: block; font-size: 1rem; font-weight: 500; letter-spacing: 0.2em; color: var(--ink-soft); }
.h1-title { display: block; margin-top: 0.8rem; font-family: var(--title); font-weight: 400; line-height: 1.3; letter-spacing: 0.12em; }
.h1-title .t1, .h1-title .t2 { display: block; }
.h1-title .t1 { font-size: clamp(2.9rem, 11vw, 5.6rem); }
/* 「途中で」は少し右下へずらし、読み終わりに間を残す */
.h1-title .t2 { font-size: clamp(2.9rem, 11vw, 5.6rem); margin-left: 2.4em; margin-top: 0.08em; }
.info { margin-top: clamp(2rem, 5vh, 3rem); }
.facts > div { display: grid; grid-template-columns: 5.2em minmax(0, 1fr); column-gap: 0.8em; padding: 0.55rem 0; border-top: 1px solid var(--rule); }
.facts > div:last-child { border-bottom: 1px solid var(--rule); }
.facts dt { font-size: 0.9rem; color: var(--ink-muted); padding-top: 0.12em; }
.facts dd { font-size: 1.05rem; font-weight: 500; }
.facts .wd { font-size: 0.9em; font-weight: 400; }
.facts .to { margin: 0 0.25em; }
.facts time { white-space: nowrap; }
.floor { font-weight: 600; color: var(--accent); }
.shop { margin-top: 1.6rem; }
.shop-note { font-size: 1rem; text-wrap: balance; }
.shop-note time { white-space: nowrap; }
.shop-btn { display: inline-block; margin-top: 0.7rem; min-width: 14em; line-height: 50px; padding: 0 1.6rem; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 1rem; font-weight: 600; letter-spacing: 0.1em; text-align: center; text-decoration: none; white-space: nowrap; }
.shop-btn:hover, .shop-btn:focus-visible { background: var(--accent); }
.also { text-wrap: pretty; margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--rule); font-size: 0.98rem; }
.also-floor { font-weight: 600; color: var(--accent); }
.also .link { margin-left: 0.4em; }
.roster { margin-top: clamp(2.4rem, 6vh, 3.6rem); }
.roster-h { font-size: 0.9rem; font-weight: 500; letter-spacing: 0.2em; color: var(--ink-muted); }
.roster-list { list-style: none; display: flex; flex-wrap: wrap; gap: 0 1.6rem; margin-top: 0.3rem; }
.roster-list a { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--mincho); font-weight: 500; font-size: 1.22rem; letter-spacing: 0.06em; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; text-decoration-color: var(--rule); }
.roster-list a:hover { text-decoration-color: currentColor; color: var(--accent); }
@media (min-width: 1000px) {
  .opening { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: clamp(3rem, 6vw, 6rem); align-items: end; }
  .info { margin-top: 0; }
  .roster { grid-column: 1 / -1; }
}

/* ---- 作品: 夜の地の上に、明るい作品から暗い作品へ ---- */
.passage { overflow-x: clip; background: var(--n0); }
/* 作品を見ている終盤(佐藤静紅の作品)から、背景が少しずつ明るくなりはじめる。作品画像そのものには何も重ねない */
.w-sato   { background: linear-gradient(to bottom, var(--n0), var(--d0)); }
.w-shoji  { background: linear-gradient(to bottom, var(--d0), var(--d1)); }
.w-aokawa { background: linear-gradient(to bottom, var(--d1), var(--d2)); }
.hint { background: var(--d2); padding-bottom: 0; }
.work { display: flex; flex-direction: column; align-items: center; margin: 0; padding: clamp(4rem, 12vh, 8rem) var(--gutter) clamp(1rem, 3vh, 2rem); }
.w-musubi { padding-top: clamp(1rem, 3vh, 2rem); }
.zoom { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; width: 100%; }
.zoom img { width: 100%; }
/* 作品ごとの大きさ(元画像の解像度と構図から) */
.w-musubi .zoom { width: min(600px, 70svh, 84vw); }          /* 白地に淡い線: 線が見える大きさ */
.w-hatta .zoom  { width: min(560px, 66svh, 80vw); }          /* 縦長。広い雪原の中の小さな人物 */
.w-sato .zoom   { width: min(780px, 100%); }                 /* 横長の水辺 */
.w-shoji .zoom  { width: min(540px, 100%); }                 /* 元画像680px: 引き伸ばさない */
.w-aokawa .zoom { width: min(620px, 70svh, 88vw); }          /* 元画像1400px */
.cap { align-self: center; width: var(--capw, auto); display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 1rem; margin-top: 1rem; }
.w-musubi .cap { --capw: min(600px, 70svh, 84vw); }
.w-hatta .cap  { --capw: min(560px, 66svh, 80vw); }
.w-sato .cap   { --capw: min(780px, 100%); }
.w-shoji .cap  { --capw: min(540px, 100%); }
.w-aokawa .cap { --capw: min(620px, 70svh, 88vw); }
.cap-name { font-family: var(--mincho); font-weight: 500; font-size: 1.3rem; letter-spacing: 0.06em; }
.cap-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.92rem; text-decoration: underline; text-underline-offset: 4px; }
.cap-link:hover { color: var(--accent); }
.hint { padding: 2rem var(--gutter) 0; text-align: center; font-size: 0.9rem; color: var(--ink-muted); }


/* ---- 作家紹介: 指定の順。短い紹介も長い経歴も、同じ左右の配置で受け止める ---- */
.artists { --inline: max(var(--gutter), calc((100% - 1080px) / 2)); background: var(--n5); padding-bottom: clamp(4rem, 10vh, 6rem); }
.artists-head { background: linear-gradient(to bottom, var(--d2), var(--d3)); padding: clamp(5rem, 14vh, 8rem) var(--inline) 0; }
.sec-h { font-size: 0.95rem; font-weight: 500; letter-spacing: 0.22em; color: var(--ink-muted); max-width: 1080px; margin: 0 auto; }
.artists-head .sec-h { max-width: none; }
.pf { padding: 2.4rem var(--inline); scroll-margin-top: 1rem; color: var(--ink); }
/* 1人目(庄司理子): まだ暗い地。少しずつ明るくなる */
.pf-shoji { background: linear-gradient(to bottom, var(--d3), var(--n2)); padding-top: 1.6rem; padding-bottom: 3rem; }
/* 八太栄里の前の文字のない間で、暗い地から明るい地へ。紹介を読み進めるうちにさらに明るくなる */
.pf-hatta { --gap: clamp(15rem, 50vh, 28rem); background: linear-gradient(to bottom, var(--n2) 0, var(--n3) var(--gap), var(--n4) 100%); padding-top: calc(var(--gap) + 1rem); }
.pf-musubi { background: linear-gradient(to bottom, var(--n4), var(--n5)); }
.pf-sato, .pf-aokawa { background: var(--n5); }
.pf-musubi, .pf-sato, .pf-aokawa { box-shadow: inset 0 1px 0 var(--rule); }
.pf-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1rem; }
.pf-head .pf-sns { margin-top: 0.2rem; }
.pf-thumb { width: 72px; height: 72px; object-fit: contain; background: var(--thumb-bg); }   /* 全体を縮小して表示(切り抜かない) */
.pf-name { font-family: var(--mincho); font-weight: 500; font-size: 1.5rem; letter-spacing: 0.06em; line-height: 1.4; }
/* SNS: 作家名の下に Instagram / X を別々のリンクで。押せる範囲は44px以上 */
.pf-sns { list-style: none; display: flex; flex-wrap: wrap; gap: 0 1.2rem; flex-basis: 100%; }
.pf-sns a { display: inline-block; line-height: 44px; min-width: 44px; font-size: 0.95rem; font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.pf-sns a:hover { color: var(--accent); }
.pf-kana { font-family: var(--sans); font-weight: 400; font-size: 0.9rem; letter-spacing: 0.04em; color: var(--ink-soft); }
.pf-body:empty { display: none; }
.prose { margin-top: 1.2rem; max-width: 40em; font-size: 1rem; line-height: 2; }
.prose p + p { margin-top: 0.9em; }
.pf-web a { font-weight: 500; text-underline-offset: 4px; overflow-wrap: anywhere; }
.pf-web a:hover { color: var(--accent); }
.cv-h { margin-top: 2rem; font-size: 0.98rem; font-weight: 600; letter-spacing: 0.06em; }
.cv-sub { margin-top: 1.4rem; font-size: 0.95rem; font-weight: 600; color: var(--accent); letter-spacing: 0.06em; }
.cv { margin-top: 0.8rem; max-width: 52em; }
.cv > div { display: grid; grid-template-columns: 4.4em minmax(0, 1fr); column-gap: 0.8em; padding: 0.45rem 0; border-top: 1px dotted var(--rule); break-inside: avoid; }
.cv dt { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.cv dd { display: flex; flex-direction: column; font-size: 0.95rem; line-height: 1.75; overflow-wrap: anywhere; }
.cv dd span + span { margin-top: 0.2rem; }
/* 年の書かれていない行(佐藤静紅の末尾など): 年の欄に入れず、原稿の行のまま並べる */
.cv-plain { list-style: none; margin-top: 0.2rem; max-width: 52em; border-top: 1px dotted var(--rule); padding-top: 0.45rem; }
.cv-plain li { font-size: 0.95rem; line-height: 1.75; overflow-wrap: anywhere; }
.cv-plain li + li { margin-top: 0.2rem; }
.cv-h-top { margin-top: 0; }
.cv-h-top + .prose { margin-top: 0.8rem; }
@media (min-width: 900px) {
  .pf { display: grid; grid-template-columns: 15rem minmax(0, 1fr); column-gap: 3rem; align-items: start; }
  .pf-head { flex-direction: column; flex-wrap: nowrap; align-items: flex-start; gap: 0.9rem; align-self: start; position: sticky; top: 1.5rem; }
  .pf-head .pf-sns { margin-top: -0.4rem; flex-basis: auto; }
  .pf-thumb { width: 120px; height: 120px; }
  .prose { margin-top: 0; }
  .pf-body > .cv:first-child { margin-top: 0; }
  /* 長い経歴は2段に分けて、縦に長くなりすぎないようにする */
  .pf-body .cv-long { columns: 2; column-gap: 2.4rem; max-width: none; }
}

/* ---- 開催概要 ---- */
.overview { background: var(--n5); padding: 0 var(--gutter) clamp(3rem, 8vh, 5rem); scroll-margin-top: 1rem; }
.overview .sec-h { padding-top: 2.4rem; border-top: 1px solid var(--rule); }
.ov { max-width: 1080px; margin: 1.2rem auto 0; }
.ov > div { display: grid; grid-template-columns: 6em minmax(0, 1fr); column-gap: 1em; padding: 0.7rem 0; border-top: 1px solid var(--rule); }
.ov > div:last-child { border-bottom: 1px solid var(--rule); }
.ov dt { font-size: 0.92rem; color: var(--ink-muted); padding-top: 0.1em; }
.ov dd { font-size: 1rem; }
.ov time { white-space: nowrap; }
.ov .link { margin-left: 0.3em; min-height: 0; }
.ov-note { max-width: 1080px; margin: 1.4rem auto 0; }
.ov-links { max-width: 1080px; margin: 0.4rem auto 0; display: flex; flex-wrap: wrap; gap: 0 2rem; }

.out { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 2.2rem; padding: 2rem var(--gutter) 2.6rem; background: var(--n5); border-top: 1px solid var(--rule); }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem 1rem; padding: 1.4rem var(--gutter) 2.2rem; background: var(--n5); border-top: 1px solid var(--rule); font-size: 0.9rem; color: var(--ink-soft); }
.foot a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 4px; }
.foot p { display: flex; align-items: center; }

@media (max-width: 759px) {
  .h1-title .t2 { margin-left: 1.6em; }
  .facts > div { grid-template-columns: 4.6em minmax(0, 1fr); }
  .work { padding-top: 3.5rem; }
  .h1-title .t2 { margin-left: 1.4em; }
}

/* ---- 拡大表示 ---- */
.lb { border: 0; padding: 0; width: 100%; height: 100%; max-width: 100vw; max-height: 100vh; background: transparent; color: #fff; }
.lb::backdrop { background: rgba(12, 13, 18, 0.985); }
.lb[open] { display: flex; flex-direction: column; }
.lb-bar { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; padding: 0.6rem 0.8rem; flex: none; }
.lb-info { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.9rem; padding-left: 0.4rem; }
.lb-artist { font-family: var(--mincho); font-weight: 500; font-size: 1.15rem; letter-spacing: 0.06em; }
.lb-count { font-size: 0.9rem; color: rgba(255, 255, 255, 0.75); font-variant-numeric: tabular-nums; }
.lb-btn { font: inherit; font-size: 0.92rem; color: #fff; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 999px; min-height: 44px; padding: 0.3rem 1.1rem; cursor: pointer; }
.lb-btn:hover { background: rgba(255, 255, 255, 0.18); }
.lb-stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 3.6rem 1rem; }
.lb-img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 64px; font-size: 2.2rem; line-height: 1; color: #fff; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 4px; cursor: pointer; }
.lb-nav:hover { background: rgba(255, 255, 255, 0.16); }
.lb-prev { left: 0.4rem; }
.lb-next { right: 0.4rem; }
.lb button:focus-visible { outline-color: #fff; }
@media (max-width: 759px) {
  .lb-stage { padding: 0 0.5rem 5rem; }
  .lb-nav { top: auto; bottom: 0.9rem; transform: none; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
