/* ==========================================================================
   ODAKE 100TH — base styles
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --color-primary: #0b59b6;
  /* ブランドブルー（濃） */
  --color-primary-dark: #1b196c;
  /* 濃紺 */
  --color-primary-light: #c7ddf0;
  /* 淡い水色 */
  --color-accent: #1e84d1;
  /* アクセントブルー */
  --color-text: #1a2a3a;
  --color-text-invert: #ffffff;
  --color-bg: #ffffff;
  --color-bg-soft: #f5f9fd;
  --color-muted: #6b7c8c;
  --font-ja: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-ja-noto: "Noto Sans JP", "Noto Sans CJK JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-en: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --container: 128rem;
  --radius-sm: 0.4rem;
  --radius-md: 0.8rem;
  --header-h: 10.4rem;
}

/* ---------- Base ---------- */
body {
  font-family: var(--font-ja);
  font-size: 1.6rem;
  line-height: 1.8;
  color: var(--color-text);
  background: var(--color-bg);
}

/* ---------- Layout utilities ---------- */
.section {
  padding-block: 9.6rem;
  position: relative;
}

.section__inner {
  max-width: var(--container);
  margin: 0 auto;
}

.section__head {
  text-align: center;
  margin-bottom: 4.8rem;
  padding-inline: 20rem;
}

.section__title {
  font-family: var(--font-en);
  font-size: clamp(3.2rem, 4vw, 4.8rem);
  letter-spacing: 0.08em;
  font-weight: 700;
  line-height: 1.2;
}

.section__title img {
  height: 6rem;
  width: auto;
  margin: 0 auto;
}

.section__title--ja {
  font-family: var(--font-ja);
  font-size: clamp(2.8rem, 3.6vw, 4rem);
  line-height: 1.4;
}

.section__title--ja img {
  height: clamp(5.2rem, 6vw, 7.2rem);
}

.section__subtitle {
  font-size: 1.4rem;
  letter-spacing: 0.12em;
  color: var(--color-muted);
  margin-top: 2.8rem;
  display: inline-flex;
  justify-content: center;
}

.section__subtitle img {
  height: 2.2rem;
  width: auto;
  margin: 0 auto;
}

.section__subtitle--en {
  font-family: var(--font-en);
  color: var(--color-accent);
  letter-spacing: 0.2em;
  font-weight: 600;
}

.section__subtitle--en img {
  height: clamp(1.6rem, 1.8vw, 2rem);
}

.section__desc {
  margin-top: 2.4rem;
}

.section__desc p {
  font-size: 1.8rem;
  line-height: 1.777;
  letter-spacing: 0.05em;
}

/* ---------- Buttons ---------- */
.btn-wrap {
  position: relative;
  text-align: center;
  margin-top: 5.6rem;
  z-index: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  min-width: 24rem;
  padding: 1.4rem 3.2rem;
  border-radius: 999px;
  font-size: 2.2rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  transition: opacity .2s ease, transform .2s ease;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-text-invert);
}

.btn--primary:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.btn__arrow {
  display: inline-block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0.5em 0 0.5em 0.8em;
  border-color: transparent transparent transparent currentColor;
  vertical-align: middle;
  font-size: 2.2rem;
  line-height: 0;
}

/* ---------- Scroll-in fade up ---------- */
.js-fadeup {
  opacity: 0;
  transform: translateY(2rem);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.js-fadeup.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .js-fadeup {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* ---------- Responsive line-break utilities ---------- */
.br-sp {
  display: none;
}

.br-pc {
  display: inline;
}

@media (max-width: 768px) {
  .br-sp {
    display: inline;
  }

  .br-pc {
    display: none;
  }
}

/* Header / Global nav → moved to common.css */

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  height: 850px;
  padding-top: var(--header-h);
  color: var(--color-text-invert);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(180deg, #0b59b6 0%, #08305e 100%);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

/* ---------- Background wrappers ---------- */
.bg-wrap {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.bg-wrap01 {
  position: relative;
  margin-top: -16rem;
  background-image: url("../images/bg_movie.webp");
}

/* ==========================================================================
   Section: Opening
   ========================================================================== */
.section--opening {
  padding-top: 0;
  color: var(--color-text-invert);
  text-align: center;
}

.opening__inner {
  max-width: 72rem;
  margin: 0 auto;
}

.opening__100th {
  position: relative;
  top: -4rem;
}

.opening__100th img {
  height: 15.7rem;
  width: auto;
  margin: 0 auto 0 17rem;
}

.opening__lead {
  margin-top: 4.2rem;
}

.opening__message {
  margin-top: 6.4rem;
  font-size: 2.1rem;
  line-height: 2;
}

/* ==========================================================================
   Section: Movie
   ========================================================================== */
.section--movie {
  color: var(--color-text-invert);
  padding-bottom: 0;
}

.section--movie .section__subtitle {
  color: rgba(255, 255, 255, 0.9);
}

.movie__player {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 82rem;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #c9d1d9;
}

.movie__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url("../images/img_movie.webp") center / cover no-repeat;
  cursor: pointer;
}

.movie__play-btn {
  width: 10.2rem;
  height: 10.2rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease;
}

.movie__play-btn:hover {
  transform: scale(1.05);
}

.movie__play-btn img {
  width: 100%;
  height: 100%;
}

.movie__caption {
  text-align: center;
  margin-top: 2.4rem;
  font-size: 1.4rem;
  color: #1255a2;
}

/* Movie Modal */
.movie-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.movie-modal.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0s linear 0s;
}

.movie-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  cursor: pointer;
}

.movie-modal__inner {
  position: relative;
  width: min(92vw, 120rem, calc((100vh - 14rem) * 16 / 9));
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-md);
}

