@charset "utf-8";

/*
 * bullettrain 2026 特設ページ
 *
 * 目次（セクション番号で検索）
 * 01. 基本レイアウト
 * 02. PC 3カラムレイアウト
 * 03. キービジュアル
 * 04. ローディング
 * 05. アンカーナビゲーション
 * 06. コンテンツ背景
 * 07. 日付・期間画像
 * 08. 装飾ボックス
 * 09. コンテンツ画像・開閉エリア
 * 10. ボタン・汎用レイヤー
 * 11. セクション見出し
 * 12. バナー・施設一覧
 * 13. フッター・SNS・ページトップ
 * 14. SPレイアウト
 * 15. 状態表示・補助パーツ
 */

/* ==========================================================================
   01. 基本レイアウト
   ========================================================================== */

body {
  background: linear-gradient(to bottom, #2a28ad, #840089);
  background-attachment: fixed;
}
main {
  position: relative;
  width: 100%;
  max-width: 700px;
  padding: 0;
  margin: 0 auto;
  overflow: hidden;
}

.pcLayout {
  width: 100%;
}

.pcOnlyArea,
.pcAnchorArea {
  display: none;
}

@media screen and (min-width: 769px) {
  /* ------------------------------------------------------------------------
     02. PC 3カラムレイアウト
     左：pcOnlyArea / 中央：pcMainArea / 右：pcAnchorArea
     ------------------------------------------------------------------------ */

  /* PCヘッダー：施設ロゴ */
  #straykids hgroup {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: none;
    margin: 0 auto;
  }

  /* PC 3カラム：各カラムの幅・スクロール */
  .pcLayout {
    display: flex;
    width: 100%;
    height: auto;
    min-height: 100vh;
  }

  .pcOnlyArea {
    position: sticky;
    top: 0;
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 100vh;
    padding: 0 2%;
    overflow: hidden;
    isolation: isolate;
  }

  .pcMainArea {
    flex: 0 0 420px;
    width: 420px;
    min-width: 420px;
    height: auto;
    overflow-x: hidden;
    overflow-y: visible;
  }

  .pcMainArea .main {
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .pcAnchorArea {
    position: sticky;
    top: 0;
    z-index: 1001;
    display: block;
    /* PC切替直後だけ右カラムを縮め、余裕がある画面では360pxを維持する */
    flex: 0 0 30%;
    align-self: flex-start;
    width: 20%;
    min-width: 0;
    height: 100vh;
    overflow-y: auto;
  }

  .pcAnchorArea.navPanel {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
    pointer-events: auto;
    isolation: isolate;
    opacity: 1;
    transition: none;
    transform: none;
  }

  .pcAnchorArea .navBackdrop {
    display: none;
  }

  /* PC右カラム：ナビ項目の初期表示アニメーション */
  .pcAnchorArea.navPanel ul.nav li {
    opacity: 0;
    transform: translateY(22px);
  }

  /* pcSideTapes完了後、右ナビを上から順番に表示する */
  #bullettrain.is-intro-complete .pcAnchorArea.navPanel ul.nav li {
    animation: pcNavItemIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }

  #bullettrain.is-intro-complete .pcAnchorArea.navPanel ul.nav li:nth-child(1) {
    animation-delay: 0.2s;
  }

  #bullettrain.is-intro-complete .pcAnchorArea.navPanel ul.nav li:nth-child(2) {
    animation-delay: 0.28s;
  }

  #bullettrain.is-intro-complete .pcAnchorArea.navPanel ul.nav li:nth-child(3) {
    animation-delay: 0.36s;
  }

  #bullettrain.is-intro-complete .pcAnchorArea.navPanel ul.nav li:nth-child(4) {
    animation-delay: 0.44s;
  }

  #bullettrain.is-intro-complete .pcAnchorArea.navPanel ul.nav li:nth-child(5) {
    animation-delay: 0.52s;
  }

  #bullettrain.is-intro-complete .pcAnchorArea.navPanel ul.nav li:nth-child(6) {
    animation-delay: 0.6s;
  }

  #straykids .headerToggle {
    display: none;
  }
  .pcTit {
    width: 100%;
    max-width: 332px;
  }

  .pcSideTape {
    --tape-angle: 0deg;
    --tape-scale: 0;
    position: absolute;
    z-index: 0;
    display: block;
    width: 100%;
    visibility: hidden;
    background-repeat: repeat-x;
    background-position: left center;
    background-size: auto 100%;
    transform: rotate(var(--tape-angle)) scaleX(var(--tape-scale));
    will-change: transform;
  }

  .pcSideTapesLeft .pcSideTape {
    height: 4rem; /* 左側リボン4本の共通の太さ */
    transform-origin: right top;
  }

  /* 左側 1本目 左上 */
  .pcSideTapesLeft .pcSideTape:nth-child(1) {
    top: -35%;
    left: -30%;
    --tape-angle: -40deg;
  }

  /* 左側 2本目 右上 */
  .pcSideTapesLeft .pcSideTape:nth-child(2) {
    top: 12%;
    left: -5%;
    --tape-angle: 60deg;
  }

  /* 左側 3本目 左下 */
  .pcSideTapesLeft .pcSideTape:nth-child(3) {
    top: 65%;
    left: -90%;
    --tape-angle: 10deg;
  }

  /* 左側 4本目 右下 */
  .pcSideTapesLeft .pcSideTape:nth-child(4) {
    top: 90%;
    right: 15%;
    --tape-angle: -25deg;
  }

  /*
   * 右側リボンの縦逃がし量
   * ウィンドウ高さが基準(900px)より低いほど値が増える。
   * 2本目は下へ、3本目は上へこの分だけずらし、.navPanelInner のナビと重なるのを避ける。
   * 効き具合は 0.3（倍率）、逃がしすぎ防止は 120px（上限）で調整する。
   */
  .pcSideTapesRight {
    --tape-vshift: clamp(0px, calc((900px - 100vh) * 0.3), 120px);
  }

  .pcSideTapesRight .pcSideTape {
    height: 4rem; /* 右側リボン3本の共通の太さ */
    transform-origin: left top;
  }

  /* 右側 1本目 中 */
  .pcSideTapesRight .pcSideTape:nth-child(1) {
    right: -85%;
    bottom: 35%;
    --tape-angle: 15deg;
  }

  /* 右側 2本目 下（ウィンドウが低いほど下へ逃がす） */
  .pcSideTapesRight .pcSideTape:nth-child(2) {
    right: 10%;
    bottom: calc(-20% - var(--tape-vshift));
    --tape-angle: -45deg;
  }

  /* 右側 3本目 上（ウィンドウが低いほど上へ逃がす） */
  .pcSideTapesRight .pcSideTape:nth-child(3) {
    top: calc(5% - var(--tape-vshift));
    right: -65%;
    --tape-angle: -10deg;
  }

  /* GSAPが読み込めない場合のテープ表示アニメーション */
  #bullettrain.is-native-tapes-playing .pcSideTape {
    animation: pcSideTapeFallback 1.2s cubic-bezier(0.55, 0.055, 0.675, 0.19)
      both;
  }

  #bullettrain.is-native-tapes-playing
    .pcSideTapesLeft
    .pcSideTape:nth-child(2) {
    animation-delay: 0.08s;
  }
  #bullettrain.is-native-tapes-playing
    .pcSideTapesLeft
    .pcSideTape:nth-child(3) {
    animation-delay: 0.16s;
  }
  #bullettrain.is-native-tapes-playing
    .pcSideTapesLeft
    .pcSideTape:nth-child(4) {
    animation-delay: 0.24s;
  }
  #bullettrain.is-native-tapes-playing
    .pcSideTapesRight
    .pcSideTape:nth-child(1) {
    animation-delay: 0.4s;
  }
  #bullettrain.is-native-tapes-playing
    .pcSideTapesRight
    .pcSideTape:nth-child(2) {
    animation-delay: 0.48s;
  }
  #bullettrain.is-native-tapes-playing
    .pcSideTapesRight
    .pcSideTape:nth-child(3) {
    animation-delay: 0.56s;
  }

  @keyframes pcSideTapeFallback {
    from {
      clip-path: inset(0 100% 0 0);
    }
    to {
      clip-path: inset(0 0 0 0);
    }
  }
}

