/* 宙の回廊 入口ページ
   Figma: XFySn7HeD9DeHSDYBvYSZN（PC 2:168 / SP 2:219）
   SPを基準に、768px以上でPCレイアウトへ切り替える。値はPC1440・SP375の設計値。 */

:root {
  --sora-background: #050a13;
  --sora-paper: #eff3f8;
  --sora-muted: #a6b3c5;
  --sora-gold: #d7bc8c;
  --sora-line: #26313f;
  --sora-gold-wash: rgba(215, 188, 140, 0.1);

  --font-serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  --font-sans: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;

  --gutter: 24px;
  --content-max: 1248px;
}

@media (max-width: 359px) {
  :root { --gutter: 20px; }
}

@media (min-width: 768px) {
  /* 768px→24px（相当）… 1440px→96px */
  :root { --gutter: clamp(32px, 6.667vw, 96px); }
}

/* ---------- base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--sora-background);
  color: var(--sora-paper);
  font-family: var(--font-sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: anywhere;
  line-break: strict;
}

h1, h2, h3, p, ul, ol, dl { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--sora-gold);
  outline-offset: 4px;
}

.container {
  width: 100%;
  max-width: calc(var(--content-max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sp-only { display: inline; }
@media (min-width: 768px) {
  .sp-only { display: none; }
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: 8px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--sora-background);
  color: var(--sora-gold);
  border: 1px solid var(--sora-gold);
  font-size: 13px;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.eyebrow {
  color: var(--sora-gold);
  font-size: 10px;
  line-height: 20px;
}

/* ---------- header ---------- */

