/* リセット */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body,
html {
  height: 100%;
  font-family: serif;
  margin: 0;
  padding: 0;
  color: #fefefe;
}
body {
  font-family: "Noto Serif JP", serif;
  font-weight: 400;
}
body.fade-in {
  opacity: 0;
  transition: opacity 0.8s ease;
}
body.show {
  opacity: 1;
}

a {
  transition: opacity 0.3s ease;
}
a:hover {
  opacity: 0.8;
}

h1 {
  font-size: 1rem;
}
/* ページ遷移用のフェードアウト */
body.fade-out {
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* ヘッダー */
header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 60px;
  background-color: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  z-index: 1000;
  transition: background-color 0.3s ease;
}

header.scrolled {
  background-color: rgba(255, 255, 255, 0.9);
}

.logo-container {
  margin: 25px 0 0 30px;
  width: 150px;
}
@media (max-width: 768px) {
  .logo-container {
    margin: 20px 0 0 0;
  }
}
.logo-container img {
  width: 100%;
}

.menu-icon {
  width: 30px;
  height: 24px;
  position: relative;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1200;
  margin-top: 10px;
}
.menu-icon span {
  position: absolute;
  height: 2px;
  width: 100%;
  background-color: #fff;
  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: #333;
}
.menu-icon.active span:nth-child(2) {
  opacity: 0;
}
.menu-icon.active span:nth-child(3) {
  transform: rotate(-45deg);
  bottom: auto;
  top: 50%;
  background: #333;
}

/* オーバーレイメニュー */
.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;
}

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

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

.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;
}

/* ハンバーガーは常に表示 */
@media (min-width: 768px) {
  .menu-icon {
    display: flex;
  }

  nav {
    top: 60px;
  }
}

main {
  background: #252d35;
}
.catch-container {
  background-image: url("../img/mv.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 30px;
  box-sizing: border-box;
}

@keyframes steamFadeSoft {
  0% {
    opacity: 0;
    filter: blur(5px);
  }
  30% {
    opacity: 0.4;
    filter: blur(4px);
  }
  60% {
    opacity: 0.75;
    filter: blur(2px);
  }
  100% {
    opacity: 1;
    filter: blur(0px);
  }
}
.ja-catch-01,
.ja-catch-02,
.en-catch {
  opacity: 0;
  animation: steamFadeSoft 1.75s ease-in-out forwards;
}

.ja-catch {
  writing-mode: vertical-rl;
  text-orientation: upright;
  color: white;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
  align-self: center;
  flex-shrink: 0;
  margin-right: 50px;
  font-size: 2rem;
  letter-spacing: 0.75rem;
}

.ja-catch-01 {
  animation-delay: 0.25s;
  font-family: "Zen Old Mincho", serif;
}

h1.ja-catch-02 {
  font-size: 2rem;
  animation-delay: 0.5s;
  font-family: "Zen Old Mincho", serif;
}

.en-catch {
  opacity: 0;
  animation-delay: 1s;
  position: absolute;
  bottom: 125px;
  left: 45px;
  color: white;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
  letter-spacing: 0.25rem;
}

@media (max-width: 768px) {
  .catch-container {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .en-catch {
    position: static;
    margin-bottom: 20px;
  }

  .ja-catch {
    writing-mode: horizontal-tb;
    text-orientation: initial;
    font-size: 1.125rem;
    margin-right: 0;
  }
  h1.ja-catch-02 {
    font-size: 1.125rem;
  }
}

.contact-fix {
  position: fixed;
  top: 200px;
  right: 17px;
  z-index: 9998;
  transform: translateY(-50%);
  writing-mode: vertical-lr;
  letter-spacing: 0.3em;
  padding: 40px 7px;
  color: #fff;
  text-decoration: none;
}
.contact-fix::after {
  content: "";
  display: block;
  border-right: #fff solid 1px;
  height: 50px;
  width: 1px;
  position: absolute;
  top: -25px;
  right: 45%;
  transform: translateX(-50%);
}
@media (max-width: 768px) {
  .contact-fix {
    top: unset;
    bottom: 0;
    right: auto;
    background: rgba(255, 255, 255, 0.8);
    color: #333;
    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;
  }
  .contact-fix::after {
    display: none;
  }
}
.greet {
  display: flex;
  flex-direction: column;
}
.greet-text {
  display: flex;
  flex: none;
  flex-direction: row-reverse;
  flex-wrap: nowrap;
  justify-content: center;
  padding-bottom: 150px;
  width: auto;
}

.greet p {
  height: 575px;
  line-height: 2;
  text-align: left;
  margin: 0 1em;
  writing-mode: vertical-rl;
  letter-spacing: 0.3rem;
  max-width: 100%;
  font-size: 1.125rem;
  font-family: "Zen Old Mincho", serif;
}

.greet-img {
  width: 100%;
  height: 500px;
  overflow: hidden;
}
.greet-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 768px) {
  .greet {
    flex: none;
    display: block;
    max-width: 100%;
  }
  .greet-text {
    padding: 0 1em;
    display: block;
  }
  .greet p {
    height: auto;
    flex: none;
    writing-mode: horizontal-tb;
    font-size: 1rem;
    padding: 0 0 1rem 0;
  }
  .greet-img {
    height: auto;
  }
}

.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%;
  margin-bottom: 20px;
  border-radius: 8px;
}
.about-img {
  margin-top: 50px;
  width: 100%;
  height: 500px;
  overflow: hidden;
}
.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.room-content {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}
.room-text {
  width: 48%;
  letter-spacing: 0.15rem;
}
.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;
}

