/* リセット */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body,
html {
  height: 100%;
  font-family: serif;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans JP",
    sans-serif;
}
body {
  font-family: "Noto Serif JP", serif;
  font-weight: 400;
  color: #fefefe;
  background: url(../img/bg.webp) center top;
}
:root {
  --slide-duration: 6000ms; /* 1枚あたりの表示時間 */
  --fade-duration: 800ms; /* 切替フェード時間 */
  --zoom-scale-from: 1.25; /* 開始ズーム（大きめ→引く） */
  --zoom-scale-to: 1; /* 終了ズーム */
  --pagination-size: 8px;
}
a {
  text-decoration: none;
  transition: opacity 0.3s ease;
}
a:hover {
  opacity: 0.8;
}
section {
  padding-top: 100px;
}
@media (max-width: 768px) {
  section {
    padding-top: 50px;
  }
}

.btn {
  margin-top: 50px;
}
.btn a {
  position: relative;
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 0 auto;
  max-width: 270px;
  padding: 10px 25px;
  color: #333;
  transition: 0.3s ease-in-out;
  font-weight: 600;
  text-decoration: none;
  background-color: #fefefe;
}
.btn a:before,
.btn a:after {
  content: "";
  width: 18px;
  height: 18px;
  border-color: #7b8174;
  box-sizing: border-box;
  border-style: solid;
  display: block;
  position: absolute;
  transition: all 0.3s ease-in-out;
}
.btn a:before {
  top: -6px;
  left: -6px;
  border-width: 2px 0 0 2px;
  z-index: 5;
}
.btn a:after {
  bottom: -6px;
  right: -6px;
  border-width: 0 2px 2px 0;
}
.btn a:hover:before,
.btn a:hover:after {
  width: calc(100% + 12px);
  height: calc(100% + 12px);
  border-color: #fefefe;
}
.btn a:hover {
  color: #333;
  background-color: #fefefe;
  border-color: #fefefe;
}
.btn-reservation {
  margin-top: 50px;
}
.btn-reservation a {
  background: #342011;
  border: 1px solid #b28452;
  border-radius: 50px;
  position: relative;
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 0 auto;
  max-width: 285px;
  padding: 10px 50px;
  color: #fefefe;
  transition: 0.3s ease-in-out;
  font-weight: 500;
  text-decoration: none;
}
.btn-reservation a:hover {
  background: #fefefe;
  color: #333;
}
.btn-reservation a:after {
  content: "";
  width: 5px;
  height: 5px;
  border-top: 3px solid #fefefe;
  border-right: 3px solid #fefefe;
  transform: rotate(45deg) translateY(-50%);
  position: absolute;
  top: 50%;
  right: 30px;
  border-radius: 1px;
  transition: 0.3s ease-in-out;
}
.btn-reservation a:hover:after {
  border-color: #342011;
}

.contentsBox {
  width: 88%;
  max-width: 1080px;
  margin-right: auto;
  margin-left: auto;
  display: flex;
  flex-direction: column;
}

.hero {
  position: relative;
  height: 100svh; /* スマホの安全なビューポート高 */
  min-height: 480px;
  overflow: hidden;
  color: #fff;
  background: #000; /* 読み込み前の下地 */
  isolation: isolate;
}
.header-container {
  max-width: 1080px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: background-color 0.3s ease;
  margin: 0 auto;
}
header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 60px;
  background-color: rgba(255, 255, 255, 0.9);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: background-color 0.3s ease;
}
header.scrolled {
  background-color: rgba(255, 255, 255, 0.9);
}

.logo-container {
  width: 160px;
}
.logo-container a {
  color: #2a5249;
}
.logo-container p {
  font-size: 1.5rem;
  padding-left: 1em;
  color: #2a5249;
}
.logo-container img {
  width: 100%;
}
.menu-icon {
  display: none;
}
nav ul {
  max-width: 1200px;
  margin: 0 1em 0 auto;
  display: flex;
  align-items: center;
  letter-spacing: 0.175rem;
}
nav ul li {
  list-style-type: none;
  padding-left: 1.25em;
}
nav ul li.nav-btn a {
  text-decoration: none;
  transition: opacity 0.5s;
  color: #2a5249;
  position: relative;
  display: inline-block;
  text-decoration: none;
}
nav ul li.nav-btn a::after {
  position: absolute;
  bottom: -4px;
  left: 0;
  content: "";
  width: 100%;
  height: 2px;
  background: #2a5249;
  transform: scale(0, 1);
  transform-origin: center top;
  transition: transform 0.3s;
}
nav ul li.nav-btn a:hover::after {
  transform: scale(1, 1);
}

