/* ぴゅあ総合 イベント・お知らせ 一覧・詳細 */

.page-psg-sub {
  --psg-pink: #f0789f;
  --psg-pink-dark: #b85578;
  --psg-lavender: #f3f0f7;
  --psg-brown: #3a2e2a;
  --font-display: "shippori-mincho", sans-serif;
}

.page-pure-fuji.page-psg-sub {
  --psg-pink: #009fe8;
  --psg-pink-dark: #0077b5;
}

.page-pure-kyonan.page-psg-sub {
  --psg-pink: #00a63e;
  --psg-pink-dark: #008a32;
}

.page-psg-sub .btn-contact--header {
  background: var(--psg-pink-dark);
}

.page-psg-sub .global-nav__list > li > a.is-current,
.page-psg-sub .global-nav__facilities-link.is-current {
  box-shadow: inset 0 -3px 0 var(--psg-pink);
}

/* ページヒーロー（上：ピンク＋ロゴ／下：パターン＋ページ見出し） */
.psg-page-hero {
  margin-bottom: 0;
}

.psg-page-hero__brand {
  background: var(--psg-pink);
  padding: 14px 0 16px;
}

.psg-page-hero__brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.psg-page-hero__wordmark {
  display: block;
  width: 148px;
  height: 63px;
  object-fit: contain;
}

.psg-page-hero__tag-badge {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 110px;
  height: 33px;
  padding: 0 4px;
  background: #fff;
  color: #111;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
}

.psg-page-hero__panel {
  position: relative;
  padding: 40px 0 44px;
  text-align: center;
  border-bottom: 1px solid #e8e8e8;
}

.psg-page-hero__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/common/bg_pattern1.jpg") center / 420px repeat;
  pointer-events: none;
}

.psg-page-hero__panel .container {
  position: relative;
  z-index: 1;
}

.psg-page-hero__title {
  margin: 0;
  font-family: "zen-maru-gothic", sans-serif;
  font-size: clamp(22px, 3.6vw, 34px);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #111;
}

@media (max-width: 767px) {
  .psg-page-hero__brand {
    display: none;
  }
}

@media (min-width: 768px) {
  .psg-page-hero__brand {
    padding: 18px 0 20px;
  }

  .psg-page-hero__panel {
    padding: 48px 0 52px;
  }
}

.page-psg-sub .pure-sogo-sidebar__list a.is-current {
  color: var(--psg-pink-dark);
  font-weight: 700;
}

.page-psg-sub .pure-sogo-main {
  min-width: 0;
}

/* ページ見出し（薄グレー＋パターン）— 一部テンプレ・静的モック用 */
.psg-sub-heading {
  position: relative;
  overflow: hidden;
  padding: 36px 0 40px;
  text-align: center;
  border-bottom: 1px solid #e8e8e8;
}

.psg-sub-heading::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/common/bg_pattern1.jpg") center / 420px repeat;
  opacity: 0.18;
  pointer-events: none;
}

.psg-sub-heading .container {
  position: relative;
  z-index: 1;
}

.psg-sub-heading__title {
  margin: 0;
  font-family: "shippori-mincho", sans-serif;
  font-size: clamp(22px, 4.5vw, 28px);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #333;
}

/* メインエリア */
.psg-sub-main {
  padding: 28px 0 56px;
}

@media (min-width: 768px) {
  .psg-sub-main {
    max-width: 850px;
    width: 100%;
    margin-inline: auto;
  }
}

.psg-sub-main--lavender {
  padding: 28px 0 56px;
  margin: 0;
}

.psg-sub-inner {
  width: min(100% - 2 * var(--layout-gutter, 16px), 720px);
  margin-inline: auto;
}

@media (min-width: 768px) {
  .psg-sub-inner {
    width: min(100% - 48px, 850px);
  }
}

/* 〜1023px：施設下層でパンくず・2カラム前後の横余白を揃える */
@media (max-width: 1023px) {
  :is(.page-pure-sogo, .page-pure-fuji, .page-pure-kyonan, .page-futaba-hall, .page-mori-kyoshitsu, .page-psg-sub) .breadcrumb .container {
    padding-inline: var(--layout-gutter);
  }

  .psg-sub-heading .container {
    padding-inline: var(--layout-gutter);
  }

  .pure-sogo-layout.container {
    padding-inline: var(--layout-gutter);
    box-sizing: border-box;
  }

  .pure-sogo-layout .psg-sub-inner {
    width: 100%;
    max-width: 720px;
  }
}

