/*
 Theme Name:   Understrap Child
 Theme URI:    https://understrap.com
 Description:  Samscamp Understrap Child Theme
 Author:       the Understrap Contributors
 Author URI:   https://github.com/understrap/understrap-child/graphs/contributors
 Template:     understrap
 Version:      1.2.0
 License: GNU General Public License v2 or later
 License URI: http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  understrap-child
 Tags: one-column, custom-menu, featured-images, theme-options, translation-ready
 GitHub Theme URI: understrap/understrap-child
*/
:root {
  --bs-link-color: #0d3b66;         /* 深い青で視認性◎ */
  --bs-link-hover-color: #0a2f50;   /* 少し暗いホバー色 */
  --bs-link-decoration: underline;  /* スマホでもリンクと分かる */
  --bs-link-underline-offset: 3px;  /* 読みやすく */
}

body{
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "MS PMincho", serif;
}

a,a:link{
  color:#c97f57;
	text-decoration:none;
  font-weight:bold;
}

.front-page a:link,.front-page a,#wrapper-footer a{
  color:#fff;
}

.front-page a:hover{
  color:#0a2f50;
}



.wrapper {
    padding:0;
}

.pc{
  display:block;
}
.sp{
  display:none;
}

.mt-6{
  margin-top:6rem;
}

.mb-6{
  margin-bottom:4rem;
}

/* AOSアニメーション初期設定 */
[data-aos] {
  opacity: 0;
  transition-property: opacity, transform;
}

@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
  }
}


.hamburger-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1050;
  background-color: transparent;
  border: none;
}

.hamburger-btn .navbar-toggler-icon {
  width: 30px;
  height: 30px;
  background-image: url("data:image/svg+xml,\
  %3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280,0,0,1%29' stroke-width='2' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* hover：拡大して背景だけ薄く変化 */
.hamburger-btn:hover {
    transform: scale(1.12); /* ← 拡大アニメーション */
    background-color: rgba(51, 63, 55, 0.15); /* #333f37 の薄い色 */
}

/* クリック時の青い枠線（フォーカスリング）を無効化 */
.hamburger-btn:focus,
.hamburger-btn:active {
    outline: none !important;
    box-shadow: none !important;
    background-color: transparent !important;
}

/* Safari の特殊な青背景対策 */
.hamburger-btn:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

/* フルスクリーン Offcanvas */
.offcanvas-full {
  width: 100vw !important;
  max-width: 100vw !important;
  height: 100%;
  max-height: 100vh;
  background-color:#003333;
}

/* 最大化時に中央寄せなどしたい場合の余白調整 */
.offcanvas-full .offcanvas-body {
  display: flex;
  flex-direction: column;
  justify-content: center; /* メニューを中央にするなら */
  align-items: center;
  text-align: center;
}

.offcanvas-full ul li span{
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "MS PMincho", serif;
	font-size:1rem;
	display: block;

}

.offcanvas-full ul li a{
	font-size:2rem;
	color:#ffffff;
	line-height:1;
  font-family: "Noto Sans JP", sans-serif;
  font-weight:100;
}

/* ハンバーガーと同じサイズ */
.offcanvas .btn-close {
  top: 20px;      /* 上位置をハンバーガーと同じに */
  right: 20px;    /* 右位置をハンバーガーと同じに */
  position: fixed; /* Offcanvas 内でも固定表示 */
  z-index: 1100;   /* ハンバーガーより少し上に表示 */
  color: #fff; /* 文字色ではなく念のため */
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3E%3Cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 2em auto; /* ×の大きさをボタンに合わせる */
  border: 0;
  opacity: 1;
    width: 2.5em;   /* ボタンの幅 */
    height: 2.5em;  /* ボタンの高さ */
    padding: 0.5em; /* 余白調整 */
}

/* ▼ タブレット以上（lg以上：992px〜）で2カラム表示 */
@media (min-width: 992px) {
  .offcanvas-full ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px 60px; /* 上下20px、左右40pxの余白 */
    text-align: left;
  }

  .offcanvas-full ul li {
    margin: 0; /* デフォルトの margin を調整 */
  }
}

/* 1カラム（992px未満）の場合の上下余白調整 */
@media (max-width: 991.98px) {
  .offcanvas-full ul li {
    margin: 15px 0; /* 上下 15px の余白 */
  }
}

/* front-page */
body.home{
	background-color:#818d85;
}

#intro-screen {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  background: #333f37;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.intro-text {
  text-align: center;
  font-size: clamp(1.5rem, 4vw, 3.5rem);
  line-height: 1.6;
  color:#fff;
}

