@import url('https://fonts.googleapis.com/css2?family=Kiwi+Maru:wght@400;500&display=swap');


/* =========================
   RESET
========================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Kiwi Maru", serif;
  color: #17333d;
  background: #f4f7f5;
  line-height: 1.8;
}

button {
  font: inherit;
}

.wrapper {
  margin: 0 15px;
}

a {
  text-decoration: none;
}

.align-center {
  text-align: center;
}

/* =========================
   HERO
========================= */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;

  background:
    radial-gradient(circle at 50% 20%,
      rgba(255, 255, 255, .9),
      transparent 45%),
    linear-gradient(180deg,
      #dfeef0 0%,
      #edf5f3 55%,
      #f4f7f5 100%);

  text-align: center;
  padding: 80px 24px;
}

/* 背景画像（スマホは1枚だけ） */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("img/01.png");
  /* ←スマホ用メイン */
  background-size: cover;
  background-position: center;
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

/* コンテンツを前面に */
.hero>* {
  position: relative;
  z-index: 1;
}


.hero-inner {
  max-width: 850px;
}

.hero-kicker,
.section-label {
  font-family: Arial, sans-serif;
  letter-spacing: .2em;
  font-size: .72rem;
  font-weight: bold;
}

.hero-kicker {
  margin-bottom: 25px;
  opacity: .55;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 8vw, 6rem);
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: .05em;
}

.hero h1 span {
  display: block;
  margin-top: 20px;
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  letter-spacing: .12em;
}

.hero-lead {
  margin: 50px auto;
  font-size: 1rem;
  background-color: #ffffff8a;
}

.start-button {
  border: 1px solid #174baf;
  background: transparent;
  padding: 16px 30px;
  cursor: pointer;
  letter-spacing: .12em;
  transition: .3s;
}

.start-button span {
  margin-left: 15px;
}

.start-button:hover {
  background: #174baf;
  color: white;
}


/* =========================
   INTRO
========================= */

.intro {
  max-width: 720px;
  margin: auto;
  padding: 140px 25px 100px;
  background-image: url(img/02.png);
  background-size: cover;
}

.section-label {
  opacity: .5;
}

.intro h2,
.route-header h2,
.ending h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.5;
  font-weight: 500;
  margin: 20px 0 45px;
}

.intro p {
  margin-bottom: 30px;
  background-color: #ffffff80;
}

.intro strong {
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 5px;
  text-decoration-color: #bcdce0;
}


/* =========================
   ROUTE SECTION
========================= */

.route-section {
  padding: 100px 20px 180px;
  position: relative;
  background-image: none;
}

.route-section::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(rgba(245, 248, 247, 0.72),
      rgba(245, 248, 247, 0.72)),
    url("img/03.jpg") center center / cover no-repeat;
  opacity: 0;
  pointer-events: none;
}

.route-section.bg-active::before {
  opacity: 1;
}

.route-header,
.route-map {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto 100px;
  text-align: center;
}

.route-header h2 {
  margin-bottom: 25px;
}


/* =========================
   ROUTE MAP
========================= */

.route-map {
  width: min(680px, 100%);
  margin: auto;
  position: relative;
}


/* vertical railway */

.route-map::before {
  content: "";
  position: absolute;

  left: 50%;
  top: 0;
  bottom: 0;

  width: 3px;

  background: #17333d;

  transform: translateX(-50%);
}


/* =========================
   STATION
========================= */

.station-block {
  position: relative;
  margin: 20px 0;
  z-index: 2;
}

.station {
  width: 100%;
  min-height: 105px;
  display: grid;
  grid-template-columns: 60px 1fr auto;
  align-items: center;
  text-align: left;
  padding: 20px 25px;
  background: #c8dcff;
  border: 1px solid rgba(23, 51, 61, .15);
  cursor: pointer;
  position: relative;
  transition:
    transform .3s,
    box-shadow .3s,
    background .3s;
}

.station:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .08);
  background: white;
}

.station-number {
  font-family: Arial, sans-serif;
  font-size: .7rem;
  opacity: .45;
  color: #17333d;
}

.station-name {
  font-size: 1.5rem;
  color: #17333d;
}

.station-sub {
  color: #17333d;
  display: block;
  font-family: Arial, sans-serif;
  font-size: .65rem;
  letter-spacing: .15em;
  opacity: .4;
}