/* ==========================================================================
   03. キービジュアル
   ========================================================================== */

#kvArea {
  position: relative;
  z-index: 1000;
  width: 100%;
  margin: 0;
  background: #000;
}

/* --------------------------------------------------------------------------
   リボン：右から左へ流れる無限ループ

   --ribon03-duration : 1周の時間（小さいほど速い）
   .ribon03 の比率     : 横75 : 縦8

   継ぎ目をなくすため、HTMLでは同じ画像を2枚連結しています。
   -------------------------------------------------------------------------- */
.ribon03 {
  --ribon03-duration: 30s;

  position: relative;
  z-index: 2;
  width: 100%;
  aspect-ratio: 75 / 8;
  overflow: hidden;
  line-height: 0;
}

.ribon03Track {
  display: flex;
  width: max-content;
  height: 100%;
  animation: ribonSlideLeft var(--ribon03-duration) linear infinite;
  will-change: transform;
}

.ribon03Item {
  display: block;
  flex: 0 0 auto;
  height: 100%;
}

.ribon03Item img {
  display: block;
  width: auto;
  max-width: none;
  height: 100%;
}
.ribon05 {
  --ribon05-duration: 30s;

  position: relative;
  z-index: 2;
  width: 120%;
  aspect-ratio: 75 / 8;
  overflow: hidden;
  line-height: 0;
  transform: rotate(3deg) translateX(-20px) translateY(-55px);
}

