:root {
  --fg: #333333;
  --muted: #a7adba;
  --accent: #bb9f7a;
  --bgnav: #eae5dc;
  --navlogo: linear-gradient(
    150deg,
    rgba(220, 211, 195, 1),
    rgba(228, 222, 209, 1) 50%,
    rgba(220, 211, 195, 1)
  );
  --red: #ba1c1f;
  --blue: #133463;
  --gray: #999999;
  --bgline: #b39a98;
  --arrowline: #c1adaa;
  --font: "游ゴシック体", YuGothic, "游ゴシック Medium", "Yu Gothic Medium",
    "游ゴシック", "Yu Gothic", sans-serif;
  --century: century-old-style-std, serif;
  --goudy: ltc-goudy-oldstyle-pro, serif;
  --din: din-condensed, sans-serif;
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  margin: 0;
  color: var(--fg);
  font-family: var(--font);
}

html {
  opacity: 0;
  transition: 0.3s ease-out;
}
html.wf-active {
  opacity: 1;
}

img {
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

/*loading*/
#load_wrap {
  position: fixed;
  inset: 0;
  padding-top: 90px;
  /*opacity: .8;*/
  background-color: #ffffff;
  height: 100%;
  z-index: 1000;
}

#load_wrap.none {
  animation: loading 0.5s ease-out forwards;
}

@keyframes loading {
  0% {
    opacity: 1;
  }
  90% {
    opacity: 0;
  }
  100% {
    opacity: 0;
    z-index: -100;
  }
}

#load_wrap #load_wrap_inner {
  height: 100%;
  position: relative;
}

#load_wrap #load_wrap_inner::after {
  content: "";
  display: block;
  position: absolute;
  height: 1px;
  width: 100vw;
  background: var(--arrowline);
  top: calc(50% + 2.5px);
  left: 50%;
  transform: translate(-50%, -290%);
  z-index: -1;
}

#load_wrap #load_main {
  height: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 50px;
}

#load_wrap #load_main > span {
  display: block;
  opacity: 0;
}

#load_wrap #load_main .grand_logo {
  max-width: min(250px, 25vw);
  margin-bottom: min(35px, 5vw);
}

#load_wrap #load_main .year {
  font-family: var(--din);
  font-size: min(200px, 22vw);
  color: #bb9f7a;
  transform: translateY(20px);
}

#load_wrap #load_band {
  width: 100vw;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin-top: 0;
  margin-bottom: 0;
  aspect-ratio: 1916 / 55;
  display: flex;
  z-index: 3;
}

#load_wrap #load_band span {
  display: block;
}
#load_wrap #load_band .load_band_logo {
  display: flex;
  background-color: #ffffff;
  position: relative;
  z-index: 2;
}
#load_wrap #load_band span,
#load_wrap #load_band .load_band_logo {
  height: 100%;
}

#load_wrap #load_band img {
  height: 100%;
}

#load_wrap #load_band .load_band_logo .load_band_l {
  transform: translateX(-30px);
  opacity: 0;
}

#load_wrap #load_band .load_band_logo .load_band_r {
  transform: translateX(30px);
  opacity: 0;
  position: relative;
}

#load_wrap #load_band .load_band_logo .load_band_r .each {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
}

#load_wrap #load_band .line {
  height: 105%;
  background-color: #ffffff;
  position: absolute;
  top: 50%;
}

#load_wrap #load_band .line.line_left {
  left: 0;
  width: 41.5%;
  transform: translateX(0) translateY(-50%);
}

#load_wrap #load_band .line.line_right {
  right: 0;
  width: 38%;
  transform: translateX(0) translateY(-50%);
}

@media (max-width: 899px) {
  #load_wrap #load_band {
    width: 200vw;
  }
  #load_wrap #load_wrap_inner::after {
    transform: translate(-50%, -20%);
  }
}
@media (min-width: 900px) {
  #load_wrap {
    padding-top: 95px;
  }
}

@media (max-height: 780px) {
  #load_wrap #load_main .grand_logo {
    width: 22vh;
  }
  #load_wrap #load_main .year {
    font-size: 20vh;
  }
}