#intro-text {
  visibility: hidden; /* 最初は非表示 */
}

.intro-text span {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px); /* 下からスタート */
  animation: floatUp 0.5s forwards;
}

/* アニメーション */
@keyframes floatUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#intro-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

.front-hero {
  position: relative;
  width: 100%;
  height: 100dvh;
  min-height: 100vh;
  overflow: hidden;
  background: #000;
}

.intro-text {
  line-height: 1.6;
  letter-spacing: 0.05em;
  white-space: pre-line; /* 改行を反映 */
}


/* PC時（画面幅768px以上など） */
@media (min-width: 768px) {
  .front-hero {
    height: 600px;      /* 高さ固定 */
  }
}

.mv {
  position: relative;
  width: 100%;
  height: 100%;
}

.mv video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mv img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;

  width: 320px;      /* 任意 */
  max-width: 70%;
  height: auto;

  pointer-events: none;
}


body.home h1{
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 100;
  font-size:1.5rem;
  text-align:center;
  color:#fff;
  margin-top:5rem;
  margin-bottom:3rem;
}

body.home h1 span.ja{
  font-size:1.1rem;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "MS PMincho", serif;
}

body.home h1.concept{
  margin-bottom:0.5rem;  
}

body.home .sub-title{
  color:#fff;
  margin-bottom:3rem;  
}

ul.news li{
  flex: 1;
  padding: 0.5rem 3rem;
  border-right: 1px solid #ccc; /* 仕切り線 */
  color:#fff;
}

ul.news li:last-child {
    border-right: none;           /* 最後の項目は線なし */
}

ul.news li span{
  display:block;
}

/* スマホ向け：縦並び */
@media (max-width: 768px) {
  ul.news {
    flex-direction: column; /* 縦に並べる */
  }

  ul.news li {
    padding: 1rem;
    border-right: none;        /* 横線は消す */
    border-bottom: 1px solid #ccc; /* 下線に変更 */
  }

  ul.news li:last-child {
    border-bottom: none;       /* 最後は下線なし */
  }
}

.facility-box .img-wrap {
  position: relative;
  display: inline-block;
  width: 100%;
}

.facility-header h1{
  margin-top:2rem;
  color:#003333;
  font-size:1.5rem;
}

.facility-box .img-wrap img {
  width: 100%;
  display: block;
}

/* 横線 */
.facility-box .img-wrap::before {
  content: "";
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 70px;           /* 矢印の横線 */
  height: 1.5px;
  background-color: #fff;
  z-index: 10;
  transition: width 0.3s ease; /* 横線の伸縮アニメーション */
}

/* 斜線 */
.facility-box .img-wrap::after {
  content: "";
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 12px;           /* 矢印の先端 */
  height: 1.5px;
  background-color: #fff;
  z-index: 10;
  transform: rotate(45deg);
  transform-origin: right bottom;
}

.facility-box p{
  text-align:center;
  font-size:1.25rem;
  margin-top:0.3rem;
  color:#fff;
}

.facility-container .facility-box p{
  color:#333;
}


/* hover時に線を長くする */
.img-wrap:hover::before {
  width: 100px;  /* 横線を伸ばす */
}

.front-page a.sumiterrace,.front-page a.sumiterrace:link{
  color:#333;
}

a.sumiterrace{
  margin-top:5rem;
}

.sumiterrace-box{
  background-color:#fff;
  border:2rem solid #434359;
}

.sumiterrace-box div{
  text-align:center;
  padding:2rem;
}

.sumiterrace-box img{
  padding:2rem;
}

.images-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.recommend-container img{
  width: 100%;
  aspect-ratio: 1 / 1;   /* 正方形を維持 */
  object-fit: cover;
  /* border-radius: 50%; */
  transition: transform 0.3s;
}

#page .recommend-container h2.reco{
  margin-top:1.5rem;
  font-size:1.2rem;
  display:block;
}

#page .recommend-container h2.reco::before,
#page .recommend-container h2.reco::after{
  content:none;
}

.contact-box{
  border:3px solid #333f37;
  background-color:#fff;
  padding:2rem 0;
}

.contact-box a{
  color:#000000;  
}

.contact-icon {
  display: inline-block;          /* 四角ボックスにする */
  padding: 0.25rem 0.75rem;      /* 内側の余白 */
  background-color: #333f37;      /* 四角の背景色 */
  color: #fff;                    /* 白文字 */
  font-size: 0.875rem;            /* 小さめ文字 */
  font-weight: 600;               /* 少し強調 */
  text-transform: uppercase;      /* 必要に応じて大文字化 */
  margin-bottom:0.3rem;
}

