/* --- CSS Reset --- */
* {
  box-sizing: border-box;
}

button {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ベース設定 */
body {
  font-family: 'Zen Old Mincho', serif;
  margin: 0;
  color: #000;
  background-color: #fff;
  line-height: 2.0;
}



/* ヘッダー */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background-color: transparent; /* ← 透明に変更 */
  border-bottom: none;           /* ← 線も削除（任意） */
  position: fixed;               /* ← ページ上部に固定（おすすめ） */
  width: 100%;
  z-index: 1000;
  transition: color 0.3s, background-color 0.3s;
}

header {
  color: white;
}

header a {
  color: white;
  }

header.scrolled {
  color: black;
}

@media (min-width: 768px) {
header.scrolled a {
  color: black;
}

header.scrolled .lang-menu, header.scrolled .facilities-menu{
  border-color: black;
}

header.scrolled .lang-menu li a, header.scrolled .facilities-menu a {
  color: black;
}

header.scrolled .lang-toggle,
header.scrolled .lang-menu li a,
header.scrolled .facilities-toggle,
header.scrolled .facilities-menu li a{
  color: black;
  border-color: black;
}

header.scrolled .lang-toggle .arrow {
  color: black;
}
}


/* ナビゲーションのオーバーレイ表示 */
.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  font-size: 1.8rem;
}

.pc-menu{
  display: block;
}
.sp-menu{
  display: none;
}

nav {
  display: flex;
  align-items: center;
}

nav ul {
  display: flex;
  flex-direction: row; /* ← 横並び */
  flex-wrap: nowrap;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 20px;
  align-items: center;
}


nav a {
  text-decoration: none;
}


.nav-links li {
  list-style: none;
}

.lang-dropdown,
.facilities-dropdown {
  position: relative;
}

.lang-toggle,
.facilities-toggle {
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  display: flex;
  align-items: center;
}

.lang-toggle {
  border: 1px solid white;
  padding: 8px 16px;
  width: 160px;
  justify-content: space-between;
  }

.lang-menu,
.facilities-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: transparent;
  border: 1px solid #ccc;
  z-index: 1000;
  min-width: 160px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.lang-menu li a,
.facilities-menu li a {
  display: inline-block;
  transition: transform 0.2s ease;
  padding: 8px 16px;
  color: white;
  text-decoration: none;
  background-color: transparent;
}

.lang-menu li a:hover,
.facilities-menu li a:hover {
  transform: translateX(4px);
}

.lang-dropdown.open .lang-menu,
.facilities-dropdown.open .facilities-menu {
  display: block;
}

