@charset "UTF-8";
/* =========================================================
   匝瑳市立図書館 トップページ
   設計：FLOCSS
     Foundation … 変数・ベーススタイル（リセットは normalize.css）
     Layout     … l-  ヘッダー / メイン / フッター / コンテナ
     Object
       Component … c-  再利用する小さな部品
       Project   … p-  ページ固有のまとまり
       Utility   … u-  調整用の単機能クラス
   ブレイクポイント：860px（タブレット） / 560px（スマホ）
   ========================================================= */


/* =========================================================
   Foundation
   ========================================================= */
:root {
  --color-green: #7aa52e;
  --color-green-light: #dce9c3;
  --color-green-pale: #f3f8ea;
  --color-yellow: #eab124;
  --color-yellow-bright: #ffe600;
  --color-yellow-gold: #edb31e;
  --color-blue: #2ea7e0;
  --color-orange: #f0941d;
  --color-pink: #f0b8cf;
  --color-pink-light: #f6c4d6;
  --color-brown: #b38247;
  --color-brown-light: #f0e4cd;
  --color-open: #a8d17f;
  --color-text: #333;
  --color-gray: #666;
  --color-line: #bbb;
  --color-border: #89898a; /* 下層ページの白い枠の線 */
  --color-kids: #f8f3a1; /* こどもページの見出しの黄色 */
  --container-width: 1000px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  /* 内容が短いページでもフッターを画面の下に置く（l-main が残りの高さを埋める） */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh; /* スマホのアドレスバー分のずれを防ぐ（対応ブラウザのみ） */
  color: var(--color-text);
  font-family: "Zen Maru Gothic", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  background-color: #fff;
  /* 薄い縦ストライプ背景（全ページ共通） */
  background-image: url("/images/bg.png");
  background-repeat: repeat;
  background-size: 845px auto; /* 実寸の半分で表示して縦線を細く見せる */
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, dl, dd { margin: 0; }
/* 表示サイズはCSSで管理。HTMLのwidth/height属性は縦横比の確保（CLS防止）用 */
img { display: block; max-width: 100%; height: auto; }
address { font-style: normal; }


/* =========================================================
   Layout
   ========================================================= */

/* ---------- l-container ---------- */
.l-container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* ---------- l-header ---------- */
.l-header {
  background: #fff;
  border-bottom: 2px solid var(--color-green);
}
.l-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 93px; /* 緑の下線（2px）は含まない */
}
.l-header__logo { line-height: 0; }
.l-header__logo img { width: 290px; }
.l-header__illust { flex: 0 1 auto; width: 400px; min-width: 0; } /* 画面が狭いときは縮めて、ロゴとの並びがはみ出さないようにする */

@media (max-width: 560px) {
  .l-header__inner { height: 64px; }
  .l-header__logo img { width: 210px; }
  .l-header__illust { display: none; }
}

/* ---------- l-main ---------- */
.l-main { flex: 1 0 auto; padding-bottom: 42px; } /* flex：フッターを下に押し下げる */

/* ---------- l-content（下層ページの白いボックス） ---------- */
.l-content {
  max-width: 760px;
  margin: 28px auto 0; /* ナビとの間の余白 */
  padding: 32px 40px 40px;
  border: 1px solid var(--color-border);
  background: #fff;
}

@media (max-width: 560px) {
  .l-content { margin-top: 18px; padding: 20px 16px 28px; }
}

/* ---------- l-column（下層ページのカラム枠） ---------- */
/* --2：2等分 / --3：3等分 / --2-1：2対1 */
.l-column { display: grid; gap: 16px; }
.l-column--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.l-column--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.l-column--2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } /* 左2/3・右1/3 */
/* 縦の揃え */
.l-column--top { align-items: start; }
.l-column--middle { align-items: center; }
.l-column--bottom { align-items: end; }
.l-column__item { margin: 0; }
.l-column__item img { width: 100%; }
.l-column__caption { margin-top: 8px; font-size: 14px; text-align: center; }