.tel a {
  font-size: 1.7rem;
  font-weight: 600;
  color: #333f37;
  text-decoration: none;
}

.tel a:hover {
  text-decoration: underline;
}

.time {
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 0;
}

.web-only {
  font-size: 0.75rem;
  color: #999;
  display: block;
  margin-top: 0.5rem;
}

.contact-box .inqury{
  text-align:center;
  border-right:1px solid #333f37;
}

.contact-box .link{
  display: flex;
  align-items: center;   /* ← 縦方向センター */
  justify-content: center; /* ← 横方向センター */
}

.contact-box .link a{
  background-color:#c97f57;
  padding:0.8rem 4.0rem;
  font-size:1.3rem;
  color:#fff;
}

a.reserve-link{
  background-color:#c97f57;
  padding:1rem 2rem;
  font-size:1.3rem;
  color:#fff;  
}

.reserve-web-only{
  font-size:1.5rem;
}

.reserve-web-only span{
  font-size:2rem;  
  position: relative;
  padding: 0 0.1em;
}

.reserve-web-only span::after {
  content: '';
  background-color: #E0F2F1;
  width: 100%;
  height: 0.5em;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-5deg);
  -webkit-transform: translate(-50%, -50%) rotate(-5deg);
  -ms-transform: translate(-50%, -50%) rotate(-5deg);
  z-index: -1;
}

.reserve-return-txt{
  text-align: center;
  border-top: double 1px #2c3631;
  margin-top:1rem;
  padding-top:1rem;
}

.page-template-page-facility #page h2 {
  margin-bottom:1rem;
  font-size:1.15rem;
  display:block;
}

#page .icon-container h2{
  display:block;
}

.page-template-page-facility #page h2::before,
.page-template-page-facility #page h2::after,
#page .icon-container h2::before,
#page .icon-container h2::after
{
  content: none;
  width: 0;
  margin: 0;
}

/* スマホ向け */
@media (max-width: 768px) {
  .page-template-page-facility #page h2 {
    margin-top:1rem;
    text-align:center;
  }
  .contact-box .tel{
    border-right:none;
  }
  .sumiterrace-box img {
    padding-top:0;
  }
  #page .recommend-container h2.reco{
    margin-top:1.5rem;
    font-size: 1rem;
    text-shadow: 0 0 1px rgba(0,0,0,.3);
    display:block;
  }
  #page .recommend-container p.reco-txt{
    margin-bottom:3rem;
  }
  .recommend-txt{
    margin-top:5rem;
  }
  .contact-box .inqury {
    border-right: none;
  }
  .public-facility p{
    margin-bottom:3rem;
  }
}

  /* 親コンテナの幅に合わせて高さを決める（レスポンシブ） */
  .map-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
  }
  /* 高さは比率で指定（例：16:9） */
  .map {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  }

  /* 小さな画面では高さを大きめに（任意） */
  @media (max-width: 600px) {
    .map { aspect-ratio: 4 / 3; }
  }

  /* カスタムマーカの小さなラベル（任意） */
  .map-pin-label {
    font-size: 14px;
    text-align: center;
    margin-top: 8px;
  }

.contact-info{
  margin:1rem 0;
}

.contact-info p{
  margin-bottom:0;
}
.contact-info .address,.contact-info .fax{
  color:#fff;
}

.front-page .tel a{
  color:#222;
}

.contact-info .tel span{
  font-weight:bold;
  font-size:1.2rem;
}

.contact-info .tel{
  font-size:0.8rem;
}

p.concept{
  font-size:1.4rem;
  font-size: clamp(1rem, 4vw,1.2rem);
  text-align:center;
  line-height:1.6;
}

@media (max-width: 767.98px) {
  .contact-info {
    margin-top:1rem;
    margin-left: auto;
    margin-right: auto;
    text-align: left; /* 中身は左寄せのまま */
  }
}

/* footer */
#wrapper-footer a:hover{
  color:#fff;
}

#wrapper-footer{
  background-color:#003333;
  color:#fff;
}

.contact-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: #fff;
  text-decoration: none;
  padding-right: 40px;   /* 右矢印用スペース */
  min-width: 10rem;
}

/* 横線（矢印の軸） */
.contact-link::before {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 150px;
  height: 1px;
  background-color: #fff;
  transition: width 0.3s ease;
}