.site-header {
  border-bottom: 1px solid var(--sora-line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: calc(var(--content-max) + var(--gutter) * 2);
  margin-inline: auto;
  padding: 20px var(--gutter);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  white-space: nowrap;
}

.brand__name {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 21px;
  line-height: 32px;
  letter-spacing: 4px;
  color: var(--sora-paper);
}

.brand__roman {
  font-size: 9px;
  line-height: 16px;
  letter-spacing: 2.3px;
  color: var(--sora-muted);
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav__item--pc { display: none; }

.site-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 8px;
  margin-inline: -8px;
  font-size: 12px;
  line-height: 21.6px;
  color: var(--sora-muted);
  white-space: nowrap;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.site-nav__link:hover {
  color: var(--sora-paper);
  background-color: var(--sora-gold-wash);
}

@media (min-width: 768px) {
  .site-header__inner { padding-block: 26px; }

  .brand__name {
    font-size: 26px;
    line-height: 40px;
  }

  .site-nav { width: 236px; }
  .site-nav__item--pc { display: list-item; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 590px;
  padding: 132px var(--gutter) 64px;
  background-color: var(--sora-background);
}

.hero__art,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__art {
  z-index: -2;
  background: url("night.jpg") center / cover no-repeat;
}

.hero::after {
  background: linear-gradient(
    to bottom,
    rgba(5, 10, 19, 0.5) 0%,
    rgba(5, 10, 19, 0.7) 62%,
    rgb(5, 10, 19) 100%
  );
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  width: 100%;
  max-width: 900px;
}

.hero__eyebrow {
  font-size: 9px;
  letter-spacing: 1.3px;
}

.hero__title {
  font-family: var(--font-serif);
  font-weight: 300;
  /* 320px→28px, 375px→32px */
  font-size: clamp(28px, 8.533vw, 32px);
  line-height: 1.625;
  color: var(--sora-paper);
}

.hero__lead {
  max-width: 650px;
  font-size: 13px;
  line-height: 28px;
  color: var(--sora-muted);
}

@media (min-width: 768px) {
  .hero {
    min-height: 620px;
    /* 1440pxでHero文章の左端144px */
    padding: 134px clamp(48px, 10vw, 144px) 100px;
  }

  .hero::after {
    background: linear-gradient(
      to right,
      rgba(5, 10, 19, 0.96) 0%,
      rgba(5, 10, 19, 0.5) 62%,
      rgba(5, 10, 19, 0.12) 100%
    );
  }

  .hero__content { gap: 24px; }

  .hero__eyebrow {
    font-size: 10px;
    letter-spacing: 2.3px;
  }

  .hero__title {
    /* 768px→40px … 1440px→64px */
    font-size: clamp(40px, 4.444vw, 64px);
    line-height: 1.5;
  }

  .hero__lead {
    font-size: 15px;
    line-height: 32px;
  }
}

/* ---------- actions ---------- */

.button-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  width: 184px;
  min-height: 44px;
  padding: 12px 24px;
  border: 1px solid var(--sora-gold);
  color: var(--sora-gold);
  font-size: 14px;
  line-height: 25.2px;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.button-outline__icon {
  font-size: 17px;
  line-height: 30.6px;
  transition: transform 0.25s ease;
}

.button-outline:hover { background-color: var(--sora-gold-wash); }
.button-outline:hover .button-outline__icon { transform: translateY(3px); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  min-height: 44px;
  padding-block: 8px;
  color: var(--sora-gold);
  font-size: 14px;
  line-height: 25.2px;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.text-link__icon {
  font-size: 20px;
  line-height: 36px;
  transition: transform 0.25s ease;
}

.text-link:hover { background-color: var(--sora-gold-wash); }
.text-link:hover .text-link__icon { transform: translateX(4px); }

/* 作品本体への主リンクの下に置く、紹介ページへの控えめなリンク */
.exhibit-card__links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.text-link--sub {
  color: var(--sora-muted);
  font-size: 13px;
  gap: 16px;
}

.text-link--sub .text-link__icon {
  font-size: 16px;
  line-height: 28px;
}

.text-link--sub:hover { color: var(--sora-paper); }

/* 準備中の展示。リンクにせず、text-link と同じ高さで表示する */
.coming-soon {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: 8px;
  color: var(--sora-muted);
  font-size: 12px;
  line-height: 25.2px;
  letter-spacing: 2px;
  white-space: nowrap;
}

.text-link--about {
  padding-block: 10px;
  font-size: 13px;
  line-height: 23.4px;
}

.text-link--about .text-link__icon {
  font-size: 18px;
  line-height: 32.4px;
}

/* ---------- exhibitions ---------- */

.exhibitions {
  padding-block: 64px;
  scroll-margin-top: 0;
}

.exhibitions:focus { outline: none; }

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.section-heading__eyebrow { letter-spacing: 2.5px; }

.section-heading__title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 27px;
  line-height: 46px;
  letter-spacing: 1px;
}

.exhibit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
}

.exhibit-card__art {
  position: relative;
  aspect-ratio: 327 / 190;
  overflow: hidden;
  background: linear-gradient(160deg, #0d1626 0%, var(--sora-background) 100%);
}

.exhibit-card__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.exhibit-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding-top: 24px;
}

.exhibit-card__number {
  color: var(--sora-gold);
  font-size: 10px;
  line-height: 20px;
  letter-spacing: 1.5px;
}

.exhibit-card__title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 28px;
  line-height: 48px;
  letter-spacing: 2px;
}

.exhibit-card__catch {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 14px;
  line-height: 28px;
}

.exhibit-card__text {
  color: var(--sora-muted);
  font-size: 13px;
  line-height: 27px;
}

@media (min-width: 768px) {
  .exhibitions { padding-block: 88px 96px; }

  .section-heading { margin-bottom: 44px; }

  .section-heading__title {
    font-size: 32px;
    line-height: 56px;
  }

  .exhibit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(24px, 2.778vw, 40px);
  }

  .exhibit-card__art { aspect-ratio: 604 / 336; }

  .exhibit-card__title {
    font-size: 32px;
    line-height: 56px;
  }

  .exhibit-card__catch { font-size: 16px; }
}