/* ---------- p-facility（施設案内の各施設） ---------- */
.p-facility-list { row-gap: 32px; }
.p-article__body > .p-facility-list { margin-block: 32px; } /* 上の外観写真・下の地図との間を広めに */
.p-facility > * { margin: 0; }
.p-facility > * + * { margin-top: 10px; }
.p-facility__photo { aspect-ratio: 4 / 3; object-fit: cover; } /* 写真の比率がばらばらでも高さをそろえる */
.p-facility__text { font-size: 14px; }

@media (max-width: 560px) {
  .l-column--2,
  .l-column--3,
  .l-column--2-1 { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- l-footer ---------- */
.l-footer {
  background: var(--color-green-light);
  padding: 38px 0 10px;
}
/* コピーライト上のリンク（サイトマップ・個人情報保護方針） */
.l-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}
.l-footer__links li + li::before { content: "|"; margin: 0 1em; color: var(--color-border); } /* リンク間の区切り線 */
.l-footer__links a { color: inherit; text-decoration: none; }
.l-footer__links a:hover { text-decoration: underline; }
.l-footer__links + .l-footer__copyright { margin-top: 12px; }
.l-footer__copyright {
  margin-top: 40px;
  text-align: center;
  font-size: 14px;
}


/* =========================================================
   Object / Component
   ========================================================= */

/* ---------- c-btn ---------- */
.c-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 45px;
  font-size: 15px;
  letter-spacing: .03em;
  transition: filter .2s, transform .2s;
}
.c-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.c-btn__icon { flex: none; width: 35px; height: 35px; object-fit: contain; }
.c-btn--brown { background: var(--color-brown) }
.c-btn--white { background: #fff }
.c-btn--yellow { background: var(--color-yellow); }
.c-btn--yellow-gold { background: var(--color-yellow-gold) }
.c-btn--blue { background: var(--color-blue); }
.c-btn--green { background: var(--color-green); }
.c-btn--pink { background: var(--color-pink); }
.c-btn--round { border-radius: 6px; font-size: 16px; letter-spacing: .04em; }
.c-btn--border-brown { border: 1px solid var(--color-brown)}
.c-btn--text-white { color: #fff }
.c-btn--text-yellow-gold { color: var(--color-yellow-gold); }

/* ---------- c-panel（緑ヘッダー付きの枠） ---------- */
.c-panel {
  background: #fff;
}
.c-panel--brown {
  background: var(--color-brown-light);
}
.c-panel--border-green {
  border:1px solid var(--color-green);
}
.c-panel__title {
  padding: 4px 0;
  background: var(--color-green);
  color: #fff;
  text-align: center;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: .05em;
}

/* ---------- c-tag ---------- */
.c-tag {
  display: inline-block;
  flex: 0 0 58px;
  color: #fff;
  font-size: 12px;
  line-height: 20px;
  text-align: center;
}
/* ---------- c-date（日付） ---------- */
.c-date {
  flex: none;
  color: var(--color-gray);
  font-size: 13px;
  min-width: 4.5em; /* フォントの数字の幅が違っても、後ろのタグの位置をそろえる */
  white-space: nowrap;
}

.c-tag--yokaichiba { background: var(--color-green); }
.c-tag--common { background: var(--color-orange); }
.c-tag--nosaka { background: var(--color-blue); }

/* ---------- c-more（一覧リンク） ---------- */
.c-more {
  padding: 8px 14px 4px;
  text-align: right;
  font-size: 13px;
}
.c-more a:hover { text-decoration: underline; }
.c-more--brown a { color: var(--color-brown) }
.c-more--green a { color: var(--color-green); }
.c-more--small { padding: 6px 22px; font-size: 12px; }

/* ---------- c-link（本文中のリンク） ---------- */
.c-link { color: var(--color-green); }
.c-link:hover { text-decoration: underline; }

/* ---------- c-table（表） ---------- */
/* 横に長い表はスマホで横スクロールさせる */
.c-table-wrap { overflow-x: auto; }
.c-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.c-table th,
.c-table td {
  padding: 10px 12px;
  border: 1px solid var(--color-line);
  vertical-align: middle;
}
.c-table thead th {
  background: var(--color-green);
  color: #fff;
  font-weight: 500;
  white-space: nowrap;
}
.c-table tbody th { background: var(--color-green-pale); font-weight: 500; text-align: left; white-space: nowrap; }
.c-table__center { text-align: center; white-space: nowrap; }
@media (max-width: 560px) {
  .c-table { min-width: 560px; font-size: 14px; }
}

/* ---------- c-heading（見出し） ---------- */
/* 外側の余白は持たせず、使う側（p-）で調整する */
.c-heading-lv1 {
  padding: 12px 16px;
  /* 右側のドット：画像を半分のサイズで表示し、帯の右下からはみ出させる */
  background: var(--color-green) url("/images/h1_dots.png") no-repeat right -23px bottom -26px / 213px auto;
  color: #fff;
  text-align: center;
  font-size: 21px;
  font-weight: 400;
  line-height: 1.4;
}
.c-heading-lv2 {
  padding: 4px 12px;
  /* border-left: 4px solid var(--color-green); */
  background: var(--color-green-pale);
  font-size: 17px;
  font-weight: 500;
}
/* 左に太い線、下に細い線（デザイン：/completed/h3.png） */
.c-heading-lv3 {
  padding: 3px 0 3px 8px;
  border-left: 6px solid #dcebbf;
  border-bottom: 2px solid #e6f0d2;
  font-size: 16px;
  font-weight: 500;
}

/* こどもページ用：黄色の帯（デザイン：/completed/kids.png） */
.c-heading-lv1--kids {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-block: 6px;
  background-color: var(--color-kids);
  color: var(--color-text);
}
.c-heading-lv2--kids {
  padding: 8px 16px;
  background: var(--color-kids);
}

@media (max-width: 560px) {
  .c-heading-lv1 { font-size: 18px; }
}


/* =========================================================
   Object / Project
   ========================================================= */

/* ---------- p-gnav ---------- */
.p-gnav { background: #fff; }
.p-gnav__list {
  display: flex;
  justify-content: center;
  padding-top: 14px;
  padding-bottom: 12px;
}
.p-gnav__item {
  position: relative;
  flex: 1;
  max-width: 180px;
}
.p-gnav__item + .p-gnav__item::before {
  content: "";
  position: absolute;
  top: 4px; bottom: 4px; left: 0;
  width: 2px;
  background: var(--color-green-light);
}
.p-gnav__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
  color: var(--color-gray);
  font-size: 13px;
  transition: color .2s;
}
.p-gnav__icon { width: 48px; height: 40px; object-fit: contain; transition: transform .2s; }
.p-gnav__link:hover { color: var(--color-green); }
.p-gnav__link:hover .p-gnav__icon { transform: translateY(-3px); }

/* ドロップダウンメニュー（ホバー・キーボード操作で表示。スマホでは非表示） */
.p-gnav__sub {
  position: absolute;
  top: calc(100% + 12px); /* ナビの下端にそろえる（.p-gnav__list の padding-bottom 分） */
  left: 0;
  z-index: 100;
  min-width: 100%;
  width: max-content;
  padding: 12px 24px 14px 20px;
  background: var(--color-green);
  visibility: hidden;
  opacity: 0;
  transition: opacity .2s, visibility .2s;
}
/* ナビとメニューの間のすき間でホバーが切れないようにする */
.p-gnav__sub::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  height: 12px;
}
/* 右端のメニューは画面からはみ出さないよう右そろえ */
.p-gnav__item:last-child .p-gnav__sub { left: auto; right: 0; }
/* 画面幅が狭いときは、右から2番目（図書館サービス）も右そろえにしてはみ出しを防ぐ */
@media (max-width: 860px) {
  .p-gnav__item:nth-last-child(2) .p-gnav__sub { left: auto; right: 0; }
}
.p-gnav__item:hover .p-gnav__sub,
.p-gnav__item:focus-within .p-gnav__sub { visibility: visible; opacity: 1; }
.p-gnav__sub-link {
  display: block;
  padding: 2px 0;
  color: #fff;
  font-size: 14px;
  line-height: 1.6;
}
.p-gnav__sub-link::before { content: "・"; }
.p-gnav__sub-link:hover { text-decoration: underline; }

@media (max-width: 560px) {
  .p-gnav__sub { display: none; }
  .p-gnav__list { padding-left: 6px; padding-right: 6px; }
  .p-gnav__link { font-size: 10px; letter-spacing: -.02em; }
  .p-gnav__icon { width: 36px; height: 30px; }
}

/* ---------- p-top（トップページのbody） ---------- */
/* 背景は全ページ共通になったため body に移動 */
/* .p-top {
  background-image: url("/images/bg.png");
  background-repeat: repeat;
  background-size: 845px auto;
} */

/* ---------- p-top-grid（4エリアのグリッド） ---------- */
.p-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 248px;
  /* news / calendar は「パネル」「その下」の2行分を使う */
  grid-template-areas:
    "slider search"
    "news   calendar"
    "news   calendar";
  gap: 30px 20px;
  align-items: start;
}
.p-top-grid__slider   { grid-area: slider; min-width: 0; } /* Swiperの幅計算を崩さないため */
.p-top-grid__search   { grid-area: search; }
.p-top-grid__news     { grid-area: news; }
.p-top-grid__calendar { grid-area: calendar; }
/* 親グリッドの行を共有（subgrid）して、おしらせとカレンダーのパネルの高さを連動させる */
.p-top-grid__news,
.p-top-grid__calendar {
  display: grid;
  grid-template-rows: subgrid;
  row-gap: 0;
}