.movie-modal__frame {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.movie-modal__frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.movie-modal__close {
  position: absolute;
  top: -6rem;
  right: 0;
  width: 4.8rem;
  height: 4.8rem;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  z-index: 10;
}

.movie-modal__close span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4rem;
  height: 2px;
  background: #fff;
  transform-origin: center;
}

.movie-modal__close span:nth-child(1) {
  transform: translate(-50%, -50%) rotate(45deg);
}

.movie-modal__close span:nth-child(2) {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.movie-modal__close:hover span {
  opacity: 0.7;
}

@media (max-width: 768px) {
  .movie-modal__inner {
    width: min(92vw, calc((100vh - 10rem) * 16 / 9));
  }

  .movie-modal__close {
    top: -4.4rem;
    right: 0;
    width: 3.6rem;
    height: 3.6rem;
  }

  .movie-modal__close span {
    width: 3.2rem;
  }
}

/* ==========================================================================
   Section: Top Message
   ========================================================================== */
.section--top-message {
  background: url("../images/bg_topmessage.webp") 100% no-repeat;
  background-size: 240rem;
  background-position: 50%;
  color: var(--color-text-invert);
  padding-top: 34.7rem;
  padding-bottom: 24rem;
}

.section--top-message .section__subtitle {
  color: rgba(255, 255, 255, 0.9);
}

.top-message__main {
  position: relative;
  max-width: 110rem;
  margin: 0 auto;
}

.top-message__profile01,
.top-message__profile02 {
  position: absolute;
  z-index: 1;
}

.top-message__profile01 img,
.top-message__profile02 img {
  width: 14.8rem;
  height: auto;
  display: block;
}

.top-message__profile01 {
  top: -4.8rem;
  left: -4.8rem;
}

.top-message__profile02 {
  bottom: -4.8rem;
  right: -4.8rem;
}

.top-message__link {
  display: none;
}

.top-message__figure {
  position: relative;
  max-width: 110rem;
  margin: 0 auto;
  overflow: hidden;
  background: #c9d1d9;
  aspect-ratio: 1110 / 510;
}

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

.top-message__badge,
.talk__badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--color-primary-dark);
  color: #fff;
  padding: 0.8rem 2.4rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1.8rem;
  letter-spacing: 0.1em;
}

.section--top-message .btn--primary {
  background: #fff;
  color: var(--color-primary);
}

/* ==========================================================================
   Section: History
   ========================================================================== */
.section--history {
  background: url("../images/bg_history.webp") no-repeat;
  background-size: 260rem;
  background-position: 50%;
  color: var(--color-text-invert);
  padding-top: 24rem;
  margin-top: -29rem;
  overflow: hidden;
}

.section--history .section__head {
  margin-bottom: 0;
}

.history_section__head {
  display: flex;
  align-items: flex-end;
  gap: 3.2rem;
}

.section--history .section__subtitle {
  color: rgba(255, 255, 255, 0.9);
}

.section--history .section__desc {
  text-align: left;
}

.history__timeline {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  height: 64.3rem;
  overflow: hidden;
  position: relative;
}

.history__timeline-track {
  display: flex;
  width: max-content;
  height: 100%;
  animation: history-scroll 60s linear infinite;
  -webkit-animation: history-scroll 60s linear infinite;
  will-change: transform;
}