.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-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;
  }
}

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;
}
footer {
  background: #333;
}
footer ul li {
  list-style-type: none;
  padding: 0.25em;
}
.footer-logo-container {
  width: 150px;
}
.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: 75px;
}
.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;
}
@media (max-width: 768px) {
  .copy {
    margin-bottom: 40px;
  }
}
/* --------------------------------------------
 * 　about
 * -------------------------------------------- */

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

.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);
}
.about-img {
  margin-top: 50px;
  width: 100%;
  height: 500px;
  overflow: hidden;
}
.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.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/about_bg.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page .about-content {
  flex-direction: row;
}
@media (max-width: 768px) {
  .about-content {
    flex-direction: column;
  }
  .about-text {
    width: 100%;
  }
  .about-gallery {
    width: 100%;
  }
  .about-img {
    height: auto;
  }
  .page-about-bg {
    display: none;
  }
}
.page .about-gallery {
  width: 100%;
}
.page .room-gallery {
  width: 100%;
}
.page .about-gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 50px;
}
.page-about-bg {
  width: 50%;
}
.page-about-bg img {
  width: 100%;
}

@media (max-width: 768px) {
  .page .about-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --------------------------------------------
 * 　room
 * -------------------------------------------- */
.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/room_bg.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.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;
}
@media (max-width: 768px) {
  .page .room-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --------------------------------------------
 * 　アクセス
 * -------------------------------------------- */
.movie-container {
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}
/* --------------------------------------------
 * 　共通
 * -------------------------------------------- */
section {
  padding-top: 150px;
}
@media (max-width: 768px) {
  section {
    padding-top: 75px;
  }
}
.page section {
  padding-top: 50px;
}
/* 初期状態：非表示・下にずらす */
.section-fade {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

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

.btn {
  margin-top: 50px;
}
.btn a {
  position: relative;
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 0 auto;
  max-width: 250px;
  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: #fefefe;
  border-radius: 50px;
  position: relative;
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 0 auto;
  max-width: 260px;
  padding: 10px 50px;
  color: #333;
  transition: 0.3s ease-in-out;
  font-weight: 500;
  text-decoration: none;
}
.btn-reservation a:after {
  content: "";
  width: 5px;
  height: 5px;
  border-top: 3px solid #333;
  border-right: 3px solid #333;
  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: #333;
}
