/* ==========================================================================
   四条保育園テーマ スタイル
   パステルカラー × 丸ゴシック
   ========================================================================== */

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

:root {
  /* --- パステルパレット --- */
  --mint:        #8ECFB0;   /* メイン：やわらかい若草 */
  --mint-deep:   #4E9375;   /* 文字・ボタン用（コントラスト確保） */
  --mint-pale:   #EDF7F1;   /* 面の塗り */
  --mint-mist:   #F6FBF8;   /* さらに淡い面 */

  --peach:       #F6B3A0;   /* アクセント：やわらかい桃 */
  --peach-deep:  #D2704F;   /* 文字用 */
  --peach-pale:  #FDF0EB;

  --sky:         #A8D6E8;   /* 補助：空色 */
  --sky-pale:    #EEF7FB;

  --lemon:       #F8DFA0;   /* 補助：やわらかい黄 */
  --lemon-pale:  #FDF8EA;

  --cream:       #FFFCF7;   /* 背景 */
  --text:        #504A44;   /* 本文（黒ではなく温かみのある濃茶） */
  --text-soft:   #837B73;   /* 補助文字 */

  --radius:      20px;
  --radius-lg:   28px;
  --radius-pill: 999px;
  --shadow:      0 4px 20px rgba(142, 207, 176, .18);
  --shadow-soft: 0 2px 14px rgba(80, 74, 68, .07);

  --header-h: 68px;
}

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: 'Zen Maru Gothic', 'M PLUS Rounded 1c', 'Kosugi Maru',
               'Hiragino Maru Gothic ProN', 'ヒラギノ丸ゴ ProN W4',
               'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  background: var(--cream);
  color: var(--text);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--mint-deep); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--mint-deep); color: #fff; padding: 10px 18px;
  border-radius: 0 0 var(--radius) 0; z-index: 999;
}
.skip-link:focus { left: 0; }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap;
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 252, 247, .93);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--mint-pale);
  padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
}
.site-branding { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.site-logo-mark {
  width: 44px; height: 44px; background: var(--mint); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 19px; font-weight: 700; flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(142, 207, 176, .4);
}
.site-logo-mark img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.site-title { font-size: 15px; font-weight: 700; color: var(--text); line-height: 1.4; display: block; }
.site-description { font-size: 11px; color: var(--text-soft); font-weight: 400; display: block; }

.main-navigation ul { display: flex; gap: 4px; list-style: none; }
.main-navigation a {
  text-decoration: none; color: var(--text);
  font-size: 13.5px; font-weight: 500; padding: 8px 14px;
  border-radius: var(--radius-pill); transition: all .25s ease; display: block;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a {
  background: var(--mint-pale); color: var(--mint-deep);
}

.menu-toggle {
  display: none; font-size: 26px; cursor: pointer;
  background: none; border: none; color: var(--mint-deep); line-height: 1;
  font-family: inherit;
}

/* ---------- ヒーロー ---------- */
.hero {
  position: relative;
  min-height: 68vh;
  background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: flex-start;
  padding: 56px 32px 88px;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(255,252,247,.88) 0%, rgba(255,252,247,.55) 46%, rgba(255,252,247,.08) 72%);
}
.hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 60px;
  background: var(--cream);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 60V26c120-22 240-26 360-12s240 34 360 30 240-30 360-34 240 8 360 22v28z' fill='%23000'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 60V26c120-22 240-26 360-12s240 34 360 30 240-30 360-34 240 8 360 22v28z' fill='%23000'/%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.hero-body { position: relative; z-index: 2; max-width: 620px; }
.hero-eyebrow {
  font-size: 12.5px; letter-spacing: .12em; font-weight: 500;
  background: var(--peach); color: #fff; display: inline-block;
  padding: 5px 16px; border-radius: var(--radius-pill); margin-bottom: 20px;
  box-shadow: 0 3px 10px rgba(246, 179, 160, .4);
}
.hero-title {
  font-size: clamp(30px, 5.6vw, 52px); font-weight: 700; line-height: 1.4;
  margin-bottom: 18px; color: var(--text); letter-spacing: .01em;
}
.hero-sub { font-size: 15.5px; color: var(--text-soft); line-height: 2; }

/* ---------- セクション共通 ---------- */
.section { padding: 80px 24px; position: relative; }
.section--white { background: var(--cream); }
.section--tint  { background: var(--mint-mist); }
.section--cream { background: var(--lemon-pale); }
.section--sky   { background: var(--sky-pale); }

.section--tint, .section--cream, .section--sky {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  margin-top: -14px;
}

.container { max-width: 920px; margin: 0 auto; }

.section-label {
  font-size: 11px; letter-spacing: .22em; font-weight: 500;
  color: var(--peach-deep); text-transform: uppercase; margin-bottom: 6px;
}
.section-title {
  font-size: clamp(23px, 4vw, 32px); font-weight: 700; color: var(--text);
  margin-bottom: 36px; padding-bottom: 0; border: none;
  display: flex; align-items: center; gap: 14px;
}
.section-title::after {
  content: ''; flex: 1; height: 6px; border-radius: var(--radius-pill);
  background: repeating-linear-gradient(90deg,
    var(--mint) 0 14px, transparent 14px 24px);
  opacity: .55;
}
.subheading {
  font-size: 18px; font-weight: 700; margin-bottom: 12px; color: var(--mint-deep);
  display: flex; align-items: center; gap: 8px;
}
.subheading::before {
  content: ''; width: 10px; height: 10px; border-radius: 50%;
  background: var(--peach); flex-shrink: 0;
}

/* ---------- お知らせ ---------- */
.news-list { list-style: none; }
.news-item {
  display: flex; gap: 20px; padding: 16px 20px; align-items: baseline; flex-wrap: wrap;
  background: #fff; border-radius: var(--radius); margin-bottom: 10px;
  box-shadow: var(--shadow-soft); transition: transform .25s ease, box-shadow .25s ease;
}
.news-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.news-date {
  font-size: 13px; color: #fff; font-weight: 500; min-width: 96px;
  background: var(--sky); border-radius: var(--radius-pill);
  padding: 2px 12px; text-align: center;
}
.news-title { font-size: 15.5px; text-decoration: none; color: var(--text); }
.news-title:hover { color: var(--mint-deep); }
.news-empty { color: var(--text-soft); font-size: 15px; }

/* ---------- 園について ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.about-photo {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.policy-list { list-style: none; margin: 18px 0; }
.policy-list li {
  padding: 11px 0 11px 30px; position: relative; font-size: 15px;
  border-bottom: 2px dotted var(--mint-pale);
}
.policy-list li:last-child { border-bottom: none; }
.policy-list li::before {
  content: ''; position: absolute; left: 4px; top: 18px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--lemon); box-shadow: 0 0 0 4px var(--lemon-pale);
}
.info-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  margin-top: 26px; font-size: 14px;
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.info-table th, .info-table td { padding: 12px 16px; text-align: left; }
.info-table tr + tr th, .info-table tr + tr td { border-top: 2px dotted var(--mint-pale); }
.info-table th { width: 36%; color: var(--mint-deep); font-weight: 700; }
.lead-text { font-size: 15px; color: var(--text-soft); margin-bottom: 18px; }

/* ---------- 毎日の流れ ---------- */
.flow-tabs { display: flex; gap: 10px; margin-bottom: 32px; flex-wrap: wrap; }
.tab-btn {
  padding: 10px 26px; border-radius: var(--radius-pill); border: 2px solid var(--mint);
  background: #fff; color: var(--mint-deep); font-weight: 700; font-size: 14.5px;
  cursor: pointer; transition: all .25s ease; font-family: inherit;
}
.tab-btn:hover { background: var(--mint-pale); }
.tab-btn.is-active {
  background: var(--mint); color: #fff; border-color: var(--mint);
  box-shadow: 0 4px 14px rgba(142, 207, 176, .45);
}
.flow-panel { display: none; }
.flow-panel.is-active { display: block; }

.flow-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-soft); font-size: 15.5px;
}
.flow-table thead th {
  background: var(--mint-pale); color: var(--mint-deep);
  font-weight: 700; font-size: 13.5px; letter-spacing: .06em;
  padding: 13px 22px; text-align: left;
}
.flow-table thead th:first-child { width: 30%; }
.flow-table tbody th,
.flow-table tbody td {
  padding: 15px 22px; text-align: left; vertical-align: top;
  border-top: 2px dotted var(--mint-pale);
}
.flow-table tbody th.flow-time {
  font-weight: 700; color: var(--peach-deep); white-space: nowrap;
}
.flow-table tbody td { color: var(--text); }
.flow-table tbody tr:nth-child(even) th,
.flow-table tbody tr:nth-child(even) td { background: var(--mint-mist); }