/* 斜線（矢印の先端） */
.contact-link::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 140px;       /* 横線の幅と同じ位置に固定 */
  width: 8px;
  height: 1px;
  background-color: #fff;
  transform: rotate(45deg);
  transform-origin: right bottom;
  transition: left 0.3s ease, transform 0.3s ease;
}

/* ホバー時 */
.contact-link:hover::before {
  width: 160px;  /* 横線を伸ばす */
}

.contact-link:hover::after {
  left: 150px;   /* 横線の伸びに合わせて斜線も移動 */
  transform: rotate(45deg) translate(2px, -2px);
}

.contact-link img.f-contact-icon{
  width:20px;
  height:20px;
  margin-right:10px;
}

.instagram-link img{
  width:80px;
}

@media (max-width: 767.98px) {
  .footer-logo {
    text-align: center;
  }
}

/* facility page */
.page-template-page-facility h2{
  font-size:1.5rem;
}

.facility-hero,.page-hero{
  position: relative;
  width: 100%;
  height: 80vh;        /* デフォルト：スマホは画面いっぱい */
  overflow: hidden;
  background-size: cover;     /* 親に合わせて拡大 */
  background-position: center top; 
  background-repeat: no-repeat;
}

.facility-hero-tent{
    background-image: url('./img/header-tent-smp.jpg');
    background-position: center center; 
}

.single-hero{
    background-image: url('./img/header-news3.jpg');
    background-position: center center;   
}

.facility-hero-top{
  background-image: url('./img/header-facility.jpg');
}

.facility-hero-bungalow{
  /* background-image: linear-gradient(
      rgba(0, 0, 0, 0.4),
      rgba(0, 0, 0, 0.4)
    ), url('./img/bungalow-top-image.jpg'); */
  background-image: url('./img/header-bungalow.jpg');
  background-position: center center; 
}

.facility-hero-cottage{
  background-image: url('./img/header-cottage.jpg');
  background-position: center center; 
}

.facility-hero-trailer{
  background-image: url('./img/header-trailer.jpg');
  background-position: center center; 
}

.access-hero{
  background-image: url('./img/header-access2.jpg');
  background-position: center center;   
}

.price-hero{
  background-image: url('./img/header-price.jpg');
  background-position: center center;   
}

.qanda-hero{
  background-image: url('./img/header-qanda.jpg');
  background-position: center center;   
}

.reserve-hero{
  background-image: url('./img/header-reserve.jpg');
  background-position: center center;   
}

.rule-hero{
  background-image: url('./img/header-rule.jpg');
  background-position: center center;   
}

/* PC時（画面幅768px以上など） */
@media (min-width: 768px) {
  .access-hero{
    background-image: url('./img/header-access.jpg');
  }
  .facility-hero,.page-hero {
      height: 400px;
  }
  .facility-hero-tent{
    background-image: url('./img/header-tent.jpg');
    background-position: center center; 
  }
  .facility-hero.facility-hero-top h1{
    position:absolute;
    top:130px;
    left:15%;
    color:#333;
  }
  .facility-hero-top{
    background-image: url('./img/facility-map.jpg');
    background-position: center 65%; 
  }
  .price-hero{
    background-image: url('./img/header-price2.jpg');
  }
  .qanda-hero{
    background-position: center 70%;   
  }
}

.facility-hero .logo,.page-hero .logo{
  position:absolute;
  top:20px;
  left:20px;
  width:200px;
  z-index: 10;
}

.facility-hero h1,.facility-hero-bungalow h1,.page-hero h1{
  color:#fff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  font-size: calc(1.5rem + 1vw);
  letter-spacing: 1px;
  text-shadow:
    0 1px 4px rgba(0,0,0,0.25);
}

.page-hero{
  background-color:#2c3631;
}

/* ▼ スマホ（〜767px） */
@media (max-width: 767px) {
    .facility-hero h1,.facility-hero.facility-hero-bungalow h1,.page-hero h1{
      color:#fff;
      width:90%;
      text-align:center;
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%,-50%);
      font-size: 1.3rem;
      letter-spacing: 1px;
      text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    }
}

/* スマホ：3列固定 */
.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) {
    margin: 0;
    flex: 0 0 calc(33.33% - var(--wp--style--unstable-gallery-gap, 16px) * 0.6667);
    max-width: calc(33.33% - var(--wp--style--unstable-gallery-gap, 16px) * 0.6667);
}