.ribon05Track {
  display: flex;
  width: max-content;
  height: 100%;
  animation: ribonSlideLeft var(--ribon05-duration) linear infinite;
  will-change: transform;
}

.ribon05Item {
  display: block;
  flex: 0 0 auto;
  height: 100%;
}

.ribon05Item img {
  display: block;
  width: auto;
  max-width: none;
  height: 100%;
}

@keyframes ribonSlideLeft {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ribon03Track,
  .ribon05Track {
    animation-play-state: paused;
  }
}

/* --------------------------------------------------------------------------
   リボン：左から右へ流れる無限ループ
   -------------------------------------------------------------------------- */

.ribon09 {
  --ribon09-duration: 30s;

  position: relative;
  z-index: 2;
  width: 120%;
  aspect-ratio: 75 / 8;
  overflow: hidden;
  line-height: 0;
  transform: rotate(-3deg) translateX(-20px) translateY(-5px);
}

.ribon09Track {
  display: flex;
  width: max-content;
  height: 100%;
  animation: ribonSlideRight var(--ribon09-duration) linear infinite;
  will-change: transform;
}

.ribon09Item {
  display: block;
  flex: 0 0 auto;
  height: 100%;
}

.ribon09Item img {
  display: block;
  width: auto;
  max-width: none;
  height: 100%;
}

@keyframes ribonSlideRight {
  from {
    transform: translateX(-50%);
  }

  to {
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ribon09Track {
    animation-play-state: paused;
  }
}

/* ==========================================================================
   04. ローディング
   ========================================================================== */

#loading {
  /* loadingBox の横幅。子要素はすべてこの値基準で可変 */
  --lbw: min(90vw, 62dvh, 500px);
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  background: linear-gradient(to bottom, #2a28ad, #840089);
}

#loading.is-loaded {
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   初回表示の順番
   loading → pcSideTapes → その他コンテンツの順で表示する。
   JavaScriptで .is-intro を外すと、通常コンテンツがフェード表示される。
   -------------------------------------------------------------------------- */

.pcMainArea,
.pcTit {
  transition: opacity 0.7s ease;
}

#bullettrain.is-intro .pcMainArea,
#bullettrain.is-intro .pcTit {
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
}

/* 3 つのアイコンを時間差で表示(data/20260927/loading のサンプル準拠。500px 枠を --lbw 比率に換算) */
#loadingBox {
  position: relative;
  width: var(--lbw);
  height: var(--lbw);
}

#loadingBox img {
  display: block;
  width: 100%;
}

#loadingBox .loadingList {
  position: absolute;
  top: 20%;
  left: 20%;
  width: 80%;
  height: 80%;
  padding: 0;
  margin: 0;
  list-style: none;
}

#loadingBox .loadingItem {
  position: absolute;
}

/* 1: 右から入り、傾いてから揺れて止まる */
#loadingBox .loadingItem:nth-child(1) {
  top: 0;
  left: 3%;
  width: 70%;
  transform-origin: 50% 100%;
  animation: loadingSlideIn 0.8s cubic-bezier(0, 0.7, 0.6, 1) 0s both,
    loadingTilt 0.3s ease-in-out 0.7s both,
    loadingSwing 0.7s ease-in-out 1s forwards;
}