@media (max-width: 860px) {
  .p-top-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "slider"
      "search"
      "news"
      "calendar";
    row-gap: 24px;
  }
  /* 1列表示では横に並ばないので連動を解除 */
  .p-top-grid__news,
  .p-top-grid__calendar { display: block; }
}

/* ---------- p-slider ---------- */
/* スライダー本体は Swiper（swiper-bundle.min.css）。ここでは見た目だけ調整する */
.p-slider {
  /* ドットの見た目（Swiper の CSS 変数で指定） */
  --swiper-pagination-bullet-size: 6px;
  --swiper-pagination-bullet-horizontal-gap: 2px;
  --swiper-pagination-color: var(--color-green);
  --swiper-pagination-bullet-inactive-color: #d5e4bd;
  --swiper-pagination-bullet-inactive-opacity: 1;
}
.p-slider__list { margin: 0; padding: 0; list-style: none; }
.p-slider__list.swiper-wrapper { transition-timing-function: ease-in-out; } /* 切り替えの動き */
.p-slider__item img {
  display: block;
  width: 100%;
  aspect-ratio: 567 / 269;
  object-fit: cover;
}
/* ドット：画像に重ねず、スライダーの下に置く */
.p-slider .p-slider__pagination {
  position: static;
  display: flex;
  justify-content: center;
  padding-top: 4px;
  line-height: 0;
}