.history__timeline-img {
  height: 100%;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.history__timeline-img+.history__timeline-img {
  position: relative;
  top: -0.1rem;
  left: -0.2rem;
}

@keyframes history-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@-webkit-keyframes history-scroll {
  from {
    -webkit-transform: translate3d(0, 0, 0);
  }

  to {
    -webkit-transform: translate3d(-50%, 0, 0);
  }
}

.section--history .btn-wrap {
  margin-top: 0;
}

.section--history .btn--primary {
  background: #fff;
  color: var(--color-primary-dark);
}

/* ==========================================================================
   Section: Discover Odake
   ========================================================================== */
.section--discover {
  background: var(--color-primary-light);
  padding-block: 0;
  overflow: hidden;
}

.discover__inner {
  position: relative;
  display: flex;
  width: 100%;
  margin: 0;
}

.discover__hotspots {
  position: relative;
  width: 102.6rem;
  height: 89.8rem;
  inset: 0;
}

.discover__illust {
  width: 100%;
  height: 100%;
  display: block;
  margin: 0;
  pointer-events: none;
}

.discover__lists {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.discover__hotspot {
  position: absolute;
  width: 6rem;
  height: 6rem;
  background: transparent;
  border: none;
  padding: 0;
  opacity: 0;
  transform: scale(0);
  transform-origin: center center;
  transition:
    opacity 0.35s ease-out,
    transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.discover__hotspot::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url(../images/ico_discover.svg);
  background-size: 100%;
  background-repeat: no-repeat;
  transform: scale(1);
  transform-origin: center center;
  transition: transform 0.2s ease;
  pointer-events: none;
}

.discover__hotspot:nth-child(1) {
  transition-delay: 0s;
}

.discover__hotspot:nth-child(2) {
  transition-delay: 0.12s;
}

.discover__hotspot:nth-child(3) {
  transition-delay: 0.24s;
}

.discover__hotspot:nth-child(4) {
  transition-delay: 0.36s;
}

.discover__hotspot:nth-child(5) {
  transition-delay: 0.48s;
}

.discover__hotspot:nth-child(6) {
  transition-delay: 0.60s;
}

.discover__hotspot:nth-child(7) {
  transition-delay: 0.72s;
}

.discover__hotspot:nth-child(8) {
  transition-delay: 0.84s;
}

.discover__hotspot:nth-child(9) {
  transition-delay: 0.96s;
}

.discover__hotspot:nth-child(10) {
  transition-delay: 1.08s;
}

.discover__hotspot:nth-child(11) {
  transition-delay: 1.1s;
}

.discover__hotspot:nth-child(12) {
  transition-delay: 1.12s;
}

.discover__lists.is-visible .discover__hotspot {
  opacity: 1;
  transform: scale(1);
}

.discover__lists.is-visible .discover__hotspot:hover::before {
  transform: scale(1.1);
}

@media (prefers-reduced-motion: reduce) {
  .discover__hotspot {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

.discover__hotspot::after {
  content: "";
  position: absolute;
  top: 5rem;
  left: 5rem;
  width: 2.35rem;
  height: 0.3rem;
  background: #0e0a6d;
  transform-origin: 0 50%;
  transform: rotate(45deg);
}

.discover__hotspot.spot02::after,
.discover__hotspot.spot04::after,
.discover__hotspot.spot07::after,
.discover__hotspot.spot08::after,
.discover__hotspot.spot11::after,
.discover__hotspot.spot12::after {
  top: 5.1rem;
  left: 1.2rem;
  transform: rotate(135deg);
}

.discover__hotspot.spot01 {
  top: 70.1%;
  left: 46.9%;
}

.discover__hotspot.spot01::after {
}

.discover__hotspot.spot02 {
  top: 47.9%;
  left: 47.1%;
}
.discover__hotspot.spot02::after {
}

.discover__hotspot.spot03 {
  top: 52.5%;
  left: 63.6%;
}

.discover__hotspot.spot04 {
  top: 8.8%;
  left: 45.5%;
}

.discover__hotspot.spot05 {
  top: 27%;
  left: 22%;
}

.discover__hotspot.spot06 {
  top: 64.2%;
  left: 34.9%;
}

.discover__hotspot.spot07 {
  top: 54.1%;
  left: 51.5%;
}
.discover__hotspot.spot07::after {
}

.discover__hotspot.spot08 {
  top: 68%;
  left: 57%;
}

.discover__hotspot.spot09 {
  top: 47.8%;
  left: 25.5%;
}

.discover__hotspot.spot10 {
  top: 24.8%;
  left: 56%;
}

.discover__hotspot.spot11 {
  top: 51.7%;
  left: 73%;
}

.discover__hotspot.spot12 {
  top: 52%;
  left: 86.7%;
}

/* Overlay heading (right side) */
.discover__contents {
  flex: 1;
  padding: 8.8rem 5.6rem 0;
  position: relative;
}

.discover__head {
  z-index: 2;
  text-align: left;
}

.discover__subtitle img {
  height: 1.7rem;
  width: auto;
  display: block;
}

.discover__title {
  margin-top: 2.8rem;
  margin-bottom: 4.8rem;
  color: var(--color-primary-dark);
}

.discover__title img {
  width: 39.6rem;
  height: auto;
  display: block;
}

/* SP のみ表示（PC はレイアウト干渉を避けるため非表示） */
.discover__desc {
  display: block;
  font-weight: 700;
  color: #1b196c;
  text-align: left;
  font-size: 1.7rem;
  line-height: 1.777;
  letter-spacing: 0.05em;
  transition: opacity 0.3s ease;
}

.discover__badge {
  display: block;
  position: absolute;
  pointer-events: none;
  z-index: 4;

  right: -29.3rem;
  bottom: 16.4rem;
  width: 23.7rem;
  height: 23.7rem;
  transition: opacity 0.3s ease;
}

.discover__inner.is-modal-open .discover__desc,
.discover__inner.is-modal-open .discover__badge {
  opacity: 0;
  pointer-events: none;
}

.discover__badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Inline card (right side overlay) */
.discover__modals {
  display: grid;
  position: absolute;
  top: 31.8rem;
  left: 5.6rem;
  right: 5.6rem;
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.discover__modals.is-open {
  opacity: 1;
  pointer-events: auto;
}

.discover__modals>.discover__modal {
  grid-column: 1;
  grid-row: 1;
}

.discover__modal {
  z-index: 2;
  width: 40rem;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0s linear 0.3s;
}

.discover__modal.is-open {
  opacity: 1;
  visibility: visible;
  z-index: 3;
  transition:
    opacity 0.3s ease,
    visibility 0s linear 0s;
}

.discover__modal-inner {
  position: relative;
  background: #fff;
  border-radius: 0.4rem;
  padding: 1.6rem 5rem 3.2rem;
  box-shadow: 0 0.4rem 1.6rem rgba(8, 48, 94, 0.08);
}

.discover__modal-label {
  color: var(--color-primary-dark);
  font-size: 1.6rem;
  font-family: var(--font-ja-noto);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
  margin: 0 0 0.8rem;
}

.discover__modal-close {
  position: absolute;
  top: 1.6rem;
  right: 1.4rem;
  width: 2.4rem;
  height: 2.4rem;
  background: transparent;
  border: none;
  padding: 0;
  font-size: 0;
  color: transparent;
  line-height: 0;
  cursor: pointer;
}

.discover__modal-close::before,
.discover__modal-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3.2rem;
  height: 2px;
  background: var(--color-primary-dark);
  transform-origin: center;
}

.discover__modal-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.discover__modal-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.discover__modal-close:hover::before,
.discover__modal-close:hover::after {
  opacity: 0.7;
}

.discover__modal-title {
  text-align: center;
  font-size: 3.2rem;
  font-weight: 700;
  font-family: var(--font-ja-noto);
  line-height: 1.16;
  color: var(--color-primary-dark);
  margin-bottom: 2.4rem;
  margin-inline: -4rem;
  letter-spacing: 0.04em;
}

.discover__modal-figure {
  position: relative;
  margin: 0 0 2.4rem;
  overflow: visible;
}

.discover__modal-viewport {
  overflow: hidden;
}

.discover__modal-track {
  display: flex;
  transition: transform 0.4s ease;
  will-change: transform;
  gap: 1px;
}

.discover__modal-slide {
  flex: 0 0 100%;
  min-width: 0;
}

.discover__modal-figure img {
  width: 100%;
  height: auto;
  display: block;
}

.discover__modal-prev,
.discover__modal-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.8rem;
  height: 2.8rem;
  background: transparent;
  border: none;
  padding: 0;
  font-size: 0;
  color: transparent;
  line-height: 0;
  cursor: pointer;
}

.discover__modal-prev::before,
.discover__modal-next::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2.4rem;
  height: 2.4rem;
  border-top: 2px solid var(--color-primary-dark);
  border-right: 2px solid var(--color-primary-dark);
}

.discover__modal-prev::before {
  transform: translate(0, -50%) rotate(-135deg);
}

.discover__modal-next::before {
  transform: translate(0, -50%) rotate(45deg);
}

.discover__modal-prev {
  left: -4.4rem;
}

.discover__modal-next {
  right: -2rem;
}

.discover__modal-prev:hover::before,
.discover__modal-next:hover::before {
  opacity: 0.7;
}

.discover__modal-pagination {
  position: absolute;
  left: 50%;
  bottom: 0.8rem;
  transform: translateX(-50%);
  display: flex;
  gap: 1.3rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.discover__modal-pagination-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: #898989;
  opacity: 0.6;
}

.discover__modal-pagination-dot.is-active {
  opacity: 0.8;
}

.discover__modal-text {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 2;
  color: var(--color-primary-dark);
  letter-spacing: 0.03em;
}

/* ==========================================================================
   Section: Talk Session
   ========================================================================== */
.section--talk {
  position: relative;
  background: url("../images/bg_talk_main.webp");
  background-size: 240rem;
  background-position: center;
  background-repeat: no-repeat;
  padding-bottom: 7.2rem;
}

.section--talk::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 39.5rem;
  background: url("../images/bg_talk_top.webp");
  background-size: 240rem;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 5;
}

.section--talk::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 26rem;
  background: url(../images/bg_talk_bottom.webp);
  background-size: 234rem;
  background-position: center 100%;
  background-repeat: no-repeat;
  z-index: 5;
}

