@charset "utf-8";
html,
body {
  overflow-x: hidden;
}

.top-view {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.top-slides {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.top-slides img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: slideShow 24s infinite ease-in-out;
}

.top-slides img:nth-child(1) {
  animation-delay: 0s;
}
.top-slides img:nth-child(2) {
  animation-delay: 8s;
}
.top-slides img:nth-child(3) {
  animation-delay: 16s;
}

@keyframes slideShow {
  0% {
    opacity: 0;
    transform: scale(1);
  }
  5% {
    opacity: 1;
    transform: scale(1);
  }
  33% {
    opacity: 1;
    transform: scale(1.1);
  }
  38% {
    opacity: 0;
    transform: scale(1.1);
  }
  100% {
    opacity: 0;
    transform: scale(1);
  }
}

.top-view-h2 {
  position: absolute;
  left: 5%;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl; /* ← 縦書き！ */
  text-orientation: upright;
  color: #fff;
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.8;
  z-index: 10;
  text-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}

.top-section-about {
  margin: 0 auto;
  padding-top: 15vh;
  text-align: center;
}
.about1,
.about2 {
  margin: 0 auto 10vh;
  padding: 0 5vw;
}
.border-top-line {
  margin: 0 auto;
  max-width: 1000px;
  border-top: 1px solid #000;
  padding: 10vh 0 5vh;
  font-size: 1.3rem;
  text-align: center;
  position: relative;
}

.about1 p,
.about2 p {
  line-height: 2.5;
}

.mb-br {
  display: none;
}
.slide-wrapper {
  width: 100vw;
  overflow-x: hidden;
  margin-bottom: 15vh;
}
.slide-track-r,
.slide-track-l {
  display: flex;
  width: max-content;
}

.slide-track-r {
  animation: right-Slide 60s linear infinite;
}
.slide-track-l {
  animation: left-Slide 60s linear infinite;
}
.slide-wrapper img {
  width: calc(100vw / 3);
  height: calc(100vw / 3 * 0.666);
  object-fit: cover;
}
@keyframes right-Slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
@keyframes left-Slide {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}
.top-section-content {
  margin: 0 auto;
  padding: 0 5vw;
}
.top-room {
  background-image: url(../img/room_main.jpg);
  background-repeat: no-repeat;
  width: 100%;
  background-size: cover;
  background-position: center;
}
.top-food {
  background-image: url(../img/food_main.jpg);
  background-repeat: no-repeat;
  width: 100%;
  background-size: cover;
  background-position: center;
}
.top-spa {
  background-image: url(../img/spa_main.jpg);
  background-repeat: no-repeat;
  width: 100%;
  background-size: cover;
  background-position: center;
}
.top-content-box {
  width: 100%;
  aspect-ratio: 9 / 4;
  margin-bottom: 20px;

  position: relative;
  overflow: hidden;
}

.top-content-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 1s ease;
  z-index: 0;
}

.top-content-box a {
  position: relative;
  z-index: 1;
}

.top-content-box:has(a:hover)::before {
  transform: scale(1.1);
}
.top-content-box a {
  background-color: rgba(255, 255, 255, 0.7);
  width: 26vw;
  height: 100%;
  padding: 10px;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}
.top-food a {
  justify-content: flex-start;
}

.top-content-link-r {
  margin-left: auto;
}
.wrap-box-r {
  height: 80%;
  width: 70%;
  border-bottom: 1px solid #000;
  border-right: 1px solid #000;
  display: flex;
  flex-direction: column;
}
.wrap-box-l {
  height: 80%;
  width: 70%;
  border-bottom: 1px solid #000;
  border-left: 1px solid #000;
  display: flex;
  flex-direction: column;
  position: relative;
}
.top-content-wrap-r {
  margin-bottom: auto;
  margin-left: auto;
  padding-right: 20px;
}
.top-content-wrap-l {
  margin-bottom: auto;
  margin-right: auto;
  padding-left: 20px;
}

.vertical-h3 {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: 1.7rem;
  margin: 0 auto 35px;
}
.vertical-content {
  writing-mode: vertical-rl;
  text-orientation: upright;
}