/* ---------- p-search ---------- */
.p-search {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.p-search__box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 14px 20px;
  background: var(--color-brown-light);
}
.p-search__label {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}
.p-search__field {
  display: flex;
  border: 1px solid var(--color-brown);
}
/* .p-search__field:focus-within { border-color: var(--color-brown); } */
.p-search__input {
  flex: 1;
  min-width: 0;
  padding: 12px 8px;
  border: 0;
  font-size: 12px;
  outline: none;
}
.p-search__input::placeholder { color: #999; }
.p-search__submit {
  display: grid;
  place-items: center;
  width: 38px;
  border: 0;
  border-left: 1px solid var(--color-brown);
  background: var(--color-brown);
  cursor: pointer;
}
.p-search__submit img { width: 20px; height: 20px; object-fit: contain; }
.p-search__mypage { margin-left: 8px; }

@media (max-width: 860px) {
  .p-search__mypage { margin-left: 0; }
}

/* ---------- p-news ---------- */
/* 高さが伸びたときは「一覧」リンクを下端に寄せる */
.p-news,
.p-calendar { display: flex; flex-direction: column; }
.p-news .c-more,
.p-calendar .c-more { margin-top: auto; }
.p-news { padding-bottom: 6px; }
.p-news__list { padding: 14px 30px 0; }
.p-news__item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 34px;
}
.p-news__link {
  flex: 1;
  padding: 5px 0 4px;
  border-bottom: 1px solid var(--color-line);
  font-size: 14px;
}
.p-news__link:hover { color: var(--color-brown); }
/* 日付とタグのまとまり */
.p-news__meta { flex: none; display: flex; align-items: center; gap: 6px; }