/* タブレット以上（600px以上）：5列固定 */
@media (min-width: 600px) {
    .wp-block-gallery.has-nested-images.columns-default figure.wp-block-image:not(#individual-image) {
        flex: 0 0 calc(20% - var(--wp--style--unstable-gallery-gap, 16px) * 0.8);
        align-items: flex-start;
        max-width: calc(20% - var(--wp--style--unstable-gallery-gap, 16px) * 0.8);
        height: auto; /* 念のため */
    }

    figure.wp-block-gallery.has-nested-images {
      align-items: flex-start !important;
    }

    .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) a,
    .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) img {
        height: auto !important;
        object-fit: contain !important;
        flex: 0 0 auto;
    }

}

.facility-sub-image {
    text-align: center; /* テキスト中央寄せ */
    position:relative;
}

/* 親の幅に合わせて正方形 → 丸くくり抜く */
.facility-sub-image img {
    width: 100%;        /* 親ブロック幅いっぱい */
    aspect-ratio: 1 / 1;/* 縦横1:1の正方形にする */
    object-fit: cover;  /* 中央でトリミング */
    border-radius: 50%; /* 円形化 */
    display: block;
    margin: 0 auto 10px;
}

.facility-sub-image p{
  font-size:2.5rem;
  font-family: "Noto Sans JP", sans-serif;
  font-weight:100;
}

.facility-sub-txt{
  margin:3rem 0 0 0.1rem;
}

.icon-container {
    display: flex;
    flex-wrap: wrap;      /* はみ出したら次の行へ */
    gap: 8px;             /* アイコン同士の隙間 */
}

.icon-container .icon{
  padding: 0.5rem 2rem;
  color:#fff;
  margin:0.1rem 0.25rem;
  white-space: nowrap;  /* この中の文字は途中で折り返さない */
  display: inline-flex; /* 内容を横並びのまま1ブロック化 */
  align-items: center;
}

.icon-capacity{
  background-color:#ec708b;
}

.icon-pet{
  background-color:#f5a853;
}

.icon-pet-ok{
  background-color:#f5a853;
}

.icon-no-shower,.icon-pet-ng,.icon-fire-ng{
    background-color:#cccccc;
}

.icon-parking{
  background-color:#3470d1;
}

.icon-wifi{
  background-color:#ffa500;  
}

.mark-p {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 1rem;          /* サイズ調整可能 */
    height: 1rem;         /* 正方形にする */
    border-radius: 50%;   /* 丸くする */
    background-color: #fff;
    color: #3470d1;
    font-size: 0.8rem;      /* 文字サイズ */
    font-weight: bold;
    text-transform: uppercase; /* p → P に変換 */
    line-height: 1;
}

.tbl-facility {
    width: 100%;
    border-collapse: collapse; /* 枠線の二重化を防ぐ */
    margin: 20px 0;
    font-size: 1.0rem;
}

.tbl-facility th{
    padding: 8px 12px;
    text-align: center;      /* 横方向中央揃え */
    vertical-align: middle;  /* 縦方向中央揃え */
}

.tbl-facility td{
    padding: 8px 12px;
    text-align: left;
    vertical-align: top;
}

.tbl-facility th {
    width: 250px; /* 左列の固定幅 */
    font-weight: 600;
    background-color: #f8f8f8; /* 薄いグレーで区切り */
}

.tbl-facility tr + tr td,.tbl-facility tr + tr th {
    border-top: 1px solid #e0e0e0; /* 行間の薄い線 */
}

.tbl-facility a.link-reserve {
    color: #007BFF;
    text-decoration: none;
}


.tbl-facility a.link-reserve {
  position: relative;
  display: inline-block;
  padding:1rem 80px 1rem 2rem;
  color: #fff;
  text-decoration: none;
  background-color:#333f37;
}

/* 横線 */
.tbl-facility a.link-reserve::before {
  content: "";
  position: absolute;
  bottom: calc(1rem + 6px);
  right: 20px;
  width: 45px;   /* 横線の長さを変更 */
  height: 1px;
  background-color: #fff;
  transition: width 0.3s ease;  /* 横線が伸びる */
}

/* 斜線（矢印の先端） */
.tbl-facility a.link-reserve::after {
  content: "";
  position: absolute;
  bottom: calc(1rem + 11px);
  right: 63px;
  width: 8px;      
  height: 1px;
  background-color: #fff;
  transform: translateX(45px) rotate(45deg);  /* 横線の長さ分ずらす */
  transform-origin: left center;
}

/* ホバー時 */
.tbl-facility a.link-reserve:hover::before {
  width: 55px;  /* 横線を伸ばす */
}

