/* 監督4 2026-11-14：第11版への直し。refinement.css のあとに読む（この 1 枚を外せば第11版に戻る） */

/* 1) 画廊の続き：生成りの台紙（白い枠）をやめ、本編と同じ館の額（金・黒）にする。写真の色・比率・並びは変えない */
.extra-gallery { --xg-frame:18px; }
.extra-gallery button,
.extra-gallery button:nth-child(even) {
  position:relative; padding:var(--xg-frame); background:#0f0a0c; border:0;
  box-shadow:0 12px 24px #000a, 0 0 0 1px #0006;
}
.extra-gallery button::after {
  content:''; position:absolute; inset:0; z-index:2; pointer-events:none;
  border:var(--xg-frame) solid transparent;
  border-image:url('assets/frame-gold.webp') 112 / var(--xg-frame) / 0 round;
  filter:saturate(.5) brightness(.76) contrast(1.07);
  transition:filter .6s;
}
.extra-gallery button:nth-child(even)::after {
  border-image:url('assets/frame-black.webp') 81 / var(--xg-frame) / 0 round;
}
.extra-gallery button:hover::after,
.extra-gallery button:focus-visible::after { filter:saturate(.58) brightness(.9) contrast(1.05); }
.extra-gallery img { display:block; }
@media (min-width:761px) { .extra-gallery { --xg-frame:20px; } }
/* スマホの 2 列で 1 枚だけ余る最後の額は、左に寄せず中央に */
@media (max-width:760px) {
  .extra-gallery button:last-child:nth-child(odd) { grid-column:1 / -1; justify-self:center; width:calc(50% - 12px); }
}

/* 2) 音楽室の見出し横のリンク：日本語・繁体字で 1 文字だけ次の行に落ちるのを止める */
:lang(ja) .section-top .small-link,
:lang(ko) .section-top .small-link,
:is(:lang(zh-Hant),:lang(zh-Hans)) .section-top .small-link { max-width:none; white-space:nowrap; }

/* 3) 韓国語：日本語と同じ組み方（上の 3 枚の CSS で html[lang=ja] を html:is([lang=ja],[lang=ko]) にした）に、ハングルの書体と語の途中で折らない設定を足す */
html[lang=ko] { --body:'Cormorant Garamond','Noto Serif KR','Shippori Mincho',serif; word-break:keep-all; overflow-wrap:break-word; }

/* 4) 和文・ハングル・繁体字・タイ文字は斜体にしない（これらの書体に斜体が無く、機械的に傾いて字がつぶれて見えるため）。英語の斜体はそのまま */
html:is([lang=ja],[lang=ko],[lang=zh-Hant],[lang=th]) .stage-kind,
html:is([lang=ja],[lang=ko],[lang=zh-Hant],[lang=th]) .gallery-controls p,
html:is([lang=ja],[lang=ko],[lang=zh-Hant],[lang=th]) footer p,
html[lang=th] h1 em { font-style:normal; }

/* 5) 段落の最後の行に 1〜2 文字だけ残るのを減らす（対応するブラウザだけ。非対応では今までどおり） */
main p { text-wrap:pretty; }

/* 6) 英語以外の頁で 9〜11px になっていた「読ませる文」を 12px に（英字の飾りの小見出しはそのまま） */
html:not(:is([lang=en],[lang=id],[lang=es],[lang=fr],[lang=it],[lang=de],[lang=pt-BR])) .platforms > span,
html:not(:is([lang=en],[lang=id],[lang=es],[lang=fr],[lang=it],[lang=de],[lang=pt-BR])) .live-copy .eyebrow,
html:not(:is([lang=en],[lang=id],[lang=es],[lang=fr],[lang=it],[lang=de],[lang=pt-BR])) .gallery-heading .eyebrow,
html:not(:is([lang=en],[lang=id],[lang=es],[lang=fr],[lang=it],[lang=de],[lang=pt-BR])) .contact-letter .eyebrow { font-size:12px; letter-spacing:.1em; }
html[lang=th] .gallery-heading .eyebrow,
html[lang=th] .contact-letter .eyebrow { letter-spacing:.03em; }
html:not(:is([lang=en],[lang=id],[lang=es],[lang=fr],[lang=it],[lang=de],[lang=pt-BR])) .language-trigger { font-size:12px; }
html:not(:is([lang=en],[lang=id],[lang=es],[lang=fr],[lang=it],[lang=de],[lang=pt-BR])) footer > a:not(.footer-name) { font-size:12px; }
@media (max-width:760px) { .film-plaque strong { font-size:12px; } }

