/* Theme Name: Custom Theme
Theme URI: https://example.com
Author: chisa
Description: Cocoonから移行する完全カスタムテーマ
Version: 1.2 */

/* ===============================
   全体リセット（PC安定版）
=============================== */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

*, *::before, *::after {
  box-sizing: inherit;
}

/* ===============================
   左固定メニュー（PC専用）
=============================== */
.side {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  height: 100vh;
  padding: 56px 24px 20px;
  background: #000;
  color: #fff;
  z-index: 1000;
  box-sizing: border-box;
  font-family: "Zen Kaku Gothic New", sans-serif;
  text-align: left;
  display: block; /* PCでは常時表示 */
}

.side-inner {
  padding: 56px 24px;
}

.side-brand { margin-bottom: 40px; }
.side-title { font-size:18px; font-weight:600; margin-bottom:20px; }
.side-concept { font-size:14px; opacity:0.75; }

.side .menu { list-style: none; padding: 0; margin: 0; }
.side .menu li { margin-bottom:14px; }
.side .menu a {
  color:#fff;
  text-decoration:none;
  font-size:16px;
}
.side .menu a:hover { opacity:0.7; }

/* ===============================
   モバイルUI 表示制御
=============================== */
@media screen and (min-width: 769px) {
  .mobile-header { display: none; }
  .mobile-menu-icon { display: none; }
}

/* ===============================
   コンテンツ右側（PC）
=============================== */
.content {
  margin-left: 260px;                 /* 左メニュー分 */
  width: calc(100% - 260px);          /* 残り幅を使う */
  box-sizing: border-box;
  padding-top: 0; /* 上部余白を消す */
}

/* ===============================
   ヒーロースライド（P1）
=============================== */
.hero-slideshow {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.hero-slideshow .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slideshow .slide:first-child { opacity: 1; }

.hero-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  z-index: 10;
}