/* 年代ナビ */
.yearbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  height: 90px;
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
}
.yearbar.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.yearbar-inner {
  width: calc(100% - 10px);
  margin: auto;
  height: 100%;
  display: flex;
  align-items: center;
  flex-direction: column;
  position: relative;
  background: var(--bgnav);
}

.yearbar-inner > span {
  display: flex;
  height: 38px;
  padding-top: 8px;
  padding-bottom: 8px;
  width: 100%;
  justify-content: center;
  background: var(--navlogo);
}

.yearbar-inner > span > img {
  height: 25px;
  width: auto;
}

@media (min-width: 900px) {
  .yearbar {
    height: 95px;
  }
  .yearbar-inner {
    width: calc(100% - 160px);
  }
}

@media (min-width: 1240px) {
  .yearbar-inner {
    width: calc(100% - 250px);
  }
}

@media (min-width: 1640px) {
  .yearbar-inner {
    width: calc(100% - 470px);
  }
}

.years {
  display: flex;
  position: relative;
  width: 100%;
  padding-left: 10px;
  padding-right: 10px;
}

@media (min-width: 900px) {
  .yearbar-inner .years {
    padding-left: 30px;
    padding-right: 30px;
  }
}

.year-btn {
  padding: 0 5px;
  color: var(--accent);
  font-weight: 500;
  font-size: 3.6vw;
  cursor: pointer;
  transition: 0.2s;
  outline: none;
  border-right: 1px dotted var(--accent);
  border-left: transparent;
  border-top: transparent;
  border-bottom: transparent;
  width: calc(100% / 8);
  background: transparent;
  height: 45px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--goudy);
}

@media (min-width: 490px) {
  .year-btn {
    font-size: 16px;
  }
}

@media (min-width: 900px) {
  .year-btn {
    font-size: 22px;
    height: 50px;
  }
}

.year-btn:nth-child(2) {
  border-left: 1px dotted var(--accent);
}
.year-btn:hover {
  transform: translateY(-1px);
}
.year-btn[aria-disabled="true"] {
  opacity: 0.35;
  cursor: not-allowed;
}
.year-btn.active {
}

.years .year-btn.back-home {
  position: absolute;
  width: calc(100% / 13);
  top: 0;
  left: 0;
  border: none;
}

.stretch-rail {
  position: absolute;
  left: 50%;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--bgline);
  width: calc(100% - 20px);
  transform: translateX(-50%);
}
.stretch {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background: var(--red);
  transform: none !important;
}
.stretch::after {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  right: 0;
  transform: translate(22%, -50%);
  width: 10px;
  height: 7px;
  background-color: var(--red);
  clip-path: polygon(10px 50%, 0% 0%, 0% 7px);
}

@media (min-width: 900px) {
  .stretch-rail {
    width: calc(100% - 60px);
  }
}

/* 横スクロール部分 */
.section {
  position: relative;
  width: 100%;
  min-height: 100dvh;
  height: 100dvh;
  display: flex;
  padding-top: 90px;
  justify-content: center;
  overflow-x: hidden;
  background: #ffffff;
}

/* 背景のふわっと切替専用レイヤー */
.setting {
  position: absolute;
  inset: 0; /* top:0; right:0; bottom:0; left:0 と同じ */
  z-index: 1; /* 中身のパネルより背面に */
  pointer-events: none;

  /* bgc が付与されたときの「上に重ねるグラデーション背景」 */
  background: linear-gradient(
    120deg,
    rgba(249, 246, 243, 1),
    rgba(248, 244, 240, 1)
  );

  /* 最初は透明（＝白背景だけ見える） */
  opacity: 0;
  transition: opacity 1.2s ease; /* ここで “ゆっくりふわっ” を調整 */
}

/* .bgc が付与されたら */
.section.bgc .setting {
  opacity: 1;
}

.section::before {
  content: "";
  display: block;
  position: absolute;
  height: 1px;
  width: 100vw;
  background: var(--arrowline);
  top: calc(50% + 47.5px);
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
}