@media screen and (max-width: 768px) {
  .tbl-facility,
  .tbl-facility tbody,
  .tbl-facility tr,
  .tbl-facility th,
  .tbl-facility td {
    display: block;
    width: 100%;
  }

  .tbl-facility tr td,.tbl-facility tr th {
    border-top: 1px solid #e0e0e0; /* 行間の薄い線 */
  }

  .tbl-facility th {
    background-color: transparent;
    font-weight: bold;
  }

  .tbl-facility td {
    padding-left: 0;
    margin-bottom: 1rem;
  }
}

/* price page */
.tabs {
  width: 100%;
}

.tab-buttons {
  display: flex;
  justify-content: center; /* タブ全体を中央に配置 */
  gap: 20px;               /* タブ間の等間隔 */
  list-style: none;
  padding: 0;
  margin: 0;
  border-bottom: 5px solid #003333;
}

.tab-buttons li {
  padding: 10px 20px;
  cursor: pointer;
  margin-right: 5px;
  background-color: #dadbd9;
  color:#003333;
  text-align:center;
  width:25%;
}

.tab-buttons li span{
  font-family: "Noto Sans JP", sans-serif;
  font-weight:100;
}

.tab-buttons li.active {
  background-color: #003333;
  color:#fff;
  font-weight: bold;
}

.tab-content {
  display: none;
  padding: 15px;
  border: 1px solid #003333;
}

.tab-content.active {
  display: block;
}

.tbl-price {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  margin: 3rem 0;
}

.tbl-price th,
.tbl-price td {
  padding: 1rem 2rem;
  border: 1px solid #e0e0e0;
  text-align: left;
  vertical-align: middle; /* rowspan の中央揃え */
}

.tbl-price th {
  background-color: #f8f8f8;
  font-weight: 600;
  width: 200px;
}

.tbl-price td:last-child {
    text-align: right; /* 価格列を右寄せ */
    white-space: nowrap; /* 改行させず見やすく */
}

.tbl-price tr:nth-child(even) td {
  background-color: #fafafa; /* 偶数行は薄いグレーで読みやすく */
}

/* ▼ スマホ（〜767px）では th を非表示にする */
@media (max-width: 767px) {
  .tab-buttons {
    gap: 5px;
  }
  .tab-buttons li {
    width: 28%;
  }
  .tbl-price th {
    display: none;
  }
  .tab-buttons li {
    font-size:0.7em;
  }
  .pc{
    display:none;
  }
  .sp{
    display:block;
  }
}

/* qanda page */
.page-anchor {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
}

.page-anchor a {
  position: relative;
  padding: 1rem 2rem 1.5rem; /* 下に矢印スペース */
  text-decoration: none;
  color: #fff;
  background-color: #333f37;
  font-weight: 500;
  transition: background-color 0.3s;
  text-align:center;
}

/* 下矢印を追加 */
.page-anchor a::after {
    content: "";
    position: absolute;
    bottom: 0.75rem;
    left: 50%;
    transform: translateX(-50%) rotate(135deg); /* 右向きの線を下向きに回転 */
    width: 8px;
    height: 8px;
    border-top: 3px solid #fff;
    border-right: 3px solid #fff;
}

/* ホバー時 */
.page-anchor a:hover {
  background-color: #2a322e;
}

/* 選択中のリンク */
.page-anchor a.active {
  background-color: #007BFF;
}

/* ▼ スマホ（〜767px）で折り返し */
@media (max-width: 767px) {
  .page-anchor {
    flex-wrap: wrap;      /* 横幅オーバーしたら下に折り返す */
    gap: 10px;            /* スマホは隙間を少し小さく */
  }

  .page-anchor a {
    flex: 1 1 calc(50% - 10px); /* 2列に並べる */
    box-sizing: border-box;
    padding: 1rem 0.5rem 1.5rem;
  }

  /* もし3列以上でも自動折り返し */
  .page-anchor a:nth-child(odd) {
    margin-right: 0;
  }
}

/* 利用規約 */
.rule-container {
padding: 20px 24px;
margin: 0 auto;
}


.rule-item {
padding: 18px 0;
border-bottom: 1px dashed #c9cfcd;
}
.rule-item:last-child {
border-bottom: none;
}


.rule-item h3 {
margin: 0 0 6px;
font-size: 18px;
color: #333f37;
font-weight: 700;
}


.rule-item p,
.rule-item li {
margin: 4px 0;
font-size: 15px;
line-height: 1.6;
color: #222;
}


.rule-container .note {
color: #6e7874;
font-size: 13px;
margin-top: 6px;
}


.rule-container ul {
padding-left: 18px;
margin: 6px 0 0;
}


.rule-container .emergency {
font-size: 20px;
font-weight: bold;
color: #b73535;
}