.section--talk .section__head {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0;
  z-index: 10;
}

.section--talk .talk_section__head {
  display: flex;
  justify-content: flex-end;
  align-items: end;
  gap: 2.8rem;
}

.section--talk .section__title--ja img {
  height: 5.8rem;
}

.section--talk .section__desc {
  color: #ffffff;
  font-weight: 700;
  margin-top: 3.2rem;
  text-align: right;
}

.talk__figure {
  position: relative;
  width: 100%;
  margin: 2.4rem auto 0;
  overflow: hidden;
  aspect-ratio: 1280 / 500;
  background: #c9d1d9;
}

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

.section--talk .btn-wrap {
  position: relative;
  margin-top: 7.7rem;
  z-index: 10;
}

.section--talk .btn--primary {
  background: #fff;
  color: #4eb9dc;
}

/* Footer → moved to common.css */

/* ==========================================================================
   Sub-page layout (history.html / talk.html)
   ========================================================================== */
.page-hero {
  padding: calc(var(--header-h) + 8rem) 2.4rem 8rem;
  background: var(--color-primary);
  color: var(--color-text-invert);
  text-align: center;
}

.page-hero__title {
  font-family: var(--font-en);
  font-size: clamp(3.6rem, 5vw, 5.6rem);
  letter-spacing: 0.08em;
  font-weight: 700;
}

.page-hero__title--ja {
  font-family: var(--font-ja);
  font-size: clamp(2.8rem, 4vw, 4rem);
}

.page-hero__subtitle {
  margin-top: 0.8rem;
  font-size: 1.4rem;
  letter-spacing: 0.12em;
  opacity: 0.8;
}

/* History timeline */
.timeline {
  max-width: 78rem;
  margin: 0 auto;
  padding: 0;
}

.timeline__item {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: 3.2rem;
  padding: 3.2rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.timeline__year {
  font-family: var(--font-en);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--color-primary);
}

.timeline__body h3 {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
  color: var(--color-primary-dark);
}

.timeline__body p {
  font-size: 1.5rem;
  color: var(--color-text);
}

/* Talk layout */
.talk-intro {
  max-width: 78rem;
  margin: 0 auto 4.8rem;
  text-align: center;
  font-size: 1.5rem;
  line-height: 2;
}

.talk-block {
  max-width: 86rem;
  margin: 0 auto 6.4rem;
}

.talk-block__head {
  margin-bottom: 2.4rem;
}

.talk-block__num {
  font-family: var(--font-en);
  color: var(--color-accent);
  font-weight: 700;
  letter-spacing: 0.1em;
}

.talk-block__title {
  font-size: 2.2rem;
  color: var(--color-primary-dark);
  margin-top: 0.4rem;
}

.talk-dialog {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}

.talk-dialog__row {
  display: grid;
  grid-template-columns: 9.6rem 1fr;
  gap: 1.6rem;
  align-items: start;
}

.talk-dialog__speaker {
  text-align: center;
  font-size: 1.2rem;
}

.talk-dialog__avatar {
  width: 7.2rem;
  height: 7.2rem;
  border-radius: 50%;
  background: #d9e6f5;
  margin: 0 auto 0.6rem;
  overflow: hidden;
}

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