/* ---------- 年間行事 ---------- */
.events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); gap: 18px; }
.event-card {
  background: #fff; border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-soft);
  border-top: 6px solid var(--mint);
  transition: transform .25s ease, box-shadow .25s ease;
}
.event-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.event-card:nth-child(4n+2) { border-top-color: var(--peach); }
.event-card:nth-child(4n+3) { border-top-color: var(--sky); }
.event-card:nth-child(4n+4) { border-top-color: var(--lemon); }
.event-month {
  font-size: 15px; font-weight: 700; color: var(--text);
  margin-bottom: 12px; letter-spacing: .04em;
}
.event-list { list-style: none; font-size: 14px; }
.event-list li { padding: 4px 0 4px 16px; position: relative; color: var(--text-soft); }
.event-list li::before {
  content: ''; position: absolute; left: 0; top: 14px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--mint);
}

/* ---------- 入園案内 ---------- */
.admission-cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  gap: 22px; margin-bottom: 44px;
}
.adm-card {
  background: #fff; border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow-soft); text-align: center;
}
.adm-tag {
  display: inline-block; font-size: 12px; font-weight: 700;
  background: var(--mint-pale); color: var(--mint-deep); padding: 5px 16px;
  border-radius: var(--radius-pill); margin-bottom: 14px;
}
.adm-card:nth-child(2) .adm-tag { background: var(--peach-pale); color: var(--peach-deep); }
.adm-card:nth-child(3) .adm-tag { background: var(--sky-pale); color: #3D7E99; }
.adm-card h3 { font-size: 16.5px; color: var(--text); margin-bottom: 10px; font-weight: 700; }
.adm-card p { font-size: 14px; color: var(--text-soft); line-height: 1.9; }

.time-block { background: #fff; border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-soft); }
.time-row {
  display: flex; gap: 18px; align-items: center;
  padding: 14px 0; border-bottom: 2px dotted var(--mint-pale); font-size: 15px; flex-wrap: wrap;
}
.time-row:last-child { border-bottom: none; }
.time-label {
  min-width: 124px; font-weight: 700; color: var(--mint-deep);
  background: var(--mint-pale); border-radius: var(--radius-pill);
  padding: 3px 14px; text-align: center; font-size: 13.5px;
}

/* ---------- アクセス ---------- */
.access-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.map-frame {
  width: 100%; aspect-ratio: 4/3; border-radius: var(--radius-lg);
  overflow: hidden; position: relative; background: var(--mint-pale);
  box-shadow: var(--shadow);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-fallback { width: 100%; height: 100%; object-fit: cover; }
.map-link {
  position: absolute; bottom: 14px; right: 14px;
  background: #fff; border-radius: var(--radius-pill); padding: 9px 18px;
  font-size: 13px; font-weight: 700; color: var(--mint-deep);
  text-decoration: none; box-shadow: 0 3px 12px rgba(80,74,68,.18);
}
.contact-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 15px 0; border-bottom: 2px dotted var(--mint-pale); font-size: 15px;
}
.contact-item:last-of-type { border-bottom: none; }
.contact-icon {
  font-size: 17px; min-width: 38px; height: 38px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--mint-pale); border-radius: 50%;
}
.contact-sub { font-size: 13px; color: var(--text-soft); }
.contact-cta {
  margin-top: 26px; padding: 24px; background: #fff;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-soft);
}
.contact-cta p { font-size: 14px; margin-bottom: 14px; color: var(--text-soft); }
.tel-button {
  display: block; text-align: center; background: var(--mint); color: #fff;
  padding: 15px; border-radius: var(--radius-pill); font-weight: 700;
  text-decoration: none; font-size: 17px; letter-spacing: .03em;
  box-shadow: 0 4px 16px rgba(142, 207, 176, .5);
  transition: all .25s ease;
}
.tel-button:hover { background: var(--mint-deep); transform: translateY(-2px); }

/* ---------- 固定ページ・投稿 ---------- */
.page-hero {
  background: var(--mint-pale); color: var(--text); padding: 56px 24px 64px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.page-hero .container { max-width: 920px; }
.page-hero h1 { font-size: clamp(23px, 4vw, 32px); font-weight: 700; }
.page-hero .post-date { font-size: 13px; color: var(--text-soft); margin-top: 8px; }

.entry-content { padding: 48px 24px 80px; }
.entry-content .container > * + * { margin-top: 1.3em; }
.entry-content h2 {
  font-size: 22px; color: var(--mint-deep); margin-top: 2em;
  padding-left: 16px; border-left: 6px solid var(--mint); border-radius: 3px;
}
.entry-content h3 { font-size: 18px; color: var(--peach-deep); margin-top: 1.7em; }
.entry-content ul, .entry-content ol { padding-left: 1.6em; }
.entry-content img { border-radius: var(--radius); }
.entry-content table {
  width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px;
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft);
}
.entry-content th, .entry-content td { padding: 12px 16px; text-align: left; }
.entry-content tr + tr th, .entry-content tr + tr td { border-top: 2px dotted var(--mint-pale); }
.entry-content th { background: var(--mint-pale); color: var(--mint-deep); }

.back-link {
  display: inline-block; margin-top: 36px; font-size: 14px; font-weight: 700;
  text-decoration: none; background: #fff; padding: 10px 22px;
  border-radius: var(--radius-pill); box-shadow: var(--shadow-soft);
}
.back-link:hover { background: var(--mint-pale); }

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 44px; flex-wrap: wrap; }
.pagination ul { display: flex; gap: 8px; list-style: none; flex-wrap: wrap; }
.pagination .page-numbers {
  display: block; padding: 9px 16px; border-radius: var(--radius-pill);
  text-decoration: none; background: #fff; font-size: 14px;
  box-shadow: var(--shadow-soft); color: var(--text);
}
.pagination .current { background: var(--mint); color: #fff; }

/* ---------- フッター ---------- */
.site-footer {
  background: var(--mint-pale); color: var(--text-soft);
  text-align: center; padding: 44px 24px; font-size: 13.5px; line-height: 2;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.site-footer strong { color: var(--mint-deep); font-size: 16px; }
.footer-copy { font-size: 12px; opacity: .7; margin-top: 12px; display: block; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}
@media (max-width: 680px) {
  body { font-size: 15.5px; }
  .main-navigation { display: none; }
  .menu-toggle { display: block; }
  .main-navigation.is-open {
    display: block; position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--cream); border-bottom: 2px solid var(--mint-pale);
    padding: 12px 20px; border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-soft);
  }
  .main-navigation.is-open ul { flex-direction: column; gap: 2px; }
  .main-navigation.is-open a { padding: 13px 14px; }
  .hero { padding: 40px 20px 76px; min-height: 60vh; }
  .hero::before {
    background: linear-gradient(160deg, rgba(255,252,247,.93) 0%, rgba(255,252,247,.7) 55%, rgba(255,252,247,.15) 100%);
  }
  .about-grid, .access-grid { grid-template-columns: 1fr; gap: 32px; }
  .flow-table { font-size: 14.5px; }
  .flow-table thead th { padding: 11px 14px; }
  .flow-table tbody th, .flow-table tbody td { padding: 12px 14px; }
  .flow-table thead th:first-child { width: 34%; }
  .section { padding: 56px 18px; }
  .news-date { min-width: auto; }
  .section-title::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* フォーカス可視化 */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--peach); outline-offset: 3px; border-radius: 4px;
}

