/* ============================================
   アソカ学園 共通レスポンシブ統合CSS
   style-responsive.css
   ============================================ */

/* Google Fonts - 共通テーマ標準 */
@import url('https://fonts.googleapis.com/css2?family=Kosugi+Maru&display=swap');

/* ----------------------------------------
   リセット・基本
   ---------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 17px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  color: #444;
  font-family: 'Kosugi Maru', "ヒラギノ丸ゴ Pro W4", "ヒラギノ角ゴ Pro W3", "メイリオ", Meiryo, sans-serif;
  font-weight: 400;
  line-height: 1.8;
  background-color: var(--color-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

ul { list-style: none; }

a {
  color: #444;
  text-decoration: none;
  transition: color 0.2s, opacity 0.2s;
}
a:hover { color: var(--color-main-text); }

img {
  max-width: 100%;
  height: auto;
  border: none;
  vertical-align: top;
}

/* ----------------------------------------
   カラー変数
   ---------------------------------------- */
:root {
  /* Generic fallback values. Runtime Theme Color values are supplied by PHP. */
  --color-main:    #1F4B5A;
  --color-main-rgb: 31, 75, 90;
  --color-on-main: #FFFFFF;
  --color-main-dark: #1F4B5A;
  --color-main-surface: #1F4B5A;
  --color-on-main-surface: #FFFFFF;
  --color-main-surface-deep: #1C4451;
  --color-main-text: #1F4B5A;
  --color-main-soft: #E4E9EB;
  --color-main-soft-strong: #D2DBDE;
  --color-main-border: #1F4B5A;
  --color-main2:   #62818C;
  --color-accent:  #416673;
  --color-light:   var(--color-main-soft);
  --color-cream:   #FFFDF5;
  --color-bg:      #FFFCEC;
  --color-white:   #ffffff;
  --color-text:    #444444;
  --color-gray:    #888888;
  --color-border:  #F5DFA0;
  --color-highlight:   var(--color-main-border);
  --color-visual-bg:   #F5EDCC;
  --color-light-alt:   #FFF3D0;
  --color-light-warm:  #FFF8E0;
  --color-border-soft: #E8DFC0;
  --radius-sm:     6px;
  --radius-md:     12px;
  --radius-lg:     20px;
  --shadow-soft:   0 4px 16px rgba(var(--color-main-rgb),0.12);
  --shadow-card:   0 2px 10px rgba(0,0,0,0.08);
  --header-h:      72px;
}

/* ============================================
   HEADER
   ============================================ */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--color-main-surface);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 2px 12px rgba(0,0,0,0.16);
}

#header-top {
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 clamp(16px, 2.5vw, 42px);
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 30px);
  min-height: var(--header-h);
}

#header-logo { flex: 0 0 auto; }
#header-logo a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--color-on-main-surface);
}
#header-logo img {
  height: 44px;
  width: auto;
  filter: none;
}
#header-logo a:focus-visible,
#global-nav a:focus-visible,
.header-cta:focus-visible,
#menu-toggle:focus-visible,
#drawer-menu a:focus-visible {
  outline: 3px solid var(--color-highlight);
  outline-offset: 3px;
}

#global-nav {
  flex: 1 1 auto;
  min-width: 0;
}
#global-nav .global-nav-list {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(14px, 1.5vw, 22px);
  margin: 0;
  padding: 0;
}
#global-nav .global-nav-item {
  flex: 0 0 auto;
}
#global-nav .global-nav-item > a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 0;
  color: var(--color-on-main-surface);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.35;
  white-space: nowrap;
  position: relative;
  transition: color 0.2s ease;
}
#global-nav .global-nav-item:hover > a,
#global-nav .global-nav-item:focus-within > a,
#global-nav .global-nav-item > a[aria-current="page"] {
  color: var(--color-on-main-surface);
}
#global-nav .global-nav-item > a::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 4px;
  background: var(--color-on-main-surface);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}
#global-nav .global-nav-item:hover > a::after,
#global-nav .global-nav-item:focus-within > a::after,
#global-nav .global-nav-item > a[aria-current="page"]::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 16px;
  border-radius: 10px;
  background: #fff;
  color: var(--color-main-text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease;
}
.header-cta:hover,
.header-cta:focus-visible {
  background: rgba(255,255,255,0.92);
  color: var(--color-main-text);
  transform: translateY(-1px);
}

/* ハンバーガーボタン（PCでは非表示） */
#menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.42);
  border-radius: 8px;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}
#menu-toggle span {
  display: block;
  width: 21px;
  height: 2px;
  background-color: rgba(255,255,255,0.92);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ============================================
   DRAWER MENU（SP）
   ============================================ */
#drawer-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 86%;
  max-width: 330px;
  height: 100%;
  background: var(--color-cream);
  color: var(--color-text);
  z-index: 2000;
  overflow-y: auto;
  transition: left 0.3s cubic-bezier(0.4,0,0.2,1);
  padding-top: 10px;
  box-shadow: 8px 0 24px rgba(80, 55, 0, 0.12);
}
#drawer-menu.is-open { left: 0; }