/* 2: 回転しながら現れる */
#loadingBox .loadingItem:nth-child(2) {
  top: 21.9%;
  left: 32.5%;
  width: 10%;
  opacity: 0;
  animation: loadingSpinIn 0.5s cubic-bezier(0, 0.7, 0.6, 1) 0.8s forwards;
}

/* 3: フェードイン */
#loadingBox .loadingItem:nth-child(3) {
  top: 31%;
  left: 0;
  width: 75%;
  opacity: 0;
  transform-origin: 50% 100%;
  animation: loadingFadeIn 0.3s ease-in-out 0.9s forwards;
}

@keyframes loadingSlideIn {
  from {
    translate: 200% 0;
  }

  to {
    translate: 0 0;
  }
}

@keyframes loadingTilt {
  from {
    rotate: -14deg;
  }

  to {
    rotate: -18deg;
  }
}

@keyframes loadingSwing {
  0% {
    rotate: -18deg;
  }

  40%,
  70%,
  100% {
    rotate: 0deg;
  }

  55% {
    rotate: -2deg;
  }

  85% {
    rotate: -1deg;
  }
}

@keyframes loadingSpinIn {
  from {
    rotate: 360deg;
    opacity: 0;
  }

  to {
    rotate: 0deg;
    opacity: 1;
  }
}

@keyframes loadingFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ==========================================================================
   05. アンカーナビゲーション
   ========================================================================== */

/* 開閉ボタン */
.headerToggle {
  position: absolute;
  top: -1%;
  right: 3%;
  z-index: 10000;
  display: block;
  width: 14%;
  max-width: none;
  height: 10vw;
  padding: 0;
  overflow: visible;
  cursor: pointer;
  background: none;
  border: 0;
  appearance: none;
}
.headerToggle.is-fixed {
  position: fixed;
}

/* ナビ表示中もスクロールバー領域を残し、横方向のガタつきを防ぐ */
html {
  scrollbar-gutter: stable;
}

html.isScrollLocked {
  overflow-y: scroll;
}

html.isScrollLocked body {
  position: fixed;
  right: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
}

/* ナビパネル本体 */
.navPanel {
  position: fixed;
  top: 0 !important;
  left: 0;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  /* 外枠は透明のまま固定し、黒背景を持つ内側だけをカーテン状に動かす */
  transition: opacity 0s linear 0.8s;
}
.navPanel.is-fixed {
  top: 0;
  right: auto;
}
.isAnchorOpen .navPanel,
.isAnchorClosing .navPanel {
  pointer-events: auto;
  opacity: 1;
  transition: opacity 0s;
}
.navCloseButton {
  display: none;
}
.navBackdrop {
  display: none;
}
/* ナビ項目 */
ul.nav li {
  padding: 0 0 20px;
  margin: 0 0 20px;
  border-bottom: solid 1px #616161;
  opacity: 0;
  transition: opacity 0.45s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  transform: translateY(22px);
  will-change: transform, opacity;
}
ul.nav li:last-child {
  padding: 0;
  margin: 0;
  border-bottom: none;
}
ul.nav li a {
  font-family: "Noto Serif JP", serif;
  font-size: 1.8rem;
  color: #000 !important;
}
ul.nav li a:hover {
  color: #b98c82 !important;
}

.isAnchorOpen ul.nav li {
  opacity: 1;
  transform: translateY(0);
}

.isAnchorOpen ul.nav li:nth-child(1) {
  transition-delay: 0.68s;
}
.isAnchorOpen ul.nav li:nth-child(2) {
  transition-delay: 0.74s;
}
.isAnchorOpen ul.nav li:nth-child(3) {
  transition-delay: 0.8s;
}
.isAnchorOpen ul.nav li:nth-child(4) {
  transition-delay: 0.86s;
}
.isAnchorOpen ul.nav li:nth-child(5) {
  transition-delay: 0.92s;
}
.isAnchorOpen ul.nav li:nth-child(6) {
  transition-delay: 0.98s;
}
.isAnchorOpen ul.nav li:nth-child(7) {
  transition-delay: 1.04s;
}

