@charset "utf-8";

/* ==========================================================
   index.css — トップページ固有のスタイル

   ファーストビューは告知ポスターの再現。
   下のリード文・開催情報は book.css の「本のページ」のまま。

   ■ 構成の考え方
   表紙は book.css の .book-page（黒枠・背表紙・小口・影）をそのまま使い、
   その紙面の中身だけを告知ポスターの版面にしている。
   本のページの高さは画面によって変わるので、
     - タイトルと下段（会期・会場）は紙面上に絶対配置する
     - 色面と線画を紙面の四隅に絶対配置する
     - 文字サイズと円は cqw（1cqw = 紙面の幅の 1%）で紙面に追従させる
   色面の位置を微調整したいときは各 .shape-* / .figure-* の数値を触る。
   ========================================================== */

/* ポスターの配色（吹き出しなど表紙の外でも使うので .main に置く） */
.main {
  --p-ink: #141414;
  --p-pink: #f9509f;
  --p-pink-soft: #ffa6c9;
  --p-teal: #74d0c0;
  --p-yellow: #ffe94f;
  --p-purple: #6a4fd0;
  --p-paper: #fdfcef;
  --p-grid-major: #eed44c;
  --p-grid-minor: #f1eac6;
}

/* ==========================================================
   1. 表紙のページ（.book-page の紙面を方眼紙に置き換える）
   ========================================================== */

.first-view {
  min-height: calc(100vh - var(--top-logo-bar-height));
  min-height: calc(100svh - var(--top-logo-bar-height));
  padding: 28px 24px 0;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-areas: "cover";
  place-items: end center;
}

.poster-page {
  grid-area: cover;
  height: calc(100vh - var(--top-logo-bar-height) - 28px);
  height: calc(100svh - var(--top-logo-bar-height) - 28px);
  min-height: 640px;
  margin: 0;
  padding: 0;
  aspect-ratio: 1080 / 1536;
  container-type: inline-size;
  overflow: hidden;
  color: var(--p-ink);
  background-color: var(--p-paper);
  /* 背表紙のみ。方眼は .poster-art 側に描く
     （コンテナクエリ単位 cqw は自分自身のコンテナを参照できないため） */
  background-image:
    linear-gradient(90deg, var(--ink) 0 36px, rgba(255, 255, 255, 0.82) 36px 52px, transparent 52px);
  background-repeat: no-repeat;
  background-position: left top;
  background-size: auto;
  border-radius: 4px 10px 10px 4px;
  box-shadow:
    12px 10px 0 var(--shade),
    28px 32px 46px rgba(0, 0, 0, 0.32);
}

/* 表紙は左余白が広いので折り目の位置をずらす */
.poster-page::before {
  left: 56px;
}

/* ==========================================================
   2. 装飾（色面と線画）
   添付ポスターの構成に寄せ、線画は figure に置いた素材だけを使用する。
   ========================================================== */

.poster-art {
  position: absolute;
  /* 背表紙（左 52px）を隠さないように内側から始める */
  inset: 0 0 0 52px;
  z-index: 0;
  overflow: hidden;
  border-radius: 0 7px 7px 0;
  pointer-events: none;
  /* 方眼紙（太い罫線1本に細い罫線5本） */
  background-image:
    linear-gradient(to right, var(--p-grid-major) 1px, transparent 1px),
    linear-gradient(to bottom, var(--p-grid-major) 1px, transparent 1px),
    linear-gradient(to right, var(--p-grid-minor) 1px, transparent 1px),
    linear-gradient(to bottom, var(--p-grid-minor) 1px, transparent 1px);
  background-size:
    8cqw 8cqw,
    8cqw 8cqw,
    1.6cqw 1.6cqw,
    1.6cqw 1.6cqw;
}

.poster-shape,
.poster-figure {
  position: absolute;
  display: block;
}

.shape-top-stripe {
  left: -4%;
  top: 2.7%;
  z-index: 1;
  width: 29%;
  height: 16.5%;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(249, 80, 159, 0.84) 0 11%,
    rgba(116, 208, 192, 0.78) 11% 22%
  );
}

.shape-top-yellow {
  left: -11%;
  top: 9.2%;
  z-index: 1;
  width: 29%;
  height: 15.5%;
  border-radius: 50% 50% 0 0;
  background-color: rgba(255, 233, 79, 0.9);
}

