/*
Theme Name: Whispering Leaves（葉のささやき）
Author: Hidamari Moyou
Description: パフォーマンスアーティストを客席から記録するファンギャラリーのためのオリジナルテーマ。木立の陰に沈む写真の壁を、木漏れ日のような揺れる光が照らすトップページ。その下に公演の演目表。1投稿＝1ステージの記録として、写真が撮影順にコマ番号付きで流れます。出演者タクソノミーにXアカウントを登録するとクレジットリンクが自動表示されます。
Version: 2.29.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kyakuseki
*/

/* ---------- tokens ---------- */
:root {
  --ink: #f7f8f4; --ink-2: #eef1e9; --line: #dbe2d4;
  --paper: #2c362d; --muted: #7d8a7c; --spot: #3f6b4d;
  --rail-w: 76px;
  --font-display: "Zen Old Mincho", "Hiragino Mincho ProN", serif;
  --font-body: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-meta: "Courier Prime", "Courier New", monospace;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--paper);
  font-family: var(--font-body); font-size: 15px; line-height: 1.9; letter-spacing: .02em; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--paper); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--spot); }
:focus-visible { outline: 2px solid var(--spot); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce){*,*::before,*::after{transition:none!important;animation:none!important}}

/* ---------- 左レール ---------- */
.site-rail { position: fixed; inset: 0 auto 0 0; width: var(--rail-w);
  border-right: 1px solid var(--line); display: flex; flex-direction: column;
  align-items: center; justify-content: space-between; padding: 28px 0;
  background: var(--ink); z-index: 40; }
.site-title { writing-mode: vertical-rl;
  font-family: "Courier Prime", "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", monospace;
  font-weight: 400; font-size: 15px; letter-spacing: .3em; margin: 0; }
.site-title a { color: var(--paper); }
.rail-mark { writing-mode: vertical-rl; font-family: var(--font-meta); font-size: 10px;
  letter-spacing: .3em; color: var(--muted); text-transform: uppercase; }

.site-body { margin-left: var(--rail-w); }
.site-main { padding: 56px 5vw 80px; max-width: calc(1280px + 10vw); }

/* ---------- ナビ ---------- */
.site-nav { display: flex; flex-wrap: wrap; gap: 6px 28px; align-items: baseline;
  margin-bottom: 64px; }
.site-tagline { font-family: var(--font-meta); font-size: 11px; letter-spacing: .18em;
  color: var(--muted); margin-right: auto; }
.site-nav ul { list-style: none; display: flex; gap: 24px; margin: 0; padding: 0; }
.site-nav li a { font-size: 13px; letter-spacing: .12em; color: var(--muted); }
.site-nav li a:hover { color: var(--spot); }

/* ============================================================
   光の壁（トップのヒーロー）
   ============================================================ */
.light-wall { position: relative; height: 100svh; min-height: 560px;
  overflow: hidden; cursor: none; border-bottom: 1px solid var(--line);
  touch-action: manipulation; }
/* タップ時のリンクハイライト（一瞬の点滅）を出さない */
.light-wall a { -webkit-tap-highlight-color: transparent; }
.light-wall a:focus:not(:focus-visible) { outline: none; }
.wall-grid { position: absolute; inset: 0; display: grid;
  grid-template-columns: repeat(6, 1fr); grid-auto-rows: 25vh; gap: 0; }
.wall-item { position: relative; overflow: hidden; background: var(--ink-2); }
.wall-item img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%;
  transition: object-position .4s ease; }