@media (max-width: 899px) {
  .section::before {
    top: calc(50% + 45.5px);
  }
}

.section::after {
  content: "";
  display: block;
  position: absolute;
  width: 100vw;
  height: 35vh;
  background-image: linear-gradient(
    181deg,
    rgba(255, 255, 255, 1) 48%,
    rgba(248, 244, 240, 1)
  );
  left: 0;
  bottom: 0;
  mix-blend-mode: multiply;
  z-index: 2;
}

@media (min-width: 900px) {
  .section {
    padding-top: 95px;
  }
  .section::abefore {
    top: calc(50% + 47px);
  }
}

/* ★ 横スクロールの見える幅（SP/PCで変更）★ */
.timeline-inner {
  width: calc(100% - 50px); /* SP */
  height: 100%;
  margin: 0 auto;
  overflow: hidden;
  touch-action: none;
}
@media (min-width: 900px) {
  .timeline-inner {
    /*width:calc(100% - 50px); */
    width: calc(100% - 50px);
  }
}

.track {
  position: relative;
  height: 100%;
  display: flex;
  align-items: stretch;
  width: auto; /* ★ 追加 */
  flex: 0 0 auto; /* ★ 追加：子要素幅の合計になる */
  z-index: 4;
}

.panel {
  width: 100%;
  height: 100%;
  flex: 0 0 100%;
}

.panel.item:not(.active) .card_head_title,
.panel.item_wide:not(.active) .card_head_title {
  opacity: 0 !important;
}

.panel.item:not(.active) .card_foot,
.panel.item_wide:not(.active) .card_foot {
  opacity: 0 !important;
}

/* 表紙：ラッパー幅いっぱい */
.panel.cover {
}

.section > .logo_line {
  width: 100vw;
  aspect-ratio: 1916/55;
  display: block;
  background: url("../img/logo_bg.webp") no-repeat left center / contain;
  position: absolute;
  top: calc(50% + 45px);
  left: 0;
  transform: translate(0, -50%);
  z-index: 2;
}
.section.band > .logo_line {
  display: none;
}

.panel.cover {
  position: relative;
}
.panel.cover > h1 {
  width: 100vw;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin-top: 0;
  margin-bottom: 0;
  aspect-ratio: 1916/55;
  display: flex;
  mix-blend-mode: multiply;
}

@media (max-width: 899px) {
  .section > .logo_line {
    width: 200vw;
    background-position: -40%;
  }
  .panel.cover > h1 {
    width: 200vw;
  }
}

@media (min-width: 900px) {
  .section > .logo_line {
    top: calc(50% + 47.5px);
  }
}

.panel.cover .cover_head,
.panel.cover .cover_foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 50%;
}
.panel.cover .cover_head {
  display: flex;
  flex-direction: column;
  height: 50%;
  justify-content: flex-end;
  padding-bottom: 50px;
}

.panel.cover .cover_foot {
  display: flex;
  justify-content: flex-start;
  padding-top: 50px;
}

.panel.cover .cover_head span {
  display: block;
}

.panel.cover .cover_head .grand_logo {
  max-width: min(250px, 25vw);
  margin-bottom: min(35px, 5vw);
}

.panel.cover .cover_head .year {
  font-family: var(--din);
  font-size: min(200px, 22vw);
  color: #bb9f7a;
}

.panel.cover .cover_foot > button.low_slide {
  max-width: min(250px, 60vw);
  margin-left: auto;
  margin-right: auto;
  margin-top: min(20px, 4vw);
  outline: none;
  border: none;
  background: none;
}

@media (max-height: 780px) {
  .panel.cover .cover_head .grand_logo {
    width: 22vh;
  }
  .panel.cover .cover_head .year {
    font-size: 20vh;
  }
}