.arrow {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.lang-dropdown.open .arrow,
.facilities-dropdown.open .arrow {
  transform: rotate(-135deg); /* 上向きに反転 */
}


/* ヒーローセクション */
.hero {
  background-image: url('img/hero.png');
  background-size: cover;
  background-position: center;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo img {
  max-width: 300px;
  height: auto;
}
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1.2s ease-out forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.sub-hero {
  position: relative;
  height: 400px;
  overflow: hidden;
}

.sub-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sub-hero-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 2.5rem;
  font-weight: bold;
  margin: 0;
  padding: 0 20px;
  text-align: center;
}



/* ABOUTセクション */
.about {
  text-align: center;
  padding: 60px 20px;
  margin: 40px;
}

.about-title {
  text-align: center;
  margin-bottom: 40px;
}

.about-text {
  text-align: center;
  }

.about-title img {
  width: 80%;
  max-width: 520px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.about-title .subtitle {
  display: block;
  font-size: 0.85rem;
  color: #555;
  margin-top: 8px;
  font-family: 'Zen Old Mincho', serif;
}

/* FACILITIES 共通 */
.facilities{
  margin-bottom:120px;
}
.facilities .facility {
  display: flex;
  align-items: stretch;
  justify-content: center;
  max-width: 100%;
  flex-wrap: wrap;
  padding: 0;
}

.facilities .facility img {
  width: 50vw;
  max-width: 800px; /* ← 画像の最大サイズを制限 */
  height: auto;
  object-fit: cover;
  display: block;
    opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease;
}
.facilities .facility img.visible {
  opacity: 1;
  transform: translateY(0);
}
.facilities .facility-text {
  width: 40vw;
  padding: 60px 80px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.facilities .facility-text h3{
  font-size: 32px;
  margin-bottom: 0px;
}

.left .facility {
  flex-direction: row;
}

.right .facility {
  flex-direction: row-reverse;
}

/* 和紙背景 */
.left {
  position: relative; /* 追加：親要素に相対位置を設定 */
  z-index: 0;          /* 他要素より下に */
}

.left::before {
  content: '';
  position: absolute;
  top: 160px;
  left: 0;
  right: 5%;
  bottom: -240px;
  background-image: url('img/back-paper.png');
  background-size: cover;
  background-repeat: repeat;
  background-attachment: fixed;
  background-position: center;
  opacity: 0.4;
  z-index: -1;
  pointer-events: none;
}




/* outlineセクション */
.outline {
  padding: 40px;
  background-color: #fff;
  border: 1px solid #ddd;
  width: min(100% - 80px, 1200px);
  margin: 40px auto;
}

.outline-inner {
  display: flex;
  align-items: stretch;
  gap: 40px;
}

.outline-logo img {
  max-width: 240px;
  height: auto;
  display: block;
}

.outline-tmb {
  width: 240px;
  height: auto;        /* 明示的な高さは不要 */
}

.outline-tmb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.outline-text {
  flex: 1;
}

.outline h2 {
  font-size: 2.0rem;
  margin-bottom: 20px;
}

.outline-info {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.info-row {
  display: flex;
  font-size: 14px;
  align-items: center;
}

.info-label {
  padding: 4px;
  background-color: #f3f3f3;
  width: 100px;
  flex-shrink: 0;
  text-align: center;
}
.info-value {
  padding-left:12px;
  line-height: 1.5;
}

.url a {
  position: relative;
  color: #000;
  text-decoration: none;
  padding-bottom: 6px; /* 下線分の余白 */
}

/* 通常の下線 */
.url a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background-color: #000;
  transform: translateY(0); /* 通常位置 */
  transition: transform 0.3s ease;
}

/* ホバー時：下に少しずらす */
.url a:hover::after {
  transform: translateY(4px);
}

/* 下層ページ */
/* カルーセルバナー */
.carousel {
  overflow: hidden;
  width: 100%;
  padding: 40px 0;
}

.carousel p{
  text-align: center;
  margin: 24px 40px;
}

.carousel-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: scroll-carousel 30s linear infinite;
}

.carousel-track img {
  width: 360px;       /* 好きなサイズに調整 */
  height: 360px;      /* 高さを固定 */
  object-fit: cover;  /* トリミングして揃える */
  flex-shrink: 0;
}

@keyframes scroll-carousel {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}


/* FOOTER */
footer {
  background-image: url('img/footer-bg.png');
  background-size: cover;
  background-position: center;
  padding: 80px auto 1rem;
  text-align: center;
  color: white;
}


.footer-copy {
  font-size: 0.85rem;
  color: #000;
}

.more-btn {
  position: relative;
  display: inline-block;
  width: 160px;
  height: 40px;
  line-height: 40px;
  padding-left: 16px;
  padding-right: 40px;
  border: 1px solid #000;
  color: #000;
  text-decoration: none;
  font-size: 1rem;
  text-align: left;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.more-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -16px; /* 通常時：ボタンの外側 */
  width: 32px;
  height: 1px;
  background-color: #000;
  transform: translateY(-50%);
  transition: right 0.3s ease;
}

.more-btn:hover {
  background-color: #000;
  color: #fff;
}

.more-btn:hover::after {
  right: 8px; /* ホバー時：ボタン内にスライド */
  width: 16px;
  background-color: #fff; /* 線も白に反転（任意） */
}

.reserve-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 140px;
  height: 140px;
  background-color: white;
  border: 1px solid #000;
  text-align: center;
  text-decoration: none;
  color: #000;
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease;
}

.reserve-btn:hover {
  transform: translateY(4px);
}

.reserve-btn img {
  width: 50px;
  height: 50px;
  margin-bottom: 8px;
}

.reserve-text{
  font-size: 12px;
  line-height: 1.5;
}
.reserve-text strong{
  font-size: 16px;
}


/* レスポンシブ対応（任意で拡張可能） */
@media (max-width: 768px) {
  header {
    padding: 16px 32px  16px  24px;
  }

  
/* ハンバーガーボタン表示設定 */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: #000;
  padding: 20px;;
  border: none;
  cursor: pointer;
  z-index: 1111;
}
.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: white;
  transition: all 0.3s ease;
  z-index: 1100;
}
.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

  .facilities .facility {
    flex-direction: column !important;
  }

  .facilities .facility img,
  .facilities .facility-text {
    max-width: 100%;
  }

  .about, .outline {
    margin: 20px;
  }

  .hero-logo img {
    max-width: 200px;
  }

  header.scrolled .logo a {
  color: black;
}

 
.hamburger {
        display: flex;
      }

