@charset "utf-8";

body {
  background-color: #f4f4f4;
}

main {
  display: flex;
}

/* 背景の色 */
.access_area {
  background-color: #f4f4f4;
  padding-top: 10px;
  padding-bottom: 10px;
  margin: 0 auto;
}

/* 線 */
.linetop {
  width: 100%;
  border-top: 5px solid black;
  margin-top: 10px;
}

.linebottom {
  width: 100%;
  border-top: 5px solid black;
  margin-bottom: 10px;
}

.title {
  background-color: #9f9f9f;
  margin: 50px auto 10px;
}

.title h1 {
  text-align: center;
  line-height: 1;
  color: white;
  font-size: clamp(18px, 3.5vw, 50px);
  font-weight: bolder;
  -webkit-text-stroke: 2px black;
  padding: 10px;
}

.tokyo_area,
.osaka_area {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  /* 揺れ分の余白 */
  overflow: visible;
  /* はみ出し許可 */
}


.text h2 {
  font-size: clamp(20px, 3.0vw, 38px);
  text-align: center;
}

table {
  margin-top: 10px;
  border-collapse: collapse;
}


th {
  font-size: clamp(20px, 2.0vw, 24px);
  text-align: start;
  width: 100px;
}

td {
  font-size: clamp(14px, 1.5vw, 22px);
}

th,
td {
  border-bottom: 1px solid black;
  padding-bottom: 5px;
}

.one {
  margin-left: 40px;
}

.two {
  margin-right: 20px;
}

img {
  width: clamp(300px, 30vw, 500px);
}

.osaka_area .text {
  order: -3;
}



.slide-in-right {
  position: relative;
  animation: slideInRight 1s ease forwards;
  /* 最初は画面外（右）に配置 */
  transform: translateX(100%);
  opacity: 0;
}

@keyframes slideInRight {
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.slide-in-left {
  position: relative;
  animation: slideInLeft 1s ease forwards;
  /* 最初は画面外（左）に配置 */
  transform: translateX(-100%);
  opacity: 0;
}

@keyframes slideInLeft {
  to {
    transform: translateX(0);
    opacity: 1;
  }
}





/* 足跡 */

.container {
  position: relative;
  width: 10%;
  height: 100vh;
}

.footprint {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  opacity: 0;
  animation: showFade 1.5s ease-in-out forwards;
}

/* アニメーション：表示→消える */
@keyframes showFade {
  0% {
    opacity: 0;
    filter: blur(4px);
  }

  20% {
    opacity: 1;
    filter: blur(0);
  }

  80% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    filter: blur(4px);
  }
}

/* 時間差のアニメーション */
.step-0 {
  top: 80px;
  left: 20px;
  animation-delay: 0.3s;
}

.step-1 {
  top: 240px;
  animation-delay: 0.9s;
}

.step-2 {
  top: 380px;
  left: 10px;
  animation-delay: 1.5s;
}

.step-3 {
  top: 520px;
  animation-delay: 2.1s;
}

.step-4 {
  top: 660px;
  left: 10px;
  animation-delay: 2.7s;
}

.step-5 {
  top: 800px;
  animation-delay: 3.3s;
}

.step-6 {
  bottom: 80px;
  animation-delay: 0s;
}

.step-7 {
  bottom: 240px;
  left: 150px;
  animation-delay: 0.6s;
}

.step-8 {
  bottom: 400px;
  animation-delay: 1.2s;
}

.step-9 {
  bottom: 540px;
  left: 180px;
  animation-delay: 1.8s;
}

.step-10 {
  bottom: 680px;
  animation-delay: 2.4s;
}

.step-11 {
  bottom: 820px;
  left: 180px;
  animation-delay: 3.0s;
}




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

  .tokyo_area,
  .osaka_area {
    display: block;
    padding: 20px;
    /* 揺れ分の余白 */
    overflow: visible;
    /* はみ出し許可 */
  }

  table {
    margin: 0 auto;
  }

  .one {
    margin-left: 0px;
  }

  .two {
    margin-right: 0px;
  }

  img {
    width: 100%;
  }

  /* 足跡 */

  .container {
    position: relative;
    width: 10%;
    height: 100vh;
  }

  .footprint {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    opacity: 0;
    animation: showFade 1.5s ease-in-out forwards;
  }

  /* アニメーション：表示→消える */
  @keyframes showFade {
    0% {
      opacity: 0;
      filter: blur(4px);
    }

    20% {
      opacity: 1;
      filter: blur(0);
    }

    80% {
      opacity: 1;
    }

    100% {
      opacity: 0;
      filter: blur(4px);
    }
  }

  /* 時間差のアニメーション */
  .step-0 {
    top: 80px;
    left: 20px;
    animation-delay: 0.3s;
  }

  .step-1 {
    top: 240px;
    animation-delay: 0.9s;
  }

  .step-2 {
    top: 380px;
    left: 10px;
    animation-delay: 1.5s;
  }

  .step-3 {
    top: 520px;
    animation-delay: 2.1s;
  }

  .step-4 {
    top: 660px;
    left: 10px;
    animation-delay: 2.7s;
  }

  .step-5 {
    top: 800px;
    animation-delay: 3.3s;
  }

  .step-6 {
    bottom: 80px;
    animation-delay: 0s;
  }

  .step-7 {
    bottom: 240px;
    left: 50px;
    animation-delay: 0.6s;
  }

  .step-8 {
    bottom: 400px;
    animation-delay: 1.2s;
  }

  .step-9 {
    bottom: 540px;
    left: 50px;
    animation-delay: 1.8s;
  }

  .step-10 {
    bottom: 680px;
    animation-delay: 2.4s;
  }

  .step-11 {
    bottom: 820px;
    left: 50px;
    animation-delay: 3.0s;
  }






}

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

  .title {
    width: 100%;
  }

  .title h1 {
    font-size: 1em;
  }

}