.panel.item,
.panel.item_wide {
  padding: 35px 25px;
}
/* ② 年号エリア：SP=1枚, PC=3枚（ラッパー幅基準） */
@media (min-width: 900px) {
  .panel.item {
    flex: 0 0 20%;
    width: 20%;
    padding: 25px 15px;
  }
  /* 中身も広げたい場合 */
  /* .panel[data-year="1959"] .card {
    width: auto;
    max-width: none;
  }
  .panel[data-year="1959"] .card_head_title_main {
    max-width: none;
  }
  .panel.item[data-year="1964"] {
    flex: 0 0 15%;
    width: 15%;
  }
  .panel.item[data-year="1959"] {
    flex: 0 0 25%;
    width: 25%;
  } */
}

@media (min-width: 1240px) {
  .panel.item {
    padding: 35px 25px;
  }
}

.card {
  height: 100%;
  flex: 0 0 100%;
  display: flex;
  position: relative;
  flex-direction: column;
}

.item:not(.active) .card {
  opacity: 0 !important;
}

.panel.item .card::after,
.panel.item_wide .card::after {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  background-color: var(--red);
  clip-path: polygon(50% 10px, 0% 0%, 10px 0%);
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-50%, -66%);
  z-index: 5;
}

.panel.item.item_blue .card::after {
  background-color: var(--blue);
}

.panel.item .card.type_down::after {
  transform: translate(-50%, -66%) rotate(180deg);
}

.panel.item .card.type_down {
  flex-direction: column-reverse;
}

.card > span.year_cap {
  font-size: 14vw;
  display: block;
  color: var(--accent);
  font-weight: 500;
  position: absolute;
  left: 0;
  line-height: 1;
  font-family: var(--goudy);
}

.card > span.year_cap > span {
  display: inline-block;
  opacity: 0;
}

@media (min-width: 490px) {
  .card > span.year_cap {
    font-size: 60px;
  }
}

@media (min-width: 1640px) {
  .card > span.year_cap {
    font-size: 84px;
  }
}

.card.type_up > span.year_cap {
  top: 11.5%;
}

.card.type_down > span.year_cap {
  bottom: 11.5%;
}

.card .card_head,
.card .card_foot {
  height: 50%;
}

.card_head {
  padding: 25px 0;
  display: flex;
  justify-content: flex-end;
}

.card.type_up .card_head {
  flex-direction: column;
}
.card.type_down .card_head {
  flex-direction: column-reverse;
}

.card.type_up .card_head > span.year_cap {
  margin-bottom: 0.2em;
}

.card.type_down .card_head > span.year_cap {
  margin-top: 0.2em;
}

.card .card_head > span.year_cap {
  font-size: 10vw;
  display: block;
  color: var(--accent);
  font-weight: 500;
  line-height: 1;
  font-family: var(--goudy);
  padding-left: 13px;
}

.card .card_head > span.year_cap > span {
  display: inline-block;
  opacity: 0;
}

@media (min-width: 490px) {
  .card .card_head > span.year_cap {
    font-size: 45px;
  }
}

@media (min-width: 1640px) {
  .card .card_head > span.year_cap {
    font-size: 65px;
  }
}

.card_head .card_head_title .card_head_title_main {
  padding-left: 15px;
}
.card_head .card_head_title .card_head_title_main h2 {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 4vw;
  padding-bottom: 0.3em;
  line-height: 1.25em;
}

.card_head .card_head_title .card_head_title_main h3 {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 2vw;
  padding-bottom: 0;
  line-height: 1em;
}

.card_head p,
.card_head .card_head_title .card_head_title_main h2 > span {
  font-size: 3.2vw;
  opacity: 0.8;
  display: block;
  line-height: 1.25;
  font-family: var(--century);
  color: var(--gray);
  font-weight: 400;
  letter-spacing: 0.05em;
}

.card_head p,
.card_head .card_head_title .card_head_title_main h3 > span {
  font-size: 1.6vw;
  opacity: 0.8;
  display: block;
  line-height: 1.25;
  font-family: var(--century);
  color: var(--gray);
  font-weight: 400;
  letter-spacing: 0.05em;
}

.card_head .card_head_title > p {
  padding-left: 15px;
}

