/* むつのゆき個展「Cantata」専用スタイル(共通styles.cssは読み込まない)
   デザインの核: 薄暗い展示室を、中心の軸に沿って一点ずつ歩く。
   - 3点とも暗い部分を土台にした絵(無垢の黒い地面、マザーインザミラーの深い影、金地は暗がりで光る)。
     東洋の金地と西洋の油彩がどちらも薄暗い場所で見られてきたことから、壁を暖かい黒にして東西の作品を同じ部屋に置く
   - 中心の軸: 無垢の正面向き・左右対称の構図にそろえ、入口(展示名)から作品・作家紹介まで軸を通す
   - 位置と大きさ: 無垢は中心の軸に、三笑(広い金地に人物が小さい)は一番大きく、マザーインザミラー(背を向け鏡越しにこちらを見る)で軸を外し、作家紹介と並べる。作品の上に文字は置かない
   色: 壁は暖かい黒、文字は象牙色。朱(無垢の赤)は会期の「—」だけ、金(三笑の金地)は触れたときの印だけに使う
   文字: タイトルはLibre Caslon Textのイタリック(柔らかい曲線)、和文はZen Old Mincho、数字はCaslonの数字 */
:root {
  --wall: #191512;          /* 壁: 暖かい黒 */
  --wall-2: #221d19;        /* 作家紹介・開催概要の少し明るい壁 */
  --ink: #EFE7D7;           /* 象牙色 */
  --ink-soft: #C6BBA8;
  --ink-muted: #A0957F;
  --rule: rgba(239, 231, 215, 0.18);
  --vermilion: #D9654C;     /* 無垢の赤(暗い地で読める明るさに) */
  --gold: #DEC27A;          /* 三笑の金地 */
  --gutter: clamp(16px, 5vw, 64px);
  --latin: 'Libre Caslon Text', 'Zen Old Mincho', serif;
  --mincho: 'Zen Old Mincho', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --num: 'Libre Caslon Text', 'Zen Old Mincho', 'Hiragino Mincho ProN', serif;   /* 数字はCaslon、漢字は明朝 */
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: dark; scroll-behavior: smooth; }
body { background: var(--wall); color: var(--ink); font-family: var(--mincho); font-weight: 500; font-size: 16px; line-height: 1.9; -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(--gold); outline-offset: 4px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; z-index: 10; background: var(--wall); 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.6rem var(--gutter) 0; font-size: 0.9rem; letter-spacing: 0.06em; color: var(--ink-soft); }
.topnav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; border-bottom: 1px solid transparent; }
.topnav a:hover { color: var(--gold); }
.topnav-sub { display: flex; gap: 1.6rem; }

/* 小さなリンク */
.link { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.95rem; letter-spacing: 0.06em; text-decoration: underline; text-decoration-color: rgba(239, 231, 215, 0.4); text-decoration-thickness: 1px; text-underline-offset: 6px; }
.link:hover { color: var(--gold); text-decoration-color: currentColor; }

/* ---- 入口: 展示名と会期を中心の軸にそろえる ---- */
.opening { text-align: center; padding: clamp(3.5rem, 11vh, 7rem) var(--gutter) clamp(2.6rem, 7vh, 4.2rem); }
.h1 { display: flex; flex-direction: column; align-items: center; font-weight: 400; }
.h1-artist { font-family: var(--mincho); font-weight: 700; font-size: clamp(1.02rem, 2.6vw, 1.2rem); letter-spacing: 0.32em; margin-right: -0.32em; }
.h1-title { font-family: var(--latin); font-style: italic; font-weight: 400; font-size: clamp(4.1rem, 17vw, 9.2rem); line-height: 1.04; letter-spacing: 0.005em; margin-top: 0.12em; }
.when { margin-top: clamp(1.6rem, 4vh, 2.4rem); font-family: var(--num); }
.when-y { display: block; font-size: 1rem; letter-spacing: 0.24em; margin-right: -0.24em; color: var(--ink-soft); }
.when-range { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: baseline; column-gap: 0.7em; margin-top: 0.2rem; font-size: clamp(1.32rem, 4.6vw, 1.7rem); font-weight: 700; letter-spacing: 0.04em; }
.when .wd { font-family: var(--mincho); font-size: 0.66em; font-weight: 500; color: var(--ink-soft); }
.when-to { color: var(--vermilion); font-weight: 400; }
.where { margin-top: 1.1rem; font-size: 1.12rem; letter-spacing: 0.16em; }
.where .floor { margin-left: 0.8em; font-family: var(--num); }
.hours { margin-top: 0.3rem; font-size: 0.98rem; letter-spacing: 0.06em; color: var(--ink-soft); }
.hours .dot { margin: 0 0.3em; }
/* オンラインショップ: 販売開始の案内と、象牙色の線で囲んだボタン(触れると三笑の金) */
.shop { margin-top: 1.7rem; display: flex; flex-direction: column; align-items: center; gap: 0.9rem; }
.shop-note { font-size: 0.98rem; line-height: 1.7; letter-spacing: 0.04em; }
.shop-note time { font-family: var(--num); white-space: nowrap; }
.shop-btn { display: inline-block; min-width: 13em; line-height: 50px; padding: 0 1.8rem; border: 1px solid rgba(239, 231, 215, 0.75); border-radius: 2px; font-size: 1rem; font-weight: 700; letter-spacing: 0.14em; text-align: center; text-decoration: none; white-space: nowrap; }
.shop-btn:hover, .shop-btn:focus-visible { color: var(--wall); background: var(--gold); border-color: var(--gold); }
.opening-links { margin-top: 0.9rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 2rem; }