/* SP：イベント一覧カードはラベンダー背景 */
@media (max-width: 767px) {
  .yb-archive--event .psg-sub-main .event-card__link {
    background: var(--psg-lavender, #f3f0f7);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: none;
  }
}

/* フィルタータブ（白ボタン＋枠線） */
.psg-filter-tabs {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
}

.psg-filter-tabs--3 {
  grid-template-columns: repeat(3, 1fr);
}

.psg-filter-tabs--4 {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 640px) {
  .psg-filter-tabs--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.psg-filter-tabs__btn {
  min-height: 46px;
  padding: 10px 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  color: #333;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.psg-filter-tabs__btn:hover {
  border-color: var(--psg-pink);
  color: var(--psg-pink-dark);
}

.psg-filter-tabs__btn.is-active {
  border-color: var(--psg-pink);
  background: var(--psg-pink);
  color: #fff;
}

.psg-filter-tabs__btn.is-active:hover {
  background: var(--psg-pink-dark);
  border-color: var(--psg-pink-dark);
  color: #fff;
}

/* イベント一覧は協会トップと同型（top.css の .event-list / .event-card） */

[data-psg-category].is-hidden {
  display: none !important;
}

/* WordPress 施設 yb_news：協会同型 .news-list / .news-archive__item の行下線（news.css より先に読まれても上書き可） */
.yb-archive--news .news-main__archive ul.news-list > li.news-archive__item {
  border-top: none;
  border-bottom: 1px solid rgba(34, 24, 21, 0.22);
}

/* お知らせ一覧 */
.psg-news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid #ddd;
}

.psg-news-item, .news-archive__item {
  border-bottom: 1px solid #ddd;
}

.psg-news-item.is-hidden {
  display: none !important;
}

.psg-news-item__link {
  display: block;
  padding: 18px 0;
  text-decoration: none;
  color: inherit;
}

.psg-news-item__link:hover .psg-news-item__title {
  text-decoration: underline;
  color: var(--psg-pink-dark);
}

.psg-news-item__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-bottom: 8px;
}

.psg-news-item__tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: var(--psg-brown);
  border-radius: 999px;
}

.psg-news-item__date {
  font-size: 12px;
  color: #666;
}

.psg-news-item__title {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.65;
  color: #222;
}

/* ページネーション */
.psg-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
  font-size: 16px;
  font-weight: 600;
}

.psg-pager__link {
  color: var(--psg-pink-dark);
  text-decoration: none;
}

.psg-pager__link:hover {
  text-decoration: underline;
}

.psg-pager__nums {
  display: flex;
  align-items: center;
  gap: 8px;
}

.psg-pager__nums a,
.psg-pager__nums span {
  min-width: 2em;
  text-align: center;
}

.psg-pager__nums .is-current {
  color: var(--psg-pink-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 詳細記事 */
.psg-sub-main--article {
  padding-bottom: 64px;
}

.psg-article {
  max-width: 720px;
  margin: 0 auto;
}

.psg-article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-bottom: 12px;
}

.psg-article__tag {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: #212121;
  border-radius: 999px;
}

.psg-article__date {
  font-size: 16px;
  color: #666;
}

.psg-article__title {
  margin: 0 0 16px;
  font-size: clamp(18px, 3.5vw, 22px);
  font-weight: 700;
  line-height: 1.5;
  color: #222;
}

.psg-article__divider {
  margin: 0 0 24px;
  border: 0;
  border-top: 1px solid #ddd;
}

.psg-article__body {
  font-size: 15px;
  line-height: 1.9;
  color: #333;
}

.psg-article__body p {
  margin: 0 0 1.25em;
}

.psg-article__back {
  margin-top: 40px;
  text-align: center;
}

.psg-btn-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
  color: #fff !important;
  text-decoration: none !important;
  background: var(--psg-brown);
  border-radius: 999px;
  transition: filter 0.15s, transform 0.15s;
}

.psg-btn-back:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

/* イベント詳細 メタ情報 */
.psg-event-meta {
  margin: 32px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid #e8e8e8;
}

.psg-event-meta dt {
  margin: 14px 0 4px;
  font-size: 13px;
  font-weight: 700;
  color: #555;
}

.psg-event-meta dt:first-child {
  margin-top: 0;
}

.psg-event-meta dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: #333;
}

/* 詳細のタブ（一覧と同系統・ピンクアクティブ） */
.psg-detail-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 28px;
}

.psg-detail-tabs a.psg-filter-tabs__btn {
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.psg-detail-tabs span.psg-filter-tabs__btn.is-active {
  cursor: default;
}