#drawer-close {
  display: block;
  width: calc(100% - 24px);
  margin: 0 12px 10px;
  background: var(--color-main-surface);
  border: 0;
  border-radius: 8px;
  color: var(--color-on-main-surface);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  padding: 12px 16px;
  cursor: pointer;
  letter-spacing: 0.06em;
}
#drawer-menu .drawer-nav-list {
  margin: 0;
  padding: 0;
}
#drawer-menu .drawer-nav-item {
  border-bottom: 1px solid var(--color-border-soft);
}
#drawer-menu .drawer-nav-item > a {
  display: flex;
  align-items: center;
  width: 100%;
  color: var(--color-text);
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  padding: 14px 20px;
  letter-spacing: 0.03em;
  cursor: pointer;
}
#drawer-menu .drawer-nav-item > a:hover,
#drawer-menu .drawer-nav-item > a:focus-visible {
  background: var(--color-light);
  color: var(--color-main-text);
}
#drawer-menu .drawer-nav-item--cta { margin: 14px 12px 0; border: 0; }
#drawer-menu .drawer-nav-item--cta a {
  justify-content: center;
  border-radius: 8px;
  background: var(--color-main-surface);
  color: var(--color-on-main-surface);
}
#drawer-menu .drawer-nav-item--cta a:hover,
#drawer-menu .drawer-nav-item--cta a:focus-visible {
  background: var(--color-main-surface-deep);
  color: var(--color-on-main-surface);
}

#drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 1500;
  backdrop-filter: blur(2px);
}
#drawer-overlay.is-open { display: block; }

/* Desktop navigation is intentionally replaced by the drawer below this width. */
@media screen and (max-width: 1199px) {
  :root { --header-h: 64px; }

  #header-top {
    min-height: var(--header-h);
    padding-left: 14px;
    padding-right: 14px;
    gap: 12px;
  }
  #header-logo img { height: 38px; }
  #global-nav { display: none; }
  .header-actions { margin-left: auto; }
  .header-cta {
    min-height: 38px;
    padding: 7px 11px;
    font-size: 13px;
  }
  #menu-toggle { display: flex; }
}

/* ============================================
   MAIN VISUAL（スライダー）
   ============================================ */
#mainvisual {
  margin-top: var(--header-h);
  padding: 8px 0;
  overflow: hidden;
  background-color: #f5edcc;
  position: relative;
}
#mainvisual .mv-slider .slick-slide {
  display: block;
  width: 480px;
  height: 320px;
  max-width: none;
  margin: 0 4px;
  opacity: 0.92;
  transition: opacity 220ms ease;
  float: left;
}
#mainvisual .mv-slider .slick-slide.slick-current { opacity: 1; }
#mainvisual .mv-slider {
  width: 100%;
  max-width: none;
  height: 320px;
  overflow: hidden;
  position: relative;
}
#mainvisual .mv-slider .slick-list,
#mainvisual .mv-slider .slick-track,
#mainvisual .mv-slider .slick-slide > div,
#mainvisual .mv-slider .home-hero-slide {
  width: 100%;
  height: 100%;
}
#mainvisual .mv-slider .slick-list { overflow: hidden; padding: 0; }
#mainvisual img,
.mv-slider .slick-slide img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center center;
  border-radius: 10px;
}
#mainvisual img[data-position="left"],
.mv-slider .slick-slide img[data-position="left"] {
  object-position: left center;
}
#mainvisual img[data-position="right"],
.mv-slider .slick-slide img[data-position="right"] {
  object-position: right center;
}

/* ============================================
   PAGE LAYOUT（2カラム）
   ============================================ */
#page-wrap {
  background-color: var(--color-cream);
  min-height: 60vh;
}
#page-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 24px 20px 48px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

#sidebar {
  width: 220px;
  flex-shrink: 0;
  padding-top: 4px;
}
#main-content {
  flex: 1;
  min-width: 0;
}

/* ============================================
   CONTENT BLOCK（共通セクション）
   ============================================ */
.content-block {
  margin-bottom: 28px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1.5px solid var(--color-border);
}

.block-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 20px;
  font-weight: 700;
  color: var(--color-on-main-surface);
  background: linear-gradient(90deg, var(--color-main-surface) 0%, var(--color-main-surface-deep) 100%);
  padding: 10px 16px;
  min-height: 48px;
  letter-spacing: 0.08em;
  background-repeat: no-repeat;
  background-position: 0 0;
  text-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.block-title.hicon01,
.block-title.hicon02,
.block-title.hicon03,
.block-title.hicon04 {
  background-image: linear-gradient(90deg, var(--color-main-surface) 0%, var(--color-main-surface-deep) 100%);
}

/* 見出しアイコンは文字と独立した領域を持たせ、長い見出しの折返しでも重ならないようにする */
.block-title.hicon01::before,
.block-title.hicon02::before,
.block-title.hicon03::before,
.block-title.hicon04::before {
  content: "";
  display: block;
  flex: 0 0 36px;
  width: 36px;
  height: 28px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 36px auto;
}
.block-title.hicon01::before { background-image: var(--school-hicon01); }
.block-title.hicon02::before { background-image: var(--school-hicon02); }
.block-title.hicon03::before { background-image: var(--school-hicon03); }
.block-title.hicon04::before { background-image: var(--school-hicon04); }
.block-title .title-main {
  flex: 1 1 auto;
  min-width: 0;
}

.title-sub {
  font-size: 15px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  white-space: nowrap;
  margin-left: 8px;
}

.block-body {
  font-size: 16px;
  line-height: 1.85;
  padding: 18px 20px;
  overflow: hidden;
}
/* WYSIWYGの段落は、入力欄と同じ段落単位の余白で表示する */
.block-body:not(.news-list) > p:not(.info-map-link),
.block-body:not(.news-list) .default_txt_j p,
.block-body:not(.news-list) .day-text p {
  margin: 0 0 12px;
}