.wall-item:nth-child(1), .wall-item:nth-child(5) { grid-row: span 2; }
.wall-item:nth-child(2), .wall-item:nth-child(7) { grid-column: span 2; }
/* 縁を強くもやもや：写真同士の境目が白い靄で溶け合う */
.wall-item::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  box-shadow: inset 0 0 26px 10px var(--ink), inset 0 0 64px 24px rgba(247,248,244,.55); }
/* コラージュのようなわずかな傾き（transformは席・間隔・靄・葉の演出に影響しない） */
.wall-item:nth-child(7n+1) { transform: rotate(-2.2deg) scale(1.07); }
.wall-item:nth-child(7n+2) { transform: rotate(2.8deg) scale(1.07); }
.wall-item:nth-child(7n+3) { transform: rotate(-1.6deg) scale(1.06); }
.wall-item:nth-child(7n+4) { transform: rotate(2.2deg) scale(1.06); }
.wall-item:nth-child(7n+5) { transform: rotate(-3deg) scale(1.08); }
.wall-item:nth-child(7n+6) { transform: rotate(1.8deg) scale(1.06); }
.wall-item:nth-child(7n)   { transform: rotate(2.5deg) scale(1.07); }
/* 枚数が少ないうちは、タイルを大きく分割して壁を満たす */
.wall-grid.wc1 { grid-template-columns: 1fr; grid-template-rows: 1fr; grid-auto-rows: auto; }
.wall-grid.wc2 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; grid-auto-rows: auto; }
.wall-grid.wc3 { grid-template-columns: repeat(3, 1fr); grid-template-rows: 1fr; grid-auto-rows: auto; }
.wall-grid.wc4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; grid-auto-rows: auto; }
.wall-grid.wc5, .wall-grid.wc6 { grid-template-columns: repeat(3, 1fr); grid-template-rows: 1fr 1fr; grid-auto-rows: auto; }
.wall-grid.wc7, .wall-grid.wc8 { grid-template-columns: repeat(4, 1fr); grid-template-rows: 1fr 1fr; grid-auto-rows: auto; }
.wall-grid.wc1 .wall-item, .wall-grid.wc2 .wall-item, .wall-grid.wc3 .wall-item,
.wall-grid.wc4 .wall-item, .wall-grid.wc5 .wall-item, .wall-grid.wc6 .wall-item,
.wall-grid.wc7 .wall-item, .wall-grid.wc8 .wall-item { grid-row: auto; grid-column: auto; }
.wall-grid.wc5 .wall-item:first-child, .wall-grid.wc7 .wall-item:first-child { grid-column: span 2; }
.wall-item .tag { position: absolute; left: 12px; bottom: 12px; z-index: 2;
  font-family: var(--font-meta); font-size: 10px; letter-spacing: .12em;
  color: var(--paper); opacity: 0; transition: opacity .3s ease;
  background: rgba(247,248,244,.78); padding: 3px 11px; border-radius: 999px; }
.wall-item:hover .tag { opacity: .95; }
.wall-item a { position: absolute; inset: 0; z-index: 1; }