/* リスト全体 */
.other-notes ul{
  margin:0;
  padding:0 0 0 18px;
  list-style-type: none;
  display:block;
  gap:8px;
}

/* 各リストアイテム（カスタムマーカー） */
.other-notes li{
  position:relative;
  margin:8px 0;
  padding-left:12px;
  color:var(--text);
  line-height:1.7;
}

.notice-quake p {
  line-height: 1.7;
  margin-bottom: 15px;
  color: #222;
  padding: 0 0 0 18px;
}

.notice-quake .highlight {
  font-weight: 600;
  color: #000;
  background: #fff3cd;
  padding: 2px 4px;
  border-radius: 3px;
}

.notice-quake .small-note {
  font-size: 0.9rem;
  color: #666;
}

.notice-quake .decision-note {
  font-weight: 600;
  color: #d9534f;
}

/* reserver page */
.reserve-container .grid{
display:grid;
grid-template-columns:repeat(2,1fr);
gap:14px;
margin-top:14px;
}


.reserve-container .item{
background:linear-gradient(180deg, rgba(255,255,255,0.85), rgba(255,255,255,0.75));
border-radius:12px;
padding:14px;
display:flex;
gap:0;
align-items:flex-start;
border:1px solid rgba(23,103,83,0.04);
}

.label{font-size:12px;color:var(--muted);margin:0}
.value{font-size:16px;color:var(--accent);margin:4px 0 0 0;font-weight:600}

/* ▼ スマホ用（〜767px） 1列表示 */
@media (max-width: 767px) {
    .reserve-container .grid {
      grid-template-columns: 1fr;
    }
    .other-notes ul {
      padding:0;
    }
}

.payment-method {
    display: flex;
    flex-wrap: wrap;       /* 画面が狭くなったら折り返す */
    gap: 1rem;             /* 各ボタンの間隔 */
    justify-content: center; /* 中央揃え */
    margin: 1rem 0;
}

.payment-method .method {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #333f37; /* ダークグリーン寄り */
    color: #fff;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: default;
    transition: all 0.3s ease;
    text-align: center;
}


.price-table {
  width: 700px;
  border-collapse: collapse;
  font-family: "Noto Sans JP", sans-serif;
  margin: 30px auto;
  background: #ffffff;
}

.price-table thead th {
  background: #d3e6d9;
  padding: 12px;
  font-weight: 600;
  border-bottom: 2px solid #acdbdb;
  text-align: center;
}

.price-table tbody td {
  padding: 10px;
  border-bottom: 1px solid #e5e5e5;
  text-align: center;
}

.price-table tbody tr:nth-child(even) {
  background: #f6fbfa;
}

.price-table tbody tr:hover {
  background: #e9f4f3;
  transition: 0.2s;
}

.price-name {
  font-weight: 600;
}

h2,h3{
  scroll-margin-top: 30px;
}

.cancel-table-horizontal {
  width: 100%;
  border-collapse: collapse;
  font-family: "Noto Sans JP", sans-serif;
  margin: 30px auto;
  text-align: center;
}

.cancel-table-horizontal th,
.cancel-table-horizontal td {
  padding: 12px;
  border: 1px solid #acdbdb;
  background: #f6fbfa;
}

.cancel-table-horizontal th {
  background: #d3e6d9;
  font-weight: 600;
}

.cancel-table-horizontal td.label {
  font-weight: 600;
  background: #e9f4f3;
}

/* ▼ スマホ（〜767px）では th を非表示にする */
@media (max-width: 767px) {
  .cancel-table-horizontal {
    width: 600px;
  }
}

#page h2{
    display: flex;
    align-items: center; /* 文字と線を縦中央に揃える */
    justify-content: center; /* 文字中央 */
    font-size: 1.5rem;
    color: #333f37;
}

#page h2::before,
#page h2::after {
    content: "";
    width: 3rem;             /* 固定横線の長さ */
    height: 1px;             /* 横線の太さ */
    background-color: #333f37;
    margin: 0 30px;          /* 文字との間隔 */
}

#page h3 {
  position: relative;
  padding: 1.5rem;
  text-align: center;
  font-size:1.3rem;
  margin-bottom:2.5rem;
}

#page h3:after {
  position: absolute;
  bottom: 0px;
  left: calc(50% - 30px);
  width: 60px;
  height: 3px;
  content: '';
  background: #333F37;
}

a.link {
  position: relative;
  display: inline-block;
  padding:1rem 80px 1rem 2rem;
  color: #222;
  text-decoration: none;
}