/* 固定ページ本文をSCF構造化コンテンツの前に表示する導入文 */
.page-intro {
  margin-bottom: 28px;
  line-height: 1.9;
}
.page-intro > :first-child { margin-top: 0; }
.page-intro > :last-child { margin-bottom: 0; }

.float-right {
  float: right;
  margin: 0 0 12px 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

/* ============================================
   NEWS LIST
   ============================================ */
.news-list { padding: 12px 20px 16px; }
.news-item {
  padding: 12px 0;
  border-bottom: 1px dashed var(--color-border);
}
.news-item:last-child { border-bottom: none; }
.news-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
}
.news-title a:hover { color: var(--color-main-text); }
.news-date {
  color: var(--color-main-text);
  font-size: 15px;
  font-weight: 700;
  background: var(--color-light);
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}
.news-body {
  font-size: 15px;
  line-height: 1.7;
  color: #666;
  margin-top: 4px;
}

/* ============================================
   HOME KIDSHOUSE INLINE NOTICE
   ============================================ */
.home-kidshouse-inline {
  margin: 0 0 8px;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--color-border-soft);
}
.home-kidshouse-inline-label {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--color-main-surface);
  color: var(--color-on-main-surface);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}
.home-kidshouse-inline-date {
  color: var(--color-main-text);
  font-weight: 700;
}

/* ============================================
   ALBUM GRID
   ============================================ */
.album-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-top: 4px;
}
.album-thumb {
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 2px solid var(--color-border);
}
.album-thumb img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.album-thumb:hover img { transform: scale(1.05); }
.album-title {
  font-size: 13px;
  line-height: 1.5;
  padding-top: 6px;
}
.album-title a { color: var(--color-text); }
.album-title a:hover { color: var(--color-main-text); }

.album-all-link {
  text-align: center;
  padding: 14px 0 4px;
}
.album-all-link a {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-main-text);
  background: var(--color-light);
  border: 2px solid var(--color-main-border);
  padding: 6px 24px;
  border-radius: 20px;
  letter-spacing: 0.08em;
  transition: background 0.2s, color 0.2s;
}
.album-all-link a:hover {
  background: var(--color-main-surface);
  color: var(--color-on-main-surface);
  border-color: var(--color-main-surface);
}

/* ============================================
   SP クイックメニュー
   ============================================ */
.sp-quick-menu { display: none; }
.sp-quick-menu a img {
  border-radius: 6px;
  box-shadow: var(--shadow-card);
  transition: opacity 0.2s, transform 0.2s;
}
.sp-quick-menu a:hover img {
  opacity: 0.85;
  transform: translateY(-2px);
}

/* ============================================
   SIDEBAR
   ============================================ */
#topics {
  margin-bottom: 14px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1.5px solid var(--color-border);
}
#topics ul li { border-bottom: 1px solid #f5ead0; }
#topics ul li:last-child { border-bottom: none; }
#topics ul li a { display: block; padding: 2px; }
#topics ul li a img {
  max-width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.2s;
}
#topics ul li a:hover img { opacity: 0.75; }
#topics ul { padding: 8px 8px 6px; }
#topics ul li {
  border-bottom: none;
  margin-bottom: 8px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
#topics ul li:last-child { margin-bottom: 0; }

/* 系列園ナビ（#asoka_annai）
   背景画像 navi_asoka_annai.png にテキストリンクを重ねる構造
   画像サイズ: 240×246px、上部50pxがタイトル帯、残り196pxに7リンク×28px */
#asoka_annai {
  margin-bottom: 14px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1.5px solid var(--color-border);
}
#asoka_annai_bg {
  background-image: var(--school-navi-asoka-annai);
  background-repeat: no-repeat;
  background-size: 220px auto;
  width: 220px;
  height: 226px; /* 元画像比率に合わせて調整 */
  padding-top: 46px; /* タイトル帯の高さ分 */
  position: relative;
}
#asoka_annai_bg ul {
  padding: 0;
}
#asoka_annai_bg ul li {
  height: 26px;
  line-height: 26px;
  border: none;
}
#asoka_annai_bg ul li a {
  display: block;
  height: 26px;
  padding: 0 0 0 44px; /* 左側のアイコン画像分だけインデント */
  color: transparent; /* テキストは非表示（画像に文字が印刷済み） */
  font-size: 0;
  overflow: hidden;
}
#asoka_annai_bg ul li a:hover {
  background-color: rgba(var(--color-main-rgb),0.15);
  border-radius: 3px;
}