.hero-text h1 {
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

/* ===============================
   共通セクション
=============================== */
.screen-center, .screen-full {
  width: 100%;
  min-height: 100vh;
}

.screen-center {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
}

/* ===============================
   P3 / P4 スプリット（PC）
=============================== */
.section-split {
  display: flex;
  align-items: stretch;
  gap: 20px;
  padding: 40px 0;
}

.split-7030 .split-image {
  flex: 7;
  height: 520px;
  background-size: cover;
  background-position: center;
}

.split-7030 .split-text {
  flex: 3;
  padding: 0 40px;
}

.split-text-texture {
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.8;
}

.reverse { flex-direction: row-reverse; }

/* ===============================
   モバイル P3/P4 テキスト→画像順
=============================== */
@media screen and (max-width: 768px) {
  .side { display: none; }
  .content { margin-left: 0; padding-top: 0px; }
  .hero-slideshow { height:30vh; min-height: unset; }
  .hero-slideshow .slide { padding-top: 0; }
  .p2 { height: 50vh; display: flex; align-items: center; justify-content: center; padding: 16px 24px; }
  .section-about.screen-center {
    height: auto;
    min-height: unset;
    align-items: flex-start;
    justify-content: flex-start;
  }
  .section-about .section-inner { padding: 0 20px; }

  /* モバイル P3/P4 */
  .section-split {
    flex-direction: column; /* テキスト→画像 */
    padding: 24px 0;
  }
  .split-7030 .split-text { padding: 0 20px; margin-bottom: 8px; }
  .split-7030 .split-image { height: 200px; margin-bottom: 8px; }
}

/* ===============================
   P1-P2間 ロゴ
=============================== */
.mobile-between-logo {
  display: flex;
  justify-content: center;
  margin-top: 6rem;
  margin-bottom:2rem;
}

/* PCだけ余白を詰める */
@media screen and (min-width: 769px) {
  .mobile-between-logo {
    margin-top: 0;          /* まず余白は消す */
    margin-bottom:0rem;
    position: relative;
    top: 2em;
  }
}

.mobile-between-logo img {
  width: 25%;
  max-width: 120px;
  height: auto;
}

/* PCだけロゴを大きくする */
@media screen and (min-width: 769px) {
  .mobile-between-logo img {
    width: 40%;
    max-width: 260px;
  }
}

/* ===============================
   モバイル用調整
=============================== */
@media screen and (max-width: 768px) {
  .side { display: none; }
  .content { margin-left: 0; padding-top: 56px; }

  .hero-slideshow { height:30vh; min-height: unset; }
  .hero-slideshow .slide { padding-top: 0; }

  .p2 { height: 50vh; display: flex; align-items: center; justify-content: center; padding: 16px 24px; }

  .section-about.screen-center {
    height: auto;
    min-height: unset;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0 16px;
  }

  .section-about .section-inner {
    padding-left: 0;
    padding-right: 0;
  }

  .mobile-between-logo { display: flex; }

  /* reverse のモバイル無効化 */
  .section-split.reverse {
    flex-direction: column;
  }
}

/* ===============================
   P3/P4 連続表示調整（改良版）
=============================== */
/* ===============================
   P3/P4 連続表示用（テキスト→画像順）
=============================== */
.section-split {
  display: flex;
  flex-direction: column; /* デフォルト縦並び */
  gap: 12px; /* テキストと画像の間 */
  padding: 0; /* 上下余白リセット */
  min-height: auto; /* 1ページ高さを解除 */
  margin: 0; /* セクション上下余白をリセット */
}

/* テキスト */
.split-7030 .split-text {
  padding: 0 20px;
  max-width: 600px;
  margin: 0 auto;
}

/* 画像 */
.split-7030 .split-image {
  width: 100%;
  min-height: 200px; /* 画像消えないように高さを確保 */
  height: auto;
  aspect-ratio: 16/9; /* 比率固定して高さ自動 */
  background-size: cover;
  background-position: center;
  margin-bottom: 16px; /* テキストとの間 */
}

/* PC 横並び表示 */
@media screen and (min-width: 769px) {
  .section-split {
    flex-direction: row;
    gap: 20px;
    padding: 40px 0;
    align-items: stretch;
  }

  /* reverse クラスがある場合は左右入れ替え */
  .section-split.reverse {
    flex-direction: row-reverse;
  }

  .split-7030 .split-image {
    height: 400px;
    margin-bottom: 0;
  }
}

/* モバイルでテキスト→画像順に */
@media screen and (max-width: 768px) {
  .section-split.reverse { flex-direction: column; }
  .split-7030 .split-image {
    min-height: 200px;
    margin-bottom: 16px;
  }
}

/* ===== Contact Form 7 表示保険 ===== */

.wpcf7 {
  display: block;
  width: 100%;
}

.wpcf7 form {
  display: block;
}

.wpcf7 p {
  margin-bottom: 1.2rem;
}

.wpcf7 label {
  display: block;
}

.wpcf7 input,
.wpcf7 select,
.wpcf7 textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* =========================
   左メニュー
========================= */
.side .menu { list-style:none; padding:0; margin:0; }
.side .menu li { margin-bottom:14px; }
.side .menu a { color:#fff; text-decoration:none; font-size:14px; }
.side .menu a:hover { opacity:0.7; }

/* =========================
   Facility セクション
========================= */
.section-facility {
  padding-top: 6rem;
}

/* テキスト・図面は中央寄せ（今まで通り） */
.section-facility .section-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
  text-align: center;
}

.section-facility p {
  font-size: 1rem;
  line-height: 1.9;
  margin-bottom: 1rem;
}

/* 図面 */
.facility-plan img {
  width: 100%;
  height: auto;
  display: block;
  margin: 1rem auto;
}

/* =========================
   Swiper（content幅いっぱい）
   ※ 左固定メニューは無視しない
========================= */

/* Swiper を画面端まで広げる */
.facility-gallery {
  position: relative;
  width: 100vw;         /* ビューポート幅いっぱい */
  left: -260px;         /* 左サイドバー分を引く */
  box-sizing: border-box;
  padding: 2rem 0;
  z-index: 1;
 margin-bottom: 2rem; /* 余白を増やしたい量に調整 */
}

/* スライド */
.facility-gallery .swiper-slide {
  width: 60%;           /* 中央スライド大きめ */
  flex-shrink: 0;       /* 小さくならない */
}

.facility-gallery img {
  width: 100%;
  height: 500px;   /* 好きな高さに調整 */
  object-fit: cover; /* 縦横比を維持して切り抜き */
}

/* ページネーション（中央下） */
.facility-gallery .swiper-pagination {
  position: absolute;
  bottom: 10%;       /* 中央スライドの下あたり */
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.facility-gallery .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: rgba(255,255,255,0.7);
  opacity: 1;
  margin: 0 4px !important;
  border-radius: 50%;
  cursor: pointer;
}

.facility-gallery .swiper-pagination-bullet-active {
  background: #fff;   /* アクティブは白に */
}

/* =========================
   モバイル
========================= */
@media screen and (max-width: 768px) {
  .section-facility {
    padding: 4rem 16px 6rem;
  }

  /* モバイル用テキスト調整 */
  .section-facility p {
    font-size: 14px;      /* stay/gather に揃える */
    line-height: 1.8;     /* 読みやすさ */
    margin-bottom: 1.5rem; /* 下余白 */
  }

  .section-facility .section-inner {
    padding: 0;
  }

  .facility-gallery img {
    height: 250px;  /* 横長に見える高さに調整 */
    object-fit: cover; /* 縦横比を崩さず中央トリミング */
  }

  .facility-plan img {
    width: 100%;
    height: auto;
    display: block;
    margin: 2rem auto; /* 上下の余白は必要に応じて調整 */
  }
}

/* =========================
   Amenity セクション
========================= */
#amenity {
  background-color: #f7f7f5;
  padding: 6rem;
  box-sizing: border-box;
}