@keyframes pcNavItemIn {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.read {
  margin-bottom: 6%;
  line-height: 1.9;
}
.read2 {
  margin-bottom: 5%;
  font-size: 1.6rem; /* PC は固定 */
  line-height: 1.9;
}
@media screen and (max-width: 768px) {
  .read2 {
    font-size: clamp(1.32rem, 3.96vw, 1.45rem);
  }
}
.btnImg {
  width: 80%;
}
/* ==========================================================================
   06. コンテンツ背景
   ========================================================================== */
.bg01 {
  position: relative;
  z-index: 1;
  aspect-ratio: 754 / 1016;
  padding: 8% 0 0;
  margin: 0;
  color: #fff;
  text-align: center;
  background: url(../img/bg01.png) 0 0 no-repeat;
  background-size: 100% auto;
}
.bg02 {
  position: relative;
  z-index: 1;
  aspect-ratio: 750 / 948;
  padding: 11% 6% 0;
  margin: 0;
  color: #fff;
  text-align: center;
  background: url(../img/bg02.png) 0 0 no-repeat;
  background-size: 100% auto;
}
.bg02.is-dark {
  background: #000;
}
/* ==========================================================================
   08. 装飾ボックス
   ========================================================================== */
/* ==========================================================================
   09. コンテンツ画像・開閉エリア
   ========================================================================== */

/* コンテンツ画像の個別サイズ */
.img {
  width: 88%;
  margin: 0 auto 30px;
}
.img01 {
  width: 85%;
  margin: 0 auto 20px;
  opacity: 0;
  transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
  transform: translateY(40px) scale(0.9);
}
.img01.is-inview {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.img02,
.img03,
.img04,
.img05,
.img06,
.img07,
.img08,
.img09 {
  opacity: 0;
  transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
  transform: translateY(40px) scale(0.9);
}
.img02.is-inview,
.img03.is-inview,
.img04.is-inview,
.img05.is-inview,
.img06.is-inview,
.img07.is-inview,
.img08.is-inview,
.img09.is-inview {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.img02 {
  width: 85%;
  margin: 0 auto 20px;
}
.img03 {
  width: 88%;
  margin: 0 auto 30px;
}
.img04 {
  width: 45%;
  margin: 0 auto 15px;
}
.img05 {
  width: 80%;
  margin: 0 auto 15px;
}
.img06 {
  width: 85%;
  margin: 0 auto 5px;
}
.img07 {
  width: 80%;
  margin: 0 auto 15px;
}
.img08 {
  width: 85%;
  margin: 0 auto 10px;
}
.img09 {
  width: 85%;
  margin: 0 auto 15px;
}
.img10 {
  width: 85%;
  margin: 0 auto 50px;
}

/* ==========================================================================
   10. ボタン・汎用レイヤー
   ========================================================================== */

.coution {
  font-size: 1.2rem;
  line-height: 1.6;
}
.coution a {
  text-decoration: underline;
}
section {
  position: relative;
  z-index: 1;
}
/* ==========================================================================
   11. セクション見出し
   ========================================================================== */

.tit01 {
  position: relative;
  padding: 6% 6% 35px;
  margin: 0 0 30px;
  background: #000;
}
.tit01 img {
  width: 97%;
}
.tit02 {
  position: relative;
  padding: 6% 11% 30px;
  margin: 0 0 30px;
  background: #000;
}
.tit03 {
  position: relative;
  padding: 6% 11% 30px;
  margin: 0 0 30px;
  background: #000;
}
.tit04 {
  position: relative;
  padding: 6% 22% 30px;
  margin: 0 0 30px;
  background: #000;
}
.tit05 {
  position: relative;
  padding: 6% 6% 30px;
  margin: 0 0 30px;
  background: #000;
}
.tit06 {
  position: relative;
  padding: 6% 4% 30px;
  margin: 0 0 30px;
  background: #000;
}
.stit02 {
  width: 70%;
  margin: 0 auto 20px;
}
/* ==========================================================================
   12. バナー・施設一覧
   ========================================================================== */

/* ==========================================================================
   13. フッター・SNS・ページトップ
   ========================================================================== */

.bgWhite {
  position: relative;
  z-index: 5;
  padding: 40px 0 1px;
  margin: 0 auto;
  text-align: center;
  background: #fff;
}
footer {
  overflow: hidden;
  background: #fff;
}

ul.sns:last-child {
  gap: 9.5%;
  justify-content: center;
  margin-right: auto;
  margin-left: auto;
}
ul.sns {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center; /* 垂直方向の揃え */
  justify-content: space-between; /* 水平方向の揃え */
  width: calc(45% - 10px);
  padding: 0;
  margin: 0 auto 30px;
}
ul.sns li {
  width: 27%;
  margin-bottom: 5px;
  font-size: 2.4rem;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}
ul.sns li a {
  width: 100%;
}
ul.sns li:nth-child(1) {
  display: flex;
  justify-content: center; /* 見出しが枠より長くても左右均等にはみ出させて中央に置く */
  width: 100%;
  padding: 0 0 5px;
  font-size: 1.4rem;
  text-align: center;
}

#goTop {
  position: fixed;
  /* PCでは pcMainArea 右端基準の位置をJSで --goTopRight に設定する(3カラムレイアウトのため画面右端基準だと中央カラムから離れて見える) */
  right: var(--goTopRight, 10px);
  bottom: 10px;
  z-index: 100000;
  width: 12%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}

@media screen and (min-width: 769px) {
  #goTop {
    width: 48px;
  }
}
/* ==========================================================================
   14. SPレイアウト（768px以下）
   ========================================================================== */

@media screen and (max-width: 768px) {
  /* 要件対応: SPではリボンアニメーションを常時動作させる */
  .ribon03Track,
  .ribon05Track {
    animation-play-state: running !important;
  }

  .pcLayout {
    display: block;
    width: 100%;
    min-height: 100dvh;
  }

  .pcMainArea {
    position: relative;
    z-index: 1000;
    /* SPは端末幅に追従させ、420px未満でも横にはみ出さない */
    width: 100%;
    min-height: 100dvh;
    margin: 0 auto;
    overflow-x: hidden;
    /* SPにはpcSideTapesがないため、ローディング後は待たずに即時表示 */
    transition: none;
  }

  .pcMainArea .main {
    width: 100%;
    min-width: 0;
    max-width: none;
    margin: 0;
    background: #fff;
  }

  .headerToggle img {
    display: block;
    width: 100%;
    height: auto;
  }

  .navCloseButton {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    display: block;
    width: 12%;
    padding: 0;
    cursor: pointer;
    background: none;
    border: 0;
    appearance: none;
  }

  .navCloseButton img {
    display: block;
    width: 100%;
    height: auto;
  }

  .pcAnchorArea {
    display: block;
    pointer-events: none;
  }

  #bullettrain.isAnchorOpen .pcAnchorArea,
  #bullettrain.isAnchorClosing .pcAnchorArea {
    pointer-events: auto;
  }
}
/* ==========================================================================
   15. 状態表示・補助パーツ
   ========================================================================== */