.nav-links li {
        width: 100%;
        border-bottom: 1px solid #555;
      }
.nav-links {
        color:#fff;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 70%;
        background-color: rgba(0, 0, 0, 1);
        padding: 80px 20px;
        z-index: 1000;
        gap: 0;
        transform: translateX(100%);
        transition: transform 0.3s ease;
      }
    
      .nav-links.open {
        transform: translateX(0);
      }
    
    
      .lang-dropdown {
        margin-top: 20px;
      }

      .facilities-menu {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border: none;
      }
    
      .facilities-dropdown.open .facilities-menu {
        max-height: 200px;
      }
    


      .facilities-menu li a {
        display: block;
        padding: 8px 16px;
        border-top: 1px solid #666;
      }
      
      .facilities{
        margin-bottom: 0;
      }
      .facilities .facility {
        flex-direction: column !important;
        align-items: center;
        padding: 0 0 80px;
      }
    
      .facilities .facility img {
        width:100%;
        margin: 0 auto;
      }
    
      .facilities .facility-text {
        width: calc(100% - 80px);
        padding: 0;
        margin: 0 auto;
        
      }
    
      .facilities .facility-text h3 {
        font-size: 1.5rem;
        margin-bottom: 8px;
      }
    
      .facilities .facility-text p {
        font-size: 1rem;
        margin-bottom: 16px;
      }

      .outline {
        width: calc(100% - 80px); /* 左右40pxの余白 */
        margin: 40px auto;
      }
    
      .outline-inner {
        flex-direction: column;
        align-items: center;
        gap: 0px;
      }
    
      .outline-logo img {
        max-width: 200px;
      }
    
      .outline-text {
        width: 100%;
      }
      .more-btn{
        text-align: center;
      }

  .sub-hero {
    height: 300px;
  }

  .sub-hero-title {
    font-size: 2rem; /* モバイルでもバランスよく表示 */
  }

  .outline-tmb, .outline-tmb img {
    width: 100%;
  }
  .reserve-btn {
    bottom: 20px;
    right: 20px;
    width: 100px;
    height: 100px;
    padding: 8px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .reserve-btn img {
    width: 36px;
    height: 36px;
    margin-bottom: 6px;
  }

  .reserve-text {
    font-size: 10px;
    line-height: 1.2;
    text-align: center;
  }

  .reserve-text strong {
    font-size: 12px;
  }

  .pc-menu{
    display: none;
  }
  .sp-menu{
    display: block;
  }

  .sp-menu .nav-links {
  list-style: none;
  padding: 0;
  padding-top: 60px;
  margin: 0;
}

nav ul{
  gap: 0;
}

.sp-menu .nav-links a,
.sp-menu .submenu-toggle {
  display: block;
  padding: 16px;
  font-size: 16px;
  background: #fff;
  text-decoration: none;
  width: 100%;
  text-align: left;
  border: none;
  background-color: transparent;
}

.sp-menu .submenu {
  display: none;
  flex-direction: column; /* ← 横並びを防ぐ */
  background-color: rgba(255, 255, 255, 0.1); /* ← 薄い背景色を追加 */
}

.sp-menu .has-submenu.open .submenu {
  display: flex;
}

.sp-menu .submenu-toggle .icon {
  float: right;
  transition: transform 0.3s ease;
}

.sp-menu .has-submenu.open .submenu-toggle .icon {
  transform: rotate(45deg); /* ＋ → × のような表現 */
}

}

/* --- Modal base --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 9998;
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 9999;
  padding: 24px;
}

.modal[hidden],
.modal-overlay[hidden] { display: none; }

.modal > .modal-header,
.modal > .modal-body {
  width: min(100%, 980px);
  background: #fff;
  border-radius: 12px 12px 0 0;
}

.modal > .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #eee;
  border-radius: 12px 12px 0 0;
}

.modal > .modal-body {
  height: min(90vh, 860px);
  border-radius: 0 0 12px 12px;
  overflow: hidden;
}

/* Close button */
.modal-close {
  border: none;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

/* Prevent background scroll when modal open */
.body--lock-scroll {
  overflow: hidden;
}


/* Responsive: narrow screens use full width */
@media (max-width: 768px) {
  .modal > .modal-header,
  .modal > .modal-body {
    width: 100%;
    border-radius: 0;
  }
}
