:root {
  --color-cream: #fffdf7;
  --color-canvas: #fffdf7;
  --color-blue: #133b8a;
  --color-sky: #6fb7e6;
  --color-ink: #153369;
  --kv-width: 375px;
  --train-top: 340px;
  --title-top: 180px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--color-canvas);
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--color-ink);
  font-family:
    "Noto Sans JP",
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    system-ui,
    sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.saden-page {
  min-height: 100svh;
  overflow-x: hidden;
  background: var(--color-canvas);
}

.site-layout {
  display: block;
  min-height: 100svh;
}

.site-card {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-height: 100svh;
  margin: 0 auto;
  overflow: hidden;
  background: #fff;
}

.kv {
  position: relative;
  height: auto;
  padding-bottom: calc(var(--train-top) + 420px);
  background: var(--color-cream);
}

.logo-set {
  display: block;
  height: auto;
}

.kv-logo-set {
  position: absolute;
  top: 20px;
  right: 23px;
  left: auto;
  z-index: 4;
  width: 24%;
}

.kv-copy {
  position: absolute;
  top: 27px;
  left: 22px;
  z-index: 3;
  width: 50.6667%;
  max-width: calc(100vw - 44px);
  pointer-events: none;
}

.kv-copy img {
  width: 100%;
  height: auto;
}

.kv-tate-open {
  position: absolute;
  top: 385px;
  right: 20px;
  z-index: 4;
  width: 14px;
  height: auto;
  pointer-events: none;
}

.train-stage {
  position: absolute;
  top: var(--train-top);
  left: 50%;
  z-index: 1;
  width: 270px;
  height: 342px;
  margin: 0;
  --pull-x: 0px;
  --pull-y: 0px;
  --pull-rotate: 0deg;
  --pull-scale: 1;
  cursor: default;
  touch-action: auto;
  transform: translateX(-50%);
  user-select: none;
}

.train-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  will-change: opacity, transform;
}

