@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400&family=Noto+Serif+JP:wght@300;400&display=swap");

:root {
  --white: #fff;
  --black: #160f1a;
  --sand: #c9bba8;
  --paper: #f7f4eb;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--paper);
}

body {
  color: #353535;
  font-family: "Noto Sans JP", sans-serif;
}

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

.service-gateway {
  position: relative;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  isolation: isolate;
  background: var(--paper);
}

.service-gateway::after {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 2;
  width: min(18vw, 260px);
  aspect-ratio: 288 / 244;
  background: url("img/bottom.left.png") left bottom / contain no-repeat;
  content: "";
  pointer-events: none;
}

.gateway-visual {
  position: absolute;
  inset: 0;
  z-index: -3;
  background: var(--paper) url("rental/img/bg_pattern.png") repeat;
}

.gateway-visual::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 64%;
  height: 100%;
  background: url("rental/img/himeji.png") center 42% / cover no-repeat;
  content: "";
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.32) 16%, #000 42%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.32) 16%, #000 42%);
  opacity: 0.9;
}

.gateway-corner-top {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 3;
  width: min(18vw, 260px);
  height: auto;
  pointer-events: none;
}

.gateway-model {
  position: absolute;
  right: 23%;
  bottom: -100%;
  z-index: 1;
  width: auto;
  height: 193%;
  pointer-events: none;
  filter: drop-shadow(0 14px 22px rgba(39, 31, 25, 0.08));
  animation: modelIn 1.5s 0.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.gateway-image-streams {
  position: absolute;
  top: 9%;
  right: auto;
  bottom: 8%;
  left: 0;
  z-index: 0;
  display: grid;
  width: 72%;
  overflow: hidden;
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 1.2vh, 14px);
  opacity: 0.42;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 15%, #000 88%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 15%, #000 88%, transparent 100%);
  pointer-events: none;
}

.image-stream {
  overflow: hidden;
  transform: translateX(2%);
}

.image-stream:nth-child(2),
.image-stream:nth-child(4) {
  transform: translateX(-4%);
}

.image-stream__track {
  display: flex;
  width: max-content;
  height: 100%;
  animation: imageStreamLeft var(--stream-duration, 48s) linear infinite;
  will-change: transform;
}

.image-stream--reverse .image-stream__track {
  animation-name: imageStreamRight;
}

.image-stream__group {
  display: flex;
  height: 100%;
  padding-right: 9px;
  gap: 9px;
}

.image-stream img {
  width: clamp(92px, 9vw, 142px);
  height: 100%;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.25);
  object-fit: cover;
  filter: grayscale(1) contrast(0.92) brightness(0.84);
}

.service-menu {
  position: absolute;
  top: 0;
  left: 23%;
  z-index: 5;
  display: flex;
  width: 43%;
  height: 100%;
  padding: clamp(34px, 5vh, 60px) 4vw;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.service-menu::before {
  position: absolute;
  top: 14%;
  bottom: 14%;
  left: 1.5vw;
  width: 1px;
  /*background: linear-gradient(transparent, rgba(84, 68, 49, 0.38) 20%, rgba(84, 68, 49, 0.38) 80%, transparent);*/
  content: "";
}

.gateway-brand {
  width: min(17vw, 235px);
  margin-bottom: clamp(18px, 3vh, 34px);
  animation: contentIn 1.05s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.gateway-brand img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 7px 18px rgba(86, 67, 48, 0.12));
}