/* 共通系列園ナビ（画像文字に依存しないHTML構造） */
.asoka-annai-head {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(90deg, var(--color-light), var(--color-light-alt));
  border-bottom: 2px solid var(--color-border);
  padding: 8px 10px;
}
.asoka-annai-head img { height: 28px; width: auto; flex-shrink: 0; }
.asoka-annai-head span {
  font-size: 14px;
  font-weight: 700;
  color: #555;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.sidebar-head-icon { font-size: 20px; line-height: 1; flex-shrink: 0; }
.asoka-annai-list { padding: 6px 8px; }
.asoka-annai-list li { border-bottom: 1px solid #f5ead0; }
.asoka-annai-list li:last-child { border-bottom: none; }
.asoka-annai-list li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 6px;
  font-size: 14px;
  font-weight: 700;
  color: #444;
  transition: opacity 0.15s;
  letter-spacing: 0.05em;
}
.asoka-annai-list li a::before {
  content: "▶";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 5px;
  font-size: 9px;
  color: var(--color-on-main-surface);
  background: var(--network-brand-color, var(--color-main-surface));
  flex-shrink: 0;
}
.asoka-annai-list li.asada,
.footer-sister li.asada { --network-brand-color: #F19601; }
.asoka-annai-list li.ekinan,
.footer-sister li.ekinan { --network-brand-color: #E03030; }
.asoka-annai-list li.jouhoku,
.footer-sister li.jouhoku { --network-brand-color: #3070C8; }
.asoka-annai-list li.oiwake,
.footer-sister li.oiwake { --network-brand-color: #E05A10; }
.asoka-annai-list li.momohana,
.footer-sister li.momohana { --network-brand-color: #50A830; }
.asoka-annai-list li.minami,
.footer-sister li.minami { --network-brand-color: #1A7A40; }
.asoka-annai-list li.gakuen { --network-brand-color: #888888; }
.asoka-annai-list li a:hover { opacity: 0.75; }
#asoka_annai_bg { display: none; }

#navi_bunner { margin-top: 10px; }
#navi_bunner img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

/* ============================================
   FOOTER
   ============================================ */
#site-footer {
  background: linear-gradient(160deg, var(--color-main-surface) 0%, var(--color-main-surface-deep) 100%);
  color: var(--color-on-main-surface);
}

/* SP用フッターメニュー（PCでは非表示） */
#footer-sp-menu {
  display: none;
  border-bottom: 2px solid rgba(255,255,255,0.3);
}
.footer-menu-title {
  font-size: 16px;
  font-weight: 900;
  padding: 20px 20px 10px;
  letter-spacing: 0.1em;
}
#footer-sp-menu ul { padding: 0 10px 10px; }
#footer-sp-menu ul li { border-bottom: 1px solid rgba(255,255,255,0.2); }
#footer-sp-menu ul li a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-on-main-surface);
  font-size: 16px;
  font-weight: 700;
  padding: 12px 14px;
}
#footer-sp-menu ul li a::before { content: "▶"; font-size: 8px; opacity: 0.7; }

/* フッター本体 */
#footer-body {
  max-width: 1040px;
  margin: 0 auto;
  padding: 32px 28px 28px;
  display: grid;
  grid-template-columns: 260px 1fr 200px;
  gap: 24px 32px;
  align-items: start;
}

/* 左：ロゴ＋園名＋住所をひとまとめ */
.footer-logo {
  grid-column: 1;
  grid-row: 1 / 3;
}
.footer-logo-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  text-decoration: none;
}
.footer-logo-link img {
  width: 110px;
  height: auto;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.2));
  transition: transform 0.2s;
}
.footer-logo-link:hover img { transform: scale(1.05); }
.footer-logo-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}
.footer-logo-sub {
  font-size: 15px;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.1em;
}
.footer-logo-name {
  font-size: 16px;
  font-weight: 900;
  color: var(--color-on-main-surface);
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-shadow: 0 1px 4px rgba(0,0,0,0.12);
}
.footer-logo-kinder {
  font-size: 26px;
  font-weight: 900;
  color: var(--color-on-main-surface);
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0,0,0,0.15);
  margin-top: 4px;
}
.footer-logo-card {
  background: rgba(255,255,255,0.92);
  border-radius: 12px;
  padding: 14px 16px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
  margin-bottom: 14px;
}
.footer-logo-card img {
  max-width: 150px;
  height: auto;
  display: block;
  margin: 0 auto;
}
.footer-kinderName {
  font-size: 16px;
  font-weight: 900;
  color: var(--color-main-text);
  margin-top: 8px;
  letter-spacing: 0.08em;
}
.footer-info ul {
  font-size: 15px;
  line-height: 2;
  text-align: center;
}
.footer-info ul li {
  color: rgba(255,255,255,0.95);
  padding: 1px 0;
}

/* 中：ページナビ2列 */
.footer-nav {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
}
.footer-nav ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 8px;
}
.footer-nav ul li a {
  display: flex;
  align-items: center;
  gap: 5px;
  color: rgba(255,255,255,0.92);
  font-size: 15px;
  font-weight: 700;
  padding: 6px 8px;
  border-radius: 6px;
  transition: background 0.15s;
  white-space: nowrap;
}
.footer-nav ul li a::before { content: "▸"; font-size: 10px; opacity: 0.8; }
.footer-nav ul li a:hover {
  background: rgba(255,255,255,0.2);
  color: var(--color-on-main-surface);
}

/* 右：系列園ボタン */
.footer-sister {
  grid-column: 3;
  grid-row: 1 / 3;
}
.footer-sister-title {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.7);
  margin-bottom: 10px;
  text-transform: uppercase;
}
.footer-sister ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-sister ul li a {
  display: block;
  color: rgba(255,255,255,0.92);
  font-size: 15px;
  font-weight: 700;
  background: var(--network-brand-color, rgba(255,255,255,0.2));
  padding: 7px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.35);
  text-align: center;
  transition: background 0.2s;
  white-space: nowrap;
}
.footer-sister ul li a:hover {
  background: rgba(255,255,255,0.38);
  color: #fff;
}

/* コピーライト */
#footer-copy {
  text-align: center;
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  padding: 12px 20px 18px;
  border-top: 1px solid rgba(255,255,255,0.3);
  letter-spacing: 0.05em;
}

/* ============================================
   PAGER
   ============================================ */