.darkness { position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: radial-gradient(circle at var(--sx, 50%) var(--sy, 42%),
    rgba(244,247,240,0) 0, rgba(244,247,240,.12) 170px,
    rgba(244,247,240,.72) 360px, rgba(244,247,240,.92) 560px);
  /* 光の輪＝葉のかたち：靄に柔らかい葉形の窓を開ける */
  -webkit-mask-image: linear-gradient(#fff, #fff), url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22340%22 height=%22380%22%3E %3Cdefs%3E%3Cfilter id=%22b%22 x=%22-20%25%22 y=%22-20%25%22 width=%22140%25%22 height=%22140%25%22%3E %3CfeGaussianBlur stdDeviation=%2211%22/%3E%3C/filter%3E%3C/defs%3E %3Cpolygon points=%22265,23 242,37 215,50 188,62 162,74 136,88 113,102 92,119 75,139 62,161 54,187 50,216 50,248 54,283 60,319 68,357 96,346 123,334 148,320 170,304 190,287 206,267 219,245 230,221 238,195 244,167 248,138 252,109 255,80 259,50%22 fill=%22%23fff%22 filter=%22url(%23b)%22/%3E%3C/svg%3E");
          mask-image: linear-gradient(#fff, #fff), url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22340%22 height=%22380%22%3E %3Cdefs%3E%3Cfilter id=%22b%22 x=%22-20%25%22 y=%22-20%25%22 width=%22140%25%22 height=%22140%25%22%3E %3CfeGaussianBlur stdDeviation=%2211%22/%3E%3C/filter%3E%3C/defs%3E %3Cpolygon points=%22265,23 242,37 215,50 188,62 162,74 136,88 113,102 92,119 75,139 62,161 54,187 50,216 50,248 54,283 60,319 68,357 96,346 123,334 148,320 170,304 190,287 206,267 219,245 230,221 238,195 244,167 248,138 252,109 255,80 259,50%22 fill=%22%23fff%22 filter=%22url(%23b)%22/%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%, 340px 380px;
          mask-size: 100% 100%, 340px 380px;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: 0 0, calc(var(--sx, 50%) - 170px) calc(var(--sy, 42%) - 190px);
          mask-position: 0 0, calc(var(--sx, 50%) - 170px) calc(var(--sy, 42%) - 190px);
  -webkit-mask-composite: xor;
          mask-composite: exclude; }
/* 緑の光：葉の窓よりひと回り大きな葉形で、常磐緑がにじむ */
.beam { position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background: radial-gradient(circle at var(--sx, 50%) var(--sy, 42%),
    rgba(63,107,77,.20) 0, rgba(63,107,77,.10) 170px, rgba(63,107,77,0) 270px);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22340%22 height=%22380%22%3E %3Cdefs%3E%3Cfilter id=%22b%22 x=%22-20%25%22 y=%22-20%25%22 width=%22140%25%22 height=%22140%25%22%3E %3CfeGaussianBlur stdDeviation=%2211%22/%3E%3C/filter%3E%3C/defs%3E %3Cpolygon points=%22265,23 242,37 215,50 188,62 162,74 136,88 113,102 92,119 75,139 62,161 54,187 50,216 50,248 54,283 60,319 68,357 96,346 123,334 148,320 170,304 190,287 206,267 219,245 230,221 238,195 244,167 248,138 252,109 255,80 259,50%22 fill=%22%23fff%22 filter=%22url(%23b)%22/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22340%22 height=%22380%22%3E %3Cdefs%3E%3Cfilter id=%22b%22 x=%22-20%25%22 y=%22-20%25%22 width=%22140%25%22 height=%22140%25%22%3E %3CfeGaussianBlur stdDeviation=%2211%22/%3E%3C/filter%3E%3C/defs%3E %3Cpolygon points=%22265,23 242,37 215,50 188,62 162,74 136,88 113,102 92,119 75,139 62,161 54,187 50,216 50,248 54,283 60,319 68,357 96,346 123,334 148,320 170,304 190,287 206,267 219,245 230,221 238,195 244,167 248,138 252,109 255,80 259,50%22 fill=%22%23fff%22 filter=%22url(%23b)%22/%3E%3C/svg%3E");
  -webkit-mask-size: 405px 452px;
          mask-size: 405px 452px;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: calc(var(--sx, 50%) - 202px) calc(var(--sy, 42%) - 226px);
          mask-position: calc(var(--sx, 50%) - 202px) calc(var(--sy, 42%) - 226px); }

@media (prefers-reduced-motion: reduce){
  .light-wall { cursor: auto; }
  .darkness { background: rgba(247,248,244,.55); }
  .beam { display: none; }
}

.wall-words { position: absolute; inset: 0; z-index: 4; pointer-events: none;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 0 6vw 9vh; }
.wall-words .eyebrow { font-family: var(--font-meta); font-size: 11px; letter-spacing: .3em;
  color: var(--spot); text-transform: uppercase; margin: 0 0 14px; }
.wall-words .wall-copy { font-family: var(--font-display); font-weight: 400;
  font-size: clamp(24px, 4vw, 44px); line-height: 1.85; letter-spacing: .1em;
  margin: 0 0 14px; text-shadow: 0 2px 30px rgba(247,248,244,.9); }
.wall-words .hint { font-family: var(--font-meta); font-size: 11.5px;
  letter-spacing: .14em; color: var(--muted); margin: 0; }
/* スマホ専用文言の出し分け */
.wall-words .sp-only { display: none; }
@media (max-width: 680px){
  .wall-words .sp-only { display: block; }
  .wall-words .has-sp { display: none; }
}
.scroll-cue { position: absolute; right: 5vw; bottom: 8vh; z-index: 4; pointer-events: none;
  writing-mode: vertical-rl; font-family: var(--font-meta); font-size: 10px;
  letter-spacing: .3em; color: var(--muted); }
.scroll-cue::after { content: ""; display: block; width: 1px; height: 56px;
  background: linear-gradient(var(--muted), transparent); margin: 12px auto 0;
  animation: cue 2.4s ease-in-out infinite; }
@keyframes cue { 0%,100%{ transform: scaleY(.4); transform-origin: top; opacity:.4 } 50%{ transform: scaleY(1); opacity:1 } }

/* ============================================================
   演目表
   ============================================================ */
.section-head { display: flex; align-items: baseline; gap: 20px; margin: 0 0 64px; }
.section-head h2 { font-family: var(--font-display); font-weight: 500;
  font-size: clamp(20px, 2.4vw, 26px); margin: 0; letter-spacing: .14em; }
.sprig { display: inline-block; width: 18px; height: 15px;
  margin-right: 8px; vertical-align: -2px; color: var(--spot); }
.section-head h2 .sprig { width: 22px; height: 18px; vertical-align: -2px; }
.section-head .en { font-family: var(--font-meta); font-size: 11px;
  letter-spacing: .22em; color: var(--muted); text-transform: uppercase; }

.program-index { list-style: none; margin: 0; padding: 0; }
.performance-row { display: grid; grid-template-columns: 148px 1fr;
  gap: 0 clamp(24px, 3.5vw, 56px); margin: 0 0 96px; }
.performance-row:last-child { margin-bottom: 48px; }
.perf-date-block a { display: block; text-align: right; }
.perf-date-block .d-num { display: block; font-family: var(--font-display);
  font-weight: 400; font-size: clamp(34px, 3.6vw, 46px); line-height: 1.1;
  letter-spacing: .04em; color: var(--paper);
  font-feature-settings: "tnum"; transition: color .25s ease; }
.perf-date-block .d-sub { display: block; margin-top: 8px;
  font-family: var(--font-meta); font-size: 10.5px; letter-spacing: .22em;
  color: var(--muted); }
.perf-date-block a:hover .d-num { color: var(--spot); }
.perf-title { font-family: var(--font-display); font-weight: 500;
  font-size: clamp(19px, 2.3vw, 25px); line-height: 1.7; letter-spacing: .03em; margin: 0 0 6px; }
.perf-title a { color: var(--paper);
  background-image: linear-gradient(var(--spot), var(--spot));
  background-repeat: no-repeat; background-size: 0 1px; background-position: 0 100%;
  transition: background-size .35s ease, color .25s ease; padding-bottom: 3px; }
.perf-title a:hover { color: var(--spot); background-size: 100% 1px; }
.perf-sub { font-family: var(--font-meta); font-size: 11.5px; letter-spacing: .1em;
  color: var(--muted); margin: 0 0 22px; }
.perf-sub .dot { margin: 0 8px; color: var(--line); }

/* グリッド列が写真の合計幅で膨らまないように（min-width:autoの罠を無効化） */
.perf-body { min-width: 0; }
.performance-row { min-width: 0; }
.site-body { overflow-x: clip; }
/* 記録一覧のページ送り */
.pagination { margin: 24px 0 72px; }
.pagination ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px;
  margin: 0; padding: 0; justify-content: center; }
.pagination .page-numbers { display: inline-block; font-family: var(--font-meta);
  font-size: 12px; letter-spacing: .08em; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; }
.pagination a.page-numbers:hover { color: var(--spot); border-color: var(--spot); }
.pagination .page-numbers.current { color: var(--ink); background: var(--spot);
  border-color: var(--spot); }
.pagination .page-numbers.dots { border: 0; }
.film-strip { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 10px;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.film-strip::-webkit-scrollbar { height: 6px; }
.film-strip::-webkit-scrollbar-thumb { background: var(--line); }
.frame { flex: 0 0 auto; position: relative; border-radius: 10px; overflow: hidden;
  background: var(--ink-2);
  box-shadow: 0 1px 2px rgba(44,54,45,.06), 0 10px 28px rgba(44,54,45,.09);
  transition: box-shadow .3s ease, transform .3s ease; }
.frame:hover { transform: translateY(-3px);
  box-shadow: 0 2px 4px rgba(44,54,45,.07), 0 16px 36px rgba(44,54,45,.13); }
.frame img { height: 160px; width: auto; max-width: 300px; object-fit: cover; }
.frame .no { position: absolute; left: 8px; top: 8px; font-family: var(--font-meta);
  font-size: 10px; letter-spacing: .12em; color: var(--paper); opacity: .9;
  background: rgba(247,248,244,.78); padding: 2px 9px; border-radius: 999px; }
.frame.more { display: flex; align-items: center; justify-content: center;
  width: 110px; min-height: 160px; color: var(--muted);
  background: var(--ink-2); box-shadow: none;
  font-family: var(--font-meta); font-size: 11px; letter-spacing: .12em; }
.frame.more:hover { color: var(--spot); transform: none; box-shadow: none; }
.frame.more:hover { color: var(--spot); }

/* 立ち上げ期（記録が少ないとき）のフィーチャー表示：写真＋情報の2カラム */
.featured-record { display: grid; grid-template-columns: 1.35fr 1fr;
  gap: clamp(28px, 4vw, 52px); align-items: center;
  margin-bottom: 80px; }
.featured-record .featured-photo { display: block; border-radius: 12px; overflow: hidden;
  box-shadow: 0 2px 4px rgba(44,54,45,.06), 0 18px 48px rgba(44,54,45,.12); }
.featured-record .featured-photo img { width: 100%; aspect-ratio: 3 / 2;
  object-fit: cover; object-position: 50% 35%; }
.featured-record .eyebrow { font-family: var(--font-meta); font-size: 11px;
  letter-spacing: .3em; color: var(--spot); text-transform: uppercase; margin: 0 0 14px; }
.featured-record h2 { font-family: var(--font-display); font-weight: 500;
  font-size: clamp(22px, 2.6vw, 31px); line-height: 1.7; letter-spacing: .04em; margin: 0 0 12px; }
.featured-record h2 a { color: var(--paper); }
.featured-record h2 a:hover { color: var(--spot); }
.featured-record .cover-meta { font-family: var(--font-meta); font-size: 12px;
  letter-spacing: .14em; color: var(--muted); margin: 0 0 26px; line-height: 2.2; }
.featured-record .cover-meta .sep { color: var(--line); margin: 0 10px; }
.featured-record .enter { display: inline-block; font-family: var(--font-meta);
  font-size: 12px; letter-spacing: .14em; color: var(--spot);
  border: 1px solid var(--spot); border-radius: 999px; padding: 10px 28px; }
.featured-record .enter:hover { background: var(--spot); color: var(--ink); }
@media (max-width: 900px){
  .featured-record { grid-template-columns: 1fr; align-items: start; }
}

/* ============================================================
   公演記録ページ
   ============================================================ */
.performance-record { max-width: 880px; margin: 0 auto; }
.record-cover { text-align: center; padding: 16px 0 56px; }
.record-cover .eyebrow { font-family: var(--font-meta); font-size: 11px;
  letter-spacing: .3em; color: var(--spot); text-transform: uppercase; margin: 0 0 18px; }
.record-cover h1 { font-family: var(--font-display); font-weight: 500;
  font-size: clamp(28px, 4.6vw, 46px); line-height: 1.7; letter-spacing: .06em; margin: 0 0 18px; }
.record-cover .cover-meta { font-family: var(--font-meta); font-size: 12px;
  letter-spacing: .14em; color: var(--muted); }
.record-cover .cover-meta .sep { color: var(--line); margin: 0 10px; }
.record-cover .cover-meta a { color: var(--spot); }
.record-cover .cover-photo { max-width: 760px; margin: 38px auto 0;
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 2px 4px rgba(44,54,45,.06), 0 18px 48px rgba(44,54,45,.12); }
.record-cover .cover-photo img { width: 100%; height: auto; display: block; }
.record-cover .cover-lead { max-width: 560px; margin: 26px auto 0; color: var(--muted); font-size: 14px; }
.record-cover .cover-lead p { margin: 0 0 1em; }

.act-mark { display: flex; align-items: center; gap: 18px; margin: 8px 0 56px;
  font-family: var(--font-meta); font-size: 11px; letter-spacing: .3em; color: var(--spot); }
.act-mark::before, .act-mark::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.act-mark.end { margin: 0 0 40px; }

.scene { display: grid; grid-template-columns: 96px 1fr; gap: 0 26px; margin: 0 0 72px; }
.scene .margin-note { font-family: var(--font-meta); font-size: 11px; line-height: 2.1;
  letter-spacing: .1em; color: var(--muted); text-align: right; padding-top: 4px; }
.scene .margin-note .no { color: var(--spot); display: block; }
.scene .photo-frame { border: 1px solid var(--line); background: var(--ink-2);
  padding: clamp(8px, 1.6vw, 16px); }
.scene .scene-caption { grid-column: 2; margin: 14px 2px 0; font-size: 14px; }
.scene { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.scene.lit { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .scene { opacity: 1; transform: none; } }

.curtain-call { background: var(--ink-2); border-radius: 12px;
  padding: 28px 30px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.curtain-call .curtain-lead { margin: 0 0 14px; }
.credit-list { list-style: none; margin: 0; padding: 0; }
.credit-list li { display: flex; flex-wrap: wrap; align-items: baseline;
  gap: 4px 18px; padding: 8px 0; border-top: 1px solid var(--line); }
.credit-list .credit-name { font-family: var(--font-display); font-weight: 500;
  font-size: 14.5px; color: var(--paper); }
.credit-list .credit-name:hover { color: var(--spot); }
.credit-list .credit-links { font-family: var(--font-meta); font-size: 11.5px; letter-spacing: .06em; }
.credit-list .credit-links a { color: var(--spot); }
.credit-list .credit-links .dot { color: var(--muted); margin: 0 6px; }
.record-pager { display: flex; justify-content: space-between; gap: 24px;
  margin-top: 56px; font-size: 13px; letter-spacing: .08em; }
.record-pager a { color: var(--muted); }
.record-pager a:hover { color: var(--spot); }

/* ---------- 出演者ページ ---------- */
.artist-header { margin: 0 0 64px; }
.artist-header .eyebrow { font-family: var(--font-meta); font-size: 11px;
  letter-spacing: .25em; color: var(--spot); text-transform: uppercase; margin: 0 0 10px; }
.artist-header h1 { font-family: var(--font-display); font-weight: 500;
  font-size: clamp(26px, 4vw, 40px); line-height: 1.6; letter-spacing: .05em; margin: 0 0 12px; }
.artist-header .artist-desc { color: var(--muted); max-width: 620px; margin: 0 0 16px; }
.sns-links { display: flex; flex-wrap: wrap; gap: 10px; }
.sns-link { display: inline-block; font-family: var(--font-meta); font-size: 12px;
  letter-spacing: .1em; color: var(--spot); border: 1px solid var(--spot);
  border-radius: 999px; padding: 7px 20px; }
.sns-link:hover { background: var(--spot); color: var(--ink); }

/* ---------- 固定ページ・その他 ---------- */
.page-plain { max-width: 720px; }
.page-plain h1 { font-family: var(--font-display); font-weight: 500;
  font-size: clamp(24px, 3.4vw, 32px); margin: 0 0 28px; }
.nothing-found { color: var(--muted); padding: 80px 0; text-align: center; }
.gallery-pagination { margin-top: 24px; font-family: var(--font-meta);
  font-size: 12px; letter-spacing: .1em; }
.gallery-pagination .page-numbers { color: var(--muted); padding: 4px 10px; border: 1px solid transparent; }
.gallery-pagination .page-numbers.current,
.gallery-pagination .page-numbers:hover { color: var(--spot); border-color: var(--line); }

/* ---------- フッター（奥付） ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px;
  padding: 88px 5vw 48px; color: var(--muted); font-size: 13px; line-height: 2; }
.footer-leaf { display: flex; justify-content: center; color: var(--spot); margin-bottom: 26px; }
.footer-farewell { font-family: var(--font-display); font-weight: 400;
  font-size: clamp(17px, 2vw, 21px); letter-spacing: .3em; text-indent: .3em;
  color: var(--paper); text-align: center; margin: 0 0 72px; }
.colophon { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 40px 56px; max-width: 1000px; margin: 0 auto 72px; }
.colophon-block p { margin: 0; }
.colophon-label { font-family: var(--font-meta); font-size: 10.5px; font-weight: 500;
  letter-spacing: .28em; color: var(--spot); text-transform: uppercase;
  border-bottom: 1px solid var(--line); padding-bottom: 10px; margin: 0 0 14px; }
.colophon-nav { list-style: none; margin: 0; padding: 0; }
.colophon-nav li { margin: 0 0 4px; }
.colophon-nav a { color: var(--muted); letter-spacing: .06em; }
.colophon-nav a:hover { color: var(--spot); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between;
  align-items: baseline; gap: 8px 24px; max-width: 1000px; margin: 0 auto;
  border-top: 1px solid var(--line); padding-top: 22px;
  font-family: var(--font-meta); font-size: 11px; letter-spacing: .12em; line-height: 1.9; }
.footer-base span { white-space: nowrap; }
.footer-base .base-mark { color: var(--spot); font-style: normal; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 1024px){
  .colophon { grid-template-columns: 1fr; gap: 32px; max-width: 620px; }
  .footer-base { max-width: 620px; }
}
/* タップで照らされたタイル（タッチ端末の1タップ目） */
.wall-item.lit-item .tag { opacity: .95; }

@media (max-width: 680px){
  /* 下層ページ：通常のヘッダー（サイト名＝ホームへの帰り道） */
  .site-rail { position: static; width: auto; flex-direction: row;
    justify-content: space-between; padding: 16px 5vw; border-right: 0;
    border-bottom: 1px solid var(--line); }
  .site-title { writing-mode: horizontal-tb; letter-spacing: .22em; font-size: 14px; }
  .rail-mark { writing-mode: horizontal-tb; }
  /* トップだけ：透明のオーバーレイ、サイト名なし */
  body.home .site-rail { position: absolute; inset: 0 0 auto 0; z-index: 10;
    justify-content: flex-end; padding: 14px 5vw;
    border-bottom: 0; background: transparent; }
  body.home .site-title { display: none; }
  .site-body { margin-left: 0; }
  .light-wall { cursor: auto; height: 82svh; }
  /* 光の輪を画面幅に合わせて縮小（壁がうっすら透ける濃度） */
  .darkness { background: radial-gradient(circle at var(--sx, 50%) var(--sy, 42%),
    rgba(244,247,240,0) 0, rgba(244,247,240,.14) 80px,
    rgba(244,247,240,.62) 180px, rgba(244,247,240,.9) 320px);
    -webkit-mask-size: 100% 100%, 215px 240px;
            mask-size: 100% 100%, 215px 240px;
    -webkit-mask-position: 0 0, calc(var(--sx, 50%) - 107px) calc(var(--sy, 42%) - 120px);
            mask-position: 0 0, calc(var(--sx, 50%) - 107px) calc(var(--sy, 42%) - 120px); }
  .beam { background: radial-gradient(circle at var(--sx, 50%) var(--sy, 42%),
    rgba(63,107,77,.22) 0, rgba(63,107,77,.10) 110px, rgba(63,107,77,0) 180px);
    -webkit-mask-size: 258px 288px;
            mask-size: 258px 288px;
    -webkit-mask-position: calc(var(--sx, 50%) - 129px) calc(var(--sy, 42%) - 144px);
            mask-position: calc(var(--sx, 50%) - 129px) calc(var(--sy, 42%) - 144px); }
  /* コピーの背後だけに薄いスクリム（下端から文字の高さぶんで消える） */
  .wall-words { background: linear-gradient(to top,
    rgba(247,248,244,.82) 0%, rgba(247,248,244,.5) 16%, rgba(247,248,244,0) 36%); }
  .wall-words .hint { font-size: 12px; }
  /* 隙間なしの2列：5枚が必ず収まる席割り */
  .light-wall .wall-grid { grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(6, 1fr); grid-auto-rows: auto; grid-auto-flow: dense; }
  .light-wall .wall-grid .wall-item { grid-row: auto; grid-column: auto; }
  /* スマホは3枚に絞る：縦長1＋右列2 */
  .light-wall .wall-grid .wall-item:nth-child(1) { grid-column: 1; grid-row: 1 / 7; }
  .light-wall .wall-grid .wall-item:nth-child(2) { grid-column: 2; grid-row: 1 / 4; }
  .light-wall .wall-grid .wall-item:nth-child(3) { grid-column: 2; grid-row: 4 / 7; }
  .light-wall .wall-grid .wall-item:nth-child(n+4) { display: none; }
  /* スマホでは日付タグを出さない */
  .light-wall .wall-item .tag { display: none; }
  .frame img { height: 130px; max-width: 240px; }
  .frame.more { min-height: 130px; width: 90px; }
  .scene { grid-template-columns: 1fr; }
  .scene .margin-note { text-align: left; padding-top: 0; margin-bottom: 8px; }
  .scene .margin-note .no { display: inline; margin-right: 12px; }
  .scene .scene-caption { grid-column: 1; }
  .performance-row { grid-template-columns: 1fr; gap: 0; margin-bottom: 72px; }
  .perf-date-block a { display: flex; align-items: baseline; gap: 12px; text-align: left; margin-bottom: 10px; }
  .perf-date-block .d-num { font-size: 30px; }
  .perf-date-block .d-sub { margin-top: 0; }
  .site-footer { padding-top: 64px; }
  .footer-farewell { margin-bottom: 52px; }
  .colophon { grid-template-columns: 1fr; gap: 32px; margin-bottom: 52px; }
  .footer-base { flex-direction: column; gap: 4px; }
}