#amenity.screen-center {
  min-height: auto;
  align-items: flex-start;
  padding-top: 6rem;
  padding-bottom: 6rem;
}

#amenity .section-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

#amenity h2 {
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 1rem;
}

#amenity h3 {
  letter-spacing: 0.04em;
  font-weight: 500;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

#amenity p {
  font-size: 0.95rem;
  line-height: 1.9;
  margin-top: 0;
  margin-bottom: 0.4rem;
  color: #333;
  text-align: center;
}

/* ===============================
   モバイル：PC用サイドバー無効化
=============================== */
@media (max-width: 768px) {

  .side {
    display: none;
  }

  .layout {
    display: block;
  }

.content {
  margin-left: 0;
  width: 100%;
}

}

/* =========================
   Stay / Gather 背景色
========================= */
.stay,
.gather {
  background-color: #f7f7f5;
  padding: 6rem 0;
}

/* =========================
   Stay / Gather 背景の見た目確保
========================= */
.stay,
.gather {
  padding: 6rem 0;
}

/* =========================
   Access ページ
========================= */
.section-access {
  padding-top: 6rem;
}

.section-access h2 {
  margin-bottom: 1rem; /* 施設と同じ余白 */
}

.access {
  background: #f5f3ee;
}

.access-map img {
  width: 100%;
  max-width: 500px;
}

.access-info {
  margin-top: 0;        /* 前との余白を詰める */
  margin-bottom: 1rem;  /* 下余白を控えめに */
  font-size: 15px;
  color: #000;
  line-height: 2;       /* 文章の行間を統一 */
}

.side-brand a {
  display: block;
  text-decoration: none; /* 下線消す */
  color: inherit;        /* 元の色を維持 */
}

/* ===============================
   施設ギャラリー スマホ完全調整
=============================== */
@media (max-width: 768px) {

  .facility-swiper {
    width: 100%;
    overflow: hidden;
  }

  .swiper-wrapper {
    width: 100%;
  }

  .swiper-slide {
    width: 100% !important;
  }

  .swiper-slide img {
    width: 100% !important;
    height: auto;
    object-fit: cover;
    display: block;
  }

}
@media (max-width: 768px) {

  .screen-center,
  .screen-full {
    min-height: auto;
  }

  #hero {
    min-height: 100vh;
  }

}
/* ===============================
   左メニュー：予約導線の区切り
=============================== */

.side .menu .menu-divider,
.mobile-menu .menu-divider {
  list-style: none;
  height: 1px;
  margin: 22px 0 18px;
  background: rgba(255,255,255,0.35);
  padding: 0;
}

/* 予約リンクを少しだけ格上げ */
.side .menu .menu-reserve a,
.mobile-menu .menu-reserve a {
  display: block;
  opacity: 1 !important;
  font-style: italic;
  letter-spacing: 0.04em;
}

/* PC左メニューで少し余白を広めに */
.side .menu .menu-reserve {
  margin-top: 2px;
}

/* 現在地のメニューを少し濃くする */
body.page-faq .menu a[href*="/faq/"],
body.page-contact .menu a[href*="/contact/"],
body.page-reservation .menu a[href*="/reservation/"],
body.page-faq .mobile-menu a[href*="/faq/"],
body.page-contact .mobile-menu a[href*="/contact/"],
body.page-reservation .mobile-menu a[href*="/reservation/"] {
  opacity: 1 !important;
  color: #ffffff !important;
  font-weight: 600;
}

