/* 習学ゼミ 公開サイト 共通スタイル */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: #F4F6F9; color: #13233A; }
img { max-width: 100%; height: auto; }
a { color: #1D4E89; }
a:hover { color: #0F2F57; }
:focus-visible { outline: 3px solid #F5B323; outline-offset: 2px; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #FFFFFF; color: #0B1F3A; padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { left: 8px; }
#app { min-height: 50vh; }
section[id], [id] { scroll-margin-top: 16px; }

/* スマートフォン */
@media (max-width: 760px) {
  h1 { font-size: 34px !important; line-height: 1.3 !important; }
  h2 { font-size: 26px !important; line-height: 1.4 !important; }
  [style*="font-size: 72px"], [style*="font-size: 60px"], [style*="font-size: 58px"] { font-size: 44px !important; }
  [style*="font-size: 56px"], [style*="font-size: 48px"], [style*="font-size: 46px"], [style*="font-size: 44px"], [style*="font-size: 40px"] { font-size: 30px !important; }
  [style*="font-size: 38px"], [style*="font-size: 36px"], [style*="font-size: 34px"], [style*="font-size: 32px"] { font-size: 26px !important; }
  [style*="font-size: 30px"], [style*="font-size: 28px"] { font-size: 22px !important; }
  [style*="minmax("] { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns: 180px"], [style*="grid-template-columns: 140px"], [style*="grid-template-columns: 120px"], [style*="grid-template-columns: 96px"] { grid-template-columns: 92px minmax(0, 1fr) !important; column-gap: 12px !important; }
  [style*="padding: 40px"], [style*="padding: 44px"], [style*="padding: 48px"], [style*="padding: 36px 40px"], [style*="padding: 34px 38px"], [style*="padding: 32px 36px"], [style*="padding: 30px 34px"], [style*="padding: 28px 36px"], [style*="padding: 24px 36px"] { padding-left: 20px !important; padding-right: 20px !important; }
  [style*="padding: 40px"], [style*="padding: 44px"], [style*="padding: 48px 56px"] { padding-top: 24px !important; padding-bottom: 24px !important; }
  [style*="flex: 1 1 5"], [style*="flex: 1 1 4"], [style*="flex: 1 1 6"], [style*="flex: 999 1"] { flex-basis: 100% !important; }
  [style*="width: 140px; height: 140px"] { width: 110px !important; height: 110px !important; }
  table { font-size: 14px; }
  nav[aria-label="メインメニュー"] > div { flex-wrap: nowrap !important; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  nav[aria-label="メインメニュー"] > div::-webkit-scrollbar { display: none; }
  nav[aria-label="メインメニュー"] a { white-space: nowrap; }
  nav[aria-label="メインメニュー"] { position: relative; }
  nav[aria-label="メインメニュー"]::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 28px; background: linear-gradient(90deg, rgba(11,31,58,0), #0B1F3A); pointer-events: none; }
}

/* サイト内検索ページ */
.search-wrap { max-width: 960px; margin: 0 auto; padding: 48px 24px 96px; }
.search-wrap .pagefind-ui { --pagefind-ui-primary: #1D4E89; --pagefind-ui-text: #13233A; --pagefind-ui-border: #C9D3DF; --pagefind-ui-border-radius: 14px; --pagefind-ui-font: 'BIZ UDPGothic', sans-serif; }

/* スマートフォン用ヘッダー（≡メニュー） */
.m-bar, .m-drawer { display: none; }
.m-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 760px) {
  .u-bar, .h-row, nav[aria-label="メインメニュー"] { display: none !important; }
  .m-bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px 10px 16px; background: #0B1F3A; color: #FFFFFF; font-family: 'BIZ UDPGothic', sans-serif; position: relative; }
  .m-logo { flex: 1 1 auto; min-width: 0; display: flex; }
  .m-logo img { height: 36px; width: auto; display: block; }
  .m-icon { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #0B1F3A; background: #F5B323; }
  .m-menu { font: inherit; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 56px; height: 48px; border: 1px solid #2B4A72; border-radius: 12px; background: transparent; color: #FFFFFF; cursor: pointer; padding: 0 8px; }
  .m-burger { display: flex; flex-direction: column; gap: 4px; width: 22px; }
  .m-burger span { display: block; height: 2px; border-radius: 2px; background: #FFFFFF; transition: transform .2s, opacity .2s; }
  .m-menu[aria-expanded="true"] .m-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .m-menu[aria-expanded="true"] .m-burger span:nth-child(2) { opacity: 0; }
  .m-menu[aria-expanded="true"] .m-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .m-menu-label { font-size: 11px; font-weight: 700; line-height: 1; }
  .m-drawer:not([hidden]) { display: flex; flex-direction: column; gap: 16px; padding: 16px 16px 24px; background: #0B1F3A; color: #FFFFFF; border-top: 1px solid #1E3A61; font-family: 'BIZ UDPGothic', sans-serif; }
  .m-search { display: flex; background: #FFFFFF; border-radius: 999px; overflow: hidden; }
  .m-search input { flex: 1 1 auto; min-width: 0; border: none; font: inherit; font-size: 16px; padding: 0 18px; min-height: 46px; color: #13233A; outline: none; }
  .m-search button { border: none; background: transparent; color: #1D4E89; width: 52px; cursor: pointer; }
  .m-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .m-btn { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 15px; text-align: center; padding: 0 10px; }
  .m-btn-y { background: #F5B323; color: #0B1F3A; }
  .m-btn-w { background: #FFFFFF; color: #0B1F3A; }
  .m-links { display: flex; flex-direction: column; border-top: 1px solid #1E3A61; }
  .m-links a { display: flex; justify-content: space-between; align-items: center; min-height: 52px; color: #FFFFFF; text-decoration: none; font-weight: 700; font-size: 16px; border-bottom: 1px solid #1E3A61; padding: 0 4px; }
  .m-links a span { color: #F5B323; font-size: 20px; }
  .m-sub { display: flex; flex-wrap: wrap; gap: 6px 18px; }
  .m-sub a { color: #C9D8EA; text-decoration: none; font-size: 14px; font-weight: 700; padding: 6px 0; }
  .m-telbox { display: flex; flex-direction: column; align-items: center; gap: 2px; background: #1D4E89; border-radius: 16px; padding: 14px; text-decoration: none; color: #FFFFFF; }
  .m-telnum { display: flex; align-items: center; gap: 8px; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 26px; }
  .m-telnote { font-size: 12px; color: #C9D8EA; }
}

/* スマホでは表の見出しと内容を縦に並べる */
@media (max-width: 760px) {
  table.t-stack, table.t-stack tbody, table.t-stack tr, table.t-stack th, table.t-stack td { display: block; width: auto !important; }
  table.t-stack th { border-bottom: 0 !important; padding-bottom: 4px !important; }
  table.t-stack td { padding-top: 6px !important; }
}

/* コース・料金ページ冒頭の割引一覧：スマホは2列 */
@media (max-width: 760px) {
  .disc-grid { grid-template-columns: 1fr 1fr !important; gap: 8px !important; }
  .disc-grid a { padding: 12px 12px !important; }
  .disc-grid a span:last-child { font-size: 16px !important; }
}

/* ================================================================
   スマートフォン専用レイアウト（760px以下）
   ビルド時に付く m-* クラス（mobile.py）を目印に、PC用の並びを
   スマホ向けの読みやすい並びに組み替えます。PC表示には影響しません。
   ================================================================ */
.sp-home, .m-dock, .m-toc { display: none; }
@media (max-width: 760px) {
  /* Class講座一覧の表：スマホでは授業時間の列を省き、横スクロールなしで読めるようにする */
  .cl-wrap { padding: 16px 10px 20px !important; }
  .cl-grid { min-width: 0 !important; grid-template-columns: minmax(0, 1fr) 22px 84px 62px 56px !important; font-size: 12.5px !important; }
  .cl-grid span[role="cell"] { font-size: 12px !important; }
  .cl-grid span[role="cell"] > span { font-size: 10px !important; }
  .cl-grid > [role="row"] > :nth-child(4) { display: none !important; }
  .cl-grid > [role="row"] > :nth-child(2) { white-space: normal !important; word-break: break-all; line-height: 1.3; }
  .cl-grid span[role="cell"][style*="color: #33465E; border-left"] { white-space: normal !important; line-height: 1.4; font-size: 11px !important; }
  .cl-grid span[role] { padding: 8px 5px !important; }
  .cl-grid span[role="columnheader"] { white-space: normal !important; font-size: 11px !important; line-height: 1.35; }
  .cl-grid span[role="rowheader"] { line-height: 1.45; }
  /* トップページ：PC用ブロックを隠し、スマホ専用ブロックを表示 */
  .pc-home { display: none !important; }
  .sp-home { display: block !important; }
  .sp-yt{margin-top:14px}
  .sp-yt-h{display:block;font-weight:700;font-size:14px;margin:0 2px 8px}
  .sp-yt-g{display:grid;grid-template-columns:1fr 1fr;gap:10px}
  .sp-yt-g a{display:flex;flex-direction:column;gap:5px;text-decoration:none;color:#13233A}
  .sp-yt-img{display:block;aspect-ratio:16/9;border-radius:10px;overflow:hidden;background:#1E3A61}
  .sp-yt-img img{display:block;width:100%;height:100%;object-fit:cover}
  .sp-yt-t{font-size:12.5px;font-weight:700;line-height:1.4}
  
  .sp-home{background:#F4F6F9;color:#13233A;font-family:'BIZ UDPGothic',sans-serif;line-height:1.7;font-size:16px}
  .sp-home a{text-decoration:none}
  .sp-hero{background:#0B1F3A;color:#FFFFFF;padding:24px 16px 28px;display:flex;flex-direction:column;gap:12px}
  .sp-catch{margin:0;font-family:'Zen Kaku Gothic New',sans-serif;font-weight:900;font-size:26px;line-height:1.4}
  .sp-catch em{font-style:normal;color:#F5B323}
  .sp-lead{margin:0;font-size:15px;color:#DCE6F2}
  .sp-btns{display:flex;flex-direction:column;gap:10px;padding-top:4px}
  .sp-b{display:flex;align-items:center;justify-content:center;min-height:52px;border-radius:999px;font-weight:700;font-size:16px;text-align:center;padding:0 16px}
  .sp-b-y{background:#F5B323;color:#0B1F3A}
  .sp-b-n{background:#1D4E89;color:#FFFFFF}
  .sp-b-w{background:#FFFFFF;color:#0B1F3A}
  .sp-b-o{border:2px solid #FFFFFF;color:#FFFFFF}
  .sp-disc{display:flex;flex-direction:column;gap:8px;margin:0;padding:16px;background:#FFF4D6;border-top:4px solid #F5B323;color:#0B1F3A}
  .sp-disc-tag{align-self:flex-start;font-size:12px;font-weight:700;background:#0B1F3A;color:#F5B323;padding:2px 10px;border-radius:999px}
  .sp-disc-h{font-family:'Zen Kaku Gothic New',sans-serif;font-weight:900;font-size:20px;line-height:1.4}
  .sp-disc-h b{color:#C27C00;font-size:24px}
  .sp-disc-g{display:grid;grid-template-columns:1fr 1fr;gap:6px}
  .sp-disc-g span{display:flex;flex-direction:column;background:#FFFFFF;border-radius:10px;padding:8px 10px;font-weight:700;font-size:13px;line-height:1.4}
  .sp-disc-g small{font-size:11px;color:#4A5B70;font-weight:700}
  .sp-disc-g em{font-style:normal;display:block}
  .sp-disc-g b{font-family:'Barlow Condensed',sans-serif;font-size:20px;color:#0B1F3A}
  .sp-disc-more{align-self:flex-end;font-weight:700;font-size:14px;color:#1D4E89}
  .sp-quick{background:#FFFFFF;padding:18px 16px 20px;display:flex;flex-direction:column;gap:10px;border-bottom:1px solid #E3E9F1}
  .sp-quick-h{font-size:14px;font-weight:700;color:#4A5B70}
  .sp-quick-g{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .sp-quick-g a{display:flex;align-items:center;min-height:50px;padding:6px 12px;border-radius:12px;background:#F4F6F9;color:#0B1F3A;font-weight:700;font-size:15px;line-height:1.35;border-left:4px solid #F5B323}
  .sp-sec{padding:32px 16px 8px;display:flex;flex-direction:column;gap:12px}
  .sp-head{display:flex;flex-direction:column;gap:2px}
  .sp-en{font-family:'Barlow Condensed',sans-serif;font-weight:700;letter-spacing:.18em;color:#1D4E89;font-size:13px}
  .sp-h2{margin:0;font-family:'Zen Kaku Gothic New',sans-serif;font-weight:900;font-size:22px;line-height:1.4}
  .sp-list{background:#FFFFFF;border-radius:14px;overflow:hidden}
  .sp-row{display:flex;align-items:center;gap:12px;min-height:56px;padding:12px 16px;color:#13233A;border-top:1px solid #E3E9F1}
  .sp-list > :first-child{border-top:0}
  .sp-row-t{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:2px}
  .sp-ttl{font-weight:700;font-size:16px;line-height:1.45}
  .sp-sub{font-size:13px;color:#4A5B70;line-height:1.5}
  .sp-chev{color:#1D4E89;font-weight:700;font-size:20px;flex:0 0 auto}
  .sp-more{align-self:flex-end;font-weight:700;color:#1D4E89;font-size:15px;padding:6px 0;min-height:44px;display:flex;align-items:center}
  .sp-stats{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .sp-stat{background:#FFFFFF;border-radius:12px;padding:12px 14px;display:flex;flex-direction:column;gap:2px;border-top:4px solid #F5B323}
  .sp-stat-l{font-size:13px;font-weight:700;color:#33465E;line-height:1.45}
  .sp-stat-n{font-family:'Barlow Condensed',sans-serif;font-weight:800;font-size:32px;line-height:1.1;color:#0B1F3A}
  .sp-stat-n small{font-family:'BIZ UDPGothic',sans-serif;font-size:13px;font-weight:700;margin-left:2px}
  .sp-acc{background:#FFFFFF;border-radius:14px;overflow:hidden}
  .sp-acc + .sp-acc{margin-top:-4px}
  .sp-acc summary{list-style:none;display:flex;align-items:center;gap:10px;min-height:56px;padding:0 16px;font-weight:700;font-size:17px;cursor:pointer}
  .sp-acc summary::-webkit-details-marker{display:none}
  .sp-acc summary::after{content:"＋";margin-left:auto;color:#1D4E89;font-size:18px}
  .sp-acc[open] summary::after{content:"－"}
  .sp-acc[open] summary{border-bottom:1px solid #E3E9F1}
  .sp-acc .sp-list{border-radius:0}
  .sp-cnt{font-size:13px;color:#4A5B70;font-weight:700}
  .sp-style{display:flex;gap:12px;align-items:center;padding:12px 16px;border-top:1px solid #E3E9F1}
  .sp-style-n{flex:0 0 64px;font-family:'Barlow Condensed',sans-serif;font-weight:800;font-size:22px;color:#1D4E89}
  .sp-ratio{display:inline-block;margin-left:8px;font-size:12px;color:#4A5B70;font-weight:700}
  .sp-note{margin:0;font-size:13px;color:#4A5B70}
  .sp-ol{margin:0;padding:0;list-style:none;background:#FFFFFF;border-radius:14px;overflow:hidden}
  .sp-ol li + li{border-top:1px solid #E3E9F1}
  .sp-ol a{display:flex;align-items:center;gap:12px;min-height:54px;padding:10px 16px;color:#13233A}
  .sp-ol a .sp-ttl{flex:1 1 auto}
  .sp-num{flex:0 0 auto;font-family:'Barlow Condensed',sans-serif;font-weight:800;font-size:20px;color:#F5B323;background:#0B1F3A;border-radius:8px;min-width:36px;text-align:center;line-height:1.6}
  .sp-room{display:flex;align-items:center;gap:8px;padding:0 0 0 16px;border-top:1px solid #E3E9F1}
  .sp-room-n{flex:1 1 auto;display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:54px;font-weight:700;color:#13233A;padding-right:8px}
  .sp-room-t{flex:0 0 auto;align-self:stretch;display:flex;align-items:center;padding:0 14px;font-family:'Barlow Condensed',sans-serif;font-weight:700;font-size:17px;color:#1D4E89;border-left:1px solid #E3E9F1}
  .sp-cta{margin-top:32px;background:#0B1F3A;color:#FFFFFF;padding:28px 16px 32px;display:flex;flex-direction:column;gap:12px}
  .sp-cta-h{margin:0;font-family:'Zen Kaku Gothic New',sans-serif;font-weight:900;font-size:20px;line-height:1.45}
  .sp-tel{display:flex;flex-direction:column;align-items:center;color:#FFFFFF;font-family:'Barlow Condensed',sans-serif;font-weight:700;font-size:28px;line-height:1.2;padding-top:6px}
  .sp-tel span{font-family:'BIZ UDPGothic',sans-serif;font-size:12px;color:#C9D8EA;font-weight:400}

  /* 下層ページ共通 */
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .m-hero > div { padding: 12px 16px 26px !important; gap: 12px !important; }
  .m-hero h1 { font-size: 27px !important; line-height: 1.35 !important; }
  .m-hero p { font-size: 15px !important; line-height: 1.7 !important; }
  .m-hero nav[aria-label="パンくずリスト"] { font-size: 12px !important; }
  .m-sec { padding: 32px 16px 4px !important; gap: 14px !important; }
  .m-sec[style*="padding: 72px 24px 96px"], .m-sec[style*="88px"] { padding-bottom: 32px !important; }
  .m-wrap { padding-left: 16px !important; padding-right: 16px !important; }
  .m-sec h2, .m-wrap h2 { font-size: 22px !important; line-height: 1.4 !important; }
  .m-grid { gap: 10px !important; }
  .m-card { border-radius: 14px !important; padding: 16px !important; gap: 8px !important; box-shadow: none !important; }
  .m-card .m-card:not(.m-card-w) { padding: 14px !important; }
  /* 白いカードの中の白いカードは、区切り線の一覧にする */
  .m-card-w .m-card-w { background: transparent !important; border-radius: 0 !important; padding: 14px 0 !important; border: 0 !important; border-top: 1px solid #E3E9F1 !important; }
  .m-card-w .m-grid:has(> .m-card-w) { gap: 0 !important; }
  .m-card-w .m-grid > .m-card-w:first-child { border-top: 0 !important; padding-top: 0 !important; }
  /* 白いカードが並ぶだけのグリッドは、1枚の区切り線つき一覧にする */
  .m-sec > .m-grid:has(> .m-card-w):not(:has(> :not(.m-card-w))) { gap: 0 !important; background: #FFFFFF; border-radius: 14px; overflow: hidden; }
  .m-sec > .m-grid:has(> .m-card-w):not(:has(> :not(.m-card-w))) > .m-card-w { border-radius: 0 !important; border: 0 !important; border-top: 1px solid #E3E9F1 !important; padding: 16px !important; }
  .m-sec > .m-grid:has(> .m-card-w):not(:has(> :not(.m-card-w))) > .m-card-w:first-child { border-top: 0 !important; }
  .m-grid > div[style*="padding: 22px"] { padding: 16px !important; }
  /* 見出し・本文の大きさ */
  [style*="font-size: 26px"], [style*="font-size: 25px"], [style*="font-size: 24px"] { font-size: 20px !important; line-height: 1.45 !important; }
  [style*="font-size: 23px"], [style*="font-size: 22px"], [style*="font-size: 21px"] { font-size: 18px !important; line-height: 1.5 !important; }
  .m-card [style*="font-size: 15px"], .m-card [style*="font-size: 14px"] { line-height: 1.75 !important; }
  /* ボタンは押しやすい全幅に */
  .m-pill { justify-content: center; text-align: center; flex: 1 1 100%; min-height: 48px !important; }
  /* 写真は高さを抑え、文字を先に読めるように */
  .m-card img.m-photo { max-height: 150px; width: 100%; object-fit: cover; }
  .m-ph { min-height: 0 !important; height: auto !important; aspect-ratio: auto !important; padding: 14px !important; font-size: 13px !important; }
  /* コースカードの写真と授業形式は、細い帯にまとめる */
  .m-crow { height: 76px; margin-bottom: 4px !important; }
  .m-crow > div:first-child { flex: 0 0 112px !important; }
  .m-crow img.m-photo { min-height: 0 !important; height: 76px !important; max-height: 76px; }
  .m-crow > .m-card { flex: 1 1 auto !important; flex-direction: row !important; justify-content: flex-start !important; gap: 10px !important; padding: 6px 12px !important; }
  .m-crow > .m-card img.m-photo { max-width: 52px !important; height: auto !important; max-height: 60px; object-fit: contain; width: auto; }
  .m-grid[style*="padding: 28px 36px"] { padding: 14px 12px 16px !important; }
  /* フッターのリンクは2列 */
  footer .m-grid { grid-template-columns: 1fr 1fr !important; gap: 18px 12px !important; }
  .m-card figure { max-width: 220px; }
  /* 手順の丸 */
  [style*="width: 68px; height: 68px"] { width: 48px !important; height: 48px !important; }
  [style*="width: 68px; height: 68px"] [style*="font-size: 28px"] { font-size: 20px !important; }
  /* 項目名・内容の2列は縦並びに */
  [style*="grid-template-columns: 180px"], [style*="grid-template-columns: 140px"] { grid-template-columns: 1fr !important; padding: 4px 16px !important; }
  [style*="grid-template-columns: 180px"] > :nth-child(odd), [style*="grid-template-columns: 140px"] > :nth-child(odd) { border-bottom: 0 !important; padding-bottom: 0 !important; color: #1D4E89; font-size: 13px; }
  [style*="grid-template-columns: 180px"] > :nth-child(even), [style*="grid-template-columns: 140px"] > :nth-child(even) { padding-top: 2px !important; }
  /* 横に長い表は、表の中だけ横スクロール */
  table:not(.t-stack) { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }

  /* このページの内容（目次） */
  .m-toc { display: block; margin: 16px 16px 0; background: #FFFFFF; border-radius: 14px; overflow: hidden; font-family: 'BIZ UDPGothic', sans-serif; }
  .m-toc summary { list-style: none; display: flex; align-items: center; min-height: 52px; padding: 0 16px; font-weight: 700; color: #0B1F3A; cursor: pointer; }
  .m-toc summary::-webkit-details-marker { display: none; }
  .m-toc summary::after { content: "＋"; margin-left: auto; color: #1D4E89; }
  .m-toc[open] summary::after { content: "－"; }
  .m-toc ol { margin: 0; padding: 0; list-style: none; border-top: 1px solid #E3E9F1; }
  .m-toc li + li { border-top: 1px solid #E3E9F1; }
  .m-toc a { display: flex; align-items: center; min-height: 48px; padding: 8px 16px; color: #13233A; text-decoration: none; font-weight: 700; font-size: 15px; line-height: 1.45; }
  .m-toc a::after { content: "›"; margin-left: auto; padding-left: 8px; color: #1D4E89; }

  /* 画面下の固定バー */
  .m-dock { display: grid; grid-template-columns: 0.8fr 1.5fr 1.1fr; gap: 6px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: rgba(11, 31, 58, 0.96); font-family: 'BIZ UDPGothic', sans-serif; }
  .m-dock a { display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 48px; border-radius: 12px; text-decoration: none; font-weight: 700; font-size: 14px; line-height: 1.3; text-align: center; padding: 0 6px; }
  .m-dock-tel { background: #FFFFFF; color: #0B1F3A; }
  .m-dock-y { background: #F5B323; color: #0B1F3A; }
  .m-dock-n { background: #1D4E89; color: #FFFFFF; }
  .pv-back { bottom: calc(76px + env(safe-area-inset-bottom)) !important; }
}

/* ===== 習学ゼミ高等学院 独立サイト：ヘッダー ===== */
.k-drawer[hidden] { display: none !important; }
.k-menu { font: inherit; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 56px; height: 48px; border: 1px solid #C9D3DF; border-radius: 12px; background: #FFFFFF; color: #0B1F3A; cursor: pointer; padding: 0 8px; }
.k-burger { display: flex; flex-direction: column; gap: 4px; width: 22px; }
.k-burger span { display: block; height: 2px; border-radius: 2px; background: #0B1F3A; transition: transform .2s, opacity .2s; }
.k-menu[aria-expanded="true"] .k-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.k-menu[aria-expanded="true"] .k-burger span:nth-child(2) { opacity: 0; }
.k-menu[aria-expanded="true"] .k-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 1080px) { .k-tel { display: none !important; } }
@media (max-width: 760px) {
  .k-head > div { flex-wrap: nowrap !important; padding: 10px 12px 10px 16px !important; gap: 10px !important; }
  .k-logo img { height: 34px !important; }
  .k-cta, .k-nav { display: none !important; }
  .k-menu { display: flex !important; flex: 0 0 auto; }
  .k-drawer:not([hidden]) { display: flex; flex-direction: column; gap: 14px; padding: 16px 16px 24px; background: #0B1F3A; }
  .k-dcta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .k-dcta a { justify-content: center; padding: 10px 8px !important; font-size: 14px; text-align: center; }
  .k-dlinks { display: flex; flex-direction: column; border-top: 1px solid #1E3A61; }
  .k-dlinks a { display: flex; justify-content: space-between; align-items: center; min-height: 52px; color: #FFFFFF; text-decoration: none; font-weight: 700; border-bottom: 1px solid #1E3A61; padding: 0 4px; }
  .k-dlinks a span { color: #F5B323; font-size: 20px; }
  .k-dtel { display: flex; flex-direction: column; align-items: center; gap: 2px; background: #1D4E89; border-radius: 16px; padding: 14px; text-decoration: none; color: #FFFFFF; }
  .k-dtel span:first-child { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 28px; }
  .k-dtel span:last-child { font-size: 12px; color: #C9D8EA; }
  .k-fix { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 6px; padding: 8px; background: rgba(11,31,58,.96); }
  .k-fix a { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 12px; font-weight: 700; font-size: 14px; text-decoration: none; text-align: center; line-height: 1.3; }
  body { padding-bottom: 66px; background: #0B1F3A; }
}
@media (min-width: 761px) { .k-fix { display: none; } }