.shape-top-pink {
  left: 36%;
  top: 3.2%;
  z-index: 1;
  width: 25%;
  height: 15.5%;
  border-radius: 0 999px 999px 0;
  background-color: rgba(249, 80, 159, 0.84);
}

.shape-top-teal {
  left: 57.5%;
  top: 3.8%;
  z-index: 1;
  width: 17%;
  height: 18.5%;
  border-radius: 0 999px 999px 0;
  background-color: rgba(116, 208, 192, 0.72);
}

.shape-top-purple {
  right: -5%;
  top: 3.8%;
  z-index: 1;
  width: 29%;
  height: 22%;
  border-radius: 0 0 0 14cqw;
  background-color: rgba(78, 62, 196, 0.95);
}

.shape-left-purple {
  left: -3%;
  top: 27%;
  z-index: 1;
  width: 24%;
  height: 21%;
  background-color: rgba(78, 62, 196, 0.95);
}

.shape-left-teal {
  left: -8%;
  top: 42%;
  z-index: 1;
  width: 23%;
  height: 18%;
  border-radius: 50%;
  background-color: rgba(116, 208, 192, 0.78);
}

.shape-left-yellow {
  left: -7%;
  top: 51%;
  z-index: 0;
  width: 21%;
  height: 19%;
  border-radius: 999px 999px 0 0;
  background-color: rgba(255, 233, 79, 0.88);
}

.shape-right-dots {
  right: -3%;
  top: 37%;
  z-index: 1;
  width: 18%;
  height: 24%;
  background-color: rgba(78, 62, 196, 0.95);
  background-image: radial-gradient(circle, #ffffff 0 21%, transparent 22%);
  background-size: 2.6cqw 2.6cqw;
}

.shape-bottom-stripe {
  right: -1%;
  bottom: 23%;
  z-index: 1;
  width: 27%;
  height: 9.5%;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(249, 80, 159, 0.84) 0 21%,
    rgba(255, 255, 255, 0.86) 21% 42%
  );
}

.shape-bottom-teal {
  right: -9%;
  bottom: -9%;
  z-index: 1;
  width: 39%;
  height: 25%;
  background-color: rgba(116, 208, 192, 0.88);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.poster-figure {
  z-index: 2;
  margin: 0;
  mix-blend-mode: multiply;
}

.poster-figure img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.figure-crowd {
  left: -4%;
  top: 2%;
  width: 51%;
  height: 20%;
}

.figure-raised-hands {
  left: 56%;
  top: 0.4%;
  width: 27%;
  height: 19%;
  transform: rotate(-5deg);
}

.figure-stairs {
  right: -1%;
  top: 22%;
  width: 22%;
  height: 17%;
  transform: rotate(-2deg);
}

.figure-phone {
  left: -3%;
  top: 27%;
  width: 23%;
  height: 17%;
}

.figure-sign {
  left: -1%;
  top: 56%;
  width: 15%;
  height: 8%;
  transform: rotate(2deg);
}

.figure-line {
  right: 2%;
  bottom: 22%;
  width: 26%;
  height: 12%;
}

/* ==========================================================
   3. タイトル
   ========================================================== */

.poster-title {
  position: absolute;
  top: 29.5%;
  left: calc(52px + 20%);
  right: 17%;
  z-index: 4;
  margin: 0;
  text-align: center;
  white-space: nowrap;
}

.poster-title-small {
  display: block;
  margin-bottom: 2cqw;
  font-size: 5.2cqw;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
  text-indent: 0;
}

.poster-title-main {
  width: fit-content;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 1cqw 0.25cqw;
  font-size: 22cqw;
  line-height: 0.78;
  font-weight: 900;
}

.poster-title-main span {
  display: block;
  letter-spacing: 0;
  text-indent: 0;
}

/* ==========================================================
   4. 会期（ピンクの円）
   ========================================================== */

.poster-bottom {
  position: absolute;
  inset: 0 0 0 52px;
  z-index: 3;
  pointer-events: none;
}

.poster-date {
  position: absolute;
  left: -8%;
  bottom: -1.5%;
  width: 35cqw;
  height: 35cqw;
  padding-bottom: 1.2cqw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.25cqw;
  border-radius: 50%;
  color: #ffffff;
  background-color: var(--p-pink);
}

.poster-date-year {
  font-family: 'Montserrat', sans-serif;
  font-size: 3.1cqw;
  line-height: 1;
  letter-spacing: 0;
  text-indent: 0;
}

/* 円の中に収まる上限は約 6.6cqw。フォント差で溢れないよう余裕をとる */
.poster-date-day {
  font-size: 5cqw;
  line-height: 1.1;
  font-weight: 900;
}

.poster-date-day small {
  font-size: 0.42em;
  font-weight: bold;
}

.poster-date-arrow {
  margin-top: 0.3cqw;
  font-size: 2.2cqw;
  line-height: 1;
}

.poster-date-time {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.9cqw;
  line-height: 1;
  font-weight: 700;
}

.poster-date-free {
  margin-top: 0.6cqw;
  font-size: 2.8cqw;
  line-height: 1;
  font-weight: bold;
}

/* ==========================================================
   5. 会場・主催の情報（紙面の下段・右）

   印刷ポスターでは 6pt 相当の細字だが、画面では 4〜8px になり
   読めないため、紙面の中でも px 指定の本文として組んでいる。
   ========================================================== */

.poster-info {
  position: absolute;
  right: 6%;
  bottom: 4.3%;
  left: 34%;
  z-index: 4;
  min-width: 0;
  pointer-events: auto;
}

.poster-info-en {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5cqw;
  line-height: 1.25;
  letter-spacing: 0;
  color: rgba(0, 0, 0, 0.55);
}

.poster-info-venue {
  margin-top: 0.25cqw;
  font-size: 2.7cqw;
  font-weight: bold;
  line-height: 1.2;
}

.poster-info-address {
  margin-top: 0.3cqw;
  font-size: 1.7cqw;
  line-height: 1.35;
}

.poster-info-url {
  font-size: 1.5cqw;
  line-height: 1.35;
}

.poster-info-host {
  margin-top: 1.6cqw;
  font-size: 1.35cqw;
  line-height: 1.5;
}

.poster-info a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.poster-info a:hover {
  opacity: 0.6;
}

/* ==========================================================
   6. 次回開催のお知らせ（upcoming-event.js が出し入れする）
   ========================================================== */

.upcoming-event {
  position: absolute;
  right: 6%;
  bottom: 17.6%;
  z-index: 5;
  max-width: 43%;
  padding: 1cqw 1.35cqw;
  display: grid;
  gap: 0.35cqw;
  color: #ffffff;
  background-color: var(--p-ink);
  box-shadow: 0.7cqw 0.7cqw 0 var(--p-pink-soft);
  transform: rotate(-1.5deg);
  pointer-events: auto;
}

.upcoming-event[hidden] {
  display: none;
}

.upcoming-event-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05cqw;
  line-height: 1;
  color: var(--p-pink-soft);
}