.talk-dialog__text {
  background: var(--color-bg-soft);
  border-radius: var(--radius-md);
  padding: 1.6rem 2rem;
  font-size: 1.5rem;
  line-height: 1.9;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
  :root {
    --header-h: 12.4rem;
  }

  .section {
    padding: 6.4rem 2rem;
  }

  .section__head {
    margin-bottom: 3.2rem;
  }

  /* ---------- Buttons ---------- */
  .btn__arrow {
    font-size: 3rem;
  }

  /* ---------- Hero ---------- */
  .hero {
    height: 71rem;
    padding-top: var(--header-h);
  }

  .hero__bg {
    position: absolute;
    inset: 0;
    top: 0;
    z-index: 0;
    padding-top: 7rem;
  }

  /* ---------- bg wrapper ---------- */
  .bg-wrap01 {
    margin-top: -4.3rem;
    background-image: url(../images/bg_movie_sp.webp);
  }

  /* ---------- Opening ---------- */
  .section--opening {
    padding: 0 4rem 18.4rem;
  }

  .opening__inner {
    max-width: none;
  }

  .opening__100th {
    top: -2rem;
  }

  .opening__100th img {
    height: 14.7rem;
    margin: 0 auto 0 14rem;
  }

  .opening__lead {
    margin-top: 5.4rem;
  }

  .opening__lead img {
    width: 65.2rem;
    height: auto;
    margin: 0 auto;
  }

  .opening__message {
    margin-top: 6rem;
    font-size: 3.2rem;
    font-weight: 500;
    line-height: 1.75;
  }

  /* ---------- Movie ---------- */
  .section--movie {
    padding: 0 4rem;
  }

  .section--movie .section__head {
    padding-inline: 0;
    margin-bottom: 4rem;
  }

  .section--movie .section__title img {
    height: 6rem;
  }

  .section--movie .section__subtitle {
    margin-top: 4rem;
  }

  .section--movie .section__subtitle img {
    height: 3.7rem;
  }

  .section--movie .section__desc {
    margin-top: 3.6rem;
  }

  .section--movie .section__desc p {
    font-size: 3.2rem;
    font-weight: 500;
    line-height: 1.75;
    letter-spacing: 0.02em;
  }

  .movie__player,
  .top-message__figure,
  .talk__figure {
    aspect-ratio: 16 / 10;
  }

  .movie__player {
    max-width: none;
    margin: 0 -4rem;
  }

  .movie__play-btn {
    width: 8rem;
    height: 8rem;
  }

  .movie__caption {
    margin-top: 4rem;
    padding-bottom: 2rem;
    font-size: 2.4rem;
    font-weight: 500;
  }

  /* ---------- Top Message ---------- */
  .section--top-message {
    padding: 18rem 4rem 21.4rem;
    background-image: url(../images/bg_topmessage_sp.webp);
    background-size: 100%;
    background-position: top;
  }

  .section--top-message .section__head {
    padding-inline: 0;
    margin-bottom: 4rem;
  }

  .section--top-message .section__title img {
    height: 6rem;
  }

  .section--top-message .section__subtitle {
    margin-top: 3rem;
  }

  .section--top-message .section__subtitle img {
    height: 3.6rem;
  }

  .section--top-message .section__desc {
    margin-top: 4rem;
  }

  .section--top-message .section__desc p {
    font-size: 3.2rem;
    font-weight: 500;
    line-height: 1.75;
    letter-spacing: 0.04em;
    text-align: left;
  }

  .top-message__main {
    max-width: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "figure figure"
      "p1 p2";
    gap: 0;
    margin-inline: -4rem;
  }

  .top-message__figure {
    grid-area: figure;
    max-width: none;
    width: 100%;
    aspect-ratio: 750 / 400;
  }

  .top-message__profile01,
  .top-message__profile02 {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
  }

  .top-message__profile01 img,
  .top-message__profile02 img {
    width: 100%;
    height: auto;
  }

  .top-message__profile01 {
    grid-area: p1;
  }

  .top-message__profile02 {
    grid-area: p2;
  }

  .top-message__link {
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    z-index: 2;
  }

  .top-message__link--left {
    left: 0;
  }

  .top-message__link--right {
    right: 0;
  }

  .section--top-message .btn-wrap {
    margin-top: 6rem;
  }

  .section--top-message .btn {
    min-width: 28rem;
    padding: 0.4rem 2rem;
    font-size: 2.4rem;
    font-weight: 700;
    justify-content: center;
    align-items: center;
  }

  /* ---------- History ---------- */
  .section--history {
    margin-top: 0;
    padding: 18rem 4rem 18rem;
    background-image: url(../images/bg_history_sp.webp);
    background-size: cover;
    background-position: bottom;
    margin-top: -20rem;
  }

  .section--history .section__head {
    padding-inline: 0;
  }

  .history_section__head {
    display: block;
    text-align: center;
    gap: 0;
  }

  .section--history .section__title img {
    height: 6rem;
  }

  .section--history .section__subtitle {
    margin-top: 3.2rem;
  }

  .section--history .section__subtitle img {
    height: 3.6rem;
  }

  .section--history .section__desc {
    margin-top: 3.6rem;
  }

  .section--history .section__desc p {
    font-size: 3.2rem;
    font-weight: 500;
    line-height: 1.75;
    letter-spacing: 0.05em;
  }

  .section--history .section__desc p+p {
    margin-top: 0;
  }

  .history__timeline {
    height: 51.4rem;
    margin-top: -2rem;
  }

  .section--history .btn-wrap {
    margin-top: -4rem;
  }

  .section--history .btn {
    min-width: 28rem;
    padding: 0.4rem 2rem;
    font-size: 2.4rem;
    font-weight: 700;
    justify-content: center;
    align-items: center;
  }

  /* ---------- Discover (SP) ---------- */
  .section--discover {
    padding: 7.5rem 0 6rem;
    overflow: hidden;
  }

  .discover__inner {
    display: flex;
    flex-direction: column;
    gap: 4rem;
  }

  .discover__contents {
    order: 1;
    padding: 0 4rem;
    flex: none;
  }

  .discover__hotspots {
    order: 2;
    width: 100%;
    height: auto;
    aspect-ratio: 750 / 808;
    position: relative;
  }

  .discover__illust {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(calc(-50% - 7rem));
    height: 100%;
    width: calc(100% * 1092.68 / 898 * 808 / 750);
    max-width: none;
    clip-path: inset(0 4.75% 0 18.99%);
  }

  /* Shift hotspots layer -7rem to keep spots aligned with shifted illust */
  .discover__lists {
    transform: translateX(-7rem);
  }

  /* Spot positions remapped for SP crop (750 × 808 view of 983.4 × 808 image) */
  .discover__hotspot.spot01 {
    top: 69%;
    left: 45.3%;
  }

  .discover__hotspot.spot02 {
    top: 46.8%;
    left: 46%;
  }

  .discover__hotspot.spot03 {
    top: 52.1%;
    left: 67.7%;
  }

  .discover__hotspot.spot04 {
    top: 8%;
    left: 43.9%;
  }

  .discover__hotspot.spot05 {
    top: 26.6%;
    left: 13.1%;
  }

  .discover__hotspot.spot06 {
    top: 63%;
    left: 29.7%;
  }

  .discover__hotspot.spot07 {
    top: 53%;
    left: 52%;
  }

  .discover__hotspot.spot08 {
    top: 67%;
    left: 59%;
  }

  .discover__hotspot.spot09 {
    top: 47.4%;
    left: 17.7%;
  }

  .discover__hotspot.spot10 {
    top: 24.4%;
    left: 57.7%;
  }

  .discover__hotspot.spot11 {
    top: 50.7%;
    left: 80%;
  }

  .discover__hotspot.spot12 {
    top: 51.6%;
    left: 97.9%;
  }

  .discover__head {
    text-align: center;
  }

  .discover__subtitle {
    display: inline-flex;
    justify-content: center;
    width: 100%;
  }

  .discover__subtitle img {
    height: 2.1rem;
    margin: 0 auto;
  }

  .discover__title {
    margin-top: 2.8rem;
    margin-bottom: 3.2rem;
    text-align: center;
  }

  .discover__title img {
    width: 39.2rem;
    margin: 0 auto;
  }

  .discover__desc {
    font-size: 3.2rem;
    line-height: 1.75;
  }

  /* Badge (magnifying glass CTA) */
  .discover__badge {
    right: 3.2rem;
    bottom: -3.6rem;
    width: 21.7rem;
    height: 21.7rem;
  }

  /* SP ではモーダル展開時も desc / badge を表示し続ける */
  .discover__inner.is-modal-open .discover__desc,
  .discover__inner.is-modal-open .discover__badge {
    opacity: 1;
    pointer-events: auto;
  }

  /* Modal: centered overlay */
  .discover__modals {
    display: block;
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 300;
  }

  .discover__modal {
    position: fixed;
    inset: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    pointer-events: none;
  }

  .discover__modal.is-open {
    pointer-events: auto;
    background-color: rgb(0 74 153 / 50%);
  }

  .discover__modal-inner {
    width: 100%;
    max-width: 68rem;
    padding: 4rem 8.2rem 5.6rem;
    border-radius: 1rem;
  }

  .discover__modal-label {
    font-size: 2.6rem;
    margin: 0 0 3.2rem;
  }

  .discover__modal-close {
    top: 2.4rem;
    right: 2.4rem;
    width: 4rem;
    height: 4rem;
  }

  .discover__modal-close::before,
  .discover__modal-close::after {
    width: 4.8rem;
    height: 4px;
  }

  .discover__modal-title {
    font-size: 5.4rem;
    margin-inline: 0;
    margin-bottom: 5.4rem;
  }

  .discover__modal-prev,
  .discover__modal-next {
    width: 4.8rem;
    height: 4.8rem;
  }

  .discover__modal-prev::before,
  .discover__modal-next::before {
    width: 3.6rem;
    height: 3.6rem;
    border-top-width: 2px;
    border-right-width: 2px;
  }

  .discover__modal-prev {
    left: -7rem;
  }

  .discover__modal-next {
    right: -3.4rem;
  }

  .discover__modal-pagination {
    bottom: 1.2rem;
    gap: 2rem;
  }

  .discover__modal-pagination-dot {
    width: 1.2rem;
    height: 1.2rem;
  }

  .discover__modal-text {
    font-size: 2.6rem;
    line-height: 2;
  }

  /* ---------- Talk Session (index.html) ---------- */
  .section--talk {
    padding: 5.6rem 4rem 8rem;
    background-size: cover;
    background-position: center;
  }

  .section--talk::before {
    height: 57rem;
    background-image: url(../images/bg_talk_top_sp.webp);
    background-size: 104%;
    background-position: top;
    z-index: 1;
  }

  .section--talk::after {
    height: 25.1rem;
    background-image: url(../images/bg_talk_bottom_sp.webp);
    background-size: cover;
    background-position: center bottom;
  }

  .section--talk .section__head {
    max-width: none;
    padding: 0;
    margin-bottom: 3.5rem;
  }

  .section--talk .talk_section__head {
    display: block;
    text-align: center;
    gap: 0;
  }

  .section--talk .section__subtitle {
    display: inline-flex;
    justify-content: center;
    width: 100%;
    margin-top: 0;
  }

  .section--talk .section__subtitle img {
    height: 2.1rem;
    margin: 0 auto;
  }

  .section--talk .section__title--ja {
    margin-top: 3.2rem;
  }

  .section--talk .section__title--ja img {
    height: 5.8rem;
    margin: 0 auto;
  }

  .section--talk .section__desc {
    margin-top: 3.6rem;
    text-align: left;
  }

  .section--talk .section__desc p {
    font-size: 3.2rem;
    font-weight: 500;
    line-height: 1.75;
    letter-spacing: 0.04em;
  }

  .section--talk .section__desc p+p {
    margin-top: 0;
  }

  .section--talk .section__inner {
    max-width: none;
    margin: -1rem -4rem 8rem;
  }

  .talk__figure {
    max-width: none;
    width: 100%;
    margin: 0;
    aspect-ratio: 750 / 304;
  }

  .section--talk .btn-wrap {
    margin-top: 8rem;
  }

  .section--talk .btn {
    min-width: 28rem;
    padding: 0.4rem 2rem;
    font-size: 2.4rem;
    font-weight: 700;
    justify-content: center;
    align-items: center;
  }

  .timeline__item {
    grid-template-columns: 8rem 1fr;
    gap: 1.6rem;
  }

  .timeline__year {
    font-size: 2.2rem;
  }

  .talk-dialog__row {
    grid-template-columns: 7.2rem 1fr;
  }

  .talk-dialog__avatar {
    width: 5.6rem;
    height: 5.6rem;
  }
}