/* ==========================================================================
   フリーセクション（トップの追加コンテンツ）
   ========================================================================== */

.section--wide .container { max-width: 1180px; }

.block-content { font-size: 15.5px; }
.block-content > * + * { margin-top: 1.3em; }
.block-content p { color: var(--text-soft); }
.block-content h3 {
  font-size: 18px; font-weight: 700; color: var(--mint-deep);
  display: flex; align-items: center; gap: 8px; margin-top: 1.8em;
}
.block-content h3::before {
  content: ''; width: 10px; height: 10px; border-radius: 50%;
  background: var(--peach); flex-shrink: 0;
}
.block-content h4 { font-size: 16px; color: var(--peach-deep); margin-top: 1.5em; }
.block-content ul, .block-content ol { padding-left: 1.6em; color: var(--text-soft); }
.block-content ul li, .block-content ol li { padding: 3px 0; }
.block-content a { text-decoration: underline; text-underline-offset: 3px; }

.block-content > img,
.block-content .wp-block-image img {
  border-radius: var(--radius); box-shadow: var(--shadow-soft);
}
.block-content figcaption,
.block-content .wp-element-caption {
  font-size: 13px; color: var(--text-soft); text-align: center; margin-top: 10px;
}

/* --- 引用・区切り --- */
.block-content blockquote {
  background: #fff; border-radius: var(--radius); padding: 20px 26px;
  border-left: 6px solid var(--mint); box-shadow: var(--shadow-soft);
}
.block-content hr, .block-content .wp-block-separator {
  border: none; height: 6px; border-radius: var(--radius-pill); margin: 2.4em 0;
  background: repeating-linear-gradient(90deg, var(--mint) 0 14px, transparent 14px 24px);
  opacity: .5;
}