/* ---------- about strip ---------- */

.about-strip {
  border-top: 1px solid var(--sora-line);
  border-bottom: 1px solid var(--sora-line);
  padding-block: 48px;
}

.about-strip__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.about-strip__copy {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 24px;
  line-height: 44px;
  letter-spacing: 1px;
}

@media (max-width: 359px) {
  .about-strip__copy { font-size: 22px; }
}

@media (min-width: 768px) {
  .about-strip { padding-block: 64px; }

  .about-strip__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .about-strip__copy {
    font-size: clamp(24px, 1.944vw, 28px);
    line-height: 52px;
  }

  .text-link--about {
    flex: none;
    width: 215px;
  }
}

/* ---------- footer ---------- */

.site-footer__inner {
  padding-block: 40px;
  color: var(--sora-muted);
  line-height: 20px;
}

.site-footer__meta {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.site-footer__brand {
  font-size: 10px;
  letter-spacing: 1.1px;
}

.site-footer__tagline { font-size: 11px; }

.footer-nav { margin-top: 20px; }

.footer-nav__list {
  display: flex;
  flex-wrap: wrap;
  column-gap: 28px;
}

.footer-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 12px;
  color: var(--sora-muted);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.footer-nav__link:hover {
  color: var(--sora-paper);
  background-color: var(--sora-gold-wash);
}

@media (min-width: 768px) {
  .site-footer__inner { padding-block: 48px 40px; }

  .site-footer__meta {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
  }

  .site-footer__tagline {
    flex: none;
    width: 360px;
  }

  .footer-nav { margin-top: 16px; }
  .footer-nav__list { column-gap: 32px; }
}

/* ---------- media（画像枠と読み込み失敗時の表示） ---------- */

.media {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #0d1626 0%, var(--sora-background) 100%);
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* portal.js が付ける。代替テキストを控えめに表示する */
.media.is-broken {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border: 1px solid var(--sora-line);
}

.media.is-broken img { display: none; }

.media.is-broken::after {
  content: attr(data-fallback);
  color: var(--sora-muted);
  font-size: 12px;
  line-height: 1.8;
  text-align: center;
}

/* ============================================================
   下層ページ（作品紹介・About・Credits・404）
   トップのPC・SP Blueprintの色・書体・余白を基準にする。
   ============================================================ */

[id] { scroll-margin-top: 24px; }

.site-nav__link[aria-current="page"] { color: var(--sora-paper); }

/* ---------- breadcrumb ---------- */

.breadcrumb { padding-top: 16px; }

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-size: 12px;
  line-height: 20px;
  color: var(--sora-muted);
}

.breadcrumb__list li + li::before {
  content: "/";
  margin-inline: 12px;
  color: var(--sora-line);
}

.breadcrumb__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--sora-muted);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.breadcrumb__link:hover {
  color: var(--sora-paper);
  background-color: var(--sora-gold-wash);
}

.breadcrumb [aria-current="page"] { color: var(--sora-paper); }

@media (min-width: 768px) {
  .breadcrumb { padding-top: 24px; }
}

/* ---------- typography ---------- */

.page-title {
  font-family: var(--font-serif);
  font-weight: 300;
  /* SP 28〜32px */
  font-size: clamp(28px, 8.533vw, 32px);
  line-height: 1.6;
  letter-spacing: 2px;
}

.page-catch {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 16px;
  line-height: 30px;
  color: var(--sora-paper);
}

.prose {
  max-width: 720px;
  font-size: 14px;
  line-height: 28px;
  color: var(--sora-muted);
}

.prose p + p { margin-top: 1.5em; }

.prose--paper { color: var(--sora-paper); }

.note {
  max-width: 720px;
  font-size: 12px;
  line-height: 22px;
  color: var(--sora-muted);
}

.chapter-title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 24px;
  line-height: 40px;
  letter-spacing: 1px;
}