.card_head .card_head_title p {
  margin-top: 1px;
  margin-bottom: 0;
}

.card_head .card_head_title .card_head_title_main {
  position: relative;
}
.card_head .card_head_title .card_head_title_main::before {
  position: absolute;
  content: "";
  display: block;
  width: 4px;
  height: calc(100% - 18px);
  top: 0;
  left: -2px;
  background-color: var(--red);
  clip-path: polygon(0 2px, 100% 0%, 100% calc(100% - 2px), 0% 100%);
}
.item_blue .card_head .card_head_title .card_head_title_main::before {
  background-color: var(--blue);
}

.card_head .card_head_title .card_head_title_main::after {
  position: absolute;
  content: "";
  display: block;
  width: 4px;
  height: 18px;
  bottom: 0;
  left: -2px;
  background-color: var(--accent);
  clip-path: polygon(0 2px, 100% 0%, 100% calc(100% - 2px), 0% 100%);
}

@media (min-width: 490px) {
  .card_head .card_head_title .card_head_title_main h2 {
    font-size: 14px;
  }
  .card_head p,
  .card_head .card_head_title .card_head_title_main h2 > span {
    font-size: 12px;
  }
}

@media (min-width: 490px) {
  .card_head .card_head_title .card_head_title_main h3 {
    font-size: 12px;
  }
  .card_head p,
  .card_head .card_head_title .card_head_title_main h3 > span {
    /* font-size: 6px; */
  }
}

@media (min-width: 1680px) {
  .card_head .card_head_title .card_head_title_main h2 {
    font-size: 18px;
  }
  .card_head p,
  .card_head .card_head_title .card_head_title_main h2 > span {
    font-size: 13px;
  }
}

@media (min-width: 1680px) {
  .card_head .card_head_title .card_head_title_main h3 {
    font-size: 15px;
		line-height: 1.4;
  }
  .card_head .card_head_title .card_head_title_main h3 > span {
    font-size: 8px;
  }
}

.card_foot {
  padding: 25px 0;
  display: flex;
}

.card_foot figure {
  width: 100%;
  display: flex;
}

.card_foot figure.ws {
  width: 70%;
}

@media (max-width: 899px) {
  .card_foot figure {
    aspect-ratio: 4 / 3;
  }
  .card_foot figure img {
    height: 100%;
    object-fit: cover;
  }
}

@media (min-width: 650px) {
  .card_foot figure {
    width: 55%;
  }
}

@media (min-width: 900px) {
  .card_foot figure {
    width: 100%;
  }
}

.card_foot figure img {
  width: 100%;
  max-width: initial;
}

.card.type_up .card_foot {
  justify-content: flex-start;
  align-items: flex-start;
}
.card.type_down .card_foot {
  align-items: flex-end;
}

/* ★ 矢印ナビ ★ */
.nav-arrow {
  position: fixed;
  top: calc(50% + 2.5px);
  z-index: 150;
  aspect-ratio: 200 / 388;
  color: #f5f6f8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  transition: 0.15s;
  outline: none;
  border: transparent;
  background: transparent;
  padding: 0;
}
.nav-arrow:hover {
  transform: scale(1.05);
}
.nav-arrow.nav-prev {
  transform: translate(0, calc(-50% + 45px));
}
.nav-arrow.nav-next {
  transform: translate(0, calc(-50% + 45px));
}
.nav-prev,
.nav-next {
  width: 25px;
}

.nav-prev {
  left: 0;
}
.nav-next {
  right: 0;
}
.nav-prev::after,
.nav-next::after {
  width: 100%;
  height: 100%;
  content: "";
  display: block;
}
.nav-prev::after {
  background: url("../img/arrow_prev.webp") no-repeat center / contain;
}
.nav-next::after {
  background: url("../img/arrow_next.webp") no-repeat center / contain;
}




@media (min-width: 900px) {
  .nav-prev,
  .nav-next {
    width: 30px;
  }
}
@media (max-width: 899px) {
  .nav-arrow {
    top: calc(50% + 0.5px);
  }
}