@media (max-width: 480px) {
  .btn {
    min-width: 20rem;
    padding: 1.2rem 2.4rem;
    font-size: 1.4rem;
  }
}

/* ==========================================================================
   TOP MESSAGE modal
   ========================================================================== */
.topmsg-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 10rem;
  background: url("../images/bg_topmessage_modal.webp") center / cover no-repeat;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
  z-index: 300;
  pointer-events: none;
  overflow: hidden;
}

.topmsg-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.is-modal-open {
  overflow: hidden;
}

.topmsg-modal__viewport {
  position: relative;
  width: 128rem;
  height: 80rem;
  overflow: hidden;
  background: #d8e4f0;
  transform: scale(var(--topmsg-scale, 1));
  transform-origin: center center;
}

.topmsg-modal__track {
  display: flex;
  transition: transform .4s ease;
}

.topmsg-modal__slide {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: 4fr 5fr;
  gap: 6rem;
  padding: 7.2rem 12.8rem;
}

.topmsg-modal__left {
  display: flex;
  flex-direction: column;
}

.topmsg-modal__catchcopy img {
  height: 10.4rem;
}

.topmsg-modal__scrollbar {
  display: none;
}

.topmsg-modal__credit {
  color: var(--color-primary-dark);
  margin-top: 3.6rem;
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  line-height: 1;
}