.item-title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 18px;
  line-height: 30px;
  letter-spacing: 1px;
  color: var(--sora-paper);
}

@media (max-width: 359px) {
  .chapter-title { font-size: 22px; }
}

@media (min-width: 768px) {
  .page-title {
    /* 768px→36px … 1440px→48px */
    font-size: clamp(36px, 3.333vw, 48px);
    line-height: 1.5;
  }

  .page-catch {
    font-size: 18px;
    line-height: 34px;
  }

  .prose {
    font-size: 16px;
    line-height: 32px;
  }

  .note {
    font-size: 13px;
    line-height: 24px;
  }

  .chapter-title {
    font-size: clamp(26px, 2.222vw, 32px);
    line-height: 1.7;
  }

  .item-title {
    font-size: 20px;
    line-height: 34px;
  }
}

/* ---------- chapter（見出しと本文の章） ---------- */

.chapter {
  padding-block: 56px;
  border-top: 1px solid var(--sora-line);
}

.chapter__inner {
  display: grid;
  gap: 24px;
}

.chapter__body {
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-width: 0;
}

@media (min-width: 768px) {
  .chapter { padding-block: 80px; }
  .chapter__inner { gap: 32px; }
}

@media (min-width: 1024px) {
  /* 見出しを左、本文を右（最大720px）に置く */
  .chapter__inner {
    grid-template-columns: minmax(200px, 1fr) minmax(0, 720px);
    column-gap: 64px;
  }
}

.item-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.item-list > * {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ---------- work intro（作品紹介の先頭） ---------- */

.work-intro { padding-block: 24px 64px; }

.work-intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "head"
    "media"
    "text"
    "action";
}

.work-intro__head {
  grid-area: head;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
}

.work-intro__number { letter-spacing: 1.5px; }

.work-intro__media {
  grid-area: media;
  aspect-ratio: 16 / 9;
  margin-bottom: 28px;
}

.work-intro__text { grid-area: text; }

.work-intro__action {
  grid-area: action;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-top: 32px;
}

@media (min-width: 768px) {
  .work-intro { padding-block: 32px 96px; }
  .work-intro__head { margin-bottom: 36px; }
  .work-intro__media { margin-bottom: 36px; }
  .work-intro__action { margin-top: 40px; }
}

@media (min-width: 1120px) {
  /* 画像約56%・説明約44%。説明側は400px以上を確保 */
  .work-intro__grid {
    grid-template-columns: minmax(0, 56fr) minmax(400px, 44fr);
    grid-template-rows: auto auto 1fr;
    grid-template-areas:
      "media head"
      "media text"
      "media action";
    column-gap: clamp(48px, 4.444vw, 64px);
  }

  .work-intro__media {
    align-self: start;
    margin-bottom: 0;
  }

  .work-intro__head { margin-bottom: 32px; }
}

.button-outline--wide {
  width: auto;
  min-width: 200px;
}

.button-outline:hover .button-outline__icon--forward { transform: translateX(4px); }

/* ---------- 操作の案内 ---------- */

.howto { border-top: 1px solid var(--sora-line); }

.howto__row {
  display: grid;
  gap: 4px;
  padding-block: 16px;
  border-bottom: 1px solid var(--sora-line);
}

.howto dt {
  font-size: 14px;
  line-height: 26px;
  color: var(--sora-paper);
}

.howto dd {
  margin: 0;
  font-size: 13px;
  line-height: 26px;
  color: var(--sora-muted);
}

@media (min-width: 768px) {
  .howto__row {
    grid-template-columns: 180px minmax(0, 1fr);
    column-gap: 32px;
    padding-block: 18px;
  }

  .howto dt { font-size: 15px; line-height: 28px; }
  .howto dd { font-size: 14px; line-height: 28px; }
}

/* ---------- もう一つの展示 ---------- */

