* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: serif;
}

ol {
  list-style: none;
}

main {
  text-align: left;
}

.content {
  margin: 64px auto;
}

/* =============ヘッダー===================== */

header {
  background-color: #001d67;
  height: 100px;
  display: flex;
}

h1 img {
  height: 80px;
  margin: 10px auto;
  padding: 10px 30px;
}

/* ==============================
パンくずリスト
=============================== */

.breadcrumb {
  display: flex;
  flex-wrap: nowrap;
  padding: 20px 30px;
  text-align: left;
}

.breadcrumb li {
  margin-right: 10px;
  font-size: 12px;
}

.breadcrumb a {
  margin-right: 10px;
  color: #00064d;
}

/* -----------------------
ハンバーガーメニュー
------------------------ */

.hamburger {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100;
  width: 48px;
  height: 48px;
  border: none;
  background: transparent;
  cursor: pointer;
  margin: 20px 30px;
  background-color: rgba(255, 255, 255, 0.5);
}

.hamburger__line {
  position: absolute;
  left: 11px;
  width: 26px;
  height: 2px;
  background-color: #333;
  transition: all 0.4s;
}

.hamburger__line:nth-of-type(1) {
  top: 14px;
}
.hamburger__line:nth-of-type(2) {
  top: 23px;
}
.hamburger__line:nth-of-type(3) {
  top: 32px;
}

/* メニューオープン時 */
.hamburger.active .hamburger__line:nth-of-type(1) {
  transform: translateY(9px) rotate(-45deg);
}
.hamburger.active .hamburger__line:nth-of-type(2) {
  opacity: 0;
}
.hamburger.active .hamburger__line:nth-of-type(3) {
  transform: translateY(-9px) rotate(45deg);
}

/* オフキャンバスのメニュー本体（ハンバーガーで開閉） */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  height: 100vh;
  background-color: #001d67;
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.25);
  transform: translateX(-110%);
  transition: transform 0.35s;
  z-index: 90;
  border-radius: 20px;
}

.nav.active {
  transform: translateX(0);
}

/* アコーディオン（2段階） */
.accordion-menu {
  margin: 0;
  padding: 100px 20px 0;
  list-style: none;
}

.nav_item {
  margin: 16px 0;
}

.nav_link,
.nav_sublink,
.nav_sub2link {
  display: block;
  text-decoration: none;
}

.nav_link {
  color: #eee;
  font-weight: 900;
  background-color: #001d67;
  padding: 14px 16px;
  border-radius: 8px;
}

/* 既存の `.nav_list a` を使っていた分を無効化して新クラスに寄せる */
.nav_list a {
  background: none;
  padding: 0;
  border-radius: 0;
}

.has-sub > .dropdownlink {
  position: relative;
}

.has-sub > .dropdownlink::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #eee;
  border-bottom: 2px solid #eee;
  transform: translateY(-60%) rotate(45deg);
  transition: transform 0.25s;
}

.has-sub.open > .dropdownlink::after {
  transform: translateY(-40%) rotate(-135deg);
}

.submenuItems {
  display: none;
  margin: 10px 0 0;
  padding: 0 0 0 14px;
}

.nav_sublink {
  color: #001d67;
  font-weight: 800;
  background: #ffffff;
  padding: 12px 14px;
  border-radius: 8px;
}

.nav_sub {
  margin: 10px 0;
}

/* 2段目 */
.nav_sub2 {
  margin: 10px 0;
}

.nav_sub2link {
  color: #001d67;
  font-weight: 700;
  background: #f2f2f2;
  padding: 10px 14px;
  border-radius: 8px;
}

/* 2段目の矢印は少し薄く */
.nav_sub.has-sub > .dropdownlink::after {
  border-right-color: #001d67;
  border-bottom-color: #001d67;
}

.header_content {
  width: 100%;
  height: 600px;
  background-color: #00064d;
}
/* ================ナビ=================== */
.header-container_02 {
  position: relative;
  margin: 0 !important;
  height: 300px;
  font-family: serif;
  background: #bdcece;
}

.header__navi_02 {
  z-index: 1;
  position: absolute;
  top: 0;
  left: 0;
  background: #001d67;
  width: 100%;
  transform: translateY(-120%);
  transition: all 0.6s;
}

.header__navi_02.active {
  transform: translateY(0%);
}

.header__navi_02 ul {
  padding-top: 48px;
  text-align: center;
}

.header__navi_02 li {
  list-style: none;
  margin-bottom: 24px;
}

.header__navi_02 li a {
  color: #ffffff;
  text-decoration: none;
}

/* メニューボタン */
.sp-menu-btn_02 {
  background-color: transparent;
  border: none;
  position: absolute;
  right: 10px;
  top: 10px;
  width: 60px;
  height: 40px;
  cursor: pointer;
  z-index: 1000;
}