.contact-btn a {
  background: #2a5249;
  padding: 0.5em 1em;
  color: #fefefe;
  border-radius: 5px;
}
.contact-btn a:hover {
  background: #342011;
}
.contact-fix {
  display: none;
}
@media (max-width: 768px) {
  .menu-icon {
    width: 30px;
    height: 24px;
    position: relative;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1200;
    margin-top: 10px;
    margin-right: 25px;
  }
  .menu-icon span {
    position: absolute;
    height: 2px;
    width: 100%;
    background-color: #2a5249;
    border-radius: 2px;
    transition: all 0.4s ease;
    transform-origin: center;
  }
  .menu-icon span:nth-child(1) {
    top: 0;
  }
  .menu-icon span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
  }
  .menu-icon span:nth-child(3) {
    bottom: 0;
  }
  /* バツマーク表示時のアニメーション */
  .menu-icon.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 50%;
    background: #2a5249;
  }
  .menu-icon.active span:nth-child(2) {
    opacity: 0;
  }
  .menu-icon.active span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: auto;
    top: 50%;
    background: #2a5249;
  }

  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.8s ease, visibility 1.2s ease;
    z-index: 1100;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .overlay nav ul {
    list-style: none;
    text-align: center;
    flex-direction: column;
  }

  .overlay nav ul li {
    margin: 20px 0;
  }

  .overlay nav ul li a {
    text-decoration: none;
    font-size: 1.5rem;
    color: #333;
  }
  .overlay nav ul li.contact-btn a {
    color: #fefefe;
  }

  .overlay.hiding {
    opacity: 0;
    visibility: hidden;
  }

  /* メニュー（ハンバーガー） */
  nav {
    position: fixed;
    transition: right 0.3s ease;
    padding-top: 20px;
  }

  nav.active {
    right: 0;
  }

  nav ul {
    list-style: none;
    padding: 0;
  }

  nav ul li {
    margin: 20px;
  }

  nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
  }

  .menu-icon {
    display: flex;
  }

  nav {
    top: 60px;
  }
  .contact-fix {
    display: block;
    position: fixed;
    top: unset;
    bottom: 0;
    right: auto;
    background: rgba(255, 255, 255, 0.8);
    color: #2a5249;
    transform: translateY(0);
    writing-mode: horizontal-tb;
    padding: 7px 0 0;
    height: 35px;
    font-size: 0.875rem;
    width: 100%;
    border-radius: 15px 15px 0 0;
    text-align: center;
    z-index: 1;
  }
}

/* スライドラッパー（同位置に重ねてフェード） */
.slides {
  position: absolute;
  inset: 0;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--fade-duration) ease;
  will-change: opacity;
}
.slide.is-active {
  opacity: 1;
}

/* 画像は<figure>内のimgをフルカバー */
.slide__media {
  position: absolute;
  inset: 0;
  transform-origin: center center;
  animation: zoomOut var(--slide-duration) linear forwards;
  will-change: transform;
}
.slide__media img,
.slide__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(var(--zoom-scale-from)); /* 初期から大きめに */
}
.slide.is-active .slide__media {
  animation: zoomOut var(--slide-duration) linear forwards;
}

/* ズームアウトのキーフレーム */
@keyframes zoomOut {
  from {
    transform: scale(var(--zoom-scale-from));
  }
  to {
    transform: scale(var(--zoom-scale-to));
  }
}

/* テキストレイヤー */
.hero__content {
  position: absolute;
  left: 50%;
  bottom: 10%;
  transform: translate(-50%);
  z-index: 2;
  display: grid;
  align-content: end;
  width: 100%;
  height: 100%;
  text-align: center;
  text-shadow: 1px 2px 3px #333;
}
.hero__title {
  font-size: clamp(28px, 5vw, 56px);
  line-height: 1.1;
  margin: 0 0 0.3em;
  letter-spacing: 0.02em;
  text-wrap: balance;
}
.hero__lead {
  font-size: clamp(14px, 2.2vw, 18px);
  opacity: 0.9;
  margin: 0 0 1.2rem;
}
.hero__cta {
  display: inline-block;
  padding: 0.9em 1.2em;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  text-decoration: none;
  color: #fff;
  backdrop-filter: blur(4px);
  background: rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.hero__cta:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.14);
  border-color: #fff;
}

