/**
 * 施設紹介ページ専用スタイル
 * Nozomi Theme
 */

/* 基本設定 */
.facility-section {
  background-color: var(--bg-light);
  padding: 0;
  margin: 0;
}

/* ヒーローセクション */
.info-hero {
  position: relative;
  height: 30vh;
  overflow: hidden;
  will-change: transform;
}

.info-hero-image {
  position: relative;
  width: 100%;
  height: 100%;
}

.info-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  image-rendering: high-quality;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-filter: contrast(1.02) saturate(1.05);
  filter: contrast(1.02) saturate(1.05);
}

/* 高解像度ディスプレイ用の最適化 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .info-hero-image img {
    image-rendering: -webkit-optimize-contrast;
    -webkit-filter: contrast(1.01) saturate(1.02) brightness(1.01);
    filter: contrast(1.01) saturate(1.02) brightness(1.01);
  }
}

/* 紹介セクション - その他施設用のみ */
.facility-intro.other-facilities {
  background-color: white;
  padding: 60px 0;
  text-align: center;
}

.intro-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.intro-title {
  font-size: 2rem;
  color: var(--primary-dark);
  margin-bottom: 20px;
  font-family: var(--font-serif);
  font-weight: 600;
}

.intro-description {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-gray);
  margin: 0;
}

/* セクション区切り */
.facility-sections {
  position: relative;
}





/* 施設カテゴリ */
.facility-category {
  padding: 40px 0;
  position: relative;
}

/* 休憩所：グレー背景 */
.facility-category.rest-area {
  background-color: #f8f9fa;
}

/* 仮眠室：白背景 */
.facility-category.nap-room {
  background-color: #ffffff;
}

/* コンテンツコンテナ */
.facility-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* フレックスレイアウト */
.facility-text {
  display: flex;
  align-items: stretch;
  gap: 40px;
  min-height: 300px;
}

/* 左右交互レイアウト */
.facility-category.rest-area .facility-text {
  flex-direction: row;
}

.facility-category.nap-room .facility-text {
  flex-direction: row-reverse;
}

/* 説明部分 */
.facility-description {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 0;
  max-width: 600px;
}

.facility-title {
  font-size: 1.8rem;
  color: var(--primary-dark);
  margin: 0 0 8px 0;
  font-family: var(--font-serif);
  font-weight: 600;
  text-align: center;
}

.facility-subtitle {
  font-size: 0.85rem;
  color: var(--accent-gold);
  margin: 0 0 15px 0;
  letter-spacing: 1px;
  text-align: center;
  font-weight: 500;
}

.facility-short-desc {
  font-size: 1.1rem;
  color: var(--primary-dark);
  margin: 0 0 20px 0;
  font-weight: 500;
  line-height: 1.6;
  text-align: center;
}

.facility-description-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-gray);
  margin-bottom: 25px;
  max-width: 600px;
  margin-left: 2vw;
  margin-right: 2vw;
}

/* 画像コンテナ */
.facility-images-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.facility-images {
  flex: 1;
}

.facility-image {
  width: 100%;
  height: 250px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.facility-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.facility-image:hover img {
  transform: scale(1.05);
}

/* 施設詳細 */
.facility-highlights {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-left: 4px solid var(--accent-gold);
}

.facility-highlights h3 {
  font-size: 1rem;
  color: var(--primary-dark);
  margin: 0 0 15px 0;
  font-weight: 600;
  text-align: center;
}

.facility-highlights ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.facility-highlights li {
  font-size: 0.85rem;
  color: var(--text-gray);
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}

.facility-highlights li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-gold);
  font-weight: bold;
}

/* 貸部屋セクション - onsen-quality.phpと同じスタイル */
.quality-row {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 50vh;
}

.quality-image-side {
  width: 50%;
  margin: 0;
  padding: 0;
  height: 50vh;
  position: relative;
  overflow: hidden;
}

.quality-text-side {
  width: 50%;
  margin: 0;
  padding: 20px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: left;
  position: relative;
}

.quality-text-side .info-item {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  padding-top: 60px;
}

.quality-text-side h3 {
  font-size: 24px;
  margin-bottom: 25px;
  color: var(--primary-dark);
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  width: auto;
  text-align: center;
  white-space: nowrap;
}

/* タイトルの横線装飾 */
.quality-text-side h3:before,
.quality-text-side h3:after {
  content: "";
  height: 1px;
  width: 150px;
  background-color: var(--primary-dark);
  margin: 0 15px;
}

.quality-text-side p {
  font-size: 16px;
  line-height: 1.8;
  text-align: left;
  padding: 0;
  margin: 0 auto;
  max-width: 500px;
}