@media (max-width: 560px) {
  .p-news__list { padding: 12px 14px 0; }
  /* タグをタイトルの上に */
  .p-news__item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 8px 0;
    border-bottom: 1px solid var(--color-line);
  }
  .p-news__item .c-tag { flex: none; padding: 0 10px; }
  .p-news__link {
    width: 100%;
    padding: 0;
    border-bottom: 0;
    font-size: 13px;
  }
}

/* ---------- p-books（新着資料・ランキング） ---------- */
.p-books {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-top: 24px;
  padding-left: 0;
}
.p-books__item a { display: block; transition: transform .2s; }
.p-books__item a:hover { transform: translateY(-4px) rotate(-1.5deg); }
.p-books__item img { width: 120px; }

@media (max-width: 860px) {
  .p-books { justify-content: center; gap: 24px; padding-left: 0; }
}
@media (max-width: 560px) {
  .p-books { gap: 10px; }
  .p-books__item img { width: 96px; }
}

/* ---------- p-calendar ---------- */
.p-calendar__body { padding: 10px 12px 0; }
.p-calendar__body img { width: 100%; }

/* ---------- p-hours（開館時間） ---------- */
.p-hours {
  display: flex;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.75;
}
.p-hours__desc {
  display: flex;
  flex-direction: column;
}
/* .p-hours__desc span + span { padding-left: 1em; white-space: pre; } */

/* ---------- p-legend（カレンダー凡例） ---------- */
.p-legend { margin-top: 12px; font-size: 12px; line-height: 1.75; } /* margin-top：カレンダーのパネルとの間隔 */
.p-legend__item { display: flex; align-items: flex-start; } /* 2行になっても■は1行目にそろえる */
.p-legend__mark { flex: none; width: 10px; height: 10px; margin-top: 7px; margin-right: 2px; border: 1px solid #000; } /* margin-top：1行目の文字に高さを合わせる */
.p-legend__mark--open { background: var(--color-open); border: none; }
.p-legend__mark--closed { background: var(--color-pink-light); border: none; }

/* ---------- p-banners ---------- */
.p-banners {
  display: grid;
  grid-template-columns: repeat(3, 260px);
  gap: 22px 20px;
  margin-top: 36px;
  justify-content: center;
}
.p-banners__item a { display: block; transition: transform .2s, opacity .2s; }
.p-banners__item a:hover { transform: translateY(-2px); opacity: .85; }
.p-banners__item img { width: 100%; }

@media (max-width: 860px) {
  .p-banners { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .p-banners { grid-template-columns: 1fr; justify-items: center; }
  .p-banners__item { width: 100%; max-width: 320px; }
}

/* ---------- p-libraries（フッターの館情報） ---------- */
.p-libraries {
  display: grid;
  grid-template-columns: auto auto; /* 各館の幅を内容に合わせる（のさかの住所を1行に収めるため） */
  justify-content: space-between;
  gap: 40px;
}
.p-libraries__item {
  display: flex;
  align-items: flex-end;
  gap: 6px;
}
.p-libraries__photo {
  flex: 0 0 200px;
  width: 200px;
  aspect-ratio: 160 / 120;
  object-fit: cover;
}
.p-libraries__info {
  flex: 1;
  font-size: 14px;
  line-height: 1.6;
}
.p-libraries__name { font-size: 14px; font-weight: 400; }
.p-libraries__more { display: block; text-align: right; }
.p-libraries__more:hover { color: var(--color-green); text-decoration: underline; }

@media (max-width: 860px) {
  .p-libraries { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 560px) {
  .p-libraries__item { flex-direction: column; align-items: stretch; }
  .p-libraries__photo { flex-basis: auto; width: 100%; max-width: 260px; }
}


/* ---------- p-breadcrumb（パンくずリスト） ---------- */
.p-breadcrumb {
  padding: 0 0 20px; /* 白い枠の中に置くため上の余白はなし */
  color: var(--color-gray);
  font-size: 12px;
}
.p-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}
.p-breadcrumb__item + .p-breadcrumb__item::before { content: ">"; margin: 0 8px; }
.p-breadcrumb__item a { color: var(--color-green); }
.p-breadcrumb__item a:hover { text-decoration: underline; }

@media (max-width: 560px) {
  .p-breadcrumb { padding: 0 0 14px; }
}

/* ---------- p-news-list（おしらせ一覧） ---------- */
.p-news-list__list { margin-top: 16px; }
.p-news-list__item { border-bottom: 1px solid var(--color-line); }
.p-news-list__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 32px 14px 4px;
  transition: color .2s, background-color .2s;
}
/* 右端の矢印 */
.p-news-list__link::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 12px;
  width: 7px;
  height: 7px;
  border-top: 2px solid var(--color-green);
  border-right: 2px solid var(--color-green);
  transform: translateY(-50%) rotate(45deg);
}
.p-news-list__link:hover { color: var(--color-green); background: var(--color-green-pale); }
.p-news-list__title { flex: 1; }
/* 日付とタグのまとまり */
.p-news-list__meta { flex: none; display: flex; align-items: center; gap: 8px; }