/* 7) 日本語の行の折り方：「ー」や小さい「っ・ゃ」が行の頭に来ないようにする。最初の画面の紹介文は、行の長さをそろえて語の途中で割れにくくする */
html[lang=ja] body { line-break:strict; }
.hero-description { text-wrap:balance; }

/* 8) 日本語の短い見出し・ボタンが語の途中で 2 行に割れるのを止める（app.js の日本語 3 か所に、見えない区切り \u200b を入れてある。そこでだけ折れる） */
html[lang=ja] .hero-description,
html[lang=ja] [data-t=watchFilm],
html[lang=ja] .download-entry strong { word-break:keep-all; overflow-wrap:break-word; }

/* 5) 2026-11-15：画廊の続き。同じ額の繰り返しをやめ、最初の壁と同じ館の額（アーチ・楕円・横長・金・黒）で、もう 2 面の壁にする。
      写真は額の形に合わせて 1 枚ずつ切ってある（-t.webp）。上の 1) の決まりは、もう使っていない */
.more-walls .salon { margin-top:150px; }
.more-walls .salon:first-child { margin-top:160px; }
/* 3 面目は 4 枚：左に楕円と横長、中央に金、右にアーチ */
.salon-four .art-c { grid-column:1; grid-row:1; justify-self:end; }
.salon-four .art-b { grid-column:1; grid-row:2; }
.salon-four .art-a { grid-column:3; grid-row:1 / 3; justify-self:start; align-self:start; width:100%; }
@media (max-width:760px) {
  .more-walls .salon, .more-walls .salon:first-child { margin-top:92px; }
  .salon-four .art-a { grid-column:1; grid-row:2; width:96%; justify-self:end; align-self:center; }
  .salon-four .art-c { grid-column:2; grid-row:2; justify-self:start; }
  .salon-four .art-b { grid-column:1 / 3; grid-row:3; width:64%; justify-self:center; }
}