.train-layer--saden-silhouette {
  display: none;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.train-layer--photo-set {
  z-index: 2;
  opacity: 1;
  transition: opacity 1.2s ease-in-out;
}

.train-layer--teaser-silhouette {
  z-index: 1;
}

.train-layer--photo {
  z-index: 2;
  backface-visibility: hidden;
  transform: translate3d(var(--pull-x), var(--pull-y), 0) rotate(var(--pull-rotate)) scale(var(--pull-scale));
  transform-origin: 50% 58%;
  transition:
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.train-stage.is-photo-mode {
  cursor: grab;
  touch-action: pan-y;
}

.train-stage.is-saden-mode {
  cursor: default;
  touch-action: auto;
}

.train-stage.is-saden-mode .train-layer--saden-silhouette {
  opacity: 1;
}

.train-stage.is-saden-mode .train-layer--photo-set {
  opacity: 0;
  pointer-events: none;
}

.train-stage.is-dragging {
  cursor: grabbing;
}

.train-stage.is-dragging .train-layer--photo {
  filter: drop-shadow(0 16px 18px rgba(19, 59, 138, 0.18));
  transition: none;
}

.train-stage.is-hinting:not(.is-dragging) .train-layer--photo {
  transition: none;
}

.reveal-hint-label {
  position: absolute;
  top: var(--hint-top, 164px);
  right: var(--hint-right, -20px);
  z-index: 5;
  color: var(--color-blue);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.02em;
  opacity: 0;
  pointer-events: none;
  text-shadow:
    -1px -1px 0 var(--color-cream),
    1px -1px 0 var(--color-cream),
    -1px 1px 0 var(--color-cream),
    1px 1px 0 var(--color-cream);
  transform: translate3d(3px, 4px, 0) rotate(10deg);
  transition:
    opacity 0.16s ease,
    transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.train-stage.is-hinting:not(.is-dragging) .reveal-hint-label {
  animation: hintLabelFlash 0.7s ease-out 0.1s both;
}

@keyframes hintLabelFlash {
  0% {
    opacity: 0;
    transform: translate3d(3px, 4px, 0) rotate(10deg);
  }

  25%,
  58% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(10deg);
  }

  100% {
    opacity: 0;
    transform: translate3d(-2px, -1px, 0) rotate(10deg);
  }
}

.kv-logo {
  position: absolute;
  top: var(--title-top);
  left: 50%;
  width: 38.6667%;
  margin: 0;
  opacity: 1;
  transform: translateX(-50%);
  transition: opacity 0.45s ease;
}

.kv-logo img {
  width: 100%;
  height: auto;
}

.social-band {
  position: relative;
  z-index: 3;
  display: flex;
  height: 150px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: -120px -27px 0;
  border-radius: 0;
  background: var(--color-blue);
  color: #fff;
  text-align: center;
}

.social-band__copy {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 800;
  line-height: 20px;
  letter-spacing: 0.05em;
}

.social-list {
  display: flex;
  justify-content: center;
  gap: 18px;
}

.social-button {
  display: inline-grid;
  width: 60px;
  height: 60px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
}

.social-button img {
  width: 27px;
  height: 27px;
  object-fit: contain;
}

.social-button--instagram img {
  width: 25px;
  height: 25px;
}

.section {
  position: relative;
  padding-inline: 30px;
}

.section--opening {
  padding-top: 40px;
}

.section-mascot {
  width: 120px;
  margin: 0 auto 30px;
}

.section-title {
  margin: 0;
  color: var(--color-blue);
  font-weight: 900;
  letter-spacing: 0.05em;
}

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

.section-title--opening {
  width: 170px;
  margin-inline: auto;
}

.section-title--transform {
  width: 58.6667%;
  margin-inline: auto;
}

.section-logo--transform {
  width: 90px;
  margin: 0 auto 30px;
}

.opening-visual {
  position: relative;
  margin-top: 30px;
  margin-bottom: 26px;
}

.opening-photo {
  width: 100%;
  border-radius: 14px;
  aspect-ratio: 620 / 414;
  object-fit: cover;
}

.opening-signboard {
  position: relative;
  z-index: 1;
  float: right;
  width: 176px;
  max-width: none;
  margin: -60px -37px 12px 14px;
  shape-image-threshold: 0.15;
  shape-margin: 6px;
  shape-outside: url("../img/signboard.png");
}

.section-copy--opening::after {
  display: block;
  clear: both;
  content: "";
}

.opening-date {
  margin: 34px 0 0;
  padding: 13px 0 15px;
  border-top: 1px dashed var(--color-blue);
  border-bottom: 1px dashed var(--color-blue);
  color: var(--color-blue);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0.04em;
  text-align: center;
}

.opening-station-scroll {
  display: flex;
  width: calc(100% + 30px);
  margin: 50px -30px 0 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.opening-station-scroll::after {
  display: block;
  flex: 0 0 20px;
  content: "";
}

.opening-station {
  flex: 0 0 auto;
  width: 170.554%;
  max-width: none;
}

.section-copy {
  margin-top: 0;
  color: #111;
  font-family:
    "Noto Sans JP",
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    sans-serif;
  font-size: 18px;
  line-height: 1.85;
  letter-spacing: 0.05em;
}

.section-copy p {
  margin: 0;
}

.section-copy p + p {
  margin-top: 1.65em;
}

.opening-marquee {
  margin: 42px -30px 0;
  overflow: hidden;
  color: var(--color-sky);
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.opening-marquee__track {
  display: flex;
  width: max-content;
  animation: openingMarquee 12s linear infinite;
  will-change: transform;
}

.opening-marquee__text {
  flex: 0 0 auto;
  padding-right: 1.2em;
}

@keyframes openingMarquee {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

.opening-parse {
  width: calc(100% + 60px);
  max-width: none;
  margin: 40px -30px 0;
}

.opening-parse-note {
  margin: 10px 0 0 0;
  color: #8a8a8a;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.05em;
  text-align: right;
}

.section--transform {
  padding-top: 40px;
}

.transform-visual {
  position: relative;
  margin-top: 26px;
  padding-bottom: 112px;
}

.transform-photo {
  display: block;
  border-radius: 14px;
  object-fit: cover;
}

.transform-photo--train {
  width: 333px;
  max-width: calc(100% + 48px);
  margin-left: 36px;
}

.transform-photo--inside {
  position: absolute;
  bottom: 0;
  left: -45px;
  width: 210px;
  max-width: none;
  border: 5px solid #fff;
}

.section-copy--transform {
  margin-top: 18px;
}

.vehicle-info {
  margin: 20px 0 0;
  color: #111;
  font-family:
    "Noto Sans JP",
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    sans-serif;
  font-size: 14px;
  line-height: 1.85;
  letter-spacing: 0.05em;
}

.vehicle-info dt {
  font-weight: 700;
}

.vehicle-info dd {
  margin: 0;
}

.social-band--secondary {
  margin: 54px -27px 0;
}

.section--partners {
  padding-top: 60px;
  padding-bottom: 58px;
  text-align: center;
}

.partners-mascot {
  width: 128px;
  margin: 0 auto 34px;
}

.partners-label {
  margin: 0;
  color: #222;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.75;
  letter-spacing: 0.05em;
}

.partners-label--producer {
  margin-bottom: 24px;
}

.partners-producer-logos {
  display: grid;
  max-width: 248px;
  margin: 0 auto 40px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 34px;
  align-items: center;
}

.partners-role-grid {
  display: grid;
  max-width: 268px;
  margin: 0 auto 42px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 42px;
  align-items: start;
}

.partner-item {
  min-width: 0;
}

.partner-logo-link {
  display: block;
}

.partner-logo {
  margin-inline: auto;
}

.partner-logo--fujikyu {
  width: 83px;
}

.partner-logo--saunaikitai {
  width: 95px;
}

.partner-logo--sanroku {
  width: 100px;
  margin-top: 13px;
}

.partner-logo--pica {
  width: 106px;
  margin-top: 21px;
}

.partner-logo--sauna-resort {
  width: 140px;
  margin-top: 0;
}

.copyright {
  margin: 16px 0 17px;
  color: #111;
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0.05em;
}

.fujikyu-group-logo {
  width: 177px;
  margin: 0 auto;
}

.desktop-brand-panel,
.desktop-side-nav,
.desktop-fixed-signboard {
  display: none;
}

.teaser-link,
.desktop-social {
  color: var(--color-blue);
}

@media (prefers-reduced-motion: reduce) {
  .train-layer--photo {
    transition: none;
  }
}

@media (min-width: 900px) {
  :root {
    --train-top: 440px;
    --title-top: 240px;
  }

  .saden-page {
    display: block;
    padding: 44px 24px 28px;
  }

  .site-layout {
    display: block;
    width: min(100%, 500px);
    min-height: auto;
    margin: 0 auto;
  }

  .site-card {
    width: 500px;
    max-width: 100%;
    height: auto;
    min-height: 720px;
    border: none;
    border-radius: 23px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  }

  .kv {
    padding-bottom: calc(var(--train-top) + 547px);
  }

  .kv-logo-set {
    top: 50px;
    right: 30px;
    display: block;
    width: 24%;
  }

  .kv-copy {
    top: 55px;
    left: 35px;
  }

  .kv-tate-open {
    top: 500px;
    width: 16px;
  }

  .train-stage {
    width: 360px;
    height: 456px;
  }

  .desktop-brand-panel,
  .desktop-side-nav {
    display: flex;
  }

  .desktop-fixed-signboard {
    position: fixed;
    right: 50px;
    bottom: -10px;
    z-index: 6;
    display: block;
    width: 160px;
    max-width: none;
    pointer-events: none;
  }

  .desktop-brand-panel {
    position: fixed;
    left: max(24px, calc(25vw - 240px));
    top: 44px;
    z-index: 2;
    width: 230px;
    min-height: calc(100svh - 72px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
  }

  .side-logo {
    width: 180px;
    height: auto;
    object-fit: contain;
  }

  .desktop-side-nav {
    position: fixed;
    right: max(24px, calc(25vw - 240px));
    top: 44px;
    z-index: 2;
    width: 230px;
    min-height: calc(100svh - 72px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .teaser-link {
    display: grid;
    grid-template-columns: 70px max-content;
    gap: 16px;
    align-items: center;
  }

  .teaser-thumb {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: inset 0 0 0 1px rgba(19, 59, 138, 0.08);
  }

  .teaser-text {
    font-size: 14px;
    font-weight: 900;
    line-height: 21px;
    letter-spacing: 0.05em;
  }

  .desktop-social {
    flex-direction: column;
    align-items: center;
    margin: 0;
    text-align: center;
  }

  .desktop-social p {
    margin: 0 0 20px;
    font-size: 14px;
    font-weight: 900;
    line-height: 21px;
    letter-spacing: 0.05em;
  }

  .desktop-social__icons {
    display: flex;
    gap: 20px;
    align-items: center;
  }

  .desktop-social-icon {
    display: inline-grid;
    width: 70px;
    height: 70px;
    place-items: center;
    border-radius: 50%;
    background: #fff;
  }

  .desktop-social-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
  }

  .desktop-social-icon--instagram img {
    width: 26px;
    height: 26px;
  }

  .kv + .social-band {
    height: 200px;
    margin-top: -160px;
  }

  .kv + .social-band .social-band__copy,
  .social-band--secondary .social-band__copy {
    margin-bottom: 19px;
    font-size: 19px;
    line-height: 27px;
  }

  .kv + .social-band .social-list,
  .social-band--secondary .social-list {
    gap: 24px;
  }

  .kv + .social-band .social-button,
  .social-band--secondary .social-button {
    width: 80px;
    height: 80px;
  }

  .kv + .social-band .social-button img,
  .social-band--secondary .social-button img {
    width: 36px;
    height: 36px;
  }

  .kv + .social-band .social-button--instagram img,
  .social-band--secondary .social-button--instagram img {
    width: 33px;
    height: 33px;
  }

  .social-band {
    margin-right: 0;
    margin-left: 0;
  }

  .social-band--secondary {
    height: 200px;
    margin: 54px 0 0;
  }

  .section {
    padding-inline: 30px;
  }

  .opening-signboard {
    margin-right: -30px;
  }

  .transform-photo--train {
    width: 333px;
    margin-left: 112px;
  }

  .transform-photo--inside {
    left: -33px;
  }
}

@media (max-width: 374px) {
  :root {
    --train-top: 336px;
    --title-top: 191px;
  }

  .train-stage {
    width: 260px;
    height: 317px;
  }

}