/* ページネーション（ドット） */
.pagination {
  position: absolute;
  inset: auto 50% 24px auto;
  transform: translateX(50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}
.dot {
  width: 40px;
  height: 5px;
  background: rgba(255, 255, 255, 0.35);
  outline: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
  box-shadow: 1px 2px 3px #333;
}
.dot.is-active {
  background: #2a5249;
}

/* 動きを減らす環境設定に追従 */
@media (prefers-reduced-motion: reduce) {
  .slide__media {
    animation: none;
    transform: none !important;
  }
  .slide {
    transition: none;
  }
}

.about-catch,
.access-catch,
.room-catch {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-bottom: 50px;
  position: relative;
}

.about-catch-en,
.access-catch-en,
.room-catch-en {
  font-size: 3em;
  letter-spacing: 0.25rem;
}
.about-catch-ja,
.access-catch-ja,
.room-catch-ja {
  font-size: 1em;
}
.room-catch-ja {
  text-align: right;
}
.room-catch {
  align-items: flex-start;
  margin-bottom: 50px;
  position: relative;
}
.access-catch {
  align-items: center;
}
@media (max-width: 768px) {
  .room-catch,
  .access-catch,
  .about-catch {
    align-items: center;
    flex-direction: column-reverse;
  }
  .room-catch::after,
  .access-catch::after,
  .about-catch::after {
    display: none;
  }
  .room-catch-en,
  .access-catch-en,
  .about-catch-en {
    font-size: 0.825rem;
  }
  .about-catch-ja,
  .access-catch-ja,
  .room-catch-ja {
    font-size: 1.5em;
  }
  .room-catch-ja {
    text-align: center;
  }
  .room-catch-container {
    text-align: center;
    flex-direction: column-reverse;
    display: flex;
  }
}

.about-content {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
}

.about-text {
  width: 48%;
  letter-spacing: 0.2rem;
}
.about-text p {
  padding-bottom: 25px;
}
.about-gallery {
  width: 50%;
  display: flex;
  flex-direction: column;
}
.about-gallery img {
  width: 100%;
  border-radius: 8px;
}
.about-img {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url(../img/mv14.webp);
  background-position: bottom;
  margin-top: 50px;
  width: 100%;
  height: 500px;
  overflow: hidden;
}
.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 768px) {
  .about-text {
    width: 100%;
  }
  .about-gallery {
    width: 100%;
  }
  .about-img {
    height: auto;
  }
  .about-content {
    flex-direction: column;
  }
}

.page section {
  padding-top: 50px;
}
.about-gallery-grid img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  transition: transform 0.3s ease;
  aspect-ratio: 1 / 1; /* 正方形に固定 */
  object-fit: cover; /* はみ出す部分は切り取る */
}

.about-gallery-grid img:hover {
  transform: scale(1.05);
}
.page-about-img {
  width: 100%;
  height: 350px;
  overflow: hidden;
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("../img/mv01.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 60px;
}
.page .about-content {
  flex-direction: row;
}

.page .about-gallery {
  width: 100%;
}
.page-room-img {
  width: 100%;
  height: 350px;
  overflow: hidden;
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("../img/mv07.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 60px;
}
.page .room-content {
  flex-direction: column;
}
.page .room-text {
  width: 100%;
}
.page .room-gallery-title {
  margin-top: 50px;
}
.page .room-gallery {
  width: 100%;
}
.page .room-gallery-grid {
  grid-template-columns: repeat(5, 1fr);
  margin-top: 20px;
}
.page .about-gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 50px;
  gap: 20px;
}
.page-about-bg {
  width: 50%;
}
.page-about-bg img {
  width: 100%;
}

@media (max-width: 768px) {
  .page .room-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page .about-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page .about-content {
    flex-direction: column;
  }
  .page-about-bg {
    width: 100%;
  }
}

.room {
  background: url(../img/room-bg.webp) no-repeat bottom center;
  background-size: cover;
  padding-bottom: 165px;
}
.room-content {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}
.room-text {
  width: 48%;
  letter-spacing: 0.15rem;
}
.room-text dl {
  margin-bottom: 25px;
}
.room-text dl dt {
  line-height: 2;
  padding: 25px 0 5px;
}
.room-text dl dt:first-child {
  padding: 0 0 5px 0;
}
.room-text dl dd span {
  display: block;
  font-size: 0.875rem;
  letter-spacing: 0;
  padding-top: 5px;
}
.room-text ul li {
  list-style-position: inside;
}
.room-gallery {
  width: 50%;
}
.room-gallery p {
  text-align: right;
  font-size: 0.875rem;
  margin-top: 5px;
}

.room-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.room-gallery-grid img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  transition: transform 0.3s ease;
  aspect-ratio: 1 / 1; /* 正方形に固定 */
  object-fit: cover; /* はみ出す部分は切り取る */
}

