@charset "UTF-8";

/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
  --c-primary: #00cccc;
  --c-text: #333;
  --c-text-light: #666;
  --c-bg-light: #f9f9f9;
  --f-serif: "Noto Serif JP", "Yu Mincho", "YuMincho", serif;
  --f-sans: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --f-zen: "Zen Old Mincho", serif;

  --h-timeline: 36vh;
  --h-timeline-sp: 180px;
}

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

html {
  font-size: clamp(0.75rem, 0.643rem + 0.36vw, 1rem);
}

body {
  overflow-x: hidden;
  font-family: var(--f-serif);
  color: var(--c-text);
  background: #fff;
  font-size: 1rem;
}

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

img.blend {
  mix-blend-mode: multiply;
}

p {
  line-height: 1.8;
  font-size: 1rem;
}

/* Utility Classes */
.sp-br {
  display: inline;
}

.pc-br {
  display: none;
}

.tab-br {
  display: none;
}

/* =========================================
   2. MAIN CONTAINER
   ========================================= */
#history-wrapper {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

#horizontal-container {
  display: flex;
  height: 100%;
  width: max-content;
  position: relative;
}

/* =========================================
   3. SECTION COMMON STYLES
   ========================================= */
.history-section {
  height: 100%;
  position: relative;
  flex-shrink: 0;
}

.history-section::after {
  content: "";
  width: 100%;
  height: 1px;
  position: absolute;
  top: calc(10vh + 4.2em);
  left: 0;
  background-color: #eee;
  z-index: -1;
}

.history-section.section-reiwa::after,
.history-section.section-intro::after,
.history-section.section-outro::after,
.history-section.section-outro2::after,
.history-section.section-history1::after {
  display: none;
}

/* Fixed Background Sections */
.fixed-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.section-intro {
  overflow: hidden;
}

.section-intro.fixed-bg {
  z-index: 1;
}

/* Outro is static content but z-indexed lower to allow overlap */
.section-outro {
  position: relative;
  z-index: 1;
}

.section-outro2 {
  position: relative;
  z-index: 2;
  /* Higher than outro to slide over */
}

.section-outro2 .back-top {
  color: var(--c-primary);
  position: absolute;
  bottom: 5vh;
  /* Adjusted for better visibility */
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  font-family: var(--f-serif);
  text-align: center;
  line-height: 1;
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 0.1em;
  width: 5em;
  height: 5em;
  cursor: pointer;
  display: inline-block;
  padding: 2em 0;
  border: 1px solid var(--c-primary);
  border-radius: 50%;
  transition: all .3s ease-in-out;
}

.section-outro2 .back-top:hover {
  color: #fff;
  background-color: var(--c-primary);
}

.bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

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

.bg-layer.white-bg {
  background-color: #fff;
}

.content-layer {
  width: 100%;
  height: 100%;
  position: relative;
}

#timeline-layer {
  position: absolute;
  bottom: 5vh;
  left: 0;
  width: max-content;
  height: var(--h-timeline);
  display: flex;
  pointer-events: none;
  z-index: 100;
  overflow: hidden;
}

.tl-section {
  height: 100%;
  flex-shrink: 0;
  position: relative;
}

/* Add horizontal line to specific timeline sections */

/* General: All sections */
.tl-section.section-early .timeline-row[data-label="General"],
.tl-section.section-est .timeline-row[data-label="General"],
.tl-section.section-heisei .timeline-row[data-label="General"],
.tl-section.section-heisei2 .timeline-row[data-label="General"],
.tl-section.section-reiwa .timeline-row[data-label="General"] {
  border-bottom: 1px solid #ccc;
}

/* Fukuoka: Partial in Early, Full in others */
.tl-section.section-early .timeline-row[data-label="Fukuoka"] {
  position: relative;
  border-bottom: none;
}

.tl-section.section-early .timeline-row[data-label="Fukuoka"]::after {
  content: "";
  position: absolute;
  bottom: -0.5px;
  left: 78%;
  width: 22%;
  height: 1px;
  background: #ccc;
}

.tl-section.section-est .timeline-row[data-label="Fukuoka"],
.tl-section.section-heisei .timeline-row[data-label="Fukuoka"],
.tl-section.section-heisei2 .timeline-row[data-label="Fukuoka"],
.tl-section.section-reiwa .timeline-row[data-label="Fukuoka"] {
  border-bottom: 1px solid #ccc;
}

/* Asuno: None in Early, Full in others (starts at 0% in Est) */
.tl-section.section-early .timeline-row[data-label="Asuno"] {
  border-bottom: none;
}

.tl-section.section-est .timeline-row[data-label="Asuno"],
.tl-section.section-heisei .timeline-row[data-label="Asuno"],
.tl-section.section-heisei2 .timeline-row[data-label="Asuno"] {
  border-bottom: 1px solid #ccc;
}

.history-title {
  height: 10vh;
  position: absolute;
  z-index: -1;
}

.history-title img {
  height: 100%;
  width: auto;
}

.section-early #history-title1.history-title {
  bottom: 5vh;
  left: 0;
}

.section-est #history-title2.history-title {
  bottom: 18vh;
  left: -80vw;
}

.section-est #history-title3.history-title {
  bottom: 30vh;
  left: -10vw;
}

.timeline-bar {
  height: 100%;
  background: rgba(255, 255, 255, 0.0);
  width: 100%;
  display: flex;
  flex-direction: column-reverse;
  border-bottom: none;
  z-index: 101;
}

.timeline-bar.transparent {
  background: transparent;
  border-bottom: none;
}

.timeline-row {
  flex: 1;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 0 0px;
  margin-bottom: 5vh;
}



.timeline-event.light {
  color: #fff;
}

.ev-text {
  display: block;
  line-height: 1.2;
}

.ev-text.asuno_start {
  opacity: 0;
}

