/* ============================================
   page-facility.css
   施設一覧ページ（page-List.php）専用スタイル
   ============================================ */


/* ============================================
   イントロ
   ============================================ */
.facility-intro {
  text-align: center;
  padding: 40px 20px 20px;
}

.facility-lead {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.facility-text {
  font-size: 14px;
  line-height: 1.8;
  color: #555;
}


/* ============================================
   セクション背景（TOPと同じ #fafaee）
   ============================================ */
.facility-section {
  padding: 20px 60px;
}


/* ============================================
   タブ（TOPと同じスタイル）
   ============================================ */
.top-tabs {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 50px 0;
  background: #E9E4DA;
  border-radius: 24px 24px 0 0;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  color: #555;
  min-height: 44px;
  transition: background 0.2s ease;
}

.tab-btn.is-active,
.tab-btn.is-active:hover {
  background: #fbfaef;
  color: #333;
}


/* ============================================
   コンテンツエリア（TOPと同じスタイル）
   ============================================ */
.wrapper-inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  background: #fbfaef;
  padding: 30px 30px 50px;
  border-radius: 0 24px 24px 24px;
}


/* ============================================
   施設グリッド・カード（BEM）
   ============================================ */
.facility-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.facility-card {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.facility-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.10);
}

.facility-card__brand {
  font-size: 10px;
  color: #aaa;
  margin-bottom: 4px;
  text-align: center;
}

.facility-card__name {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
  text-align: center;
}

.facility-card__shortname {
  font-size: 11px;
  color: #888;
  margin-left: 4px;
  font-weight: 400;
}

.facility-card__image {
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 10px;
  background: #e8e2d6;
}

.facility-card__img,
.facility-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.facility-card__image-placeholder {
  width: 100%;
  height: 100%;
  background: #e0dbd0;
}

.facility-card__address {
  font-size: 12px;
  line-height: 1.6;
  color: #555;
  margin-bottom: 10px;
  flex: 1;
}

.facility-card__btn {
  margin-top: auto;
  display: block;
  text-align: center;
  padding: 10px;
  background: #f57960;
  color: #fff;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.facility-card__btn:hover {
  opacity: 0.85;
}


/* ============================================
   受け入れ状況バッジ
   ============================================ */
.capacity-block {
  text-align: left;
  margin-bottom: 10px;
}

.capacity-label {
  font-size: 11px;
  color: #666;
  margin-bottom: 4px;
}

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

.capacity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.capacity-age { color: #555; }

.capacity-status {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
}

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


/* ============================================
   下部ボタン・テクスチャ
   ============================================ */
.facility-bottom {
  display: flex;
  justify-content: center;
  margin: 60px 0 40px;
}

.btn-main {
  display: inline-block;
  background: #f57960;
  color: #fff;
  padding: 16px 80px;
  border-radius: 999px;
  font-size: 16px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.btn-main:hover {
  opacity: 0.85;
}

.facility-texture {
  width: 100%;
  height: 80px;
}


/* ============================================
   タブレット（〜1099px）: 2列
   ============================================ */
@media screen and (max-width: 1099px) {

  .facility-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .wrapper-inner {
    padding: 24px 20px 40px;
  }

  .tab-btn {
    padding: 10px 30px 0;
  }

}


/* ============================================
   SP（〜767px）: 1列
   ============================================ */
@media screen and (max-width: 767px) {

  .facility-intro {
    padding: 24px 16px 16px;
  }

  .facility-lead {
    font-size: 17px;
  }

  .facility-section {
    padding: 0 12px 40px;
  }

  .top-tabs {
    gap: 6px;
  }

  .tab-btn {
    padding: 8px 20px 0;
    font-size: 13px;
    min-height: 38px;
    gap: 6px;
  }

  .wrapper-inner {
    padding: 20px 14px 30px;
    border-radius: 0 16px 16px 16px;
  }

  .facility-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

}