.sp-menu-btn_02 .line {
  display: block;
  position: absolute;
  height: 1px;
  right: 15px;
  background: #fff;
  transition: 0.3s ease-in-out;
}

.sp-menu-btn_02 span:nth-child(1) {
  top: 16px;
  width: 30px;
}

.sp-menu-btn_02 span:nth-child(2) {
  top: 24px;
  width: 20px;
}

/* メニューが開いているときのボタン */
.sp-menu-btn_02.active span:nth-child(1) {
  top: 24px;
  background: #ffffff;
  transform: rotate(-45deg);
}

.sp-menu-btn_02.active span:nth-child(2) {
  top: 24px;
  background: #ffffff;
  width: 30px;
  transform: rotate(45deg);
}

.header-container_02 h1 {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 300px;
  font-weight: normal;
}

/* ==========================
タイムライン
=============================*/

h2 {
  margin: 128px auto 64px;
  font-size: 30px;
  font-family: Noto Sans JP;
  color: #001d67;
  text-align: center;
}

.timeline {
  width: 75%;
  margin: 32px auto;
  text-align: left;
  display: flex;
  flex-wrap: wrap;

  /* ドットと線の位置を1箇所で管理 */
  --dot-size: 16px;
  --gutter: 14px;
  --line-x: calc(var(--gutter) + (var(--dot-size) / 2));
  /* スクロール挙動の調整（JSが読む） */
  --line-head-ratio: 0.6; /* 線の先端位置：画面高さに対する割合（0.50〜0.80推奨） */
  --reveal-ratio: 0.65; /* フェードイン判定位置：画面高さに対する割合 */
  --reveal-offset: 0px; /* さらに早め/遅めしたい場合の微調整（px） */

  position: relative;
  padding-left: var(--gutter); /* 縦線ぶんの余白 */
}

/* 縦ライン（ベース） */
.timeline-line {
  position: absolute;
  left: var(--line-x);
  transform: translateX(-50%);
  top: 0px;
  width: 2px;
  height: 0;
  background: rgba(31, 177, 226, 0.25);
  z-index: 0;
}

/* 縦ライン（伸びる進捗） */
.timeline-line-progress {
  position: absolute;
  left: var(--line-x);
  transform: translateX(-50%);
  top: 0px;
  width: 2px;
  height: 0;
  background: #1fb1e2;
  transition: height 160ms linear;
  z-index: 2;
  pointer-events: none;
}

.timeline-line-progress::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: translate(-50%, 50%);
  background: #1fb1e2;
  box-shadow: 0 0 10px rgba(31, 177, 226, 0.9);
}

.theatre_content {
  margin: 32px 0;
  /* 左だけ余計に内側へ入らないようにする */
  padding: 20px 20px 20px 0;
  width: 100%;
}

.year {
  font-family: NotoSansJP;
  font-weight: 700;
  font-size: 20px;
  color: #1fb1e2;
}

.dots_family {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
}

.dots {
  width: var(--dot-size);
  height: var(--dot-size);
  border-radius: 50%;

  /* リング（中が抜けるので線が貫いて見える） */
  background: transparent;
  border: 3px solid #1fb1e2;

  margin-right: 10px;
  flex: 0 0 auto;

  /* ドットは線より上に */
  z-index: 3;
}

.nowrap {
  display: flex;
  flex-wrap: nowrap;

  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 600ms ease,
    transform 600ms ease;
  will-change: opacity, transform;
}

.theatre_content.is-visible .nowrap {
  opacity: 1;
  transform: translateY(0);
}

.theatre_text {
  margin-top: 20px;
  margin-left: 30px;
}

.theatre_text img {
  height: 200px;
}

.theatre_text p {
  margin-top: 14px;
  margin-left: 5px;
  font-size: 20px;
  font-weight: 900;
  border-bottom: 2px solid #001d67;
  padding-bottom: 5px;
}

.cast li {
  font-size: 15px;
  margin-top: 10px;
  margin-left: 20px;
}

.sub_title {
  font-size: 15px;
}

@media screen and (max-width: 768px) {
}

@media screen and (max-width: 450px) {
  h1 img {
    height: 50px;
    margin: 20px auto;
    padding: 10px 30px;
  }

  .timeline {
    width: 92%;
    --dot-size: 14px;
    --gutter: 12px;

    /* スマホは“進捗”を少し遅め（下寄り）に、表示は少し早め */
    --line-head-ratio: 0.6;
    --reveal-ratio: 0.58;
    --reveal-offset: -12px;
  }

  .theatre_text {
    margin-left: 18px;
  }

  .theatre_text img {
    height: 160px;
  }

  .theatre_text p {
    font-size: 18px;
  }

  .cast li {
    font-size: 14px;
    margin-left: 16px;
  }

  .theatre_text {
    margin-left: 14px;
  }

  .theatre_text img {
    height: 140px;
  }

  .nowrap {
    display: flex;
    flex-wrap: wrap;
  }
}