.upcoming-event-title {
  font-size: 1.25cqw;
  line-height: 1.35;
}

.upcoming-event-countdown {
  font-size: 2.1cqw;
  line-height: 1.15;
  font-weight: bold;
}

/* ==========================================================
   7. 導入の見開き
   ========================================================== */

.lead-page .book-heading {
  font-size: 30px;
}

.lead-text {
  margin-top: 34px;
  display: grid;
  gap: 22px;
}

.lead-text p {
  font-size: 21px;
  line-height: 2;
  font-weight: bold;
}

.page-number {
  align-self: flex-end;
  color: rgba(0, 0, 0, 0.44);
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  line-height: 1;
}

.air-note-list {
  margin-top: 26px;
  display: grid;
  gap: 18px;
}

.air-note-list li {
  padding: 18px 20px;
  background-color: rgba(255, 255, 255, 0.76);
  border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.12);
}

.air-note-list span {
  display: block;
  margin-bottom: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  line-height: 1;
  color: var(--p-pink);
}

.air-note-list strong {
  display: block;
  font-size: 17px;
  line-height: 1.7;
}

/* ==========================================================
   8. 開催情報の見開き
   ========================================================== */

.event-main-page {
  justify-content: center;
  background-image:
    linear-gradient(to right, rgba(253, 252, 239, 0.96) 0%, rgba(253, 252, 239, 0.88) 58%, rgba(253, 252, 239, 0.34) 100%),
    url(../images/index/image_character.png),
    linear-gradient(to right, var(--p-grid-minor) 1px, transparent 1px),
    linear-gradient(to bottom, var(--p-grid-minor) 1px, transparent 1px);
  background-repeat: no-repeat, no-repeat, repeat, repeat;
  background-position: center, right -84px bottom -46px, left top, left top;
  background-size: 100% 100%, auto 94%, 28px 28px, 28px 28px;
}

.info-text {
  width: 100%;
}