.topmsg-modal__credit small {
  font-size: 1.4rem;
  font-weight: 600;
}

.topmsg-modal__credit span {
  font-size: 2.4rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.topmsg-modal__figure {
  margin-top: 4rem;
  width: 38rem;
  aspect-ratio: 450 / 436;
  background: #c8d4e0;
  overflow: hidden;
}

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

.topmsg-modal__right {
  color: var(--color-primary-dark);
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 2;
  text-align: justify;
  padding-top: 0.6rem;
}

.topmsg-modal__right p+p {
  margin-top: 4rem;
}

/* Close button */
.topmsg-modal__close {
  position: absolute;
  top: 3.2rem;
  right: 3.2rem;
  width: 4rem;
  height: 4rem;
  cursor: pointer;
  z-index: 2;
}

.topmsg-modal__close span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3.6rem;
  height: 2px;
  background: var(--color-primary-dark);
}

.topmsg-modal__close span:nth-child(1) {
  transform: translate(-50%, -50%) rotate(45deg);
}

.topmsg-modal__close span:nth-child(2) {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* Nav arrows (outside the panel) */
.topmsg-modal__nav {
  position: absolute;
  top: 50%;
  width: 4rem;
  height: 4rem;
  cursor: pointer;
  z-index: 2;
  transform: translateY(-50%);
  transition: opacity .2s ease;
}

.topmsg-modal__nav::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.6rem;
  height: 1.6rem;
  border-top: 2px solid #ffffff;
  border-right: 2px solid #ffffff;
}

.topmsg-modal__nav--prev {
  left: 3rem;
}

.topmsg-modal__nav--prev::before {
  transform: translate(-30%, -50%) rotate(-135deg);
}

.topmsg-modal__nav--next {
  right: 3rem;
}

.topmsg-modal__nav--next::before {
  transform: translate(-70%, -50%) rotate(45deg);
}

.topmsg-modal__nav:hover {
  opacity: 0.7;
}

.topmsg-modal__nav[hidden] {
  display: none;
}

/* Pagination */
.topmsg-modal__pagination {
  position: absolute;
  bottom: 3.2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 3rem;
  z-index: 2;
}

.topmsg-modal__pagination li {
  width: 1.2rem;
  height: 1.2rem;
  background-color: #959595;
  border-radius: 50%;
  cursor: pointer;
  transition: background .2s ease;
}

.topmsg-modal__pagination li.is-active {
  background: var(--color-primary-dark);
}