@media screen and (max-width: 768px) {
  .mobile-header {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 56px;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    z-index: 4000;
    font-family: "Zen Kaku Gothic New", sans-serif;
  }

  .mobile-header-inner {
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    color: #000;
  }

  .mobile-logo-text,
  .mobile-logo-text a {
    color: #000 !important;
    text-decoration: none !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    font-family: "Zen Kaku Gothic New", sans-serif !important;
  }

  .mobile-menu-icon {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    background: transparent;
    color: #000;
    font-size: 26px;
    line-height: 1;
    padding: 0;
    margin: 0;
    cursor: pointer;
  }

  .mobile-menu {
    position: fixed !important;
    top: 56px !important;
    right: 0 !important;
    left: auto !important;
    bottom: 0 !important;
    width: 50vw !important;
    min-width: 220px;
    max-width: 320px;
    margin: 0 !important;
    padding: 28px 24px 40px !important;
    background: rgba(0, 0, 0, 0.92) !important;
    color: #fff !important;
    z-index: 5000 !important;
    transform: translateX(100%) !important;
    transition: transform 0.3s ease !important;
    list-style: none !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
    font-family: "Zen Kaku Gothic New", sans-serif !important;
  }

  .mobile-menu.show {
    transform: translateX(0) !important;
  }

  .mobile-menu li {
    list-style: none !important;
    margin: 0 0 22px 0 !important;
    padding: 0 !important;
  }

  .mobile-menu a {
    display: block !important;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 14px !important;
  }

  .mobile-menu-overlay {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.22);
    z-index: 3000;
    display: none;
  }

  .mobile-menu-overlay.show {
    display: block;
  }

  .mobile-menu .menu-divider {
    height: 1px;
    margin: 22px 0 18px;
    background: rgba(255,255,255,0.35);
  }

.mobile-menu-icon {
  background: none;
  border: none;
}
}

@media (max-width: 768px) {

  body {
    padding-top: 56px;
  }

  /* モバイルヘッダー最前面 */
  .mobile-header {
    z-index: 9999;
  }

  /* メニュー */
  .mobile-menu {
    z-index: 9998;
  }

  /* オーバーレイ */
  .mobile-menu-overlay {
    z-index: 9997;
  }

  /* ヒーローなど下げる */
  .hero-slideshow,
  .facility-gallery,
  .swiper {
    z-index: 1;
  }

  /* Contactページ モバイル調整 */
  .page-contact .content {
    margin-left: 0;
    padding: 3rem 20px;
  }

}

/* ===============================
   Contactページ幅（FAQと同じ）
=============================== */

.page-contact .section-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.side-logo {
  display: block;
  max-width: 180px;
  height: auto;
  margin-top: -4px;
}

@media (max-width: 768px) {
  .side-logo {
    display: none;
  }
}
.section-about {
  min-height: auto;
  display: block;
  padding: 6rem 24px;
}

.section-about .section-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

#stay .split-text {
  display: flex;
  align-items: flex-start;
}

#stay .split-text-texture {
  padding-top: 20px;
}

@media screen and (max-width: 768px) {
  .section-facility .section-inner {
    max-width: none;
    width: 100%;
    padding: 0 20px;
  }

  .section-facility p {
    width: 100%;
    max-width: none;
    font-size: 14px;
    line-height: 1.9;
    text-align: center;
  }
}
.site-footer-links {
  width: 100%;
  margin: 0;
  padding: 28px 0;
  background: #f1f0eb;
  border-top: 1px solid #dcd8cf;
  box-sizing: border-box;
}

.footer-links-inner {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 32px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  text-align: center;
}

.footer-links-inner a {
  color: #111;
  text-decoration: none;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.footer-links-inner a:hover {
  opacity: 0.7;
}

.footer-instagram {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-instagram svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  display: block;
}

@media (max-width: 768px) {
  .site-footer-links {
    margin-left: 0;
    width: 100%;
    padding: 24px 0 28px;
  }

  .footer-links-inner {
    padding: 0 20px;
    flex-direction: column;
    gap: 16px;
  }

  .footer-links-inner a {
    font-size: 18px;
  }

  .footer-instagram svg {
    width: 24px;
    height: 24px;
  }
}
@media screen and (min-width: 769px) {
  .footer-links-inner {
    transform: translateX(140px);
  }
}