.event-sub-page {
  justify-content: center;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.76), rgba(253, 252, 239, 0.86)),
    url(../images/index/bg_index.png);
  background-repeat: no-repeat, repeat;
  background-position: center, center;
  background-size: 100% 100%, 442px 364px;
}

.sub-event {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.sub-event-balloon {
  width: 100%;
  position: relative;
  padding: 24px 26px 22px;
  background-color: #ffffff;
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: 7px 7px 0 rgba(0, 0, 0, 0.14);
}

/* 吹き出しのしっぽ。枠線ぶんだけ大きい三角を重ねて縁取りに見せる */
.sub-event-balloon::before,
.sub-event-balloon::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 28%;
  width: 0;
  height: 0;
  border-style: solid;
  border-color: transparent;
}

.sub-event-balloon::before {
  margin-left: -14px;
  border-width: 22px 14px 0 14px;
  border-top-color: var(--ink);
}

.sub-event-balloon::after {
  margin-top: -4px;
  margin-left: -9px;
  border-width: 15px 9px 0 9px;
  border-top-color: #ffffff;
}

.sub-event-shout {
  width: fit-content;
  margin-bottom: 12px;
  padding: 6px 12px;
  color: #ffffff;
  background-color: var(--p-pink);
  border-radius: 999px;
  font-size: 13px;
  line-height: 1;
  font-weight: bold;
  transform: rotate(-2deg);
}

.sub-event-title {
  font-size: 22px;
  line-height: 1.5;
}

/* 吹き出しは幅が狭いので、定義リストを詰めた組にする */
.sub-event-balloon .spec-list {
  margin-top: 16px;
  gap: 9px;
}

.sub-event-balloon .spec-list div {
  grid-template-columns: 58px minmax(0, 1fr);
}

.sub-event-balloon .spec-list dt {
  padding: 6px;
  font-size: 12px;
}

.sub-event-balloon .spec-list dd {
  padding: 6px 0 6px 10px;
  font-size: 14px;
}

.sub-event-balloon .text-link {
  margin-top: 16px;
  display: inline-block;
  font-size: 13px;
  font-weight: bold;
}

.sub-event-character {
  width: 45%;
  min-width: 118px;
  max-width: 190px;
  margin-top: 24px;
}

/* ==========================================================
   9. 統合ページ内のアンカーと ABOUT US
   ========================================================== */

#exhibition,
#prologue,
#concept,
#about {
  scroll-margin-top: calc(var(--top-logo-bar-height) + 28px);
}

.about-spread .spread-page {
  --spread-paper: rgba(255, 255, 255, 0.94);
  --spread-grid: rgba(0, 0, 0, 0.06);
}

.about-project-page .book-subheading {
  margin-top: 36px;
}

.about-project-page .stamp-link {
  margin-top: 36px;
}

.about-members-page {
  padding: 58px 46px 62px;
}

.home-member-list {
  margin-top: 22px;
  display: grid;
  gap: 10px;
}

.home-member-card {
  padding: 13px 15px 11px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 0 13px;
  align-items: start;
}

.home-member-card img {
  width: 64px;
  height: 64px;
  display: block;
  grid-row: 1 / 3;
  border: 3px solid var(--ink);
  border-radius: 50%;
  object-fit: cover;
  background-color: #ffffff;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.14);
}

.member-photo-kurashima {
  object-position: 61% 34%;
}

.member-photo-nanba {
  object-position: 63% 44%;
}

.member-photo-inui {
  object-position: 49% 38%;
}

.member-photo-miyauchi {
  object-position: 44% 35%;
}

.member-photo-yamamoto {
  object-position: 72% 39%;
}

.home-member-card dl {
  min-width: 0;
  margin-top: 0;
}

.home-member-card dt {
  padding-bottom: 4px;
  font-size: 14px;
  line-height: 1.3;
  font-weight: bold;
  border-bottom: 2px solid var(--ink);
}

.home-member-card dd {
  margin-top: 5px;
  font-size: 10.5px;
  line-height: 1.55;
}

.home-member-card .major {
  width: fit-content;
  margin-top: 8px;
  padding: 5px 8px;
  grid-column: 2;
  color: var(--paper);
  background-color: var(--ink);
  font-size: 10px;
  line-height: 1;
  font-weight: bold;
}

/* ==========================================================
   10. レスポンシブ

   表紙の中身は cqw なので紙面に追従して縮む。
   見開きは狭い画面で余白を詰め、スマホでは縦積みにする。
   ========================================================== */

