:root {
  color-scheme: light;
  --red: #da3915;
  /* 白はサイトと同じ 3 案（?white=1〜3。既定 2。html[data-white]。2026-10-28。値は src/assets/style.css と同じ） */
  --paper-rgb: 253 252 248;
  --paper: rgb(var(--paper-rgb));
  --ink: #171310;
  --gutter: clamp(24px, 6vw, 92px);
  /* Tonmana fonts first; the Google fonts are fallbacks for browsers without local licenses. */
  --ff-jp: "Ro GothicSink Pro", "Roゴシック新がなPro", "Ro GothicSink Std", "Source Han Sans JP", "Noto Sans JP", sans-serif;
  --ff-en: "Akzidenz-Grotesk Next", Inter, Arial, sans-serif;
  font-family: var(--ff-jp);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
:root[data-white="1"] { --paper-rgb: 255 255 255; }
:root[data-white="3"] { --paper-rgb: 251 248 241; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--paper); background: var(--red); }
main { overflow: clip; }
/* スクロールしない（2026-10-28）：1 画面に収める。背の低い画面は下の @media で文字と間を詰める */
html, body { height: 100%; overflow: hidden; }

.hero {
  position: relative;
  display: flex;
  height: 100vh;
  height: 100svh;
  flex-direction: column;
  justify-content: space-between;
  padding: 38px var(--gutter) 40px;
  isolation: isolate;
  overflow: hidden;
  background: var(--red);
}

.hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgb(48 17 13 / .22), transparent 72%),
    linear-gradient(0deg, rgb(20 12 10 / .46), transparent 34%);
  content: "";
  pointer-events: none;
}

.hero__art {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* 4:3 に近い画面では、真ん中合わせだと右の葉が縦組みのキャッチに重なる（2026-10-28）。
     絵（1942×809＝横 2.4）は高さいっぱいで横 240svh。右の葉の先は絵の横 74.7% なので、
     葉の先がキャッチ（右の余白＋キャッチの幅と間 ≒ --t × 1.8）の左に来るまで絵を左へずらす。ワイド画面は真ん中のまま */
  object-position: clamp(100vw - 240svh, 100vw - var(--gutter) - var(--t) * 1.8 - 179.3svh, (100vw - 240svh) / 2) 50%;
}