/* ---------- Top message modal: 1680px 以降は固定サイズ ---------- */
@media (min-width: 1680px) {
  .topmsg-modal {
    padding: 40px 100px;
  }

  .topmsg-modal__viewport {
    width: 1280px;
    height: 800px;
  }

  .topmsg-modal__slide {
    gap: 60px;
    padding: 72px 128px;
  }

  .topmsg-modal__catchcopy img {
    height: 104px;
  }

  .topmsg-modal__credit {
    margin-top: 36px;
    gap: 12px;
  }

  .topmsg-modal__credit small {
    font-size: 14px;
  }

  .topmsg-modal__credit span {
    font-size: 24px;
  }

  .topmsg-modal__figure {
    margin-top: 40px;
    width: 380px;
  }

  .topmsg-modal__right {
    font-size: 18px;
    padding-top: 6px;
  }

  .topmsg-modal__right p+p {
    margin-top: 40px;
  }

  .topmsg-modal__close {
    top: 32px;
    right: 32px;
    width: 40px;
    height: 40px;
  }

  .topmsg-modal__close span {
    width: 36px;
  }

  .topmsg-modal__nav {
    width: 40px;
    height: 40px;
  }

  .topmsg-modal__nav::before {
    width: 16px;
    height: 16px;
  }

  .topmsg-modal__nav--prev {
    left: 30px;
  }

  .topmsg-modal__nav--next {
    right: 30px;
  }

  .topmsg-modal__pagination {
    bottom: 32px;
    gap: 30px;
  }

  .topmsg-modal__pagination li {
    width: 12px;
    height: 12px;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .topmsg-modal {
    display: block;
    padding: 0;
    background: #bdd7ed;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    touch-action: pan-y;
  }

  .topmsg-modal::-webkit-scrollbar {
    display: none;
  }

  .topmsg-modal__viewport {
    width: auto;
    height: auto;
    background: transparent;
    transform: none;
  }

  .topmsg-modal__slide {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 8rem 11rem 10rem 11rem;
    touch-action: pan-y;
  }

  .topmsg-modal__catchcopy img {
    height: auto;
    width: 58rem;
  }

  .topmsg-modal__credit {
    margin-top: 3rem;
    gap: 1.6rem;
    align-self: flex-end;
  }

  .topmsg-modal__credit small {
    font-size: 2.4rem;
  }

  .topmsg-modal__credit span {
    font-size: 3.6rem;
  }

  .topmsg-modal__figure {
    aspect-ratio: 549 / 394;
    margin-top: 4rem;
    width: 100%;
  }

  .topmsg-modal__right {
    margin-top: 4rem;
    font-size: 2.8rem;
    line-height: 1.8;
    padding-top: 0;
  }

  .topmsg-modal__right p+p {
    margin-top: 3rem;
  }

  .topmsg-modal__close {
    position: fixed;
    top: 4rem;
    right: 4rem;
    width: 5rem;
    height: 5rem;
  }

  .topmsg-modal__close span {
    width: 6rem;
    height: 4px;
  }

  .topmsg-modal__nav {
    position: fixed;
    top: 50%;
    width: 7.2rem;
    height: 7.2rem;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    z-index: 4;
    transform: translateY(-50%);
  }

  .topmsg-modal__nav::before {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2rem;
    height: 2rem;
    border-top: 0.4rem solid var(--color-primary-dark);
    border-right: 0.4rem solid var(--color-primary-dark);
  }

  .topmsg-modal__nav--prev {
    left: 2rem;
  }

  .topmsg-modal__nav--prev::before {
    transform: translate(-30%, -50%) rotate(-135deg);
  }

  .topmsg-modal__nav--next {
    right: 2rem;
  }

  .topmsg-modal__nav--next::before {
    transform: translate(-70%, -50%) rotate(45deg);
  }

  .topmsg-modal__nav[hidden] {
    display: none;
  }

  .topmsg-modal__pagination {
    display: none;
  }

  .topmsg-modal.is-open .topmsg-modal__scrollbar {
    display: none;
    position: fixed;
    top: 18rem;
    bottom: 4rem;
    right: 4.3rem;
    width: 2.4rem;
    background: transparent;
    z-index: 4;
    pointer-events: auto;
  }

  .topmsg-modal__scrollbar-thumb {
    position: absolute;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 999px;
    cursor: grab;
    touch-action: none;
  }

  .topmsg-modal__scrollbar-thumb:active {
    cursor: grabbing;
  }
}

/* ==========================================================================
   Custom always-visible scrollbar (SP only)
   ========================================================================== */
.page-scrollbar {
  display: none;
}

@media (max-width: 768px) {
  :root {
    --sb-w: 8px;
  }

  /* スクロールバー分の余白を確保（ヘッダー含む全コンテンツが内側に詰まる） */
  body {
    padding-right: var(--sb-w);
  }

  /* 固定要素はpaddingが効かないため個別に right を縮める */
  .site-header,
  .global-nav,
  .movie-modal,
  .topmsg-modal {
    right: var(--sb-w);
  }

  .discover__modal {
    right: var(--sb-w);
  }

  /* ネイティブスクロールバー非表示 */
  html {
    scrollbar-width: none;
  }
  html::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
  }
  .topmsg-modal {
    scrollbar-width: none;
  }
  .topmsg-modal::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
  }

  /* カスタムスクロールバー本体 */
  .page-scrollbar {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: var(--sb-w);
    background: #fff;
    z-index: 10000;
    pointer-events: none;
  }

  /* ハンバーガーメニュー展開中は非表示（スクロール不可のため） */
  body.is-nav-open .page-scrollbar,
  .page-scrollbar.is-hidden {
    display: none !important;
  }
  /* グロナビが is-open の間は body の page-scrollbar 兄弟を隠す（保険） */
  .global-nav.is-open ~ .page-scrollbar {
    display: none !important;
  }
  /* メニュー展開中はグロナビをフル幅に戻し、スクロールバー用の右余白を覆う */
  body.is-nav-open .global-nav {
    right: 0;
  }

  .page-scrollbar__thumb {
    position: absolute;
    left: 0;
    right: 0;
    background: var(--color-primary);
    border-radius: 999px;
    will-change: transform, height;
  }
}