@media (max-width: 560px) {
  /* タグをタイトルの上に */
  .p-news-list__link {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-size: 14px;
  }
  .p-news-list__link .c-tag { flex: none; padding: 0 10px; }
}

/* ---------- p-calendar-list（年間カレンダー） ---------- */
/* 幅に応じて 3列 → 2列 → 1列 に自動で切り替え */
.p-calendar-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 24px 20px;
}
.p-calendar-list__body { padding: 10px; }
.p-calendar-list__body img { width: 100%; }

/* ---------- p-article（記事詳細） ---------- */
.p-article__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.p-article__body { margin-top: 24px; }
.p-article__body > * + * { margin-top: 16px; }
/* 見出しの余白（見出し自体のスタイルは c-heading） */
.p-article__body > .c-heading-lv2 { margin-top: 32px; }
.p-article__body > .c-heading-lv3 { margin-top: 24px; }
.p-article__body > .c-heading-lv2 + .c-heading-lv3 { margin-top: 16px; }
.p-article__table {
  display: grid;
  grid-template-columns: minmax(7em, max-content) 1fr; /* 項目名の長さに合わせて広げる */
  border-top: 1px solid var(--color-line);
}
.p-article__table dt,
.p-article__table dd {
  padding: 10px 12px;
  border-bottom: 1px solid var(--color-line);
}
.p-article__table dt { background: var(--color-green-pale); font-weight: 500; }
.p-article__list { margin-bottom: 0; padding-left: 1.5em; list-style: disc; }
.p-article__list--num { list-style: decimal; } /* 番号付きリスト */
.p-article__list > li + li { margin-top: 4px; }
/* 注意書きの枠 */
.p-article__caution {
  padding: 16px 20px;
  border: 1px solid var(--color-orange);
  border-radius: 6px;
}
.p-article__caution-title { color: var(--color-orange); font-weight: 700; }
.p-article__caution > * + * { margin-top: 8px; }
/* 手順（番号＋説明文＋画面画像） */
.p-steps { margin-bottom: 0; padding-left: 1.5em; list-style: decimal; }
.p-steps__item + .p-steps__item { margin-top: 32px; }
.p-steps__img { margin-top: 12px; margin-inline: auto; max-width: min(100%, 560px); } /* 画面画像は中央。実寸で表示し、大きい画像だけ560px（狭い画面では画面幅）まで縮める */
/* ページ内リンクで飛んだ見出しが画面の上端に貼りつかないように */
.p-article__body [id] { scroll-margin-top: 16px; }

/* ---------- p-toc（ページ内リンク） ---------- */
.p-toc {
  padding: 20px 24px;
  background: var(--color-green-pale);
  border-radius: 6px;
}
.p-toc__title { font-weight: 700; }
.p-toc__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 24px;
  margin-top: 12px;
}
.p-toc__list a::before { content: "▶"; margin-right: 6px; font-size: 10px; vertical-align: 2px; }
.p-article__note { color: var(--color-gray); font-size: 13px; }
.p-article__back { max-width: 240px; margin: 40px auto 0; }

/* ---------- p-menu-list（リンク一覧） ---------- */
.p-menu-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}
.p-menu-list__link {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  padding: 14px 16px;
  border: 1px solid var(--color-green);
  border-radius: 6px;
  color: var(--color-text);
  font-weight: 500;
  transition: background-color .2s;
}
.p-menu-list__link::before { content: "▶"; flex: none; color: var(--color-green); font-size: 10px; }
.p-menu-list__link:hover { background: var(--color-green-pale); }
@media (max-width: 560px) {
  .p-menu-list { grid-template-columns: 1fr; }
}