.station-note {
  grid-column: 2;
  font-size: .7rem;
  opacity: .5;
  color: #17333d;
}

.station-arrow {
  position: absolute;
  right: 22px;
  bottom: 16px;
  color: #17333d;
  font-family: Arial, sans-serif;
  font-size: 1.2rem;
  line-height: 1;
}

.station-badge {
  grid-column: 2;
  justify-self: start;

  margin-top: 7px;

  font-family: Arial, sans-serif;
  font-size: .58rem;
  letter-spacing: .12em;

  padding: 3px 8px;

  background: #17333d;
  color: white;
}


/* =========================
   KEY STATION
========================= */

.station-main .station {
  min-height: 135px;
  background: #6c99ed;
  border-color: #17333d;
}

.station-main .station-name {
  font-size: 2rem;
}


/* =========================
   ROUTE LINK
========================= */

.route-link {
  width: 30%;
  margin: 35px auto;
  display: block;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 18px;
  text-align: center;
  position: relative;
  z-index: 3;
  color: #17333d;
  background-color: #f7feff;
  transition: .3s;
}

.route-link span {
  display: block;

  font-family: Arial, sans-serif;
  font-size: .6rem;
  letter-spacing: .25em;

  opacity: .45;
}

.route-link small {
  display: block;
  margin-top: 5px;
  font-size: .8rem;
}

.route-link:hover {
  background: #ededed;
  transform: translateY(-4px);
}

/* =========================
   TRAIN NAME
========================= */

.train-section {
  padding: 100px 20px 180px;
  position: relative;
  background-image: none;
}

.train-section::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(rgba(255, 255, 255, .75),
      rgba(255, 255, 255, .75)),
    url("img/04.png") center center / cover no-repeat;

  opacity: 0;
  pointer-events: none;
}

.train-section.bg-active::before {
  opacity: 1;
}

.train-section>* {
  position: relative;
  z-index: 1;
}

.train-header {
  max-width: 700px;
  margin: 0 auto 70px;
  text-align: center;
}

.train-header h2 {
  margin: 20px 0 35px;
  font-size: clamp(2rem, 7vw, 3.5rem);
  line-height: 1.5;
  font-weight: 500;
}

.train-header p:not(.section-label) {
  font-size: .95rem;
}

/* =========================
   TRAIN LIST
========================= */

.train-list {
  width: min(700px, 100%);
  margin: auto;

  display: flex;
  flex-direction: column;
  gap: 25px;
}


/* =========================
   TRAIN CARD
========================= */

.train-card {
  position: relative;
  padding: 28px 24px 30px;
  background: white;
  border: 1px solid rgba(23, 51, 61, .15);
  box-shadow: 0 10px 30px rgba(23, 51, 61, .05);
}


/* =========================
   CARD TOP
========================= */

.train-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;

  margin-bottom: 30px;
}

.train-type {
  font-family: Arial, sans-serif;
  font-size: .6rem;
  letter-spacing: .18em;
  opacity: .45;
}

.train-number {
  font-family: Arial, sans-serif;
  font-size: .7rem;
  opacity: .3;
}


/* =========================
   TRAIN NAME
========================= */

.train-name {
  display: flex;
  align-items: baseline;
  gap: 15px;
  margin-bottom: 20px;
}

.train-name h3 {
  margin: 0;
  font-size: 3rem;
  line-height: 1;
  font-weight: 500;
}

.train-name-en {
  font-family: Arial, sans-serif;

  font-size: .65rem;
  letter-spacing: .15em;

  opacity: .4;
}


/* =========================
   DESCRIPTION
========================= */

.train-description {
  margin-bottom: 30px;
}

.train-description p {
  margin: 0;

  font-size: .9rem;
  line-height: 1.9;
}


/* =========================
   ROUTE
========================= */

.train-route {
  padding-top: 22px;

  border-top: 1px solid rgba(23, 51, 61, .12);
}

.train-route-label {
  margin-bottom: 15px;

  font-family: Arial, sans-serif;

  font-size: .58rem;
  letter-spacing: .18em;

  opacity: .4;
}

.train-stations {
  display: flex;
  align-items: center;
  flex-wrap: wrap;

  gap: 7px;

  line-height: 1.7;
}

.train-stations span {
  font-size: .72rem;
}

.train-stations i {
  display: block;
  width: 12px;
  height: 1px;
  background: currentColor;
  opacity: .3;
}


