/* ちがいほうけん個展「あなたがいないとはじまらない」専用スタイル(共通styles.cssは読み込まない)
   見せ方: ①完成したポスターを入口に(上に何も重ねない)+開催情報の案内欄 → ②4作品を同じ大きさで見渡す
           → ③作家とSNS → ④開催概要・ご来場・オンラインショップ。
   色: ポスターの白地になじむ白、黒い文字、赤はごく少量(閲覧用番号など)。外部フォントは使わない。 */
:root {
  --ink: #111;
  --muted: #5B5B5B;
  --red: #D01634;
  --rule: rgba(17, 17, 17, 0.2);
  --sans: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
  --pad: clamp(20px, 4.5vw, 64px);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { background: #fff; color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.9; letter-spacing: 0.03em; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 6px 10px; z-index: 10; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
main > section, .entry { max-width: 1320px; margin-inline: auto; padding-inline: var(--pad); }

/* 導線 */
.topnav { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1rem var(--pad); font-size: 0.78rem; color: var(--muted); max-width: 1320px; margin-inline: auto; }
.topnav a { display: inline-block; padding: 0.3rem 0; border-bottom: 1px solid transparent; }
.topnav a:hover { border-bottom-color: currentColor; color: var(--ink); }
.topnav-sub { display: flex; gap: 1.6rem; }

/* ===== 入口: ポスター+案内欄 =====
   スマホの順序: 短い展示名・会期 → ポスター → 詳しい情報 */
.entry { display: grid; gap: 1.4rem; grid-template-areas: "head" "poster" "info"; padding-top: 0.8rem; padding-bottom: clamp(2.6rem, 6vw, 4.4rem); }
.head { grid-area: head; }
.poster { grid-area: poster; }
.info { grid-area: info; }
.h1 { font-size: 1.25rem; line-height: 1.55; font-weight: 700; letter-spacing: 0.04em; }
.h1 span { display: block; }
.h1-title { text-wrap: balance; }
.h1-artist { font-size: 0.82rem; font-weight: 400; letter-spacing: 0.14em; color: var(--muted); }
.when { margin-top: 0.4rem; font-size: 0.98rem; }
.zoom { display: block; width: 100%; border: 0; background: none; padding: 0; cursor: zoom-in; color: inherit; }
.poster img { width: 100%; }
.facts > div { display: grid; grid-template-columns: 5.2em 1fr; gap: 0.5rem; padding: 0.7rem 0; border-top: 1px solid var(--rule); }
.facts > div:last-child { border-bottom: 1px solid var(--rule); }
.facts dt { font-size: 0.74rem; letter-spacing: 0.14em; color: var(--muted); padding-top: 0.2rem; }
.addr { font-size: 0.86rem; color: var(--muted); }
.nb { white-space: nowrap; }
.shop { margin-top: 1.6rem; }
.shop-note { margin-top: 0.7rem; font-size: 0.82rem; line-height: 1.8; color: var(--muted); }
.btn { display: inline-block; font-family: var(--sans); font-size: 0.85rem; letter-spacing: 0.1em; padding: 0.85rem 1.6rem; border: 1px solid var(--ink); background: var(--ink); color: #fff; }
.btn:hover { background: #fff; color: var(--ink); }
.btn-shop { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; min-width: min(100%, 18rem); font-size: 0.95rem; letter-spacing: 0.08em; }
.btn-quiet { background: #fff; color: var(--ink); }
.btn-quiet:hover { background: var(--ink); color: #fff; }
@media (min-width: 1000px) {
  /* ポスターを主役に(画面の高さに収まる大きさ)。案内欄は右にコンパクトに添える */
  .entry { grid-template-columns: auto minmax(0, 1fr); column-gap: clamp(2.4rem, 5vw, 5rem); grid-template-areas: "poster head" "poster info"; grid-template-rows: auto 1fr; align-items: start; }
  .poster { align-self: start; }
  .poster .zoom { width: calc((100vh - 6rem) * 0.6757); max-width: 46vw; min-width: 400px; }
  .h1 { font-size: clamp(1.15rem, 2.1vw, 1.55rem); }
  .info { max-width: 30rem; }
}

/* ラベル(小さな見出し) */
.label { font-size: 0.78rem; font-weight: 400; letter-spacing: 0.3em; color: var(--muted); }
.sub { font-size: 0.76rem; font-weight: 400; letter-spacing: 0.22em; color: var(--muted); }

/* ===== 作品: 4点を同じ大きさで見渡す ===== */
.works { padding-top: clamp(2.4rem, 5vw, 3.6rem); padding-bottom: clamp(2.6rem, 6vw, 4.4rem); border-top: 1px solid var(--rule); }
.hint { margin-top: 0.4rem; font-size: 0.8rem; color: var(--muted); }
.grid { list-style: none; margin-top: 1.4rem; display: grid; grid-template-columns: 1fr; gap: 1.6rem; }
.work .zoom img { width: 100%; }
.cap { margin-top: 0.7rem; display: grid; gap: 0.05rem; line-height: 1.65; }
.cap-title { font-size: 1.02rem; font-weight: 700; letter-spacing: 0.04em; }
.cap-meta { font-size: 0.88rem; color: var(--muted); letter-spacing: 0.03em; }
@media (min-width: 700px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.2rem, 2.4vw, 2rem); }
}

/* ===== 作家・SNS ===== */
.artist { padding-top: clamp(2.2rem, 5vw, 3.2rem); padding-bottom: clamp(2.4rem, 5vw, 3.4rem); border-top: 1px solid var(--rule); }
.artist-name { margin-top: 0.4rem; font-size: 1.3rem; font-weight: 700; letter-spacing: 0.1em; line-height: 1.5; }
.sns-row { display: flex; align-items: center; flex-wrap: wrap; gap: 0 1.2rem; margin-top: 0.2rem; }
.sns-label { font-size: 0.74rem; letter-spacing: 0.2em; color: var(--muted); }
.sns { list-style: none; display: flex; flex-wrap: wrap; gap: 0 1.8rem; }
.sns li { display: flex; align-items: center; }
.sns a { position: relative; display: inline-flex; align-items: center; min-height: 44px; font-size: 0.84rem; letter-spacing: 0.1em; line-height: 1.2; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 0.35em; }
.sns a::before { content: ''; position: absolute; inset: -4px -10px; } /* 見た目は変えず、押せる範囲だけ広げる */
.sns a:hover { text-decoration-color: var(--ink); }
/* あとから文章を足すとき用(今は使っていない) */
.prose { max-width: 38em; margin-top: 1.2rem; }
.prose p { line-height: 2.05; margin-bottom: 1.1em; }
.hist { list-style: none; border-top: 1px solid var(--rule); max-width: 38em; margin-top: 0.6rem; }
.hist li { display: grid; grid-template-columns: 4.6em 1fr; gap: 0.8rem; padding: 0.55rem 0; border-bottom: 1px solid var(--rule); font-size: 0.9rem; line-height: 1.7; }
.hist .y { font-size: 0.82rem; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ===== 開催概要・ご来場・オンラインショップ ===== */
.visit { padding-top: clamp(2.2rem, 5vw, 3.2rem); padding-bottom: clamp(3rem, 7vw, 5rem); border-top: 1px solid var(--rule); }
.ov-list { margin-top: 1rem; max-width: 44rem; }
.ov-list > div { display: grid; grid-template-columns: 6.5em 1fr; gap: 0.5rem; padding: 0.8rem 0; border-top: 1px solid var(--rule); }
.ov-list > div:last-child { border-bottom: 1px solid var(--rule); }
.ov-list dt { font-size: 0.74rem; letter-spacing: 0.12em; color: var(--muted); padding-top: 0.2rem; }
.actions { margin-top: 2rem; display: grid; gap: 2rem; }
.action .links { margin-top: 0.6rem; display: flex; flex-wrap: wrap; gap: 0.7rem; }
.action .shop-note { margin-top: 0.3rem; }
@media (min-width: 900px) {
  .actions { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(2rem, 5vw, 5rem); max-width: 56rem; }
}

.foot { max-width: 1320px; margin-inline: auto; padding: 2.4rem var(--pad) 3rem; border-top: 1px solid var(--rule); font-size: 0.78rem; letter-spacing: 0.08em; color: var(--muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.foot a { border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* 拡大表示 */
.lb { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100%; height: 100%; }
.lb::backdrop { background: rgba(17, 17, 17, 0.94); }
.lb[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.9rem; }
.lb-img { max-width: 94vw; max-height: 90vh; width: auto; height: auto; object-fit: contain; background: #fff; }
.lb.has-cap .lb-img { max-height: calc(100vh - 8.5rem); }
.lb-cap { display: none; color: #fff; text-align: center; line-height: 1.65; max-width: min(34rem, 80vw); }
.lb.has-cap .lb-cap { display: grid; }
.lb-cap-title { font-size: 1.05rem; font-weight: 700; letter-spacing: 0.04em; }
.lb-cap-meta { font-size: 0.9rem; color: rgba(255, 255, 255, 0.82); }
.lb button { position: absolute; background: rgba(17, 17, 17, 0.6); border-radius: 2px; border: 0; color: #fff; cursor: pointer; line-height: 1; padding: 0.5rem 1rem; font-family: Georgia, serif; }
.lb-close { top: 0.6rem; right: 0.6rem; font-size: 2.6rem; }
.lb-nav { top: 50%; transform: translateY(-50%); font-size: 3.4rem; }
.lb-prev { left: 0.2rem; }
.lb-next { right: 0.2rem; }
.lb button:focus-visible { outline-color: #fff; }
@media (max-width: 600px) { .hist li { grid-template-columns: 4.2em 1fr; } }
/* 拡大表示: 操作ボタンが画像に重ならないようにする */
@media (min-width: 901px) {
  .lb-img { max-width: calc(100vw - 9rem); }   /* 左右の矢印の位置まで画像が広がらない */
}
@media (max-width: 900px) {
  /* スマホ・中間幅: 画像→キャプション→前後ボタンの順に縦に並べる(×は右上) */
  .lb[open] { display: grid; grid-template-columns: 1fr 1fr; align-content: center; justify-items: center; row-gap: 0.8rem; }
  .lb-img { grid-column: 1 / 3; grid-row: 1; max-width: calc(100vw - 2rem); max-height: calc(100vh - 12rem); }
  .lb.has-cap .lb-img { max-height: calc(100vh - 14.5rem); }
  .lb-cap { grid-column: 1 / 3; grid-row: 2; }
  .lb button.lb-nav { position: static; transform: none; grid-row: 3; font-size: 2.4rem; min-width: 56px; min-height: 52px; padding: 0.3rem 1.2rem; }
  .lb button.lb-prev { grid-column: 1; justify-self: end; margin-right: 0.8rem; }
  .lb button.lb-next { grid-column: 2; justify-self: start; margin-left: 0.8rem; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