/* ---------- p-sitemap（サイトマップ） ---------- */
.p-sitemap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 40px;
}
.p-sitemap__title a:hover { color: var(--color-green); }
.p-sitemap__list { margin: 12px 0 0; padding: 0; list-style: none; }
.p-sitemap__list > li + li { margin-top: 6px; }
.p-sitemap__link { display: inline-flex; align-items: baseline; gap: 8px; }
.p-sitemap__link::before { content: "▶"; flex: none; color: var(--color-green); font-size: 10px; } /* p-menu-list と同じ矢印 */
.p-sitemap__link:hover { color: var(--color-green); text-decoration: underline; }
@media (max-width: 560px) {
  .p-sitemap { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- p-faq（よくある質問） ---------- */
.p-faq { margin-bottom: 0; }
.p-faq__item { border-bottom: 1px dashed var(--color-line); padding-bottom: 16px; }
.p-faq__item + .p-faq__item { margin-top: 16px; }
.p-faq__q,
.p-faq__a { display: flex; gap: 12px; margin: 0; }
.p-faq__q { font-weight: 700; }
.p-faq__a { margin-top: 10px; }
/* 「Q1」「A」の丸 */
.p-faq__mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-green);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}
.p-faq__a .p-faq__mark { background: var(--color-orange); }
.p-faq__text { flex: 1; min-width: 0; padding-top: 6px; }
.p-faq__text > * { margin: 0; }
.p-faq__text > * + * { margin-top: 8px; }

@media (max-width: 560px) {
  /* 見出しと内容を縦積みに */
  .p-article__table { grid-template-columns: 1fr; }
  .p-article__table dt { padding: 6px 12px; border-bottom: 0; }
  .p-toc { padding: 16px; }
  .p-toc__list { grid-template-columns: 1fr; }
}

/* ---------- p-kids（こどもページ） ---------- */
.p-kids__face { width: 40px; } /* h1 の両側の顔イラスト */
/* 文章とイラストの横並び（イラストは右下） */
.p-kids__row {
  display: flex;
  align-items: flex-end;
  gap: 24px;
}
.p-kids__content { flex: 1; min-width: 0; }
.p-kids__content > * + * { margin-top: 16px; }
.p-kids__illust { flex: none; width: 80px; }
.p-kids__illust--top { align-self: flex-start; } /* 文章の上側にそろえる */
.p-kids__title { margin-bottom: 0; font-size: inherit; font-weight: 500; } /* 文字サイズは本文と同じ */
.p-kids__content > .p-kids__title:not(:first-child) { margin-top: 24px; } /* 項目（○）の間を広めに */
.p-kids__content > .p-kids__title:first-child { margin-top: 0; }
.p-kids__title + .p-kids__text { margin-top: 4px; }
.p-kids__text { margin-bottom: 0; padding-left: 1em; }
/* 開館時間：館名と時間を横に並べる */
.p-kids__hours {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 2em;
  row-gap: 12px;
  margin: 0;
}
.p-kids__hours dd { margin: 0; }
.p-kids__list { margin-bottom: 0; padding-left: 0; list-style: none; } /* 上の余白は p-article__body の指定を使う */
.p-kids__list > li { padding-left: 1em; text-indent: -1em; } /* 2行目以降を「・」の後ろにそろえる */
.p-kids__list > li::before { content: "・"; }
.p-kids__list > li + li { margin-top: 4px; }
.p-kids__notebook { width: 100%; }
.p-kids__reading { width: 340px; margin-left: auto; }

@media (max-width: 560px) {
  .p-kids__row { gap: 12px; }
  .p-kids__illust { width: 56px; }
  .p-kids__hours { grid-template-columns: 1fr; row-gap: 4px; }
  .p-kids__hours dd { padding-left: 1em; }
  .p-kids__hours dd + dt { margin-top: 8px; }
  .p-kids__reading { width: 100%; }
}

/* =========================================================
   Object / Utility
   ========================================================= */
/* 必要に応じて u- クラスを追加 */