/* =========================
   CARD DIFFERENCE
========================= */



.train-nagisa {
  border-left: 5px solid #174baf;
  background-image: url(img/nagisa.jpg);
  background-size: cover;
}

.train-uzushio {
  border-left: 5px solid #268bcc;
  background-image: url(img/uzushio.jpg);
  background-size: cover;
}

.train-nagisa .train-name h3 {
  letter-spacing: .08em;
}

.train-uzushio .train-name h3 {
  letter-spacing: .05em;
}


/* =========================
   FOOTER
========================= */

.train-footer {
  max-width: 600px;
  margin: 70px auto 0;
  text-align: center;
}

.train-footer p {
  margin: 0;
  font-size: .85rem;
  line-height: 2;
  opacity: .85;
}


/* =========================
   ENDING
========================= */

.ending {
  padding: 180px 25px;
  text-align: center;
  background-image: url(img/09.png);
  background-size: cover;
  background-position: center;
}

.ending h2 {
  margin-bottom: 20px;
}

.ending p {
  font-size: 1.3rem;
}

.ending-small {
  margin-top: 80px;
  font-size: .75rem !important;
  opacity: .9;
}


/* =========================
   MODAL
========================= */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
}

.modal.active {
  display: block;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 30, 35, .65);
  backdrop-filter: blur(5px);
}

.modal-window {
  position: absolute;
  width: min(800px, calc(100% - 30px));
  max-height: 85vh;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .25);
  /* 共通の背景色 */
  background: #f8faf8;
  font-size: 15px;
}

/* 駅モーダル */
.modal-station .modal-window {
  background: #c8dcff;
}

/* ルートモーダル */
.modal-route .modal-window {
  background: #f7feff;
}

.modal-image {
  display: block;
  width: 100%;
  height: auto;
  margin: 30px 0;
}

.modal-link {
  padding-left: 8px;
  padding-right: 8px;
  max-width: 100%;
}

.modal-link img {
  max-width: 400px;
  border-radius: 15px;
  margin-bottom: 20px;
  box-shadow: 5px 5px 5px #8a8a8a;
}

.modal-link img:hover {
  transform: translateY(3px);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  font-size: 2rem;
  cursor: pointer;
  z-index: 2;
}

.modal-footer {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #ddd;
  text-align: center;
}

.modal-close-btn {
  width: 100%;
  max-width: 240px;
  height: 48px;
  margin-bottom: 10px;
  border: none;
  border-radius: 8px;
  background: #555;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: .2s;
}

.modal-close-btn:hover {
  opacity: .85;
}


.modal-content {
  padding: 70px 55px 60px;
}

.modal-label {
  font-family: Arial, sans-serif;
  font-size: .65rem;
  letter-spacing: .2em;
  opacity: .45;
}

.modal-content h2 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 500;
  margin: 15px 0;
}

.modal-route {
  font-family: Arial, sans-serif;
  font-size: .75rem;
}

.modal-body {
  margin-top: 45px;
  line-height: 2;
}

.modal-body h3 {
  font-size: 1.1rem;
  margin-top: 35px;
}

.modal-body a {
  color: inherit;
}

/* =========================
   作成者について
========================= */
.creator-info {
  text-align: center;
  padding: 30px 20px;
  color: #000000;
  /* 明るい水色 */
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
  /* 背景に映える */
}

.creator-info a {
  text-decoration: none;
  margin: 0 10px;
  transition: 0.3s;
}

.creator-info a:hover {
  color: #b7b7b7;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
}

.creator-name {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 20px;
}

.creator-name-large {
  font-size: 3rem;
  font-weight: bold;
}

.creator-profile {
  font-size: 1rem;
  font-style: italic;
  margin-bottom: 12px;
}


.creator-contact {
  margin-bottom: 8px;
}

.btn {
  display: inline-block;
  margin-top: 20px;
  margin-bottom: 100px;
  padding: 12px 30px;
  background: #87b7dc;
  color: white;
  text-decoration: none;
  border-radius: 30px;
}

.btn:hover {
  transform: scale(1.1);
}

.btn2 {
  display: inline-block;
  background-color: #3e7bff;
  color: #fff;
  border-radius: 8px;
  padding: .75rem .8rem;
  margin: 0 .2;
}

.btn2:hover {
  opacity: 0.7;
}

/*タブ*/
.btn-yoko {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 1rem;
  width: 90%;
  margin: 1rem auto;
}