/* ページトップ表示状態 */
#goTop.is-visible {
  pointer-events: auto;
  opacity: 1;
}

/* IE11互換 */
@media all and (-ms-high-contrast: none) {
  svg {
    display: none;
  }
}
.copy01 {
  width: 30%;
  margin: 0 4% 40px auto;
}
a.link {
  color: #eb5500;
}
.openCont {
  width: 80%;
  margin: 0 auto;
}

/* ==========================================================================
   バーアニメーション(矢印が左から右へ走る。画面に入ったら 1 回だけ再生)
   サンプル: data/20260927/bar_animation(751px 固定 → 幅に比例する形に変更)
   ========================================================================== */

.box {
  position: relative;
  z-index: 0;
  width: 100%;
  aspect-ratio: 751 / 31;
  overflow: hidden;
  background-color: #ff5fd5;
}

.box .arrow,
.box .arrow01 {
  position: absolute;
  top: 0;
  right: 0;
  width: calc(181 / 751 * 100%);
  translate: -400% 0;
}

.box .arrow {
  z-index: 2;
}

.box .arrow01 {
  z-index: 1;
  opacity: 0;
}

.box img {
  display: block;
  max-width: 100%;
}

.box.is-inview .arrow {
  animation: barArrow 0.8s cubic-bezier(0, 0.7, 0.6, 1) 0s forwards;
}

.box.is-inview .arrow01 {
  animation: barArrowTrail 1s cubic-bezier(0, 0.7, 0.6, 1) 0s forwards;
}

@keyframes barArrow {
  from {
    translate: -400% 0;
  }

  to {
    translate: 0 0;
  }
}