.gateway-copy {
  margin: 0 0 clamp(25px, 4vh, 42px);
  color: #39332d;
  font-family: "Noto Serif JP", serif;
  font-size: 15px;
  letter-spacing: 0.16em;
  line-height: 1.8;
  text-align: center;
  animation: contentIn 1.05s 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.gateway-copy span {
  display: block;
  margin-bottom: 5px;
  color: #9d8a72;
  font-family: "Times New Roman", serif;
  font-size: 9px;
  letter-spacing: 0.3em;
}

.service-links {
  display: grid;
  width: min(100%, 292px);
  gap: 9px;
  animation: contentIn 1.05s 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.service-link {
  position: relative;
  display: grid;
  min-height: 62px;
  padding: 9px 17px;
  overflow: hidden;
  border: 1px solid var(--black);
  grid-template-columns: 1fr;
  align-content: center;
  justify-items: center;
  gap: 5px;
  color: var(--white);
  background: var(--black);
  text-align: center;
  transition: color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.service-link::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(110deg, #d7c7b2, #a98d68);
  content: "";
  transform: translateX(-102%);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-link b {
  position: relative;
  z-index: 1;
  font-family: "Times New Roman", "Noto Serif JP", serif;
  font-size: 21px;
  font-weight: 300;
  letter-spacing: 0.17em;
  line-height: 1;
}

.service-link small {
  position: relative;
  z-index: 1;
  font-family: "Noto Serif JP", serif;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-align: center;
}

.service-link:hover,
.service-link:focus-visible {
  color: #17120d;
  border-color: #a98d68;
  box-shadow: 0 10px 25px rgba(53, 44, 34, 0.16);
  outline: none;
}

.service-link:hover::before,
.service-link:focus-visible::before {
  transform: translateX(0);
}

.service-link.is-disabled {
  color: rgba(255, 255, 255, 0.62);
  cursor: default;
}

.service-link.is-disabled:hover {
  color: #17120d;
}

.gold-confetti {
  position: fixed;
  inset: 0;
  z-index: 8;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.gateway-copyright {
  position: fixed;
  right: 20px;
  bottom: 15px;
  z-index: 10;
  color: rgba(53, 53, 53, 0.72);
  font-size: 11px;
  letter-spacing: 0.12em;
}

@keyframes modelIn {
  from {
    opacity: 0;
    transform: translateX(22px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes contentIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes imageStreamLeft {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes imageStreamRight {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

@media (max-width: 900px) {
  .gateway-model {
    right: 10%;
  }

  .gateway-image-streams {
    top: 0;
    right: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    gap: 8px;
    opacity: 0.3;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
  }

  .image-stream img {
    width: clamp(120px, 42vw, 180px);
  }

  .service-menu {
    left: 4%;
    width: 51%;
  }
}

@media (max-width: 700px) {
  .service-gateway::after {
    width: min(35vw, 150px);
  }

  .gateway-visual::before {
    top: 35%;
    width: 100%;
    height: 65%;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.55) 19%, #000 42%);
    mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.55) 19%, #000 42%);
  }

  .gateway-corner-top {
    width: min(31vw, 150px);
  }

  .gateway-model {
    right: -16%;
    bottom: -68%;
    height: 165%;
    opacity: 0.84;
  }

  .service-menu {
    left: 2%;
    width: 61%;
    padding: 24px 16px 42px;
    justify-content: center;
  }

  .gateway-brand {
    width: min(35vw, 142px);
    margin-bottom: 14px;
  }

  .gateway-copy {
    margin-bottom: 20px;
    font-size: 11px;
    letter-spacing: 0.1em;
  }

  .gateway-copy span {
    font-size: 7px;
  }

  .service-links {
    width: min(100%, 230px);
    gap: 7px;
  }

  .service-link {
    min-height: 52px;
    padding: 7px 10px;
  }

  .service-link b {
    font-size: 16px;
  }

  .service-link small {
    font-size: 8px;
  }

  .gateway-copyright {
    right: 8px;
    bottom: 6px;
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gateway-model,
  .gateway-brand,
  .service-links {
    animation: none;
  }

  .image-stream__track {
    animation-play-state: paused;
  }

  .service-link,
  .service-link::before {
    transition: none;
  }

}



.gateway-language {
  display: inline-flex;
  margin: 0 0 16px;
  padding: 4px;
  align-items: center;
  justify-content: center;
  gap: 0;
  border: 1px solid rgba(169, 20, 34, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 10px 24px rgba(58, 45, 34, 0.1);
  color: #7b6c5b;
  font-family: "Noto Serif JP", serif;
  font-size: 12px;
  letter-spacing: 0.14em;
  animation: contentIn 1.05s 0.34s cubic-bezier(0.22, 1, 0.36, 1) both;
  backdrop-filter: blur(6px);
}

.gateway-language span[aria-hidden="true"] {
  display: none;
}

.gateway-language__link {
  position: relative;
  min-width: 44px;
  padding: 7px 10px 7px 12px;
  border-radius: 999px;
  text-align: center;
  transition: color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.gateway-language__link::after {
  display: none;
}

.gateway-language__link:hover,
.gateway-language__link:focus-visible {
  color: #a91422;
  background: rgba(169, 20, 34, 0.08);
}

.gateway-language__link.is-current {
  color: #fff;
  background: #a91422;
  box-shadow: 0 5px 14px rgba(169, 20, 34, 0.24);
}