@media (max-width: 1100px) {
  .lead-page .book-heading {
    font-size: 27px;
  }

  .lead-text p {
    font-size: 19px;
  }

  .air-note-list strong {
    font-size: 16px;
  }
}

@media (max-width: 900px) {
  .poster-page {
    height: calc(100vh - var(--top-logo-bar-height) - 28px);
    height: calc(100svh - var(--top-logo-bar-height) - 28px);
    min-height: 600px;
    padding: 0;
  }

  .book-spread .book-heading {
    font-size: 23px;
  }

  .lead-text {
    gap: 16px;
  }

  .lead-text p {
    font-size: 17px;
  }

  .air-note-list li {
    padding: 15px 16px;
  }

  .air-note-list strong {
    font-size: 15px;
  }

  .event-main-page {
    background-position: center, right -120px bottom -34px, left top, left top;
    background-size: 100% 100%, auto 80%, 28px 28px, 28px 28px;
  }

  .sub-event-title {
    font-size: 18px;
  }

  .about-members-page {
    padding: 48px 34px 54px;
  }

  .home-member-card {
    grid-template-columns: 60px minmax(0, 1fr);
  }

  .home-member-card img {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 700px) {
  .first-view {
    padding: 22px 10px 0;
  }

  /* 細い画面では背表紙が紙面を圧迫するので、背表紙自体を細くする */
  .poster-page {
    height: calc(100vh - var(--top-logo-bar-height) - 22px);
    height: calc(100svh - var(--top-logo-bar-height) - 22px);
    min-height: 540px;
    padding: 0;
    background-image:
      linear-gradient(90deg, var(--ink) 0 22px, rgba(255, 255, 255, 0.82) 22px 32px, transparent 32px);
    box-shadow:
      8px 8px 0 var(--shade),
      18px 24px 34px rgba(0, 0, 0, 0.28);
  }

  .poster-page::before {
    left: 34px;
  }

  .poster-art {
    inset: 0 0 0 32px;
  }

  .poster-bottom {
    inset: 0 0 0 32px;
  }

  .poster-title {
    top: 30%;
    left: calc(32px + 17%);
    right: 9%;
  }

  /* 紙面が小さいぶんタイトルの比率を上げて存在感を保つ */
  .poster-title-main {
    font-size: 26cqw;
  }

  .book-spread .book-heading {
    font-size: 22px;
  }

  .page-number {
    display: none;
  }

  .event-main-page {
    background-position: center, right -78px bottom -42px, left top, left top;
    background-size: 100% 100%, auto 82%, 28px 28px, 28px 28px;
  }

  .sub-event-character {
    width: 46%;
    max-width: 150px;
  }

  .about-members-page {
    padding: 42px 24px 48px 32px;
  }

  .home-member-list {
    gap: 14px;
  }

  .home-member-card {
    grid-template-columns: 74px minmax(0, 1fr);
    padding: 16px 15px 14px;
  }

  .home-member-card img {
    width: 74px;
    height: 74px;
  }
}

@media (max-width: 520px) {
  .first-view {
    padding: 24px 16px 0;
  }

  .poster-page {
    height: calc(100vh - var(--top-logo-bar-height) - 24px);
    height: calc(100svh - var(--top-logo-bar-height) - 24px);
    min-height: 560px;
  }

  .poster-date {
    left: -10%;
    bottom: -1%;
    width: 43cqw;
    height: 43cqw;
    gap: 0.12cqw;
  }

  .poster-date-year {
    font-size: 4.2cqw;
  }

  .poster-date-day {
    font-size: 7cqw;
  }

  .poster-date-time {
    font-size: 2.6cqw;
  }

  .poster-date-free {
    margin-top: 0.4cqw;
    font-size: 3.8cqw;
  }

  .upcoming-event {
    right: 5%;
    bottom: 19%;
    max-width: 45%;
  }

  .poster-info {
    left: 31%;
    right: 5%;
    bottom: 4.8%;
  }

  .poster-info-host {
    margin-top: 1.2cqw;
  }

  .lead-text p {
    font-size: 15px;
  }

  .air-note-list li {
    padding: 14px;
  }

  .sub-event-balloon {
    padding: 20px 18px 18px;
  }
}

/* 縦長の画面では、参考ポスターの縦横比を優先する */
@media (max-aspect-ratio: 3 / 4) {
  .first-view {
    min-height: 0;
    padding-bottom: 24px;
  }

  .poster-page {
    height: auto;
    min-height: 0;
  }
}