.feature-image-container {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.feature-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.feature-image:hover {
  transform: scale(1.05);
}

/* 予約ボタン */
.reservation-button {
  display: inline-block;
  background: linear-gradient(135deg, #2c5aa0 0%, #1e4080 100%);
  color: white;
  padding: 12px 30px;
  border-radius: 25px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(44, 90, 160, 0.3);
  border: 2px solid transparent;
  margin: 20px auto 0;
}

.reservation-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(44, 90, 160, 0.4);
  background: linear-gradient(135deg, #1e4080 0%, #2c5aa0 100%);
  color: white;
  text-decoration: none;
}

.reservation-button .button-text {
  color: white;
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}



/* 漫画一覧リンク - 他のボタンと同じスタイル */
.more-info-link {
  display: inline-block;
  background: linear-gradient(135deg, #2c5aa0 0%, #1e4080 100%);
  color: white;
  padding: 12px 30px;
  border-radius: 25px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(44, 90, 160, 0.3);
  border: 2px solid transparent;
  margin-top: 15px;
}

.more-info-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(44, 90, 160, 0.4);
  background: linear-gradient(135deg, #1e4080 0%, #2c5aa0 100%);
  color: white;
  text-decoration: none;
}

/* フロアマップセクション - 休憩所と同じ背景色 */
.floormap-section {
  width: 100vw;
  max-width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background-color: #f8f9fa;
  padding: 60px 0;
  overflow-x: hidden;
}

.floormap-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.floormap-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: var(--primary-dark);
  position: relative;
  display: inline-block;
}

/* タイトルの横線装飾 */
.floormap-title:before,
.floormap-title:after {
  content: "";
  height: 2px;
  width: 100px;
  background-color: var(--primary-dark);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.floormap-title:before {
  left: -120px;
}

.floormap-title:after {
  right: -120px;
}

.floormap-image-container {
  max-width: 800px;
  margin: 0 auto;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  background: #fff;
}

.floormap-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

/* 利用案内セクション */
.facility-info {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 60px 0;
  margin-top: 60px;
}

.facility-info .facility-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 10px;
}

.facility-info .facility-subtitle {
  text-align: center;
  margin-bottom: 30px;
}

.facility-features {
  background: white;
  padding: 25px;
  border-radius: 10px;
  margin: 30px 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.facility-features li {
  font-size: 0.9rem;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.facility-features li:last-child {
  border-bottom: none;
}

.facility-notes {
  text-align: center;
  margin-top: 30px;
}

.facility-notes p {
  font-size: 0.8rem;
  color: var(--text-light);
  margin: 5px 0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .intro-title {
    font-size: 1.6rem;
  }

  .intro-description {
    font-size: 0.9rem;
  }

  .facility-text {
    flex-direction: column !important;
    gap: 30px;
    min-height: auto;
  }

  .facility-category.rest-area .facility-text,
  .facility-category.nap-room .facility-text {
    flex-direction: column !important;
  }

  .facility-title {
    font-size: 1.5rem;
  }

  .facility-short-desc {
    font-size: 1rem;
  }

  .facility-description-text {
    font-size: 0.85rem;
  }

  .facility-image {
    height: 200px;
  }

  /* 貸部屋セクション レスポンシブ */
  .quality-row {
    flex-direction: column;
    min-height: auto;
  }

  .quality-image-side,
  .quality-text-side {
    width: 100%;
  }

  .quality-image-side {
    height: 40vh;
    min-height: 250px;
  }

  .quality-text-side {
    padding: 30px 20px;
  }

  .quality-text-side h3 {
    position: static;
    transform: none;
    margin-bottom: 20px;
    font-size: 1.5rem;
  }

  .quality-text-side h3:before,
  .quality-text-side h3:after {
    width: 80px;
    margin: 0 10px;
  }

  .quality-text-side .info-item {
    padding-top: 0;
  }


}

@media (max-width: 480px) {
  .facility-content {
    padding: 0 15px;
  }

  .facility-category {
    padding: 30px 0;
  }

  .facility-title {
    font-size: 1.3rem;
  }

  .facility-image {
    height: 180px;
  }

  .facility-highlights {
    padding: 15px;
  }

  /* 貸部屋セクション スマホ */
  .quality-text-side {
    padding: 20px 15px;
  }

  .quality-text-side h3 {
    font-size: 1.3rem;
  }

  .quality-text-side h3:before,
  .quality-text-side h3:after {
    width: 50px;
    margin: 0 8px;
  }

  /* フロアマップ レスポンシブ */
  .floormap-title {
    font-size: 1.6rem;
  }

  .floormap-title:before,
  .floormap-title:after {
    width: 60px;
  }

  .floormap-title:before {
    left: -80px;
  }

  .floormap-title:after {
    right: -80px;
  }
}

@media (max-width: 480px) {
  .facility-content {
    padding: 0 15px;
  }

  .facility-category {
    padding: 30px 0;
  }

  .facility-title {
    font-size: 1.3rem;
  }

  .facility-image {
    height: 180px;
  }

  .facility-highlights {
    padding: 15px;
  }

  /* 貸部屋セクション スマホ */
  .quality-text-side {
    padding: 20px 15px;
  }

  .quality-text-side h3 {
    font-size: 1.3rem;
  }

  .quality-text-side h3:before,
  .quality-text-side h3:after {
    width: 50px;
    margin: 0 8px;
  }

  /* フロアマップ スマホ */
  .floormap-container {
    padding: 0 1rem;
  }

  .floormap-title {
    font-size: 1.4rem;
  }

  .floormap-title:before,
  .floormap-title:after {
    display: none;
  }
} 