/* 横線 */
a.link::before {
  content: "";
  position: absolute;
  bottom: calc(1rem + 6px);
  right: 20px;
  width: 45px;   /* 横線の長さを変更 */
  height: 1px;
  background-color: #222;
  transition: width 0.3s ease;  /* 横線が伸びる */
}

/* 斜線（矢印の先端） */
a.link::after {
  content: "";
  position: absolute;
  bottom: calc(1rem + 11px);
  right: 63px;
  width: 8px;      
  height: 1px;
  background-color: #222;
  transform: translateX(45px) rotate(45deg);  /* 横線の長さ分ずらす */
  transform-origin: left center;
}

/* ホバー時 */
a.link:hover::before {
  width: 55px;  /* 横線を伸ばす */
}

/* accesss page */
.access-contact-info{
  margin-top:2rem;
  margin-bottom:2rem;
}

@media (max-width: 1400px) {
  #page .sumiterrace-box h2::before,
  #page .sumiterrace-box h2::after {
      content:none;
  }
}

@media (max-width: 767px) {
  #page h2{
    font-size: 1.2rem;
  }
  #page h2::before,
  #page h2::after {
      width: 2rem;             /* 固定横線の長さ */
      height: 1px;             /* 横線の太さ */
      background-color: #333f37;
      margin: 0 10px;          /* 文字との間隔 */
  }
}

.access-contact-info p{
  margin-bottom:0.2rem;
}

.access-contact-info p.tel{
  font-weight:bold;
}

.access-way-container {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border-radius: 8px; /* 角丸 optional */
  background: #fff;   /* 背景色 optional（影を強調） */
  padding: 20px;      /* 中の余白 optional */
  margin: 2rem;
}

@media (max-width: 767px) {
  .access-way-container img {
    display: block;
    margin: 0 auto 15px; /* 中央+下15pxの余白 */
    max-width: 80%; /* 必要なら調整、いらなければ削除 */
  }
}

/* WPForms 送信ボタン（強制上書き版） */
div.wpforms-container-full button[type="submit"].wpforms-submit {
    background-color: #4a5952 !important; /* 明るい緑グレー */
    color: #ffffff !important;            /* 文字色 */
    border: none !important;
    padding: 12px 40px !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: 0.3s !important;
    display: block !important;            /* 中央表示用 */
    margin: 30px auto 0 !important;       /* 上余白＋横中央 */
    text-align: center !important;
}

/* ホバー時 */
div.wpforms-container-full button[type="submit"].wpforms-submit:hover {
    background-color: #59675f !important; /* 少し明るい色 */
}

.float-btns {
  position: fixed;
  right: 0;
  bottom: 24px;
  z-index: 9999;

  display: flex;
  flex-direction: column;
  gap: 5px; /* ボタン間の余白 */
}

/* 個別の fixed は不要 */
.float-map-btn,
.float-reserve-btn {
  position: static;
}

.float-map-btn a {
  display: flex;
  flex-direction: column;   /* ★上下に並べる */
  align-items: center;
  justify-content: center;

  width: 56px;
  height: 80px; /* アイコン＋文字分 */

  background-color: #333;
  color: #fff;
  text-decoration: none;
}

/* アイコン */
.float-map-btn img {
  width: 24px;
  height: auto;
  margin-bottom: 6px;
}

/* テキスト */
.float-map-btn span {
  font-size: 12px;
  letter-spacing: 0.05em;
}

.float-reserve-btn a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;

  width: 56px;
  height: 160px;
  padding: 14px 0 36px;

  background-color: #333;
  color: #fff;
  text-decoration: none;

  writing-mode: vertical-rl;
  text-orientation: mixed;

  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.float-reserve-btn a::after {
  content: "";
  display: block;
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);

  width: 16px;
  height: 16px;

  background-image: url("./img/icon_yaji.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-size: 100% 100%;  /* ← iOS安定用 */
}

/* PC時（画面幅768px以上など） */
@media (min-width: 768px) {

  .float-map-btn a {
    width: 80px;
    outline: 1px solid rgba(255,255,255,0.7);
    outline-offset: -6px;
  }

  .float-reserve-btn a {
    width: 80px;
    height: 170px;

    letter-spacing: 0.05em;
    line-height: 1;
    font-size:15px;
    outline: 1px solid rgba(255,255,255,0.7);
    outline-offset: -6px;

    transition: opacity .3s, transform .3s;
  }

  /* ホバー */
  .float-reserve-btn a:hover {
    opacity: 0.85;
    transform: scale(1.05);
  }
}