.blog_pager1 {
  text-align: center;
  padding: 24px 0 32px;
  clear: both;
}
.wp-pagenavi { text-align: center; }
.wp-pagenavi a, .wp-pagenavi span {
  display: inline-block;
  color: #888;
  background-color: #fff;
  border: 1.5px solid #e8dfc0;
  padding: 8px 14px;
  margin: 0 2px;
  border-radius: 20px;
  transition: 0.2s;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.wp-pagenavi a:hover,
.wp-pagenavi span.current {
  color: var(--color-on-main-surface);
  background-color: var(--color-main-surface);
  border-color: var(--color-main-surface);
}

/* ============================================
   POST NAVIGATION
   ============================================ */
#news_bnavi { padding: 24px 12px; overflow: hidden; }
.post-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

/* ボタン外枠 */
.post-navigation .prev,
.post-navigation .next,
.post-navigation .back {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(90deg, var(--color-main-surface), var(--color-main-surface-deep));
  border-radius: 24px;
  box-shadow: 0 3px 8px rgba(var(--color-main-rgb),0.3);
  color: var(--color-on-main-surface);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 22px;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  position: relative; /* aを全面に広げるため */
}
.post-navigation .prev:hover,
.post-navigation .next:hover,
.post-navigation .back:hover { opacity: 0.8; transform: translateY(-1px); }

/* aは全面クリッカブルに（テキストは div の文字ノード） */
.post-navigation .prev a,
.post-navigation .next a,
.post-navigation .back a {
  position: absolute;
  inset: 0;
  text-indent: -9999px;
  overflow: hidden;
}

/* ============================================
   CONTENT PAGES
   ============================================ */
.body_txt {
  text-align: left;
  padding: 10px 0;
  font-size: 16px;
  line-height: 1.85;
}
.body_txt img {
  max-width: 100%;
  height: auto;
  margin-bottom: 8px;
  border-radius: var(--radius-sm);
}
.body_txt p { margin-bottom: 12px; }
.body_txt a { text-decoration: underline; color: var(--color-main-text); }

.default_album_j h3 {
  font-size: 17px;
  color: var(--color-on-main-surface);
  background: linear-gradient(90deg, var(--color-main-surface), var(--color-main-surface-deep));
  padding: 8px 14px;
  margin: 14px 0 10px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 6px rgba(var(--color-main-rgb),0.25);
}
.date_gr { color: var(--color-gray); font-size: 15px; }

/* アルバム一覧 */
.tk_box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 16px 0;
}
.tk_wk {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1.5px solid var(--color-border);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, box-shadow 0.2s;
}
.tk_wk:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.tk_wk_photo { overflow: hidden; }
.tk_wk_photo img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.tk_wk:hover .tk_wk_photo img { transform: scale(1.04); }
.tk_wk_title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  padding: 8px 10px 10px;
  color: var(--color-text);
}
.tk_wk_date { display: none; }

/* アルバム詳細 */
.album-work { overflow: hidden; margin-bottom: 20px; }

.album-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
  margin: 20px 0;
}

.album-gallery-item {
  margin: 0;
}

.album-gallery-item img {
  display: block;
  width: 100%;
  height: auto;
}

.album-gallery-item figcaption {
  margin-top: 6px;
  font-size: 0.9em;
}

@media (max-width: 767px) {
  .album-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}
.ph { text-align: center; margin-bottom: 12px; }
.ph img {
  max-width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}
.album_txt_r {
  border: 2.5px solid var(--color-main-border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.85;
  margin: 12px auto;
  max-width: 500px;
  position: relative;
  background: var(--color-light);
}
.album_txt_r::before {
  content: "";
  position: absolute;
  top: -16px; left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-bottom-color: var(--color-main-border);
}
.album_txt_r::after {
  content: "";
  position: absolute;
  top: -11px; left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-bottom-color: var(--color-light);
}

/* ニュース */
.newsa_wk_r {
  padding: 12px 0;
  border-bottom: 1px dashed var(--color-border);
  margin-bottom: 4px;
}
.newsa_wk_r:last-child { border-bottom: none; }
.newsa_title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
}
.newsa_date {
  color: var(--color-main-text);
  font-size: 15px;
  font-weight: 700;
  background: var(--color-light);
  padding: 2px 8px;
  border-radius: 20px;
  flex-shrink: 0;
}
.newsa_body { font-size: 15px; line-height: 1.7; color: #666; margin-top: 4px; }

/* テーブル */
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th {
  text-align: center;
  padding: 10px 12px;
  font-weight: 700;
  background: var(--color-light-warm);
  border: 1px solid var(--color-border-soft);
  color: #4b3a00;
}
td {
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--color-border-soft);
  line-height: 1.7;
}
th.t_top {
  background: linear-gradient(90deg, var(--color-main-surface-deep), var(--color-main-surface));
  color: var(--color-on-main-surface);
  border-top: 3px solid var(--color-main-border);
}
td.t_top { border-top: 3px solid var(--color-main-border); }

/* ============================================
   FIXED PAGES
   ============================================ */
#subvisual {
  margin-top: 88px;
  overflow: hidden;
  background-color: var(--color-visual-bg);
  position: relative;
}
#subvisual::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 5px;
  background: linear-gradient(90deg, var(--color-main-surface), var(--color-main-surface-deep), var(--color-main-surface), var(--color-main-surface-deep), var(--color-main-surface));
}
#subvisual img {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.default_txt_j {
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.03em;
}
.default_txt_j h3 {
  font-size: 18px;
  color: var(--color-on-main-surface);
  font-weight: 900;
  padding: 8px 14px;
  margin: 18px 0 10px;
  background: linear-gradient(90deg, var(--color-main-surface), var(--color-main-surface-deep));
  border-radius: var(--radius-sm);
  letter-spacing: 0.06em;
  box-shadow: 0 2px 6px rgba(var(--color-main-rgb),0.2);
}
.default_txt_j dd {
  padding: 4px 8px 16px 14px;
  line-height: 1.85;
}
.default_txt_j a { text-decoration: underline; color: var(--color-main-text); }