.history-text {
  width: 20vh;
  height: 1.8vh;
  display: block;
  position: absolute;
  bottom: -2.5em;
}

.history-text img {
  height: 100%;
  width: auto;
}

.era {
  font-size: 1rem;
  display: block;
  margin-bottom: .5em;
}

.era-year {
  font-family: var(--f-zen);
  font-size: 4rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: .5em;
  line-height: 1;
}

.era-year span {
  display: inline-block;
  width: 0.6em;
  text-align: center;
}

.era-name {
  line-height: 1;
  font-size: 2.5rem;
}

.era-name img {
  height: 12vh;
  width: auto;
  max-height: 150px;
  margin: 4vh 0 4vh;
}

.subtitle {
  font-family: var(--f-serif);
  font-size: 2.5rem;
  color: var(--c-text);
  font-weight: 400;
  line-height: 1;
  margin-bottom: 15px;
}

.era-desc {
  font-size: 1.5rem;
  line-height: 1.8;
}

.era-desc h2 {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .1em;
  margin-top: 2em;
  margin-bottom: .8em;
  font-feature-settings: "palt";
}

.section-early .era-desc h2 {
  font-size: 1.5rem;
  margin-bottom: 1em;
}

.era-desc p {
  font-size: 1rem;
  line-height: 1.8;
}

/* Timeline Events */
.timeline-event {
  font-size: .8em;
  line-height: 1.2;
  color: var(--c-text-light);
  border-left: 1px solid #ccc;
  height: 3em;
  padding: .2em 1em 0em 1em;
  white-space: nowrap;
  position: absolute;
  /* Changed to absolute */
  bottom: 0px;
  /* Anchor for pseudo-element line */
  left: var(--left-pc, 0%);
  /* Changed from margin-left to left */
}

/* Z-Index Stacking for Era Blocks */
.era-header {
  position: relative;
  z-index: 3;
}

.era-desc {
  position: relative;
  z-index: 2;
}

.era-visual {
  position: absolute;
  z-index: 1;
}

/* Footprints */
.footprints {
  display: block;
  position: relative;
  width: 20vw;
  height: 4.38vw;
  max-width: 320px;
  max-height: 70px;
  z-index: -1;
}

.footprint {
  width: 20% !important;
  height: auto;
  position: absolute;
}

.footprint.f_right {
  bottom: 0;
}

.footprint.f_left {
  top: 0;
}

.footprint:nth-child(1) {
  left: 0;
}

.footprint:nth-child(2) {
  left: 16.5%;
  transform: rotate(-10deg);
}

.footprint:nth-child(3) {
  left: 33%;
  transform: rotate(10deg);
}

.footprint:nth-child(4) {
  left: 49.5%;
  transform: rotate(-5deg);
}

.footprint:nth-child(5) {
  left: 66%;
  transform: rotate(10deg);
}

.footprint:nth-child(6) {
  top: 0;
  left: 82.5%;
}

/* =========================================
   4. PC LAYOUT (min-width: 1025px)
   ========================================= */