.room-gallery-grid img:hover {
  transform: scale(1.05);
}
.room-img {
  margin-top: 50px;
  width: 100%;
  height: 500px;
  overflow: hidden;
}
.room-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .room-content {
    flex-direction: column;
  }
  .room-text {
    width: 100%;
  }
  .room-gallery {
    width: 100%;
  }
  .room-img {
    height: auto;
  }
  .room-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* モーダルスタイル */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.3s ease, transform 0.3s ease;
  overflow: hidden;
}

.modal.show {
  display: flex;
  opacity: 1;
  transform: scale(1);
}

.room-modal-content {
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
  object-fit: contain;
}

/* ▼ 閉じるボタン */
.close {
  position: absolute;
  top: 60px;
  right: 90px;
  font-size: 36px;
  color: white;
  cursor: pointer;
  z-index: 1000;
}
@media (max-width: 768px) {
  .close {
    top: 80px;
    right: 23px;
  }
}
/* ▼ 矢印（左右） */
.arrow {
  position: absolute;
  top: 50%;
  font-size: 48px;
  color: white;
  cursor: pointer;
  user-select: none;
  transform: translateY(-50%);
  z-index: 1000;
}

.arrow.left {
  left: 30px;
}

.arrow.right {
  right: 30px;
}
.room-bg {
  width: 85%;
  display: flex;
  padding-top: 80px;
}
.room-bg-imgarea {
  width: 100%;
}
.room-bg-img {
  width: 100%;
}
@media (max-width: 768px) {
  .room {
    padding-bottom: 80px;
  }
  .room-bg {
    width: 100%;
  }
}

.access {
  padding-bottom: 100px;
}

.access-text h3 {
  padding-bottom: 5px;
}
.access-text h3 span {
  font-size: 0.875rem;
}
.access-text p {
  padding-bottom: 25px;
}

.access-text-ad {
  display: flex;
  align-items: flex-start;
  border-top: 1px solid #666;
  border-bottom: 1px solid #666;
  padding: 50px 0px;
  margin-bottom: 50px;
}
.access-text-ad h3 {
  width: 30%;
  max-width: 30%;
}
@media (max-width: 768px) {
  .access {
    padding-bottom: 50px;
  }
  .access-text-ad {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    padding: 25px 0px;
  }
  .access-text-ad h3 {
    width: 100%;
    max-width: 100%;
    text-align: center;
    margin-bottom: 10px;
  }
}

.movie-container {
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

iframe {
  width: 100%;
  aspect-ratio: 16/9;
}

.reservation-container {
  width: 100%;
  height: 350px;
  overflow: hidden;
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url(../img/reservation-bg.webp);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.reservation {
  padding-top: 0;
}

/************************** 
フッター 
***************************/
footer {
  background: #333;
}
footer ul li {
  list-style-type: none;
  padding: 0.25em;
}
.footer-logo-container {
  margin-bottom: 20px;
}
.footer-logo-container a {
  color: #fefefe;
}
.footer-logo-container img {
  width: 100%;
}
.footer-box {
  color: #fff;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  padding-top: 50px;
  justify-content: space-between;
}

.footer-info {
  width: 30%;
}
.footer-info ul {
  list-style-type: none;
}
.footer-nav {
  margin-top: 50px;
}
.footer-nav a {
  text-decoration: none;
  color: #fefefe;
}
@media (max-width: 768px) {
  .footer-box {
    flex-direction: column;
  }
  .footer-info {
    width: 100%;
  }
  .footer-nav {
    margin-top: 25px;
  }
}
.copy {
  margin-top: 50px;
  font-size: 0.8125rem;
  text-align: center;
  color: #fff;
}
@media (max-width: 768px) {
  .copy {
    margin-bottom: 40px;
  }
}