.hero__copy { width: min(1000px, 76vw); margin: auto 0; padding: 4vh 0; }
.hero__univ { margin: 0 0 6px; font-size: clamp(16px, 1.6vw, 21px); font-weight: 700; letter-spacing: .04em; }
.hero__tease-label { margin: 0 0 clamp(64px, 10vh, 96px); }
.hero__exhibition { width: min(900px, 72vw); }
.hero__information-image { display: block; width: 61.6%; height: auto; transform: translateX(-4.6%); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (min-width: 701px) and (min-aspect-ratio: 4/5) {
  /* PNG 下部の透明余白を相殺し、MAU ロゴの実際の下端を従来の下揃え位置に合わせる。 */
  .hero__information-image { transform: translate(-4.6%, calc(4.8% - 24px)); }
}
.hero__coming-soon { margin: 0 0 12px; font: 700 clamp(38px, 5vw, 68px)/1 var(--ff-en); letter-spacing: .14em; }
.hero__coming-soon-image { display: block; width: auto; height: 1em; max-width: none; transform: translate(-.88%, -12.33%); }
.hero__publish { display: flex; align-items: center; gap: 14px; transform: scale(1.6); transform-origin: top left; }
.eyebrow { margin: 0; font-size: 13px; letter-spacing: .08em; }
.hero__publish-date { margin: 0; font: 400 17px/1.2 "Akzidenz-Grotesk Next", Inter, "Ro GothicSink Pro", "Ro GothicSink Std", "Source Han Sans JP", "Noto Sans JP", sans-serif; letter-spacing: .04em; }
.hero__publish-image { display: block; width: auto; height: 1em; max-width: none; }
.date-art { position: relative; aspect-ratio: 679 / 111; }
.date-art img { position: absolute; inset: 0 auto auto 0; display: block; width: calc(100% * 659 / 679); height: auto; max-width: none; }
.date-art__first { clip-path: inset(0 25.95% 0 0); }
.date-art__last { clip-path: inset(0 0 0 74.05%); transform: translateX(3.035%); }
.hero__tagline { position: absolute; z-index: 1; top: 18%; right: var(--gutter); margin: 0; writing-mode: vertical-rl; text-orientation: upright; font-size: clamp(22px, 2.4vw, 32px); font-weight: 500; line-height: 1.6; letter-spacing: .16em; }
.hero__tagline.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.hero__tagline-image {
  --tagline-canvas-height: 155.52svh;
  position: absolute;
  z-index: 1;
  top: -19.73svh;
  right: calc(var(--gutter) - var(--tagline-canvas-height) * 256 / 2461);
  display: block;
  width: auto;
  height: var(--tagline-canvas-height);
  max-width: none;
  pointer-events: none;
}
h1 { margin: 0; font-size: clamp(32px, 4.3vw, 62px); font-weight: 500; line-height: 1.38; letter-spacing: .02em; }
h1 span { display: block; white-space: nowrap; }
.hero__title-en { margin: 20px 0 0; font: 400 clamp(16px, 1.5vw, 21px)/1.3 var(--ff-en); letter-spacing: .01em; }
.hero__foot { display: flex; align-items: start; justify-content: space-between; gap: 24px; width: min(760px, 100%); margin-top: 26px; padding-top: 0; border-top: 0; }
.hero__event { display: grid; width: 100%; grid-template-columns: 1fr; gap: 12px; }
.hero__schedule { display: grid; gap: 2px; }
.hero__date { display: flex; align-items: baseline; gap: 12px; margin: 0; letter-spacing: .04em; }
.hero__date span { font-size: 12px; letter-spacing: .12em; }
.hero__date strong { font-size: 14px; font-weight: 500; }
.hero__date .weekday-mark { display: inline-grid; width: 1.16em; aspect-ratio: 1; place-items: center; margin-inline: .08em; border-radius: 50%; background: var(--paper); color: var(--red); font-size: .76em; line-height: 1; vertical-align: .08em; }
.hero__place,.hero__hours { margin: 0; font-size: 14px; font-weight: 500; letter-spacing: .06em; }
.hero__mau-logo { display: block; width: 72px; height: auto; margin-top: 18px; filter: brightness(0) invert(1); }

@media (max-width: 700px), (max-aspect-ratio: 4/5) {
  /* スマホ（2026-10-28）：文字を上に、絵は画面の下の帯にして、土から芽が出ているところを見せる。
     絵は背景に敷かず流れの最後に置く（背の低い画面でも文字と重ならない）。上端は地の赤へフェード */
  .hero { height: 100svh; padding: 24px 24px 0; }
  .hero::after { background: linear-gradient(0deg, rgb(20 12 10 / .3), transparent 30%); }
  .hero__art {
    position: relative; inset: auto; z-index: -1; order: 2;
    /* 絵は切らずに横幅いっぱい（高さは絵なり）で画面の下に付け、上は余白（2026-10-28） */
    width: calc(100% + 48px); height: auto; margin: auto -24px 0; object-position: center;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 32%); mask-image: linear-gradient(to bottom, transparent, #000 32%);
  }
  .hero__copy { width: 100%; margin: 4vh 0 0; padding: 0; }
  /* 「2026年度」のあとの空白でだけ折り返す */
  h1 span { white-space: normal; word-break: keep-all; }
  .hero__tease-label { margin-bottom: 52px; }
  .hero__coming-soon { margin-bottom: 8px; font-size: clamp(32px, 9vw, 44px); letter-spacing: .09em; }
  .hero__coming-soon-image { width: min(calc(clamp(27px, 7.6vw, 37px) * 2853 / 292), calc(100vw - 48px)); height: auto; }
  .hero__publish { display: grid; grid-template-columns: max-content; gap: 4px; align-items: start; }
  .eyebrow .hero__publish-image { width: min(calc(10px * 787 / 105), calc((100vw - 48px) / 1.6)); height: auto; }
  .hero__publish-date .hero__publish-image { width: min(calc(10.68px * 679 / 111), calc((100vw - 48px) / 1.6)); height: auto; }
  .eyebrow { font-size: 11px; }
  .hero__publish-date { font-size: 14px; }
  .hero__exhibition { width: min(100%, 450px); }
  /* スマホのタイトル画像は画面幅の70%、狭い画面では左右余白内に収める。 */
  .hero__exhibition { position: absolute; top: calc(clamp(28px, 5vh, 56px) - 24px); left: 24px; width: auto; }
  .hero__information-image { width: min(70vw, calc(100vw - 48px)); max-width: none; transform: translate(-4.6%, -7.73%); }
  /* キャッチは双葉の右上に縦組みで（2026-10-28）。絵は横幅いっぱい＝高さ 100vw / 2.4 で、葉の上端は絵の下から 6 割ほど。そこから上へ伸ばす */
  .hero__tagline { top: auto; bottom: calc(100vw / 2.4 * .6); right: 20px; font-size: 18px; }
  .hero__tagline-image {
    --tagline-canvas-width: 146.97vw;
    top: -22.38vw;
    right: calc(20px - var(--tagline-canvas-width) * 256 / 1913);
    width: var(--tagline-canvas-width);
    height: auto;
  }
  h1 { max-width: calc(100% - 40px); font-size: clamp(24px, 6.8vw, 34px); }
  .hero__title-en { margin-top: 12px; font-size: 15px; }
  .hero__foot { display: block; margin-top: 22px; padding-top: 0; }
  .hero__event { display: grid; gap: 10px; }
  .hero__schedule { gap: 2px; }
  .hero__date { flex-wrap: wrap; gap: 8px; }
  .hero__date strong { font-size: 12px; }
  .hero__place { margin-top: 6px; font-size: 12px; }
  .hero__hours { margin-top: 0; font-size: 12px; }
}

/* ============================================================
   切り替え（ローカルのティザーのスイッチャー。2026-10-28）。印が無ければ今のまま（Layout 1・Text 1）
   ?image=4・5（html[data-tl="2"]。切り替えの Image。2026-10-29 に 3・4 から 4・5 へ）：絵を画面いっぱいに敷き、芽（絵の横 64% の茎）を画面の真ん中に。スマホは 1 と同じく下に付け、芽を真ん中に
   ============================================================ */
html[data-tl="2"] .hero__art { inset: 0 auto 0 50%; width: auto; height: 100%; min-width: 140vw; max-width: none; object-fit: cover; object-position: 50% 60%; transform: translateX(-64%); } /* 茎は絵の横 64% のところ（-64% で茎が画面の真ん中）。140vw は茎の左右とも画面の半分以上ある幅 */
/* .hero を前に付けて、下の「背の低い画面」の .hero__copy より強く */
.hero .hero__copy { flex: 1; display: flex; flex-direction: column; justify-content: space-between; margin: 0; padding: clamp(28px, 5vh, 56px) 0 0; } /* 上は左上の切り替えに被らないだけ空ける */
.hero .hero__tease-label { margin: 0; transform: scale(1.3); transform-origin: top left; }
/* 横:縦が2:1以上では、拡大による下側のKV textとの干渉を避ける。 */
@media (min-width: 701px) and (min-aspect-ratio: 2/1) {
  .hero .hero__tease-label { transform: scale(1); }
  .hero__information-image { width: 47.385%; }
}
@media (max-width: 700px), (max-aspect-ratio: 4/5) {
  /* スマホの 2：1 と同じく絵は下に付けて上は余白。絵の左右を少し切って横幅いっぱいにし、芽（横 64%）を真ん中に（2026-10-28）
     拡大しすぎないよう幅は 120vw にとどめ、絵の右端を画面の右端に合わせる（茎は画面の 57% あたり＝ほぼ真ん中。ぴったり真ん中には 139vw 要る） */
  html[data-tl="2"] .hero__tagline { bottom: calc(120vw / 2.4 * .6); }
  html[data-tl="2"] .hero__art { position: relative; inset: auto; transform: none; width: 120vw; min-width: 0; max-width: none; height: auto; margin: auto 0 0 calc(-20vw - 24px); }
  .hero .hero__copy { margin: 0; }
  .hero .hero__tease-label { position: absolute; top: auto; bottom: clamp(48px, 8vh, 72px); left: 24px; transform: scale(1); transform-origin: bottom left; }
}

/* 文字の大きさはポスター（キービジュアル/B0_0917キービジュデータ.pdf）の比率に合わせる（2026-10-28）
   展覧会名（--t）を 1 として：大学名 0.48・英文 0.7・会期と時間 0.45・会場 0.38・キャッチ 0.68・MAU ロゴの幅 1.7。行間はポスターと同じく詰める */
.hero { --t: clamp(27px, 3.65vw, 52px); }
.hero__coming-soon { font-size: clamp(32px, 4.25vw, 58px); }
h1 { font-size: var(--t); line-height: 1.3; }
.hero__univ { font-size: max(12px, calc(var(--t) * .48)); margin-bottom: calc(var(--t) * .15); }
.hero__title-en { font-size: max(13px, calc(var(--t) * .7)); line-height: 1.25; margin-top: calc(var(--t) * .3); }
.hero__foot { margin-top: calc(var(--t) * .7); }
.hero__date strong, .hero__hours { font-size: max(11px, calc(var(--t) * .45)); }
.hero__place { font-size: max(10px, calc(var(--t) * .38)); margin-top: calc(var(--t) * .3); }
.hero__event { gap: calc(var(--t) * .15); }
.hero__tagline { font-size: max(15px, calc(var(--t) * .68)); }
.hero__mau-logo { width: calc(var(--t) * 1.7); margin-top: calc(var(--t) * .3); }
.hero__publish-date { font-size: 15px; }
@media (max-width: 700px), (max-aspect-ratio: 4/5) {
  .hero { --t: clamp(21px, 5.8vw, 29px); }
  .hero__coming-soon { font-size: clamp(27px, 7.6vw, 37px); }
  .hero__publish-date { font-size: 12px; }
  .eyebrow { font-size: 10px; }
}

/* 背の低い画面：1 画面に収まるよう、展覧会名（--t）と間を詰める（ほかの文字は比率で一緒に小さくなる） */
@media (max-height: 820px) and (min-width: 701px) and (min-aspect-ratio: 4/5) {
  .hero { --t: clamp(24px, 5vh, 46px); padding-top: 28px; padding-bottom: 28px; }
  .hero__coming-soon { font-size: clamp(30px, 6vh, 51px); }
}
@media (max-height: 700px) and (max-width: 700px) {
  .hero { --t: 20px; }
  .hero__coming-soon { font-size: 26px; }
}

/* ============================================================
   ?image=2・5（html[data-sink]。2026-10-28）：1・4 の絵を少し下に沈めて、土の見える面積を減らす
   PC は絵ごと下へずらし、上にできるすきまは地の色を絵の上端の赤（#bd2217）にして目立たなくする。
   スマホは絵の下を画面の外へ押し出す（絵の上端はもともとフェードなので地の色はそのまま）
   ============================================================ */
html[data-sink] .hero { --sink: 16svh; background: #bd2217; }
html[data-sink] .hero__art { transform: translateY(var(--sink)); }
html[data-sink][data-tl="2"] .hero__art { transform: translate(-64%, var(--sink)); }
@media (max-width: 700px), (max-aspect-ratio: 4/5) {
  /* 絵の高さ（横幅いっぱい＝100vw / 2.4、3・4 は 120vw / 2.4）の 25% を沈める。キャッチも一緒に下げる */
  html[data-sink] .hero { background: var(--red); }
  html[data-sink] .hero__art, html[data-sink][data-tl="2"] .hero__art { transform: none; }
  html[data-sink] .hero__art { margin-bottom: calc(100vw / 2.4 * -.25); }
  html[data-sink] .hero__tagline { bottom: calc(100vw / 2.4 * .35); }
  html[data-sink][data-tl="2"] .hero__art { margin-bottom: calc(120vw / 2.4 * -.25); }
  html[data-sink][data-tl="2"] .hero__tagline { bottom: calc(120vw / 2.4 * .35); }
}

/* ============================================================
   ?image=6（html[data-kv="5"]。ローカルだけ。2026-10-28。2026-10-29 に 5 から 6 へ）：苗の絵の代わりにトップの KV をそのまま見せる（小さい 6 も作ったが外した）
   絵（1913×2461。地は #bd3124 で背景と同じ）は右に寄せ、文字は左に重ねる。
   --kv-h（絵の高さ）・--kv-top（絵の上端）・--kv-right（絵の右端から画面の右端まで）で置き、
   キャッチ（HTML の縦組み）はポスター（キービジュアル/B0_0917キービジュデータ.pdf）と同じところ＝絵の横 77.75% が右端・縦 22.0% が上端に置く
   （ポスターの文字なし版と kv-teaser.webp を画像で突き合わせて測った。大きさはポスターより大きいまま＝上の .hero__tagline の比率）
   ============================================================ */
.hero__kv { display: none; }
html[data-kv] .hero__art { display: none; }
html[data-kv] .hero__kv {
  display: block; position: absolute; z-index: -2;
  top: var(--kv-top); right: var(--kv-right); width: auto; height: var(--kv-h); max-width: none;
}
html[data-kv] .hero__tagline {
  top: calc(var(--kv-top) + var(--kv-h) * .22); bottom: auto;
  right: calc(var(--kv-right) + var(--kv-h) * 1913 / 2461 * (1 - .7775));
}
/* 画面の高さより大きく、上はトップと同じく 5.4% 見切る */
html[data-kv="5"] .hero { --kv-h: 154.8svh; --kv-top: calc(129.034svh - var(--kv-h)); --kv-right: 0; }
html[data-kv] .hero__tagline-image { transform: translateX(-2vw); }
@media (min-width: 701px) and (min-aspect-ratio: 4/5) {
  html[data-kv] .hero__tagline-image { transform: translate(-6vw, -5svh); }
}
@media (max-width: 700px), (max-aspect-ratio: 4/5) {
  /* スマホ：絵は上からぶら下がる形なので画面の上に付け（上は PC と同じく 5.4% 見切る）、文字はぜんぶ下にまとめる。
     絵の下は地の赤へフェードし、文字はそこに重なる。横 118vw で左右を少し切る */
  html[data-kv] .hero__kv { -webkit-mask-image: linear-gradient(to top, transparent, #000 30%); mask-image: linear-gradient(to top, transparent, #000 30%); }
  html[data-kv] .hero { --kv-h: calc(141.6vw * 5032 / 3579); --kv-top: calc(118vw * 5032 / 3579 * .946 - var(--kv-h) + 7vw); --kv-right: -14vw; }
  html[data-kv] .hero__tagline-image { transform: translate(-6vw, -3.5vw); }
  html[data-kv] .hero { padding-bottom: 28px; }
  html[data-kv] .hero .hero__copy { justify-content: flex-end; margin: 0; }
  html[data-kv] .hero .hero__tease-label { margin-bottom: 28px; }
}

/* ============================================================
   ?image=3（html[data-low]。2026-10-29）：PC でも芽を小さく見せる。絵（1942×809＝横 2.4）を画面いっぱいに敷かず、
   スマホと同じく横幅いっぱいで画面の下に付け、上端は地の赤へフェードする（1440×900 で芽が 1 の約 2/3）。
   これより小さくするには、絵の左右（土）を描き足した画像が要る。スマホは 1 と同じ
   ============================================================ */
@media (min-width: 701px) and (min-aspect-ratio: 4/5) {
  html[data-low] .hero__art {
    inset: auto 0 0 0; width: 100%; height: auto; max-height: none; object-fit: fill; object-position: center;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 28%); mask-image: linear-gradient(to bottom, transparent, #000 28%);
  }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* 公開案内の各文字は同じ基準サイズから拡大・縮小する。 */
.hero__tease-label {
  --teaser-unit: min(clamp(32px, 4.25vw, 58px), calc((100vw - 48px) / 9.771));
}
.hero__coming-soon { font-size: var(--teaser-unit); }
.hero__coming-soon-image { width: calc(var(--teaser-unit) * 2853 / 292); height: auto; }
.eyebrow .hero__publish-image { width: calc(var(--teaser-unit) * 10 / 37 * 787 / 105); height: auto; }
.hero__publish-date .hero__publish-image { width: calc(var(--teaser-unit) * 10.68 / 37 * 679 / 111); height: auto; transform: translateY(3.6%); }
@media (max-width: 700px), (max-aspect-ratio: 4/5) {
  .hero__tease-label { --teaser-unit: min(clamp(27px, 7.6vw, 37px), calc((100vw - 48px) / 9.771)); }
  .eyebrow .hero__publish-image { width: calc(var(--teaser-unit) * 14.2 / 37 * 787 / 105); }
  .hero__publish-date .hero__publish-image { width: calc(var(--teaser-unit) * 15.17 / 37 * 679 / 111); }
}