/* --- ボタン --- */
.block-content .wp-block-button__link {
  background: var(--mint); color: #fff; border-radius: var(--radius-pill);
  padding: 13px 32px; font-weight: 700; text-decoration: none; font-size: 15px;
  box-shadow: 0 4px 16px rgba(142, 207, 176, .45); display: inline-block;
  transition: all .25s ease;
}
.block-content .wp-block-button__link:hover {
  background: var(--mint-deep); transform: translateY(-2px);
}

/* --- テーブル --- */
.block-content table {
  width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px;
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft);
}
.block-content th, .block-content td { padding: 12px 16px; text-align: left; }
.block-content tr + tr th, .block-content tr + tr td { border-top: 2px dotted var(--mint-pale); }
.block-content th { background: var(--mint-pale); color: var(--mint-deep); font-weight: 700; }

/* ==========================================================================
   アルバム（ギャラリー）
   ========================================================================== */

.block-content .wp-block-gallery {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px; list-style: none; padding: 0; margin: 0;
}
.block-content .wp-block-gallery .wp-block-image,
.block-content .wp-block-gallery figure {
  margin: 0; width: auto !important; flex: none !important;
}
.block-content .wp-block-gallery img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow-soft);
  cursor: zoom-in; transition: transform .3s ease, box-shadow .3s ease;
}
.block-content .wp-block-gallery img:hover {
  transform: translateY(-4px) scale(1.02); box-shadow: var(--shadow);
}