@media screen and (min-width: 1025px) {

  /* Utility Overrides */
  .sp-br {
    display: none;
  }

  .pc-br {
    display: inline;
  }

  /* Section Widths */
  .section-intro,
  .tl-section.section-intro {
    width: 100vw;
  }

  .section-history1,
  .tl-section.section-history1 {
    width: 200vw;
  }

  /* Intro */
  .intro-text {
    text-align: center;
    position: absolute;
    top: 50%;
    left: 0%;
    width: 100vw;
    margin: auto;
    transform: translateY(-50%);
  }

  .intro-text img {
    margin: auto;
    max-width: 50%;
  }

  .intro-title {
    color: #fff;
    font-family: var(--f-zen);
    text-align: center;
    line-height: 1.2;
  }

  .intro-title .main {
    display: block;
    font-size: 4rem;
    letter-spacing: 2em;
    font-weight: 600;
    margin: 1.2em 0 1.2em 2em;
  }

  .intro-title .sub {
    display: block;
    font-size: 10rem;
    letter-spacing: 0.4em;
    font-weight: normal;
    margin: 0em 0 0em 0.4em;
  }

  /* Common Era Block Styles for PC */
  .era-block {
    position: absolute;
    height: 100vh;
    padding-top: 10vh;
  }

  .era-visual-group {
    position: relative;
  }

  /* Early Days */
  .section-early,
  .tl-section.section-early {
    width: 210vw;
    padding-left: 10vw;
  }

  .block-meiji {
    top: 0;
    left: 0;
    width: 50vw;
  }

  .block-meiji .era-visual#meiji_1 {
    position: absolute;
    top: 10vh;
    left: 15vw;
    width: 35vw;
  }

  .block-meiji .era-visual#meiji_2 {
    position: absolute;
    top: 50vh;
    left: 25vw;
    width: 30vw;
  }

  .block-taisho {
    top: 0;
    left: 50vw;
    width: 50vw;
  }

  .block-taisho .era-name img {
    margin-left: 5vw;
  }

  .block-taisho .era-visual#taisho_1 {
    position: absolute;
    top: 0vh;
    left: 20vw;
    width: 22vw;
  }

  .block-showa {
    top: 0;
    left: 100vw;
    width: 100vw;
  }

  .block-showa .era-desc {
    margin-top: 0vw;
  }

  .block-showa .era-visual {
    width: 100%;
    height: 100vh;
  }

  .block-showa .era-visual#showa_1 {
    position: absolute;
    top: 5vh;
    right: 20vw;
    width: 50vw;
  }

  .block-showa .era-visual#showa_2 {
    position: absolute;
    bottom: 1%;
    right: 1%;
    width: 28vw;
  }

  .block-showa .era-visual#showa_2 img {
    position: absolute;
    bottom: 4vh;
  }

  /* Establishment */
  .section-est,
  .tl-section.section-est {
    width: 300vw;
  }

  .block-1971 {
    position: absolute;
    top: 0;
    left: 0.5%;
    width: 100vw;
  }

  .block-1971 .era-visual-group {
    position: absolute;
    top: 0;
    left: 35vw;
    width: 50vw;
  }

  .block-1971 .era-visual-group .pos-1971-1 {
    position: absolute;
    top: 8vh;
    left: 2.5vw;
    width: 35vw;
    z-index: 0;
  }

  .block-1971 .era-visual-group .pos-1971-1 img {
    width: 100%;
    height: auto;
  }

  .block-1971 .era-visual-group .pos-1971-2 {
    position: absolute;
    top: 40vh;
    left: 35vw;
    width: 18vw;
    z-index: -1;
  }

  .block-1971 .era-visual-group .pos-1971-2 img {
    width: 100%;
    height: auto;
  }

  .block-1971 .era-visual-group img:nth-child(3) {
    position: absolute;
    top: 0;
    left: 0vw;
    width: 5vw;
    z-index: -1;
  }

  .block-1979 {
    position: absolute;
    top: 0;
    left: 92vw;
    width: 50vw;
  }

  .block-1979 .era-visual {
    position: absolute;
    top: 0;
    left: 27vw;
    width: 25vw;
  }

  .block-1979-2 {
    top: 0;
    left: 150vw;
    width: 50vw;
    position: absolute;
    padding-top: 22vh;
  }

  .block-1979-2 .era-header {
    opacity: 0;
  }

  .block-1979-2 .era-visual {
    position: absolute;
    top: 37vh;
    right: 5vw;
    width: 30vw;
  }

  .block-1979-2 .footprints {
    position: absolute;
    top: 44vh;
    right: 34vw;
    width: 20vw;
    height: 4.38vw;
    transform: rotate(20deg);
  }

  .block-1980 {
    top: 0;
    left: 200vw;
    width: 40vw;
    position: absolute;
  }

  .block-1983 {
    top: 0;
    left: 240vw;
    width: 60vw;
    position: absolute;
  }

  .block-1983 .era-visual#fig_1983_1 {
    position: absolute;
    top: 25vh;
    right: 4vw;
    width: 28vw;
  }

  .block-1983 .era-visual#fig_1983_2 {
    position: absolute;
    bottom: -5vw;
    right: 8vw;
    width: 52vw;
    z-index: -1;
  }

  /* Heisei */
  .section-heisei,
  .tl-section.section-heisei {
    width: 285vw;
  }

  .block-1990 {
    position: absolute;
    top: 0;
    left: 0;
    width: 75vw;
  }

  .block-1990 .era-name img {
    margin-top: 12vh;
  }

  .block-1990 .era-desc {
    position: absolute;
    top: 9vh;
    left: 20vw;
    width: 70vw;
  }

  .block-1990 .era-visual {
    position: absolute;
    top: 32vh;
    left: 0vw;
    right: 0;
    width: 45vw;
    margin: auto;
  }

  .block-1995 {
    position: absolute;
    top: 0;
    padding-top: 10vh;
    left: 75vw;
    width: 65vw;
  }

  .block-1995 .era-header,
  .block-1995 .era-desc {
    width: 55%;
  }

  .block-1995 .era-visual#asuno_logo {
    position: absolute;
    top: 5vh;
    left: -5vw;
    width: 30vw;
  }

  .block-1995 .era-visual#video-1995 {
    position: absolute;
    top: 10vh;
    left: 40%;
    width: 50%;
    max-width: 480px;
    height: auto;
    display: block;
  }

  .block-1995 .era-visual#video-1995 video {
    width: 100%;
    height: auto;
    display: block;
  }

  .block-1997 {
    position: absolute;
    top: 0;
    left: 140vw;
    width: 75vw;
  }

  .block-1997 .era-visual#fig_1997_1 {
    position: absolute;
    top: 0;
    left: 32vw;
    width: 30vw;
  }

  .block-1997 .footprints {
    position: absolute;
    top: 45vh;
    left: 14vw;
    width: 20vw;
    height: 4.38vw;
    transform: rotate(-30deg);
  }

  .block-2004 {
    position: absolute;
    top: 0;
    left: 215vw;
    width: 70vw;
  }

  .block-2004 .era-visual#fig_2004_1 {
    position: absolute;
    top: 0vh;
    left: 25vw;
    width: 30vw;
    max-width: 440px;
  }

  .block-2004 .era-visual#fig_2004_2 {
    /*Shock*/
    position: absolute;
    bottom: 10vh;
    right: 0vw;
    width: 20vw;
    height: 11.7vw;
  }

  .block-2004 .era-visual#fig_2004_2 img:nth-child(1) {
    /*Shock*/
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
  }

  .block-2004 .era-visual#fig_2004_2 img.flash {
    /*Shock*/
    position: absolute;
    bottom: -45%;
    left: -35%;
    width: 70%;
    mix-blend-mode: multiply;
  }

  .block-2004 .era-visual#fig_2004_3 {
    /*Plane*/
    position: absolute;
    bottom: 45vh;
    right: 17vw;
    width: 6vw;
    height: auto;
    min-width: 80px;
  }

  /* Heisei2 */
  .section-heisei2,
  .tl-section.section-heisei2 {
    width: 175vw;
  }

  .block-2006 {
    top: 0;
    left: 0%;
    width: 75vw;
  }

  .block-2006 .era-visual#fig_2006_1 {
    position: absolute;
    top: 0;
    right: 10vw;
    width: 35vw;
  }

  .block-2006 .era-visual#fig_2006_2 {
    position: absolute;
    bottom: 10vh;
    left: 15vw;
    width: 12vw;
  }

  .block-2006 .footprints {
    position: absolute;
    top: 5vh;
    left: 10vw;
    width: 20vw;
    height: 4.38vw;
    transform: rotate(20deg);
  }

  .block-2014 {
    top: 0;
    padding-top: 10vh;
    left: 75vw;
    width: 50vw;
  }

  .block-2014 .era-visual {
    position: absolute;
    bottom: 0vh;
    left: 10vw;
    width: 30vw;
  }

  .block-2015 {
    top: 0;
    left: 115vw;
    width: 50vw;
  }

  .block-2015 .era-visual {
    position: absolute;
    top: 30vh;
    right: 2vw;
    width: 25vw;
  }

  .drawing-container {
    position: relative;
    width: 100%;
    height: 50vh;
  }

  #line-svg {
    width: 100%;
    height: auto;
    overflow: visible;
    clip-path: inset(0 100% 0 0);
  }

  #drawing-path {
    stroke: #54c0c0;
    stroke-width: 2px;
    fill: none;
  }

  #pen-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 10vw;
    pointer-events: none;
    z-index: 10;
    transform-origin: bottom left;
    /* Tip of the pen */
  }

  .block-2015 .footprints {
    position: absolute;
    bottom: 30vh;
    left: 42vw;
    width: 20vw;
    height: 4.38vw;
    transform: rotate(-25deg);
  }

  /* Reiwa */
  .section-reiwa,
  .tl-section.section-reiwa {
    width: 100vw;
  }

  .section-reiwa {
    overflow: hidden;
  }

  .section-reiwa .bg-layer {
    position: relative;
    width: 100vw;
    height: 78vh;
    overflow: hidden;
  }

  .section-reiwa .bg-layer img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  .section-reiwa .blue-layer {
    color: #fff;
    background-color: rgba(6, 28, 128, 0.5);
    width: 50vw;
    height: 78vh;
    position: absolute;
    top: 0;
    left: 0vw;
  }

  .section-reiwa .block-2025 {
    position: static;
    width: 100% !important;
  }

  .section-reiwa .era-header,
  .section-reiwa .era-desc {
    color: #fff !important;
    margin-left: 5vw;
  }

  .section-reiwa .era-name {
    position: absolute;
    left: -70px;
    bottom: -20vh;
  }

  /* Outro */
  .section-outro {
    width: 200vw;
    position: relative;
    z-index: 1;
  }

  .section-outro .bg-layer {
    width: 100%;
  }

  .outro-text {
    text-align: center;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .outro-text img {
    width: 63.5vw;
    height: auto;
  }

  .section-outro2 {
    width: 100vw;
    position: relative;
    z-index: 2;
  }

  .section-outro2 .content-layer {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100vh;
  }

  .section-outro2 .outro-text {
    display: block;
    width: auto;
    height: auto;
  }

  .section-outro2 p {
    line-height: 2.5;
    margin-bottom: .5em;
    opacity: 0;
  }

  .section-outro2 .feature-text {
    font-size: 1.5rem;
    margin: .5em 0;
  }

  .section-outro2 .end_sign video {
    width: 12vw;
    float: right;
    margin-right: -2em;
  }

  .future-content {
    display: flex;
    gap: 100px;
    align-items: center;
  }

  .future-left {
    padding-right: 50px;
  }

  .future-right .catch-copy {
    font-size: 2rem;
    margin-bottom: 20px;
  }

  .future-right .signature {
    font-family: cursive;
    font-size: 1.5rem;
    text-align: right;
  }

  /* Ensure timeline event text is legible on PC/Large Tablets */
  .timeline-event {
    font-size: .8rem;
    left: var(--left-pc, 0%);
  }
}