/* ---- 作品: 一点ずつ、暗い壁に掛ける。作品ごとに位置と大きさを変える ---- */
.works { padding: 0 var(--gutter); overflow-x: clip; }
.work { position: relative; display: flex; flex-direction: column; align-items: center; margin: 0 auto; }
/* 壁に当たる淡い光(作品そのものには何も重ねない) */
.work::before { content: ""; position: absolute; left: 50%; top: 50%; width: 120%; height: 130%; transform: translate(-50%, -50%); background: radial-gradient(ellipse at center, rgba(255, 236, 205, 0.06), rgba(255, 236, 205, 0) 62%); pointer-events: none; z-index: 0; }
.zoom { position: relative; z-index: 1; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.zoom img { width: 100%; box-shadow: 0 2px 3px rgba(0, 0, 0, 0.45), 0 22px 48px -18px rgba(0, 0, 0, 0.75); }
/* 1. 無垢: 展示名の真下、中心の軸に */
.work-muku { width: min(640px, 74svh, 100%); }
/* 作品情報: 作品の下に《タイトル》・素材・サイズ */
.cap { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; margin-top: 1.15rem; text-align: center; }
.cap-title { font-weight: 700; font-size: 1.06rem; letter-spacing: 0.08em; }
.cap-meta { font-size: 0.9rem; line-height: 1.7; letter-spacing: 0.04em; color: var(--ink-soft); }
.cap-meta + .cap-meta { font-family: var(--num); }
.cap-mat .nb { display: inline-block; }   /* 素材名の途中で折り返さない */
.hint { margin-top: 1.4rem; text-align: center; font-size: 0.88rem; letter-spacing: 0.06em; color: var(--ink-muted); }
/* 2. 三笑: 人物が小さく描かれた広い金地なので、ほかより大きく */
.work-sansho { width: min(1120px, 100%); margin-top: clamp(6rem, 19vh, 12rem); }
/* 3. マザーインザミラー: 中心の軸を外し、作品を右・作家紹介を左に */
.room { max-width: 1320px; margin: clamp(6rem, 19vh, 12rem) auto 0; padding: 0 var(--gutter); overflow-x: clip; }
.work-mother { width: 100%; }

/* ---- 作家紹介 ---- */
.sec-h { display: flex; flex-direction: column; align-items: center; text-align: center; font-weight: 400; }
.sec-label { font-size: 0.9rem; letter-spacing: 0.34em; margin-right: -0.34em; color: var(--ink-soft); }
.artist { margin-top: clamp(4rem, 10vh, 6rem); }
.artist-name { margin-top: 0.5rem; font-weight: 700; font-size: clamp(1.7rem, 5.4vw, 2.2rem); letter-spacing: 0.22em; margin-right: -0.22em; }
.prose { max-width: 33em; margin: clamp(2rem, 5vh, 2.8rem) auto 0; font-size: 1.05rem; line-height: 2.15; letter-spacing: 0.04em; text-align: justify; }
.prose p + p { margin-top: 1.2em; }
.cv-h { max-width: 33em; margin: 3rem auto 0; font-size: 1rem; font-weight: 700; letter-spacing: 0.12em; color: var(--ink-soft); }
.cv { max-width: 33em; margin: 0.9rem auto 0; font-size: 0.98rem; line-height: 1.85; letter-spacing: 0.03em; }
.cv + .cv { margin-top: 0.5rem; }
/* 年を左にぶら下げる(文字は原稿のまま、改行だけを入れる) */
.cv-line { display: grid; grid-template-columns: 4.6em minmax(0, 1fr); column-gap: 0.4em; }
.cv-line + .cv-line { margin-top: 0.5rem; }
.cv-y { font-family: var(--num); color: var(--ink-soft); }
.cv-t { overflow-wrap: break-word; }
.cv-t .nb { white-space: normal; display: inline-block; }   /* 括弧などの塊は途中で折り返さない(幅が足りないときだけ塊の中で折り返す) */
@media (min-width: 1000px) {
  .room { display: grid; grid-template-columns: minmax(20em, 1fr) minmax(0, 720px); column-gap: clamp(2.5rem, 4vw, 4.5rem); align-items: start; }
  .work-mother { grid-column: 2; grid-row: 1; position: sticky; top: max(1.5rem, calc(50svh - 260px)); }
  .artist { grid-column: 1; grid-row: 1; margin-top: 0; padding-top: 0.4rem; }
  .artist .sec-h { align-items: flex-start; text-align: left; }
  .artist .sec-label, .artist .artist-name { margin-right: 0; }
  .artist .prose, .artist .cv-h, .artist .cv { margin-left: 0; margin-right: 0; }
}

/* ---- 開催概要 ---- */
.overview { margin-top: clamp(6rem, 16vh, 10rem); padding: clamp(4rem, 9vh, 6rem) var(--gutter) clamp(3.5rem, 8vh, 5rem); background: var(--wall-2); border-top: 1px solid var(--rule); scroll-margin-top: 1rem; }
.ov { max-width: 33em; margin: 2.2rem auto 0; }
.ov > div { display: grid; grid-template-columns: 5.6em minmax(0, 1fr); column-gap: 1em; padding: 0.85rem 0; border-top: 1px solid var(--rule); }
.ov > div:last-child { border-bottom: 1px solid var(--rule); }
.ov dt { font-size: 0.92rem; letter-spacing: 0.12em; color: var(--ink-soft); padding-top: 0.08em; }
.ov dd { font-size: 1.02rem; letter-spacing: 0.04em; line-height: 1.8; }
.ov time { font-family: var(--num); }
.ov-note { max-width: 33em; margin: 1.6rem auto 0; }
.ov-links { max-width: 33em; margin: 0.6rem auto 0; display: flex; flex-wrap: wrap; gap: 0 2rem; }

.out { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 2.2rem; padding: 2.4rem var(--gutter) 3rem; border-top: 1px solid var(--rule); }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem 1rem; padding: 1.6rem var(--gutter) 2.4rem; border-top: 1px solid var(--rule); font-size: 0.9rem; letter-spacing: 0.06em; 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; font-family: var(--latin); }