/* 6) 2026-11-15：「主な出演」の舞台写真。生成りの台紙（白い枠）をやめ、画廊と同じ館の額に。写真そのものは変えない */
.live-note figure { position:relative; padding:20px; background:#0f0a0c; box-shadow:0 15px 40px #0008, 0 0 0 1px #0006; }
.live-note figure::after { content:''; position:absolute; inset:0; z-index:2; pointer-events:none;
  border:20px solid transparent; border-image:url('assets/frame-gold.webp') 112 / 20px / 0 round;
  filter:saturate(.5) brightness(.76) contrast(1.07); }
.live-note figure img { display:block; }
.live-note figcaption { margin:0; padding:11px 3px 5px; color:#b9a37c; }
@media (max-width:760px) {
  .live-note figure { padding:16px; }
  .live-note figure::after { border-width:16px; border-image-width:16px; }
  .live-note figcaption { padding:9px 2px 3px; }
}

/* 7) 2026-11-15（夜）：曲名・映像名に添えた英語は、日本語の題より一段小さく、細く */
.title-en { font-size:.62em; letter-spacing:.02em; font-style:italic; opacity:.82; white-space:normal; }
.film-plaque strong .title-en { font-size:.85em; }

/* 8) 2026-11-16：12 言語（見本：ピザパ）。簡体字は Noto Serif SC。言語名はそれぞれの文字の書体で */
html[lang=zh-Hans] { --body:'Noto Serif SC','Shippori Mincho',serif; }
:root { --title:'Cinzel',Georgia,'Shippori Mincho',serif; }
html[lang=zh-Hant] { --title:'Cinzel',Georgia,'Noto Serif TC','Shippori Mincho',serif; }
html[lang=zh-Hans] { --title:'Cinzel',Georgia,'Noto Serif SC','Shippori Mincho',serif; }
html[lang=ko] { --title:'Cinzel',Georgia,'Noto Serif KR','Shippori Mincho',serif; }
html[lang=th] { --title:'Cinzel',Georgia,'Noto Serif Thai','Shippori Mincho',serif; }
.lang-name:lang(ja) { font-family:'Shippori Mincho',serif; }
.lang-name:lang(zh-Hant) { font-family:'Noto Serif TC',serif; }
.lang-name:lang(zh-Hans) { font-family:'Noto Serif SC',serif; }
.lang-name:lang(ko) { font-family:'Noto Serif KR',serif; }
.lang-name:lang(th) { font-family:'Noto Serif Thai',serif; }
.lang-name:is(:lang(en),:lang(id),:lang(es),:lang(fr),:lang(it),:lang(de),:lang(pt-BR)) { font-family:'Cormorant Garamond',Georgia,serif; }
.title-en { font-family:'Cormorant Garamond',Georgia,serif; }
/* 2026-11-16 精査：ライラの意味の書き添えが漢字・ハングル・タイ文字になる言語は、明朝の書体で（端末の書体に落とさない） */
:lang(zh-Hant) .title-en { font-family:'Cormorant Garamond','Noto Serif TC',serif; }
:lang(zh-Hans) .title-en { font-family:'Cormorant Garamond','Noto Serif SC',serif; }
:lang(ko) .title-en { font-family:'Cormorant Garamond','Noto Serif KR',serif; }
:lang(th) .title-en { font-family:'Cormorant Garamond','Noto Serif Thai',serif; }
.title-en[data-t=yomiEn], .title-en[data-t=daydreamEn] { display:inline-block; margin-left:.28em; }
.language-menu { max-height:calc(100svh - 96px); overflow-y:auto; overscroll-behavior:contain; }
.language-menu button { padding:8px 14px; font-size:16px; line-height:1.5; }
html:is([lang=de],[lang=fr],[lang=es],[lang=it],[lang=pt-BR],[lang=id]) :is(h1,h2,h3) { hyphens:auto; -webkit-hyphens:auto; overflow-wrap:break-word; }
.profile-languages { margin:0 0 6px 44px; padding:2px 0 12px; border-bottom:1px solid #b397663e; color:#b3a18b; font-size:13px; line-height:1.6; }
.profile-languages summary { list-style:none; cursor:pointer; display:inline-flex; align-items:center; gap:10px; min-height:44px; letter-spacing:.04em; }
.profile-languages summary::-webkit-details-marker { display:none; }
.profile-languages summary::after { content:'+'; color:var(--gold); font-size:17px; line-height:1; }
.profile-languages[open] summary::after { content:'−'; }
.profile-languages summary:hover { color:#f4e5ce; }
.profile-language-list { display:flex; flex-wrap:wrap; gap:4px 18px; padding:2px 0 4px; }
.profile-language-list a { display:inline-flex; align-items:baseline; gap:6px; min-height:36px; padding:6px 0 2px; color:#d1c4b4; font-size:15px; border-bottom:1px solid #b3976640; }
.profile-language-list a:hover { color:#f4e5ce; border-color:var(--gold); }
.profile-language-list a small { font-family:'Cinzel',Georgia,serif; font-size:9px; letter-spacing:.12em; color:#b3a18b; }
.profile-language-list .profile-text-version { flex-basis:100%; font-size:13px; color:#b3a18b; border-bottom:0; }
#download-profile { border-bottom:0; }
@media (max-width:760px) { .profile-languages { margin-left:34px; } .profile-language-list a { font-size:14px; } }
/* k5d（2026-11-16 午後）：スマホで小さすぎる字と、押しにくい足もとのリンクを直す */
@media (max-width:760px) { .wordmark span { font-size:10px; letter-spacing:.24em; } }
footer a { display:inline-flex; align-items:center; min-height:44px; }
/* パソコンでいちばん下まで送ると、右下の「動き」の釦が「館の入口へ」に重なっていた */
@media (min-width:761px) { footer { padding-bottom:84px; } }
/* 言語が当てはまるまで本文を隠す（遅い回線で、最初に別の言語の頁が一瞬見えるのを防ぐ）。プログラムが届かないときも 3 秒後には必ず出す */
html:not(.lang-ready) body{visibility:hidden;animation:lang-fallback 0s linear 3s forwards!important}
@keyframes lang-fallback{to{visibility:visible}}

/* 監督4 2026-11-16（r2）：出演歴の公演の題（-万有引力-）。どの言語の頁でも日本語の書体で、斜めにせず、途中で折らない */
.stage-kind [lang=ja] { font-family:'Shippori Mincho',serif; font-style:normal; white-space:nowrap; }