/* =========================================
   5. TABLET LAYOUT (576px - 1024px)
   ========================================= */
@media screen and (min-width: 577px) and (max-width: 1024px) {

  :root {
    --h-timeline: var(--h-timeline-sp);
  }

  .tab-br {
    display: inline;
  }

  .section-est #history-title2.history-title {
    bottom: 18vh;
    left: -50vw;
  }

  .section-est #history-title3.history-title {
    bottom: 30vh;
    left: -10vw;
  }

  .tl-section.section-early .timeline-row[data-label="Fukuoka"]::after {
    left: 80%;
    width: 20%;
    bottom: -0.7px;
  }


  .history-section {
    width: 100vw;
    height: 100%;
  }

  /* Section Widths based on horizontal scroll */
  .section-intro,
  .tl-section.section-intro,
  .section-history1,
  .tl-section.section-history1 {
    width: 100vw;
  }

  .history-title {
    height: 10vh;
    position: absolute;
    z-index: -1;
  }

  .history-title img {
    height: 100%;
    width: auto;
  }

  .section-early #history-title1.history-title {
    bottom: 5vh;
    left: 0;
  }

  .section-est #history-title2.history-title {
    bottom: 15vh;
    left: -200vw;
  }

  .section-est #history-title3.history-title {
    bottom: 25vh;
    left: -10vw;
  }

  .history-text {
    bottom: -2em;
  }

  /* Intro */
  .intro-text {
    padding: 0px;
    text-align: center;
    width: 100vw;
    margin: auto;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }

  .intro-text img {
    max-width: 80%;
    margin: auto;
  }

  /* Intro */
  .intro-text {
    padding: 0px;
    text-align: center;
    width: 100vw;
    margin: auto;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }

  .intro-title {
    color: #fff;
  }

  .intro-title .main {
    font-size: 6rem;
    letter-spacing: 1em;
    font-weight: 600;
    margin: 3em 0 3em 1em;
  }

  .intro-title .sub {
    display: block;
    font-size: 12rem;
    letter-spacing: 0.2em;
    font-weight: normal;
    margin: 0em 0 0em 0.2em;
  }

  /* Era Blocks - Horizontal Positioning */
  .era-block {
    position: absolute;
    height: 100vh;
    padding-top: 10vh;
    width: 100vw;
  }

  /* Early Days */
  .section-early,
  .tl-section.section-early {
    width: 350vw;
  }

  .block-meiji {
    width: 100vw;
    position: absolute;
    left: 0;
    top: 0;
  }

  .block-meiji .era-visual#meiji_1 {
    position: absolute;
    right: 12vw;
    top: 10vh;
    width: 60vw;
    max-width: 480px;
  }

  .block-meiji .era-visual#meiji_2 {
    right: 0vw;
    bottom: 18vh;
    width: 50vw;
    max-width: 400px;
  }

  .block-taisho {
    width: 100vw;
    position: absolute;
    left: 100vw;
    top: 0;
  }

  .block-taisho .era-visual#taisho_1 {
    position: absolute;
    right: 10vw;
    top: 0vh;
    width: 50vw;
    max-width: 400px;
  }

  .block-showa {
    width: 150vw;
    position: absolute;
    left: 200vw;
    top: 0;
  }

  .block-showa .era-desc {
    width: 40%;
  }

  .block-showa .era-visual#showa_1 {
    position: absolute;
    right: 10vw;
    top: 2vh;
    width: 60%;
    max-width: 640px;
  }

  .block-showa .era-visual#showa_2 {
    position: absolute;
    right: 5vw;
    bottom: 10vh;
    width: 25%;
    max-width: 400px;
  }

  /* Establishment */

  .section-est,
  .tl-section.section-est {
    width: 520vw;
  }

  .block-1971 {
    width: 150vw;
    position: absolute;
    left: 0;
    top: 0;
  }

  .block-1971 .era-visual-group {
    position: absolute;
    top: 10vh;
    right: 0vw;
    width: 110vw;
    max-width: 1020px;
    height: 100vh;
  }

  .block-1971 .era-visual-group img {
    width: 100%;
    height: auto;
  }

  .block-1971 .era-visual-group .pos-1971-1 {
    position: absolute;
    top: 5vh;
    left: 4%;
    width: 65%;
    z-index: 0;
  }

  .block-1971 .era-visual-group .pos-1971-2 {
    position: absolute;
    top: 40vh;
    right: 5%;
    width: 30%;
    z-index: -1;
  }

  .block-1971 .era-visual-group img:nth-child(3) {
    position: absolute;
    top: 0;
    left: 0%;
    width: 8%;
    z-index: -1;
  }

  .block-1979 {
    width: 110vw;
    position: absolute;
    left: 150vw;
    top: 0;
  }

  .block-1979 .era-visual {
    position: absolute;
    top: 0vh;
    left: 50vw;
    width: 50vw;
    max-width: 430px;
  }

  .block-1979-2 {
    width: 100vw;
    position: absolute;
    left: 260vw;
    top: 0;
  }

  .block-1979-2 .era-visual {
    position: absolute;
    top: 38vh;
    right: 10vw;
    width: 65vw;
    max-width: 540px;
  }

  .block-1979-2 .footprints {
    position: absolute;
    top: 50vh;
    left: -5vw;
    width: 30vw;
    height: 6.56vw;
    transform: rotate(20deg);
  }

  .block-1980 {
    width: 65vw;
    position: absolute;
    left: 360vw;
    top: 0;
  }

  .block-1983 {
    width: 85vw;
    position: absolute;
    left: 430vw;
    top: 0;
  }

  .block-1983 .era-visual#fig_1983_1 {
    position: absolute;
    top: 38vh;
    right: 5vw;
    width: 40vw;
  }

  .block-1983 .era-visual#fig_1983_2 {
    position: absolute;
    bottom: -5vh;
    right: 12vw;
    width: 75vw;
    z-index: -1;
  }


  /* Heisei */
  .section-heisei,
  .tl-section.section-heisei {
    width: 370vw;
  }

  .block-1990 {
    width: 75vw;
    position: absolute;
    left: 0;
    top: 0;
  }

  .block-1990 .era-name img {
    margin-top: 4vh;
  }

  .block-1990 .era-desc {
    position: relative;
    top: auto;
    left: auto;
  }

  .block-1990 .era-desc h2 {
    margin-top: -1em;
  }

  .block-1990 .era-visual {
    position: absolute;
    top: 55vh;
    left: 10vw;
    right: 0;
    width: 90%;
    margin: auto;
  }


  .block-1995 {
    width: 85vw;
    position: absolute;
    left: 75vw;
    top: 0;
  }

  .block-1995 .era-header,
  .block-1995 .era-desc {
    width: 55%;
  }

  .block-1995 .era-visual#asuno_logo {
    position: absolute;
    top: 10vh;
    left: -10vw;
    width: 60%;
  }

  .block-1995 .era-visual#video-1995 {
    position: absolute;
    top: 25vh;
    right: 10vw;
    width: 45vw;
    height: auto;
    display: block;
  }

  .block-1995 .era-visual#video-1995 video {
    width: 100%;
    height: auto;
    display: block;
  }

  .block-1997 {
    width: 100vw;
    position: absolute;
    left: 160vw;
    top: 0;
  }

  .block-1997 .era-visual#fig_1997_1 {
    position: absolute;
    top: 0vh;
    right: 8vw;
    width: 45vw;
  }

  .block-1997 .footprints {
    position: absolute;
    top: 60vh;
    left: 20vw;
    width: 30vw;
    height: 6.56vw;
    transform: rotate(-30deg);
  }

  .block-2004 {
    width: 110vw;
    position: absolute;
    left: 260vw;
    top: 0;
    padding-left: 3vw;
  }

  .block-2004 .era-visual#fig_2004_1 {
    position: absolute;
    top: 5vh;
    right: 22vw;
    width: 48vw;
  }

  .block-2004 .era-visual#fig_2004_2 {
    /*Shock*/
    position: absolute;
    bottom: 10vh;
    right: 10vw;
    width: 30vw;
    height: 8.77vw;
  }

  .block-2004 .era-visual#fig_2004_2 img:nth-child(1) {
    /*Shock*/
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
  }

  .block-2004 .era-visual#fig_2004_2 img.flash {
    /*Shock*/
    position: absolute;
    bottom: -50%;
    left: -35%;
    width: 70%;
    mix-blend-mode: multiply;
  }

  .block-2004 .era-visual#fig_2004_3 {
    /*Plane*/
    position: absolute;
    bottom: 35vh;
    right: 0vw;
    width: 12vw;
    height: auto;
    min-width: 100px;
  }

  /* Heisei 2 */
  .section-heisei2,
  .tl-section.section-heisei2 {
    width: 250vw;
  }

  .block-2006 {
    width: 100vw;
    position: absolute;
    left: 0;
    top: 0;
  }

  .block-2006 .era-visual#fig_2006_1 {
    position: absolute;
    top: 22vh;
    right: 10vw;
    width: 45vw;
  }

  .block-2006 .era-visual#fig_2006_2 {
    position: absolute;
    bottom: 10vh;
    left: 15vw;
    width: 20vw;
  }

  .block-2006 .footprints {
    position: absolute;
    top: 48vh;
    left: 12vw;
    width: 30vw;
    height: 6.56vw;
    transform: rotate(20deg);
  }

  .block-2014 {
    width: 75vw;
    position: absolute;
    left: 100vw;
    top: 0;
  }

  .block-2014 .era-visual {
    position: absolute;
    bottom: 0vh;
    left: 25vw;
    width: 42vw;
  }

  .block-2015 {
    width: 75vw;
    position: absolute;
    left: 175vw;
    top: 0;
  }

  .block-2015 .era-visual {
    position: absolute;
    top: 40vh;
    right: 35vw;
    width: 35vw;
  }

  .drawing-container {
    position: relative;
    width: 100%;
    height: 50vh;
    margin-top: 0vh;
  }

  #line-svg {
    width: 100%;
    height: auto;
    overflow: visible;
    clip-path: inset(0 100% 0 0);
  }

  #pen-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 15vw;
    pointer-events: none;
    z-index: 10;
    transform-origin: bottom left;
  }

  .block-2015 .footprints {
    position: absolute;
    bottom: 30vh;
    right: -2vw;
    width: 30vw;
    height: 6.56vw;
    transform: rotate(-25deg);
  }

  /* Reiwa */
  .section-reiwa,
  .tl-section.section-reiwa {
    width: 150vw;
    overflow: hidden;
  }

  .block-2025 {
    position: absolute;
    left: 0;
    top: 0;
    width: 150vw;
    padding-left: 5vw;
  }

  .section-reiwa .bg-layer {
    position: relative;
    width: 150vw;
    height: 85vh;
    overflow: hidden;
  }

  .section-reiwa .bg-layer img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    object-fit: cover;
  }

  .section-reiwa .blue-layer {
    color: #fff;
    background-color: rgba(6, 28, 128, 0.5);
    width: 75vw;
    height: 85vh;
    position: absolute;
    top: 0;
    left: 0vw;
  }

  /* Outro */
  .section-outro {
    width: 200vw;
    position: relative;
    z-index: 1;
  }

  .section-outro .bg-layer {
    width: 100%;
  }

  .outro-text {
    text-align: center;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .outro-text img {
    width: 90vw;
    height: auto;
  }

  .section-outro2 {
    width: 100vw;
    position: relative;
    z-index: 2;
  }

  .section-outro2 .content-layer {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 85%;
    height: 100vh;
    margin: auto;
  }

  .section-outro2 .outro-text {
    display: block;
    width: auto;
    height: auto;
  }

  .section-outro2 p {
    line-height: 1.8;
    margin-bottom: 1.2em;
    opacity: 0;
  }

  .section-outro2 .feature-text {
    font-size: 1.5rem;
    line-height: 1.5;
    margin: 1.2em 0;
  }

  .section-outro2 .end_sign video {
    width: 20vw;
    float: right;
    margin-top: 1em;
    margin-right: -2em;
  }

  /* Visuals Adjustments for Tablet */
  .era-visual {
    width: auto;
    height: auto;
    position: absolute;
  }

  .era-visual img {
    width: 100%;
    height: auto;
  }

  /* Typography */
  .era-name {
    line-height: 1;
    font-size: 2.5rem;
  }

  .era-name img {
    height: 9vh;
    width: auto;
    margin: 4vh 0 4vh;
  }

  .era-desc h2 {
    font-size: 2.2rem;
  }

  .era-desc p {
    font-size: 1.2rem;
  }

  .era-year {
    font-size: 4rem;
  }

  .timeline-event {
    font-size: .8rem;
    left: var(--left-tab, var(--left-pc, 0%));
    height: 2.5em;
  }
}

