/* 園だより 公開側（施設ページの欄・記事ページ・一覧） */
.bsd-section, .bsd-page {
  --bsd-text: #3a3a3a;
  --bsd-muted: #7a7266;
  --bsd-line: #ebe4d8;
  --bsd-accent: #e0793b;
  --bsd-card: #fff;
  color: var(--bsd-text);
}
.bsd-section { max-width: 1100px; margin-left: auto; margin-right: auto; padding: 0 16px; }
.bsd-section__title { text-align: center; font-size: clamp(22px, 3.2vw, 30px); margin: 0 0 8px; }
.bsd-section__lead { text-align: center; color: var(--bsd-muted); margin: 0 0 24px; }
.bsd-section__more { text-align: center; margin: 24px 0 0; }
.bsd-section__more a, .bsd-school-cta__link { color: var(--bsd-accent); font-weight: 700; text-decoration: none; }
.bsd-section__more a span { margin-left: .4em; }

.bsd-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 768px) { .bsd-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.bsd-card { margin: 0; }

/* SP: 施設ページの欄は横にスワイプするスライダー（ライブラリを使わず scroll-snap で実装） */
.bsd-slider-ui { display: none; }
@media (max-width: 767px) {
  .bsd-section .bsd-cards {
    display: flex; gap: 12px;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding: 0 16px;
    margin: 0 -16px; padding: 4px 16px 8px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .bsd-section .bsd-cards::-webkit-scrollbar { display: none; }
  .bsd-section .bsd-card { flex: 0 0 76%; scroll-snap-align: start; }
  .bsd-section .bsd-card__link:hover { transform: none; box-shadow: none; }
  .bsd-slider-ui { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 12px 0 0; }
  .bsd-slider-ui__btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--bsd-line); background: #fff; color: var(--bsd-text); font-size: 18px; line-height: 1; cursor: pointer; }
  .bsd-slider-ui__btn:disabled { opacity: .35; cursor: default; }
  .bsd-slider-ui__dots { display: flex; gap: 6px; }
  .bsd-slider-ui__dot { width: 8px; height: 8px; border-radius: 50%; background: #d9d1c4; transition: background .2s, width .2s; }
  .bsd-slider-ui__dot.is-current { width: 20px; border-radius: 4px; background: var(--bsd-accent); }
}
.bsd-card__link { display: flex; flex-direction: column; height: 100%; background: var(--bsd-card); border: 1px solid var(--bsd-line); border-radius: 14px; overflow: hidden; color: inherit; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.bsd-card__link:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0, 0, 0, .08); }
.bsd-card__link:focus-visible { outline: 3px solid #2b6cb0; outline-offset: 2px; }
.bsd-card__media { position: relative; display: block; aspect-ratio: 4 / 3; background: #f5efe6; overflow: hidden; }
.bsd-card__img { position: relative; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; display: block; }
/* 縦の写真: 切らずに全体を見せ、左右は同じ写真をぼかして埋める */
.bsd-card__backdrop { position: absolute; inset: -12px; background-size: cover; background-position: center; filter: blur(14px) saturate(1.1); transform: scale(1.1); opacity: .85; }
.bsd-card__media--portrait .bsd-card__img { object-fit: contain; object-position: center; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .18)); }
.bsd-card__noimg { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--bsd-muted); font-weight: 700; }
.bsd-card__count { position: absolute; right: 8px; bottom: 8px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 12px; border-radius: 999px; padding: 2px 8px; }
.bsd-card__body { display: block; padding: 10px 12px 14px; }
.bsd-card__meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12px; color: var(--bsd-muted); }
.bsd-card__kind { background: #fff3ea; color: #b45a24; border-radius: 4px; padding: 0 6px; }
.bsd-card__title { margin: 6px 0 0; font-size: 15px; line-height: 1.5; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.bsd-modal { width: min(760px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 16px; overflow: auto; }
.bsd-modal::backdrop { background: rgba(0, 0, 0, .6); }
.bsd-modal__inner { position: relative; padding: 48px 20px 24px; }
.bsd-modal__close { position: sticky; top: 0; float: right; margin: -40px -8px 0 0; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #f3eee6; font-size: 24px; line-height: 44px; cursor: pointer; z-index: 1; }
.bsd-modal__close:focus-visible { outline: 3px solid #2b6cb0; }
body:has(.bsd-modal[open]) { overflow: hidden; }

.bsd-article__meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--bsd-muted, #7a7266); margin: 0 0 8px; }
.bsd-article__school { font-weight: 700; color: #b45a24; }
.bsd-article__kind { background: #fff3ea; color: #b45a24; border-radius: 4px; padding: 0 6px; }
.bsd-article__title { font-size: clamp(20px, 3vw, 28px); line-height: 1.5; margin: 0 0 16px; }
.bsd-article__images { display: grid; gap: 12px; margin: 0 0 20px; justify-items: center; }
.bsd-article__img { width: 100%; height: auto; border-radius: 12px; display: block; }
/* 縦の写真は画面の高さに収め、中央に置く */
.bsd-article__img--portrait { width: auto; max-width: 100%; max-height: 78vh; }
@media (min-width: 768px) { .bsd-article__img--portrait { max-height: 70vh; } }
.bsd-article__body { font-size: 16px; line-height: 1.9; }
.bsd-article__body p { margin: 0 0 1.2em; }
.bsd-article__permalink { margin: 16px 0 0; font-size: 14px; }

.bsd-page { max-width: 820px; margin: 0 auto; padding: 0 0 80px; }
.bsd-page .bsd-article__title { margin-top: 0; }
/* テーマの縦ロゴ（高さ約350px）が 768〜1300px では本文の上端にかかるため、その幅だけ下げる */
@media (min-width: 768px) and (max-width: 1300px) { .m-nomv > .bsd-page { padding-top: 110px; } }
.bsd-page h1, .bsd-page h2 { letter-spacing: .02em; }
.bsd-page__title { font-size: clamp(22px, 3.2vw, 30px); margin: 0 0 16px; }
.bsd-crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--bsd-muted); margin: 0 0 20px; }
.bsd-crumbs a { color: inherit; }
.bsd-page__back { margin: -4px 0 20px; font-size: 14px; }
.bsd-page__back a { color: var(--bsd-accent); font-weight: 700; text-decoration: none; }
.bsd-tabs { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.bsd-tabs a { display: inline-block; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--bsd-line); color: inherit; text-decoration: none; }
.bsd-tabs a[aria-current="page"] { background: var(--bsd-accent); border-color: var(--bsd-accent); color: #fff; }
.bsd-pager { margin: 32px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.bsd-pager .page-numbers { padding: 8px 12px; border-radius: 8px; border: 1px solid var(--bsd-line); text-decoration: none; color: inherit; }
.bsd-pager .current { background: var(--bsd-accent); color: #fff; border-color: var(--bsd-accent); }
.bsd-empty { color: var(--bsd-muted); }

.bsd-school-cta { margin: 40px 0 0; padding: 24px 20px; border-radius: 16px; background: #fff7ef; text-align: center; display: grid; gap: 12px; justify-items: center; }
.bsd-school-cta__lead { margin: 0; font-weight: 700; }
.bsd-school-cta__btn { display: inline-block; padding: 14px 28px; border-radius: 999px; background: var(--bsd-accent); color: #fff; font-weight: 700; text-decoration: none; }

/* ---- スタッフ紹介（施設ページ） ---- */
.bss-section { --bss-green: #17a196; --bss-green-deep: #0e7a72; --bss-leaf: #e5f4f1; }
@media (min-width: 768px) { .bss-section .bss-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 767px) { .bss-section .bss-card { flex-basis: 62%; } }
.bss-card__btn {
  display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; height: 100%;
  padding: 20px 14px 16px; border: 1px solid var(--bsd-line); border-radius: 18px; background: #fff;
  font: inherit; color: inherit; text-align: center; cursor: pointer; transition: transform .15s, box-shadow .15s;
}
.bss-card__btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0, 0, 0, .08); }
.bss-card__btn:focus-visible { outline: 3px solid #2b6cb0; outline-offset: 2px; }
.bss-card__avatar, .bss-detail__avatar {
  display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 50%;
  background: var(--bss-leaf, #e5f4f1); color: var(--bss-green-deep, #0e7a72); font-weight: 700;
}
.bss-card__avatar { width: 112px; height: 112px; font-size: 40px; margin-bottom: 4px; }
.bss-card__avatar__img, .bss-detail__avatar__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bss-card__role, .bss-detail__role {
  display: inline-block; padding: 2px 12px; border-radius: 999px; background: var(--bss-leaf, #e5f4f1);
  color: var(--bss-green-deep, #0e7a72); font-size: 12px; font-weight: 700; line-height: 1.7;
}
.bss-card__name { font-size: 18px; font-weight: 700; }
.bss-card__headline { font-size: 14px; line-height: 1.6; color: var(--bsd-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bss-card__more { margin-top: auto; padding-top: 6px; font-size: 13px; font-weight: 700; color: var(--bss-green, #17a196); }
.bss-section__cta { text-align: center; margin: 24px 0 0; }
.bss-cta {
  display: inline-flex; align-items: center; gap: .6em; padding: 12px 26px; border-radius: 999px;
  border: 1px solid rgba(23, 161, 150, .45); background: #fff; color: #147f76; font-weight: 700; text-decoration: none;
}
.bss-cta:hover { background: #17a196; color: #fff; }

/* モーダルの中身 */
.bss-detail { display: grid; justify-items: center; gap: 8px; text-align: center; }
.bss-detail__avatar { width: 160px; height: 160px; font-size: 56px; }
.bss-detail__name { margin: 0; font-size: clamp(20px, 3vw, 26px); }
.bss-detail__headline { margin: 0; font-weight: 700; color: var(--bss-green-deep, #0e7a72); }
.bss-detail__body { width: 100%; margin-top: 8px; text-align: left; font-size: 16px; line-height: 1.9; }
.bss-detail__body p { margin: 0 0 1em; }
.bss-detail__meta { width: 100%; margin: 0; display: grid; grid-template-columns: 7.5em 1fr; gap: 8px; text-align: left; font-size: 14px; padding: 10px 0; border-top: 1px dashed var(--bsd-line); }
.bss-detail__meta dt { font-weight: 700; color: var(--bss-green-deep, #0e7a72); }
.bss-detail__meta dd { margin: 0; }

/* タグ（得意な関わり・好きなこと） */
.bss-card__tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.bss-chips { width: 100%; text-align: left; padding: 10px 0; border-top: 1px dashed var(--bsd-line); }
.bss-chips__label { margin: 0 0 6px; font-size: 14px; font-weight: 700; color: var(--bss-green-deep, #0e7a72); }
.bss-chips__list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.bss-chip { display: inline-block; padding: 3px 12px; border-radius: 999px; background: #fdf1e7; color: #9a4c1c; font-size: 13px; line-height: 1.7; }
.bss-chip--small { padding: 1px 9px; font-size: 11px; }
@media (max-width: 767px) { .bss-cta { padding: 12px 22px; font-size: 15px; white-space: nowrap; } }