.kidshouse-info {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  column-gap: 1em;
  row-gap: 12px;
  align-items: start;
}
.kidshouse-info-label {
  font-weight: 700;
  white-space: nowrap;
}
.kidshouse-info-value {
  min-width: 0;
  overflow-wrap: anywhere;
}
.kidshouse-info-value > :first-child { margin-top: 0; }
.kidshouse-info-value > :last-child { margin-bottom: 0; }

.kidshouse-access-content {
  min-width: 0;
  overflow-wrap: anywhere;
}
.kidshouse-access-content img {
  display: block;
  max-width: 100%;
  height: auto;
}
.kidshouse-access-content p:first-child { margin-top: 0; }
.kidshouse-access-content p:last-child { margin-bottom: 0; }

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 10px 0;
  border-radius: var(--radius-sm);
}
.table-wrap table { min-width: 300px; }

.photo_list3_side,
.photo_list3_side_c {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 14px 0;
}
.photo_list3_side li,
.photo_list3_side_c li {
  text-align: center;
  font-size: 12px;
  color: #666;
  line-height: 1.6;
  background: var(--color-white);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1.5px solid var(--color-border);
  padding-bottom: 6px;
}
.photo_list3_side li img,
.photo_list3_side_c li img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
  margin-bottom: 6px;
}

.photo_list2_side {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 14px 0;
}
.photo_list2_side li {
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-border);
  box-shadow: var(--shadow-card);
}
.photo_list2_side li img { width: 100%; height: auto; display: block; }

.map-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  margin: 14px 0 8px;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-border);
  box-shadow: var(--shadow-card);
}
.map-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* 固定幅の旧Google Maps iframeも本文幅に収める */
.info-map-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  border: none;
}

/* ============================================
   共通固定ページコンポーネント
   朝田の実行CSSを基準に、追分のSCF HTMLへ適用
   ============================================ */

/* info */
.info-intro { margin-bottom: 20px; }
.info-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.info-photo {
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-border);
  box-shadow: var(--shadow-card);
  aspect-ratio: 3 / 2;
}
.info-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.info-photo:hover img { transform: scale(1.03); }
.info-overview-table { margin-bottom: 0; }
.info-overview-table table { width: 100%; }
.info-overview-table th {
  width: 30%;
  text-align: left;
  white-space: nowrap;
}
.info-overview-table td { text-align: left; }
.info-access-intro { margin-bottom: 16px; }
.info-access-parking,
.school-access-parking-info {
  margin: 0 0 16px;
}
.info-access-parking img,
.school-access-parking-info img {
  display: block;
  max-width: 100%;
  height: auto;
}
.info-map-wrap {
  position: relative;
  width: 100%;
  padding-top: 50%;
  margin-bottom: 8px;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-border);
  box-shadow: var(--shadow-card);
}
.info-map-link {
  text-align: right;
  font-size: 14px;
  margin-top: 6px;
}
.info-map-link a { color: var(--color-main-text); text-decoration: underline; }

/* guidance */
.guidance-block { margin-bottom: 28px; }
.guidance-block:last-child { margin-bottom: 0; }
.guidance-block-title {
  display: block;
  width: 100%;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-on-main-surface);
  background: linear-gradient(90deg, var(--color-main-surface), var(--color-main-surface-deep));
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  letter-spacing: 0.06em;
  box-shadow: 0 2px 6px rgba(var(--color-main-rgb),0.2);
}
.guidance-block-content { padding: 0 4px; }
.guidance-block-content p { margin-bottom: 12px; }
.guidance-block-content a { color: var(--color-main-text); text-decoration: underline; }
.guidance-table th {
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}
.guidance-table thead th {
  background: linear-gradient(90deg, var(--color-main-surface-deep), var(--color-main-surface));
  color: var(--color-on-main-surface);
  border-color: var(--color-main-border);
}
.guidance-table tbody th {
  background: var(--color-light-warm);
  color: #4b3a00;
  text-align: left;
}
.guidance-table td { text-align: left; vertical-align: top; }

/* 説明会の予定：年度と予定行を意味単位で表示 */
.guidance-schedule-year {
  display: inline-block;
  margin: -2px 0 12px;
  padding: 4px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-light-warm);
  color: #4b3a00;
  font-size: 0.95em;
  font-weight: 700;
}
.guidance-schedule-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.guidance-schedule-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: #fff;
}
.guidance-schedule-table th,
.guidance-schedule-table td {
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  color: #444;
  line-height: 1.7;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}