.btn-yoko li {
  list-style: none;
  box-shadow: 0 2px 0 #777777;
  border: #000 1px solid;
}

.btn-yoko li:hover {
  transform: translateY(2px);
  box-shadow: none;
}

.btn-box-inside {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-box {
  display: block;
  list-style: none;
  padding: 0px;
}


.btn-yajirusi {
  width: 32px;
  margin-top: 11px;
  color: #000;
}

.btn-img {
  height: 60px;
  aspect-ratio: 1/1;
  flex-shrink: 0;
}

.btn-image {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.btn-p {
  font-size: 16px;
  font-weight: 500;
  color: #000;
  margin: 0;
}

footer {
  padding: 0 20px;
  font-family: "Kiwi Maru", serif;
  font-weight: 300;
  font-style: normal;
  color: #000;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {

  .hero {
    min-height: 100vh;
  }

  .hero::before {
    background-image: url("img/01m.png");

  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero h1 span {
    font-size: .9rem;
  }

  .intro {
    padding-top: 100px;
    background-image: url(img/02m.png);
    background-size: contain;
  }

  .route-section {
    padding-left: 12px;
    padding-right: 12px;
    background-image: none !important;
  }

  .route-section::before {
    background:
      linear-gradient(rgba(245, 248, 247, 0.72),
        rgba(245, 248, 247, 0.72)),
      url("img/03m.jpg") center center / cover no-repeat;
  }


  .route-map::before {
    left: 24px;
  }

  .station {
    display: grid;
    grid-template-columns: 35px 1fr 30px;
    align-items: start;
    position: relative;
    min-height: 115px;
    padding: 22px 15px;
    text-align: left;
  }


  /* 駅番号 */

  .station-number {
    grid-column: 1;
    grid-row: 1;
    padding: 0;
    font-size: .65rem;
    line-height: 1.5;
    opacity: .45;
  }


  /* 駅名 */

  .station-name {
    grid-column: 2;
    grid-row: 1;
    display: block;
    width: 100%;
    font-size: 1.25rem;
    line-height: 1.5;
    white-space: nowrap;
  }


  /* 英語 */

  .station-sub {
    grid-column: 2;
    grid-row: 2;
    display: block;
    margin-top: 5px;
    font-family: Arial, sans-serif;
    font-size: .65rem;
    line-height: 1.4;
    letter-spacing: .12em;
    opacity: .4;
    white-space: normal;
  }


  /* 補足 */

  .station-note {
    grid-column: 2;
    grid-row: 3;
    display: block;
    margin-top: 8px;
    font-size: .7rem;
    line-height: 1.5;
    opacity: .5;
  }


  /* バッジ */

  .station-badge {
    grid-column: 2;
    grid-row: 3;
    display: inline-block;
    width: fit-content;
    margin-top: 8px;
    font-family: Arial, sans-serif;
    font-size: .55rem;
    letter-spacing: .1em;
    padding: 3px 7px;
  }

  .route-link {
    width: calc(100% - 35px);
    margin-left: 35px;
  }

  .modal-content {
    padding: 60px 25px 40px;
  }

  .modal-link img {
    max-width: 100%;
  }

  .train-section {
    padding: 100px 15px 110px;
    background-image: none !important;
  }

  .train-section::before {
    background:
      linear-gradient(rgba(255, 255, 255, .75),
        rgba(255, 255, 255, .75)),
      url("img/04m.png") center center / cover no-repeat;
  }

  .train-header {
    margin-bottom: 55px;
  }

  .train-header h2 {
    margin-bottom: 30px;
  }

  .train-card {
    padding: 24px 20px 25px;
  }

  .train-name {
    gap: 10px;
    flex-wrap: wrap;
  }

  .train-name h3 {
    font-size: 2.6rem;
  }

  .train-name-en {
    font-size: .58rem;
  }

  .train-stations {
    gap: 5px;
  }

  .train-stations span {
    font-size: .68rem;
  }

  .train-stations i {
    width: 8px;
  }

  .ending {
    background-image: url(img/09m.png);
  }

  .btn-yoko {
    display: block;
    list-style: none;
    padding: 0;
    margin: auto;
  }

  .btn-yoko li {
    border-bottom: 1.5px solid #111;
    padding: 5px 10px;
  }

  .btn-box-inside {
    display: flex;
    align-items: stretch;
    gap: 10px;
  }

}