/* =========================================
   6. SP LAYOUT (max-width: 576px)
   ========================================= */
@media screen and (max-width: 576px) {

  :root {
    --h-timeline: var(--h-timeline-sp);
  }

  .history-section {
    width: 100vw;
    height: 100%;
  }

  .tl-section.section-early .timeline-row[data-label="Fukuoka"]::after {
    left: 80%;
    width: 20%;
    bottom: -0.7px;
  }

  /* Section Widths based on horizontal scroll */
  .section-intro,
  .tl-section.section-intro,
  .section-history1,
  .tl-section.section-history1 {
    width: 100vw;
  }

  .history-title {
    height: 10vh;
    position: absolute;
    z-index: -1;
  }

  .history-title img {
    height: 100%;
    width: auto;
  }

  .section-early #history-title1.history-title {
    bottom: 5vh;
    left: 0;
  }

  .section-est #history-title2.history-title {
    bottom: 15vh;
    left: -300vw;
  }

  .section-est #history-title3.history-title {
    bottom: 25vh;
    left: -10vw;
  }

  .history-text {
    bottom: -1.5em;
  }

  /* Intro */
  .intro-text {
    padding: 0px;
    text-align: center;
    width: 100vw;
    margin: auto;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }

  .intro-text img {
    max-width: 80%;
    margin: auto;
  }

  .intro-title {
    color: #fff;
  }

  .intro-title .main {
    font-size: 3rem;
    letter-spacing: 1em;
    font-weight: 600;
    margin: 3em 0 3em 1em;
  }

  .intro-title .sub {
    display: block;
    font-size: 6rem;
    letter-spacing: 0.2em;
    font-weight: normal;
    margin: 0em 0 0em 0.2em;
  }

  /* Era Blocks - Horizontal Positioning */
  .era-block {
    position: absolute;
    height: 100vh;
    padding-top: 10vh;
    width: 100vw;
    /* Force 100vw per block */
  }

  /* Era Blocks - Individual Layout Adjustments */

  /* Early Days */
  .section-early,
  .tl-section.section-early {
    width: 700vw;
    /* 3 eras x 100vw */
  }

  .block-meiji {
    width: 200vw;
    position: absolute;
    left: 0;
    top: 0;
  }

  .block-meiji .era-visual#meiji_1 {
    width: 60%;
    right: 12vw;
    top: 10vh;
  }

  .block-meiji .era-visual#meiji_2 {
    width: 45%;
    right: 0vw;
    bottom: 15vh;
  }

  .block-taisho {
    width: 200vw;
    position: absolute;
    left: 200vw;
    top: 0;
  }

  .block-taisho .era-visual#taisho_1 {
    width: 50%;
    right: 15vw;
    top: 0vh;
  }

  .block-showa {
    width: 300vw;
    position: absolute;
    left: 400vw;
    top: 0;
  }

  .block-showa .era-desc p {
    width: 90vw;
  }

  .block-showa .era-visual#showa_1 {
    width: 60%;
    right: 23vw;
    top: 10vh;
  }

  .block-showa .era-visual#showa_2 {
    width: 25%;
    right: 5vw;
    bottom: 8vh;
  }

  /* Establishment */

  .section-est,
  .tl-section.section-est {
    width: 940vw;
  }

  .block-1971 {
    width: 300vw;
    position: absolute;
    left: 0;
    top: 0;
  }

  .block-1971 .era-visual-group {
    position: absolute;
    top: 10vh;
    right: 5vw;
    width: 200vw;
    height: 100vh;
  }

  .block-1971 .era-visual-group .pos-1971-1 {
    position: absolute;
    top: 5vh;
    left: 7vw;
    width: 130vw;
    z-index: 0;
  }

  .block-1971 .era-visual-group .pos-1971-1 img {
    width: 100%;
    height: auto;
  }

  .block-1971 .era-visual-group .pos-1971-2 {
    position: absolute;
    top: 40vh;
    right: 7vw;
    width: 50vw;
    z-index: -1;
  }

  .block-1971 .era-visual-group .pos-1971-2 img {
    width: 100%;
    height: auto;
  }

  .block-1971 .era-visual-group img:nth-child(3) {
    position: absolute;
    top: 0;
    left: 0vw;
    width: 16vw;
    z-index: -1;
  }

  .block-1979 {
    width: 200vw;
    position: absolute;
    left: 300vw;
    top: 0;
  }

  .block-1979 .era-visual {
    position: absolute;
    top: 0vh;
    right: 10vw;
    width: 90vw;
  }

  .block-1979-2 {
    width: 200vw;
    position: absolute;
    left: 500vw;
    top: 0;
  }

  .block-1979-2 .era-desc {
    margin-top: 6em;
  }


  .block-1979-2 .era-visual {
    position: absolute;
    top: 35vh;
    right: 20vw;
    width: 110vw;
  }

  .block-1979-2 .footprints {
    position: absolute;
    top: 40vh;
    left: 12vw;
    width: 60vw;
    height: 13.12vw;
    transform: rotate(20deg);
  }

  .block-1980 {
    width: 110vw;
    position: absolute;
    left: 700vw;
    top: 0;
  }

  .block-1980 .era-desc p {
    width: 85vw;
  }

  .block-1983 {
    width: 130vw;
    position: absolute;
    left: 800vw;
    top: 0;
  }

  .block-1983 .era-visual#fig_1983_1 {
    position: absolute;
    top: 40vh;
    right: 8vw;
    width: 70vw;
  }

  .block-1983 .era-visual#fig_1983_2 {
    position: absolute;
    bottom: 0vw;
    right: 20vw;
    width: 130vw;
    z-index: -1;
  }


  /* Heisei */
  .section-heisei,
  .tl-section.section-heisei {
    width: 630vw;
  }

  .block-1990 {
    width: 100vw;
    position: absolute;
    left: 0;
    top: 0;
  }

  .block-1990 .era-name img {
    margin-top: 4vh;
  }

  .block-1990 .era-desc {
    position: relative;
    top: auto;
    left: auto;
  }

  .block-1990 .era-desc h2 {
    margin-top: -1em;
  }

  .block-1990 .era-visual {
    position: absolute;
    top: 52vh;
    left: 0vw;
    right: 0;
    width: 100vw;
    margin: auto;
  }


  .block-1995 {
    width: 150vw;
    position: absolute;
    left: 100vw;
    top: 0;
  }

  .block-1995 .era-header,
  .block-1995 .era-desc {
    width: 55%;
  }

  .block-1995 .era-visual#asuno_logo {
    position: absolute;
    top: 10vh;
    left: -10vw;
    width: 50%;
  }

  .block-1995 .era-visual#video-1995 {
    position: absolute;
    top: 27vh;
    left: 32%;
    width: 60%;
    height: auto;
    display: block;
  }

  .block-1995 .era-visual#video-1995 video {
    width: 100%;
    height: auto;
    display: block;
  }

  .block-1997 {
    width: 200vw;
    position: absolute;
    left: 250vw;
    top: 0;
  }

  .block-1997 .era-visual#fig_1997_1 {
    position: absolute;
    top: 0vh;
    right: 20vw;
    width: 85vw;
  }

  .block-1997 .footprints {
    position: absolute;
    top: 55vh;
    left: 35vw;
    width: 60vw;
    height: 13.12vw;
    transform: rotate(-30deg);
  }

  .block-2004 {
    width: 180vw;
    position: absolute;
    left: 450vw;
    top: 0;
  }

  .block-2004 .era-visual#fig_2004_1 {
    position: absolute;
    top: 10vh;
    right: 30vw;
    width: 90vw;
  }

  .block-2004 .era-visual#fig_2004_2 {
    /*Shock*/
    position: absolute;
    bottom: 10vh;
    right: 20vw;
    width: 50vw;
    height: 11.7vw;
  }

  .block-2004 .era-visual#fig_2004_2 img:nth-child(1) {
    /*Shock*/
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
  }

  .block-2004 .era-visual#fig_2004_2 img.flash {
    /*Shock*/
    position: absolute;
    bottom: -45%;
    left: -35%;
    width: 70%;
    mix-blend-mode: multiply;
  }

  .block-2004 .era-visual#fig_2004_3 {
    /*Plane*/
    position: absolute;
    bottom: 35vh;
    right: 10vw;
    width: 20vw;
    height: auto;
    min-width: 100px;
  }

  /* Heisei 2 */
  .section-heisei2,
  .tl-section.section-heisei2 {
    width: 430vw;
  }

  .block-2006 {
    width: 180vw;
    position: absolute;
    left: 0;
    top: 0;
  }

  .block-2006 .era-visual#fig_2006_1 {
    position: absolute;
    top: 5vh;
    right: 20vw;
    width: 85vw;
  }

  .block-2006 .era-visual#fig_2006_2 {
    position: absolute;
    bottom: 17vh;
    left: 15vw;
    width: 35vw;
  }

  .block-2006 .footprints {
    position: absolute;
    top: 5vh;
    left: 12vw;
    width: 60vw;
    height: 13.12vw;
    transform: rotate(20deg);
  }

  .block-2014 {
    width: 120vw;
    position: absolute;
    left: 180vw;
    top: 0;
  }

  .block-2014 .era-visual {
    position: absolute;
    bottom: 0vh;
    left: 5vw;
    width: 90vw;
  }

  .block-2015 {
    width: 150vw;
    position: absolute;
    left: 280vw;
    top: 0;
  }

  .drawing-container {
    position: relative;
    width: 100%;
    height: 50vh;
    margin-top: 5vh;
  }

  #line-svg {
    width: 100%;
    height: auto;
    overflow: visible;
    clip-path: inset(0 100% 0 0);
  }

  #pen-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 20vw;
    pointer-events: none;
    z-index: 10;
    transform-origin: bottom left;
  }

  .block-2015 .footprints {
    position: absolute;
    bottom: 30vh;
    left: 90vw;
    width: 60vw;
    height: 13.12vw;
    transform: rotate(-25deg);
  }

  /* Reiwa */
  .section-reiwa,
  .tl-section.section-reiwa {
    width: 200vw;
    overflow: hidden;
  }

  .block-2025 {
    position: absolute;
    left: 0;
    top: 0;
    width: 200vw;
    padding-left: 10vw;
  }

  .block-2025 .era-desc p {
    width: 100vw;
  }


  .section-reiwa .bg-layer {
    position: relative;
    width: 200vw;
    height: 85vh;
    overflow: hidden;
  }

  .section-reiwa .bg-layer img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .section-reiwa .blue-layer {
    color: #fff;
    background-color: rgba(6, 28, 128, 0.5);
    width: 120vw;
    height: 85vh;
    position: absolute;
    top: 0;
    left: 0;
  }

  /* Outro */
  .section-outro {
    width: 200vw;
    position: relative;
    z-index: 1;
  }

  .section-outro .bg-layer {
    width: 100%;
  }

  .outro-text {
    text-align: center;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .outro-text img {
    width: 90vw;
    height: auto;
  }

  .section-outro2 {
    width: 100vw;
    position: relative;
    z-index: 2;
  }

  .section-outro2 .content-layer {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 94%;
    height: 100vh;
    margin: auto;
  }

  .section-outro2 .outro-text {
    display: block;
    width: auto;
    height: auto;
  }

  .section-outro2 p {
    line-height: 1.6;
    margin-bottom: 1em;
    opacity: 0;
  }

  .section-outro2 .feature-text {
    font-size: 1.4rem;
    line-height: 1.5;
    margin: 1em 0;
  }

  .section-outro2 .end_sign video {
    width: 35vw;
    float: right;
    margin-top: -0.5em;
  }

  /* Visuals Adjustments for SP */
  .era-visual {
    width: auto;
    height: auto;
    position: absolute;
  }

  .era-visual img {
    width: 100%;
    height: auto;
  }

  /* Typography */
  .era-name {
    line-height: 1;
    font-size: 2.5rem;
  }

  .era-name img {
    height: 10vh;
    width: auto;
    margin: 4vh 0 4vh;
  }

  .era-desc h2 {
    font-size: 2rem;
    max-width: 100vw;
  }

  .era-desc p {
    font-size: 1.2rem;
    max-width: 100vw;
  }

  .era-year {
    font-size: 4rem;
  }


  /* Intro */
  .timeline-event {
    font-size: 1em;
    left: var(--left-sp, var(--left-pc, 0%));
  }

}

/* =========================================
   LOADING SCREEN
   ========================================= */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.loading-line {
  width: 0;
  height: 1px;
  background-color: #00cccc;
}

.loading-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--f-serif);
  font-size: .5em;
  letter-spacing: 0.2em;
  color: var(--c-primary);
  margin-top: -20px;
  animation: pulseOpacity 1.5s infinite ease-in-out;
}

@keyframes pulseOpacity {
  0% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.5;
  }
}