.next-exhibit {
  padding-block: 56px 72px;
  border-top: 1px solid var(--sora-line);
}

.next-exhibit__grid {
  display: grid;
  gap: 24px;
}

.next-exhibit__media { aspect-ratio: 16 / 9; }

.next-exhibit__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.next-exhibit__lead {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 14px;
  line-height: 26px;
  color: var(--sora-muted);
}

.next-exhibit__title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 26px;
  line-height: 44px;
  letter-spacing: 2px;
}

.next-exhibit__text {
  font-size: 13px;
  line-height: 26px;
  color: var(--sora-muted);
  margin-bottom: 8px;
}

@media (min-width: 768px) {
  .next-exhibit { padding-block: 80px 96px; }

  .next-exhibit__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: clamp(32px, 4.444vw, 64px);
    align-items: center;
  }

  .next-exhibit__lead { font-size: 16px; line-height: 28px; }

  .next-exhibit__title {
    font-size: 32px;
    line-height: 56px;
  }
}

/* ---------- About ---------- */

.page-head { padding-block: 24px 56px; }

.page-head__inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.about-statement {
  margin-top: 32px;
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 26px;
  line-height: 46px;
  letter-spacing: 1px;
  color: var(--sora-paper);
}

.page-head .prose {
  max-width: 760px;
  margin-top: 32px;
}

.wide-art {
  aspect-ratio: 16 / 9;
}

@media (max-width: 359px) {
  .about-statement { font-size: 23px; line-height: 42px; }
}

@media (min-width: 768px) {
  .page-head { padding-block: 40px 96px; }

  .about-statement {
    margin-top: 48px;
    font-size: clamp(30px, 2.778vw, 40px);
    line-height: 1.75;
  }

  .page-head .prose { margin-top: 40px; }

  .wide-art { aspect-ratio: 1248 / 440; }
}

.about-works {
  margin-top: 16px;
}


.closing {
  padding-block: 72px 80px;
  border-top: 1px solid var(--sora-line);
}

.closing__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
}

.closing__copy {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 26px;
  line-height: 46px;
  letter-spacing: 1px;
}

@media (min-width: 768px) {
  .closing { padding-block: 112px; }

  .closing__copy {
    font-size: clamp(30px, 2.778vw, 40px);
    line-height: 1.7;
  }
}

/* ---------- Credits ---------- */

.toc {
  margin-top: 32px;
}

.toc__list {
  display: flex;
  flex-wrap: wrap;
  column-gap: 32px;
}

.toc .text-link { font-size: 13px; }
.toc .text-link__icon { font-size: 16px; line-height: 28px; }
.toc .text-link:hover .text-link__icon { transform: translateY(3px); }

.credit-list {
  display: flex;
  flex-direction: column;
}

.credit-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-block: 28px;
  border-top: 1px solid var(--sora-line);
}

.credit-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.credit-item .prose { overflow-wrap: anywhere; }

.source-links {
  display: flex;
  flex-wrap: wrap;
  column-gap: 28px;
}

.source-links .text-link {
  font-size: 13px;
  line-height: 22px;
  white-space: normal;
  gap: 12px;
}

.source-links .text-link__icon {
  font-size: 15px;
  line-height: 22px;
}

.chapter--after-art { border-top: 0; }

.page-head--compact { padding-bottom: 48px; }

.closing--compact { padding-block: 56px 72px; }

.footer-nav__link[aria-current="page"] { color: var(--sora-paper); }

@media (min-width: 768px) {
  .page-head--compact { padding-bottom: 72px; }
  .closing--compact { padding-block: 72px 96px; }
}

/* ---------- 404 ---------- */

.not-found {
  display: flex;
  align-items: center;
  min-height: min(70vh, 640px);
  padding-block: 72px;
}

.not-found__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.not-found .prose { margin-top: 8px; }
.not-found .button-outline { margin-top: 24px; }

/* ---------- motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