.top-section-instagram,
.top-section-news {
  padding: 0 5vw;
  margin-bottom: 10vh;
  position: relative;
}
.instagram-item {
  display: grid;
  justify-content: center;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.instagram-item img {
  width: 100%;
  aspect-ratio: 1 / 1; /* 常に正方形 */
  object-fit: cover;
}
.news-content {
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: 5vh;
}

.news-content a {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
  transition: all 0.5s ease;
}
.news-content time {
  white-space: nowrap;
}

.top-section-access {
  padding: 0 5vw;
  margin-bottom: 10vh;
}
.top-access-wrap {
  max-width: 1000px;
  display: flex;
  gap: 30px;
  margin: 0 auto;
}
.top-access-box {
  max-width: 450px;
  line-height: 2;
  position: relative;
}
.top-access-box p {
  margin-bottom: 20px;
}
.top-access-wrap iframe {
  width: 600px;
  height: 400px;
}

.top-section-instagram h4,
.top-section-news h4,
.top-section-access h4,
.top-section-plan h4 {
  margin-bottom: 5vh;
  font-size: 1.5rem;
}

.news-content a:hover {
  color: #9f9f9f;
  transform: translateY(-5px);
}

.top-section-plan {
  padding: 0 5vw 5vw;
  margin-bottom: 10vh;
  position: relative;
}
.top-plan-box {
  display: flex;
  gap: 30px;
  justify-content: center;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.top-plan-box li {
  flex: 0 0 auto;
  scroll-snap-align: start;
}
.top-plan-box li a {
  display: block;
  width: 320px;
  border: 1px solid #000;
  padding: 0 20px 20px;
}
.top-plan-title {
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  height: 80px;
}

.top-plan-price {
  font-size: 1.5rem;
  font-weight: 500;
  color: #763dd8;
  margin-top: 10px;
}
.top-plan-note {
  text-align: right;
  font-size: 1.2rem;
}
/* バナー */
.top-section-banner {
  display: flex;
  justify-content: center;
  margin: 15vh auto;
  padding: 0 5vw;
}
.top-banner-item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2/1;
  object-fit: cover;
}
.top-banner-item {
  display: flex;
  flex-direction: column;
  width: 50%;
  max-width: 500px;
}

.top-banner-item p {
  line-height: 1.6;
  padding: 10px;
}
/* 詳しくみる */
.more-content {
  display: block;
  width: 140px;
  height: 25px;
  position: absolute;
  right: 0;
  bottom: 0;
}
.more-left {
  display: block;
  text-align: left;
  position: relative;
}
.top-section-news .more-content,
.top-section-plan .more-content {
  margin-left: auto;
  right: 200px;
}

.more-content::after {
  content: "";
  display: block;
  position: absolute;
  top: calc(70% - 5px);
  right: 20px;
  width: 40px;
  height: 5px;
  border: none;
  border-right: 2px solid #000;
  border-bottom: 1px solid #000;
  transform: skew(45deg);
  transition: 0.3s;
}
.top-access-box .more-content:hover::after,
.top-section-plan .more-content:hover::after,
.top-section-news .more-content:hover::after {
  right: 10px;
  width: 50px;
}
.top-content-box a:hover .more-content::after {
  right: 10px;
  width: 50px;
}
/* モバイル */
@media screen and (max-width: 768px) {
  .pc-br {
    display: none;
  }
  .mb-br {
    display: block;
  }

  .top-view-h2 {
    font-size: 1.8rem;
  }

  .about1 p,
  .about2 p {
    line-height: 2;
    font-size: 0.9rems;
  }
  .top-content-box {
    width: 100%;
    aspect-ratio: 4 / 3;
    margin-bottom: 15px;
  }
  .top-content-wrap-l p,
  .top-content-wrap-r p {
    display: none;
  }
  .wrap-box-r,
  .wrap-box-l {
    width: 90%;
  }
  .top-access-wrap {
    display: flex;
    flex-direction: column-reverse;
  }
  .top-access-wrap iframe {
    width: 100%;
    height: 300px;
  }
  .top-plan-box {
    overflow-x: auto;
    justify-content: flex-start;
    padding-left: calc((100vw - 300px) / 2);
    padding-right: calc((100vw - 300px) / 2);
  }

  .top-plan-box li {
    flex: 0 0 auto;
    scroll-snap-align: center; /* 各カードを中央にスナップ */
  }

  .top-plan-box li a {
    width: 300px;
  }
  .top-section-banner {
    flex-direction: column;
    align-items: center;
  }
  .top-banner-item {
    width: 90%;
  }
  .instagram-item {
    grid-template-columns: repeat(2, 1fr);
  }
  .instagram-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
  }

  .top-section-news .more-content,
  .top-section-plan .more-content {
    margin-left: auto;
    right: 5vw;
  }
  .wrap-box-r .more-content,
  .wrap-box-l .more-content {
    height: 50px;
    width: 90px;
  }
  .vertical-h3 {
    font-size: 1.5rem;
  }

}