.guidance-schedule-table thead th {
  background: var(--color-light-warm);
  color: #4b3a00;
  font-weight: 700;
  text-align: center;
}
.guidance-schedule-table tbody th {
  background: #fffaf0;
  color: #4b3a00;
  font-weight: 700;
  white-space: nowrap;
}
.guidance-schedule-table.no-notes th:nth-child(1) { width: 14%; }
.guidance-schedule-table.no-notes th:nth-child(2) { width: 28%; }
.guidance-schedule-table.no-notes th:nth-child(3) { width: 58%; }
.guidance-schedule-table.has-notes th:nth-child(1) { width: 13%; }
.guidance-schedule-table.has-notes th:nth-child(2) { width: 25%; }
.guidance-schedule-table.has-notes th:nth-child(3) { width: 42%; }
.guidance-schedule-table.has-notes th:nth-child(4) { width: 20%; }
.guidance-schedule-cards { display: none; }
.guidance-schedule-card {
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
}
.guidance-schedule-card h4 {
  margin: 0 0 12px;
  color: var(--color-main-text);
  font-size: 17px;
}
.guidance-schedule-card dl { margin: 0; }
.guidance-schedule-card dl > div + div { margin-top: 10px; }
.guidance-schedule-card dt {
  margin-bottom: 2px;
  color: #6b5a25;
  font-size: 13px;
  font-weight: 700;
}
.guidance-schedule-card dd { margin: 0; color: #444; line-height: 1.7; }

/* event */
.event-intro { margin-bottom: 20px; }
.event-schedule {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.event-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-left: 4px;
}
.event-item {
  overflow: hidden;
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-border);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, box-shadow 0.2s;
}
.event-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.event-item-photo { aspect-ratio: 3 / 2; overflow: hidden; }
.event-item-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.event-item:hover .event-item-photo img { transform: scale(1.04); }
.event-item-no-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-light), #FFF0CC);
}
.event-item-no-photo span { font-size: 32px; opacity: 0.6; }
.event-item-name {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  padding: 8px 6px;
  color: var(--color-text);
}

/* day */
.day-schedule { display: flex; flex-direction: column; gap: 28px; }
.day-block { padding-left: 0; }
.day-time,
.event-month-title {
  display: inline-block;
  background: linear-gradient(90deg, var(--color-main-surface), var(--color-main-surface-deep));
  color: var(--color-on-main-surface);
  font-size: 17px;
  font-weight: 700;
  padding: 7px 18px;
  border-radius: 24px;
  margin-bottom: 12px;
  letter-spacing: 0.06em;
  box-shadow: 0 2px 6px rgba(var(--color-main-rgb),0.25);
}
.day-text {
  font-size: 15px;
  line-height: 1.85;
  color: #444;
  margin-bottom: 14px;
  padding-left: 18px;
}
.day-photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding-left: 18px;
}
.day-photo {
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-border);
  box-shadow: var(--shadow-card);
  aspect-ratio: 3 / 2;
}
.day-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.day-photo:hover img { transform: scale(1.04); }