/* 旧ギャラリー（[gallery]ショートコード）にも対応 */
.block-content .gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px; margin: 0 !important;
}
.block-content .gallery-item {
  width: auto !important; margin: 0 !important; float: none !important;
}
.block-content .gallery-item img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border: none !important; border-radius: var(--radius);
  box-shadow: var(--shadow-soft); cursor: zoom-in;
  transition: transform .3s ease, box-shadow .3s ease;
}
.block-content .gallery-item img:hover {
  transform: translateY(-4px) scale(1.02); box-shadow: var(--shadow);
}
.block-content .gallery-caption { font-size: 12.5px; color: var(--text-soft); }

/* ==========================================================================
   画像の拡大表示（ライトボックス）
   ========================================================================== */

.shijo-lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(80, 74, 68, .82);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 32px 20px;
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease;
}
.shijo-lightbox.is-open { opacity: 1; visibility: visible; }

.shijo-lightbox img {
  max-width: 100%; max-height: 82vh; width: auto;
  border-radius: var(--radius); box-shadow: 0 12px 50px rgba(0,0,0,.4);
  background: #fff;
}
.shijo-lightbox-caption {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  color: #fff; font-size: 14px; text-align: center; max-width: 80%;
  text-shadow: 0 1px 6px rgba(0,0,0,.5);
}
.shijo-lightbox-close,
.shijo-lightbox-prev,
.shijo-lightbox-next {
  position: absolute; background: rgba(255,255,255,.92); border: none;
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  color: var(--text); font-size: 22px; line-height: 1; font-family: inherit;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 14px rgba(0,0,0,.25); transition: all .2s ease;
}
.shijo-lightbox-close:hover,
.shijo-lightbox-prev:hover,
.shijo-lightbox-next:hover { background: #fff; transform: scale(1.08); }

.shijo-lightbox-close { top: 20px; right: 20px; }
.shijo-lightbox-prev  { left: 20px;  top: 50%; margin-top: -24px; }
.shijo-lightbox-next  { right: 20px; top: 50%; margin-top: -24px; }

body.shijo-lightbox-open { overflow: hidden; }

@media (max-width: 680px) {
  .block-content .wp-block-gallery,
  .block-content .gallery {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px;
  }
  .shijo-lightbox { padding: 16px 10px; }
  .shijo-lightbox-close { top: 12px; right: 12px; width: 42px; height: 42px; }
  .shijo-lightbox-prev  { left: 8px;  width: 42px; height: 42px; margin-top: -21px; }
  .shijo-lightbox-next  { right: 8px; width: 42px; height: 42px; margin-top: -21px; }
}