/* ---- スマートフォン: 無垢は幅を抑え、三笑は画面の端まで、マザーインザミラーは本文と同じ幅 ---- */
/* 中間幅: 三笑をいちばん大きく保つため、無垢とマザーインザミラーの幅を抑える */
@media (min-width: 760px) and (max-width: 999px) {
  .work-muku { width: min(62vw, 74svh); }
  .work-mother { width: min(100%, 620px); margin: 0 auto; }
}
@media (max-width: 759px) {
  .work-muku { width: 72vw; }
  .hours .nb { display: block; }
  .cv-line { grid-template-columns: 3.9em minmax(0, 1fr); }
  .hours .dot { display: none; }
  .when .wd { font-size: 0.72em; }
  .work-sansho { width: 100vw; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); margin-top: 5.5rem; }   /* 画面の端まで */
  .room { margin-top: 5.5rem; }
  .work-sansho .cap { padding: 0 var(--gutter); }
  .prose { font-size: 1rem; line-height: 2.05; }
  .ov > div { grid-template-columns: 4.8em minmax(0, 1fr); }
}

/* ---- 拡大表示 ---- */
.lb { border: 0; padding: 0; width: 100%; height: 100%; max-width: 100vw; max-height: 100vh; background: transparent; color: #fff; }
.lb::backdrop { background: rgba(10, 8, 7, 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-count { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 1rem; font-size: 0.95rem; color: rgba(255, 255, 255, 0.85); padding-left: 0.4rem; }
#lb-count { font-family: var(--latin); letter-spacing: 0.16em; }
.lb-title { font-family: var(--mincho); font-weight: 700; letter-spacing: 0.06em; color: #fff; }
.lb-btn { font: inherit; font-size: 0.92rem; letter-spacing: 0.06em; 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 a:focus-visible, .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; } }