/* education */
.edu-lead { margin-bottom: 20px; }
.edu-lead p { line-height: 1.9; }
.edu-lead strong { color: var(--color-main-text); font-weight: 700; }
.edu-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 8px;
}
.edu-feature-card {
  overflow: hidden;
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-border);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, box-shadow 0.2s;
}
.edu-feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.edu-feature-img { overflow: hidden; height: 160px; }
.edu-feature-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.edu-feature-card:hover .edu-feature-img img { transform: scale(1.04); }
.edu-feature-body { padding: 14px 16px; }
.edu-feature-body h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-main-text);
  margin-bottom: 8px;
  background: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  letter-spacing: 0.05em;
}
.edu-feature-body p { font-size: 14px; line-height: 1.8; color: #555; }
.edu-4h { display: flex; gap: 24px; align-items: flex-start; }
.edu-4h-img { flex-shrink: 0; width: 220px; }
.edu-4h-img img { width: 100%; height: auto; border-radius: var(--radius-sm); }
.edu-4h-text { flex: 1; }
.edu-4h-text p { margin-bottom: 12px; font-size: 15px; line-height: 1.85; }
.edu-creative { display: flex; gap: 24px; align-items: flex-start; }
.edu-creative-text { flex: 1; }
.edu-creative-text p { margin-bottom: 12px; font-size: 15px; line-height: 1.85; }
.edu-creative-imgs { flex-shrink: 0; width: 200px; display: flex; flex-direction: column; gap: 10px; }
.edu-creative-imgs img { width: 100%; height: 120px; object-fit: cover; border-radius: var(--radius-sm); box-shadow: var(--shadow-card); }

.red { color: #E04000; font-weight: 700; }

/* Contact Form 7: scoped to the generic contact page. */
.school-contact-page .school-contact-intro { margin-bottom: 0; }
.school-contact-form {
  display: grid;
  gap: 18px;
  max-width: 720px;
  margin-top: 24px;
}
.school-contact-form p { margin: 0; }
.school-contact-form label,
.school-contact-form .school-contact-label {
  display: block;
  margin-bottom: 7px;
  color: var(--color-text);
  font-weight: 700;
}
.school-contact-form .required {
  display: inline-block;
  margin-left: 6px;
  color: var(--color-main-text);
  font-size: 0.82em;
  font-weight: 700;
}
.school-contact-form input[type="text"],
.school-contact-form input[type="email"],
.school-contact-form input[type="tel"],
.school-contact-form textarea {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  color: var(--color-text);
  padding: 10px 12px;
  font: inherit;
}
.school-contact-form textarea { min-height: 180px; resize: vertical; }
.school-contact-form input:focus,
.school-contact-form textarea:focus,
.school-contact-form a:focus,
.school-contact-form button:focus,
.school-contact-form input[type="submit"]:focus {
  outline: 3px solid var(--color-main-border);
  outline-offset: 2px;
}
.school-contact-form .wpcf7-list-item { margin: 0 18px 8px 0; }
.school-contact-form .wpcf7-list-item label { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 400; }
.school-contact-form .wpcf7-acceptance { display: block; }
.school-contact-form .wpcf7-acceptance label { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 400; }
.school-contact-form .wpcf7-turnstile { max-width: 100%; overflow: hidden; }
.school-contact-form input[type="submit"] {
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--color-main);
  color: var(--color-on-main);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 12px 28px;
}
.school-contact-form input[type="submit"]:hover { background: var(--color-main-surface-deep); }
.school-contact-form .wpcf7-not-valid-tip { color: var(--color-main-text); font-size: 0.9em; margin-top: 5px; }
.school-contact-form .wpcf7-response-output { margin: 18px 0 0; border-color: var(--color-main-border); }
.school-contact-unavailable {
  border: 1px solid var(--color-main-border);
  border-radius: var(--radius-sm);
  background: var(--color-main-soft);
  color: var(--color-text);
  padding: 18px 20px;
}
.school-contact-unavailable p { margin: 0 0 8px; }
.school-contact-unavailable p:last-child { margin-bottom: 0; }
.school-contact-unavailable a { color: var(--color-main-text); font-weight: 700; }

/* ============================================
   RESPONSIVE: タブレット（768px以下）
   ============================================ */
@media screen and (max-width: 768px) {
  :root { --header-h: 64px; }

  /* ヘッダー：ナビ行を隠してheader-topだけ表示 */
  #global-nav { display: none; }
  #menu-toggle { display: flex; }
  #header-logo img { height: 38px; }

  /* mainvisual/subvisualのoffsetをSP用に */
  #mainvisual,
  #subvisual { margin-top: 64px; }

  #mainvisual .mv-slider {
    width: 100%;
    max-width: none;
    height: clamp(240px, 46.875vw, 360px);
  }

  #page-inner {
    flex-direction: column;
    padding: 16px 14px 36px;
    gap: 0;
  }
  #sidebar { display: none; }
  #main-content {
    width: 100%;
    flex: none;
  }

  .sp-quick-menu.sp-only {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 12px 0 16px;
  }

  .block-title { font-size: 18px; }

  .event-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .edu-features { grid-template-columns: 1fr; }
  .guidance-schedule-table-wrap { display: none; }
  .guidance-schedule-cards { display: grid; gap: 12px; }
  .edu-4h,
  .edu-creative { flex-direction: column; }
  .edu-4h-img,
  .edu-creative-imgs { width: 100%; }
  .edu-creative-imgs { flex-direction: row; }
  .edu-creative-imgs img { height: 100px; flex: 1; }

  .album-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .album-thumb img { height: 120px; }

  .tk_box { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .tk_wk_photo img { height: 120px; }

  #subvisual img { height: 160px; } /* SPでは少し低めに */

  .photo_list3_side,
  .photo_list3_side_c { grid-template-columns: repeat(2, 1fr); }

  #footer-sp-menu { display: block; }
  #footer-body {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px 16px;
  }
  /* SP menu above the footer already contains the site navigation. */
  #footer-body .footer-nav { display: none; }
  .footer-logo,
  .footer-nav,
  .footer-sister { grid-column: 1; grid-row: auto; }
  .footer-nav ul { grid-template-columns: 1fr 1fr; }
  .footer-sister ul { flex-direction: row; flex-wrap: wrap; }
  #footer-copy { text-align: center; }

  .post-navigation { flex-wrap: wrap; justify-content: center; }
}

/* 説明会予定は768px以上でTable、767px以下でCardに切り替える */
@media screen and (min-width: 768px) {
  .guidance-schedule-table-wrap { display: block; }
  .guidance-schedule-cards { display: none; }
}

/* Hero：高さとslide幅を固定し、viewport幅に応じて見える枚数を増やす */
@media screen and (min-width: 768px) and (max-width: 1199px) {
  #mainvisual .mv-slider { height: 260px; }
  #mainvisual .mv-slider .slick-slide {
    width: 390px;
    height: 260px;
  }
}

@media screen and (max-width: 767px) {
  .day-photos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .kidshouse-info {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 2px;
  }
  .kidshouse-info-value { margin-bottom: 10px; }

  #mainvisual .mv-slider { height: 220px; }
  #mainvisual .mv-slider .slick-slide {
    width: 330px;
    height: 220px;
  }
}

/* ============================================
   RESPONSIVE: スマートフォン（480px以下）
   ============================================ */
@media screen and (max-width: 480px) {
  .album-grid { grid-template-columns: 1fr; }
  .album-thumb img { height: 200px; }

  .tk_box { grid-template-columns: 1fr; }
  .tk_wk_photo img { height: 200px; }

  .photo_list3_side,
  .photo_list3_side_c,
  .photo_list2_side { grid-template-columns: 1fr; }

  .block-title { font-size: 16px; }

  .event-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  table { font-size: 13px; }
  th, td { padding: 8px; }

  .default_txt_j h3 { font-size: 18px; }

  .school-contact-form { gap: 15px; margin-top: 18px; }
  .school-contact-form .wpcf7-list-item { display: block; margin: 0 0 9px; }
}

/* Major branded surfaces use the selected Theme Color exactly. White text is intentional. */
#site-header,
#site-footer,
.block-title,
.block-title.hicon01,
.block-title.hicon02,
.block-title.hicon03,
.block-title.hicon04,
.default_album_j h3,
.default_txt_j h3,
.guidance-block-title,
.guidance-table thead th,
th.t_top,
.day-time,
.event-month-title {
  background: var(--color-main);
  color: #fff;
}
