@charset "UTF-8";
/*======================================================================
  File   : /css/single-common.css
  Title  : Single Common CSS（単一ページ共通：見出し余白／Photo地図／Facility系UI／サムネグリッド）
  Version: 1.0（single-facility.css の内容統合 + photo related thumbs）
  Created: 2026-02-16 JST
  Updated: 2026-02-16 JST
  Author : R2Fish Project / ChatGPT

  Policy:
   - single系テンプレで使う共通スタイルを集約
   - 施設ページ固有の調整は .p-facility にスコープして副作用を防止
   - Photoのサムネグリッドは photo用クラスに限定
======================================================================*/


/* =========================================================
   Single Common: Section title spacing
   - h2上：広め / h2下：狭め
   ========================================================= */

/* 単一テンプレ（SWELLの .l-article を前提）での見出し余白 */
.l-article .c-secTitle{
  margin-top: 2.0rem;     /* h2の上：しっかり */
  margin-bottom: 0.6rem;  /* h2の下：詰める */
}

/* 本文（the_content）直下に続く最初のセクションだけ、上余白を少し控えめ */
.l-article .post_content + section .c-secTitle{
  margin-top: 1.4rem;
}

/* section同士の基本リズム（必要最低限） */
.l-article section{
  margin-bottom: 1.2rem;
}


/* =========================================================
   Facility（旧 single-facility.css 統合）
   ========================================================= */

/* 施設ページ：H1を落ち着いたタイトルに調整 */
.p-facility .c-pageTitle{
  font-size: clamp(1.6rem, 3.2vw, 2.1rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 0.7em;
}

/* セクション全体の余白を回復 */
.p-facility__info,
.p-facility__opening,
.p-facility__content,
.p-facility__events,
.p-facility__related{
  margin-bottom: 3em;
}

/* 見出し：上は広め、下は控えめ（※施設ページだけに限定） */
.p-facility .c-secTitle{
  margin-top: 2.5em;
  margin-bottom: 1em;
}

/* 共通：ULリセット */
.p-facility__eventList,
.p-facility__relatedList{
  margin: 0;
  padding-left: 0;
  list-style: none;
}

/* イベント一覧 */
.p-facility__eventList li{
  line-height: 1.3;
  margin-bottom: 0.35em;
}

/* 日付部分 */
.p-facility__eventList li span{
  line-height: 1.2;
}

/* 同じ地域の施設 */
.p-facility__relatedList li{
  line-height: 1.3;
  margin-bottom: 0.35em;
}
.p-facility__relatedList li a{
  display: inline-block;
  line-height: 1.3;
}

/* 見出しとの距離（施設ページだけ） */
.p-facility__events .c-secTitle,
.p-facility__related .c-secTitle{
  margin-bottom: 0.8em;
}

/* ==========================================================
   施設ページ：情報注記ブロック
   ========================================================== */
.p-facility__note{
  margin-top: 3em;
  padding: 1.2em 1.4em;
  background: #f7f7f7;
  border: 1px dashed #ccc;
  font-size: 0.9em;
  color: #555;
}

.p-facility__noteTitle{
  font-weight: 600;
  font-size: 0.9em;
  color: #444;
}

.p-facility__noteBody p{
  margin: 0 0 0.6em;
}

.p-facility__noteBody ul{
  margin: 0.6em 0 0.6em 1.2em;
  padding: 0;
}

.p-facility__noteBody li{
  margin-bottom: 0.3em;
}

.p-facility__noteLink{
  margin-top: 0.8em;
}


/* ==========================================================
   Photo single map（facility cssに混在していたため共通へ）
   ========================================================== */
.p-photoMap__embed{
  margin-top: .75em;
  border-radius: 12px;
  overflow: hidden;
}
.p-photoMap__embed iframe{
  display: block;
  width: 100%;
  border: 0;
}
.p-photoMap__note{
  margin: .25em 0 .25em;
  opacity: .85;
}


/* ==========================================================
   Facility Hero（施設ページ限定クラスなのでそのまま統合）
   ========================================================== */
.p-facilityHero{ margin: 0 0 1.5em; }
.p-facilityHero__a{ position: relative; display: block; overflow: hidden; border-radius: 14px; }
.p-facilityHero__a img{ width: 100%; height: auto; display: block; transform: scale(1.01); }
.p-facilityHero__overlay{
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.15) 40%, rgba(0,0,0,.45) 100%);
}
.p-facilityHero__title{
  position: absolute; left: 14px; top: 12px;
  color: #fff; font-weight: 700; font-size: 22px; line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0,0,0,.35);
}
.p-facilityHero__credit{
  position: absolute; right: 12px; bottom: 10px;
  color: rgba(255,255,255,.92);
  font-size: 12px; line-height: 1.2;
  padding: 6px 10px;
  background: rgba(0,0,0,.35);
  border-radius: 999px;
  backdrop-filter: blur(6px);
}


/* ==========================================================
   Visually hidden（共通ユーティリティ）
   ========================================================== */
.u-srOnly{
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}


/* ==========================================================
   Facility Photo Gallery（facility-photo-gallery.php）
   - inline style撤去分の統合
   ========================================================== */
.p-facilityPhotos{
  margin: 1.8em 0 0;
}

.p-facilityPhotos__emptyLead{
  margin: .2em 0 1em;
  color: rgba(0,0,0,.7);
}

.p-facilityPhotos__cta{
  margin-top: 1em;
}

/* 投稿ボタン */
.p-facilityPhotos__btn{
  display: inline-block;
  padding: .75em 1.05em;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.15);
  text-decoration: none;
}

/* ギャラリーGrid */
.p-facilityPhotoGrid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: .8em;
  margin-top: .8em;
}

/* 1枚カード */
.p-facilityPhotoGrid__item{
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  overflow: hidden;
}

.p-facilityPhotoGrid__a{
  display: block;
  text-decoration: none;
  color: inherit;
}

.p-facilityPhotoGrid__body{
  padding: .6em .75em;
}

.p-facilityPhotoGrid__title{
  margin: 0;
  font-size: .92em;
  line-height: 1.4;
}

/* 画像 */
.p-facilityPhotoGrid__img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}


/* =========================================================
   Photo: 「同じイベントの写真」サムネ一覧（文字なし）
   ========================================================= */
.l-article .p-photoRelatedEventPhotos__list{
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); /* SP: 3列 */
  gap: 10px;
}

@media (min-width: 768px){
  .l-article .p-photoRelatedEventPhotos__list{
    grid-template-columns: repeat(6, minmax(0, 1fr)); /* PC: 6列 */
    gap: 12px;
  }
}

.l-article .p-photoRelatedEventPhotos__item{
  margin: 0;
}

.l-article .p-photoRelatedEventPhotos__link{
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1; /* 正方形サムネ */
  overflow: hidden;
  border-radius: 10px;
}

/* WPサムネ（img）を枠いっぱいに */
.l-article .p-photoRelatedEventPhotos__link img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* サムネ無し時のプレースホルダー（PHP側で出しているspan用） */
.l-article .p-photoRelatedEventPhotos__noThumb{
  display: block;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.06);
}

/* 「写真に紐づいたイベント」最小整形（邪魔しない範囲） */
.l-article .p-photoRelatedEvent__title{
  margin: 0.2rem 0 0;
  font-weight: 700;
}
.l-article .p-photoRelatedEvent__meta{
  margin: 0.3rem 0 0;
  font-size: 0.95em;
  opacity: 0.9;
}
