/* ============================================
   page-facility-single.css
   施設詳細ページ（single-facility.php）専用スタイル
   ============================================ */


/* ============================================
   外枠
   ============================================ */
.facility-detail {
  padding-bottom: 80px;
}


/* ============================================
   ヒーローエリア
   ============================================ */
.fd-hero {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px 0;
  text-align: center;
}

.fd-hero__en {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.fd-hero__text {
  font-size: 0.9375rem;
  line-height: 2;
  color: var(--color-text-light);
}


/* ============================================
   セクション共通
   ============================================ */
.fd-section {
  max-width: 960px;
  margin: 0 auto;
  padding: 56px 24px 0;
}

.fd-section__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-primary);
  margin-bottom: 28px;
  display: inline-block;
}


/* ============================================
   動画・360ツアー
   ============================================ */
.fd-video-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 16px;
}

.fd-video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}


/* ============================================
   施設紹介セクション（スライダー + テキスト 2列）
   ============================================ */
.fd-intro-section {
  background: none;
}

.fd-intro-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}


/* ============================================
   スライダー
   ============================================ */
.fd-slider {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: var(--color-border);
}

.fd-slider__track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.fd-slider__slide {
  flex: 0 0 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.fd-slider__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fd-slider__dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.fd-slider__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.fd-slider__dot.is-active {
  background: #fff;
}


/* ============================================
   施設紹介テキスト
   ============================================ */
.fd-intro-text__sub {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.fd-intro-text__title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.5;
  margin-bottom: 16px;
}

.fd-intro-text__body {
  font-size: 0.9375rem;
  line-height: 2;
  color: var(--color-text-light);
  margin-bottom: 24px;
}


/* ============================================
   概要セクション（マップ + テーブル 2列）
   ============================================ */
.fd-overview-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.fd-map-wrap {
  border-radius: 16px;
  overflow: hidden;
}

.fd-map-wrap iframe {
  width: 100%;
  height: 320px;
  display: block;
  border: none;
}


/* ============================================
   概要テーブル
   ============================================ */
.fd-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin-bottom: 24px;
}

.fd-table tr {
  border-bottom: 1px solid var(--color-border);
}

.fd-table tr:first-child {
  border-top: 1px solid var(--color-border);
}

.fd-table th {
  width: 110px;
  padding: 14px 12px;
  font-weight: 700;
  color: var(--color-text);
  vertical-align: top;
  white-space: nowrap;
  background: #f7f4ee;
}

.fd-table td {
  padding: 14px 16px;
  color: var(--color-text-light);
  line-height: 1.7;
  vertical-align: top;
}


/* ============================================
   問い合わせボタン
   ============================================ */
.fd-contact-btn {
  text-align: center;
}

.btn-fd-contact {
  display: inline-block;
  background: var(--color-accent-yellow);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 40px;
  border-radius: 50px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.1s;
}

.btn-fd-contact:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}


/* ============================================
   園長ご挨拶 + フロア図 2列
   ============================================ */
.fd-director-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.fd-director-text__sub {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.fd-director-text__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.5;
  margin-bottom: 16px;
}

.fd-director-text__body {
  font-size: 0.9375rem;
  line-height: 2;
  color: var(--color-text-light);
}

.fd-floor__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-border);
}


/* ============================================
   インスタグラム
   ============================================ */
.fd-insta-wrap {
  max-width: 540px;
  margin: 0 auto;
}

.fd-insta-wrap iframe {
  width: 100%;
  border: none;
}


/* ============================================
   施設一覧に戻るボタン
   ============================================ */
.fd-back {
  text-align: center;
  padding: 64px 24px 0;
}

.btn-fd-back {
  display: inline-block;
  background: #aaa;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 56px;
  border-radius: 50px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.1s;
}

.btn-fd-back:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}


/* ============================================
   受け入れ状況（capacity.js が出力するHTML）
   ============================================ */
.facility-detail .capacity-block {
  background: #f7f4ee;
  border-radius: 12px;
  padding: 16px 20px;
  margin-top: 8px;
}

.facility-detail .capacity-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-text-light);
  margin-bottom: 8px;
}

.facility-detail .capacity-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.facility-detail .capacity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
}

.facility-detail .capacity-age { color: var(--color-text); }

.facility-detail .capacity-status {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}

.facility-detail .capacity-status--available { background: #d4f0e8; color: #2a7a5c; }
.facility-detail .capacity-status--few       { background: #fde8d8; color: #c05a20; }
.facility-detail .capacity-status--full      { background: #fde0e0; color: #b03030; }
.facility-detail .capacity-status--inquiry   { background: #e8e8e8; color: #555; }


/* ============================================
   タブレット（〜1024px）
   ============================================ */
@media screen and (max-width: 1024px) {
  .fd-intro-inner,
  .fd-overview-inner,
  .fd-director-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .fd-map-wrap iframe {
    height: 280px;
  }
}


/* ============================================
   SP（〜767px）
   ============================================ */
@media screen and (max-width: 767px) {
  .fd-section {
    padding: 40px 16px 0;
  }

  .fd-hero {
    padding: 32px 16px 0;
  }

  .fd-hero__text {
    font-size: 0.875rem;
  }

  .fd-section__title {
    font-size: 1.125rem;
  }

  .fd-intro-text__title {
    font-size: 1.125rem;
  }

  .fd-director-text__title {
    font-size: 1.0625rem;
  }

  .fd-map-wrap iframe {
    height: 240px;
  }

  .fd-table th {
    width: 90px;
    padding: 12px 8px;
    font-size: 0.8125rem;
  }

  .fd-table td {
    padding: 12px 10px;
    font-size: 0.8125rem;
  }

  .btn-fd-contact,
  .btn-fd-back {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }

  .fd-back {
    padding: 48px 16px 0;
  }

  .facility-detail {
    padding-bottom: 60px;
  }
}