@keyframes barArrowTrail {
  from {
    opacity: 0.9;
    translate: -400% 0;
  }

  to {
    opacity: 0;
    translate: 0 0;
  }
}

/* フッター: 支給の並び(2026-09-27)で以前の見た目に合わせる。base.css の nth-child 指定に 3・5・6 番目を補う */
.footerNav li {
  font-size: 1.4rem;
}
.footerNav li:nth-child(3),
.footerNav li:nth-child(5),
.footerNav li:nth-child(6) {
  width: 100%;
  text-align: center;
}

.footerNav br {
  display: none;
}

@media screen and (max-width: 768px) {
  .footerNav li:nth-child(5) br {
    display: inline;
  }
}
.date01 {
  width: 60%;
  margin: 0 auto 5%;
}
.stit01 {
  width: 100%;
  margin: 0 auto 7%;
}
/* 各施設リンク(14 施設、3 列) */
ul.facilities {
  display: flex;
  flex-wrap: wrap;
  row-gap: 10px;
  justify-content: space-between;
  width: 100%;
  padding: 0 0 30px;
  margin: 0 auto;
  list-style: none;
}

ul.facilities li {
  width: calc(100% / 3 - 5px);
}

ul.facilities::after {
  display: block;
  width:32%;
  content: "";
}

ul.facilities a {
  display: block;
  transition: opacity 0.3s;
}

ul.facilities a:hover {
  opacity: 0.7;
}

ul.facilities img {
  display: block;
  width: 100%;
  height: auto;
}

/* 文字サイズを幅に合わせて可変にする。rem の基準(1rem)を画面幅で変える。
   PC の本文カラム幅 420px で 1rem = 10px(従来どおり)。SP は画面幅に比例、本文の最大幅 700px で頭打ち */
@media screen and (max-width: 768px) {
  html {
    font-size: clamp(8px, calc(100vw / 42), calc(700px / 42));
  }
}

/* ==========================================================================
   キービジュアル(CSS アニメーション)
   サンプル: data/20260928/超特急ティザーKV(751×750 固定 → 幅に比例する形に変更)
   ローディングが終わって本文が表示されてから再生する
   ========================================================================== */

.kv_container {
  position: relative;
  z-index: 0;
  width: 100%;
  aspect-ratio: 751 / 750;
  overflow: hidden;
}

.kv_container img {
  display: block;
  width: 100%;
}

.kv_img {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
}

.kv_bk {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 100%;
}

.kv_title {
  position: absolute;
  top: calc(250 / 750 * 100%);
  left: calc(18 / 751 * 100%);
  z-index: 3;
  width: calc(736 / 751 * 100%);
  opacity: 0;
}

.kv_a {
  position: absolute;
  top: calc(-25 / 750 * 100%);
  left: calc(6 / 751 * 100%);
  z-index: 4;
  width: calc(750 / 751 * 100%);
  opacity: 0;
}

.kv_b {
  position: absolute;
  bottom: calc(-30 / 750 * 100%);
  left: calc(75 / 751 * 100%);
  z-index: 4;
  width: calc(620 / 751 * 100%);
  opacity: 0;
}

#bullettrain.is-intro-complete .kv_bk {
  animation: kv_opacity 1s ease-in-out 2.5s forwards;
}

#bullettrain.is-intro-complete .kv_title {
  animation: kv_title 2s ease-in-out 0.5s both,
    kv_opacity 2s ease-in-out 2s forwards;
}

#bullettrain.is-intro-complete .kv_a {
  animation: kv_a 2s ease-in-out 0s both,
    kv_opacity 2.5s ease-in-out 0.5s forwards;
}

#bullettrain.is-intro-complete .kv_b {
  animation: kv_b 2s ease-in-out 0.1s both,
    kv_opacity 2.6s ease-in-out 0.5s forwards;
}

@keyframes kv_a {
  from {
    transform: translate(-100%, 0);
  }

  to {
    transform: translate(100%, 0);
  }
}

@keyframes kv_b {
  from {
    transform: translate(100%, 0);
  }

  to {
    transform: translate(-100%, 0);
  }
}

@keyframes kv_title {
  from {
    transform: scale(1.7);
  }

  to {
    transform: scale(1);
  }
}

@keyframes kv_opacity {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}



