/* =========================================================
   教育創造工学科 共通スタイル
   （通常の更新では、このファイルを触る必要はありません）
   ========================================================= */
:root {
  --sky: #4bc9fb;
  --cyan: #06acfc;
  --blue: #0369d8;
  --navy: #073a72;
  --yellow: #fad036;
  --pink: #fa47a6;
  --pink-text: #c81a76;
  --green: #3da66b;
  --ink: #15161a;
  --text: #2b2f3a;
  --muted: #5d6474;
  --line: #dfe6ee;
  --bg: #ffffff;
  --bg-soft: #f2f9fe;
  --radius: 18px;
  --shadow: 0 6px 24px rgba(7, 58, 114, .08);
  --wrap: 1120px;
  --font: "Noto Sans JP", "Noto Sans CJK JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: .02em;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: .2em; }
a:hover { color: var(--navy); }
h1, h2, h3 { color: var(--ink); line-height: 1.4; letter-spacing: .03em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo-mark { width: 34px; height: 34px; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.25; }
.logo-text small { font-size: 11px; color: var(--muted); letter-spacing: .08em; }
.logo-text strong { font-size: 17px; font-weight: 900; letter-spacing: .06em; }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 0; border-radius: 12px;
  background: var(--bg-soft); color: var(--navy); cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.site-nav {
  position: absolute; left: 0; right: 0; top: 64px;
  background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: none;
}
.site-nav.open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 8px 20px 16px; }
.site-nav a {
  display: block; padding: 12px 4px; border-bottom: 1px solid var(--line);
  color: var(--ink); text-decoration: none; font-weight: 700;
}
.site-nav a[aria-current="page"] { color: var(--blue); }
.site-nav a.ext::after { content: "↗"; margin-left: .3em; color: var(--muted); font-weight: 400; }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .site-nav { position: static; display: block; background: none; border: 0; box-shadow: none; }
  .site-nav ul { display: flex; gap: 4px; padding: 0; }
  .site-nav a { border: 0; padding: 8px 12px; border-radius: 999px; font-size: 15px; }
  .site-nav a:hover { background: var(--bg-soft); color: var(--blue); }
  .site-nav a.cta { background: var(--blue); color: #fff; padding: 8px 18px; margin-left: 6px; }
  .site-nav a.cta:hover { background: var(--navy); color: #fff; }
  .site-nav a.cta.ext::after { color: #cfe3ff; }
}

/* ---------- ヒーロー ---------- */
.hero { position: relative; overflow: hidden; background: #fdfdfd; }
.hero-copy { padding: 36px 20px 8px; }
.hero-kicker { margin: 0 0 14px; font-weight: 700; font-size: 15px; line-height: 1.6; color: var(--ink); letter-spacing: .1em; }
.hero-title { margin: 0; font-weight: 900; font-size: clamp(28px, 9.1vw, 56px); line-height: 1.25; letter-spacing: 0; }
.hero-title .line { white-space: nowrap; }
.hero-title .q { margin-left: -.42em; }
.hero-lead { margin: 18px 0 0; font-weight: 700; font-size: 15px; color: var(--ink); letter-spacing: .08em; }
.hero-art { margin-top: 8px; }
.hero-art img { width: 100%; height: auto; }

@media (min-width: 760px) {
  .hero { container-type: inline-size; aspect-ratio: 1672 / 941; max-height: calc(100vh - 64px); min-height: 520px; }
  .hero-art { position: absolute; inset: 0; aspect-ratio: auto; }
  .hero-art { margin: 0; }
  .hero-art img { height: 100%; object-fit: cover; object-position: 100% 100%; }
  .hero-copy { position: absolute; left: 7.2%; top: 8.5%; padding: 0; z-index: 1; }
  .hero-kicker { font-size: max(15px, 1.7cqw); margin-bottom: 2.4cqw; line-height: 1.55; }
  .hero-title { font-size: max(40px, 6.1cqw); line-height: 1.22; }
  .hero-lead { font-size: max(15px, 1.75cqw); margin-top: 2.2cqw; }
}

/* ---------- セクション共通 ---------- */
.section { padding: 72px 0; }
.section.soft { background: var(--bg-soft); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 10px; font-size: 13px; font-weight: 700; color: var(--blue); letter-spacing: .16em;
}
.eyebrow::before { content: ""; width: 22px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--sky), var(--yellow), var(--pink)); }
.section-title { margin: 0 0 20px; font-size: clamp(26px, 6vw, 38px); font-weight: 900; }
.section-lead { margin: 0 0 32px; max-width: 46em; }
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: 14px 26px; border-radius: 999px;
  background: var(--blue); color: #fff; font-weight: 700; text-decoration: none;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--navy); color: #fff; transform: translateY(-1px); }
.btn.ghost { background: #fff; color: var(--blue); box-shadow: inset 0 0 0 2px var(--blue); }
.btn.ghost:hover { background: var(--blue); color: #fff; }
.btn::after { content: "→"; }
.btn.ext::after { content: "↗"; }

/* 要確認（試作用の目印。本番では消す） */
.todo {
  display: inline-block; margin-left: .4em; padding: 0 .6em; border-radius: 6px;
  background: #fff3b0; color: #7a5a00; font-size: 12px; font-weight: 700; letter-spacing: 0; vertical-align: middle;
}

/* ---------- 免許 ---------- */
.menkyo-head { display: grid; gap: 28px; align-items: center; }
.menkyo-big { display: flex; align-items: baseline; gap: 10px; margin: 0; color: var(--navy); font-weight: 900; }
.menkyo-big .num {
  font-size: clamp(96px, 26vw, 168px); line-height: .9;
  background: linear-gradient(135deg, var(--cyan), var(--blue) 55%, var(--pink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.menkyo-big .unit { font-size: clamp(20px, 5vw, 30px); }
.matrix { width: 100%; border-collapse: separate; border-spacing: 8px; margin: 0 -8px; }
.matrix th { font-size: 14px; color: var(--muted); font-weight: 700; padding: 0 4px; }
.matrix thead th { text-align: center; }
.matrix tbody th { text-align: left; width: 3.6em; color: var(--ink); font-size: 16px; }
.matrix td {
  position: relative; text-align: center; padding: 22px 8px 18px;
  background: #fff; border-radius: 16px; box-shadow: var(--shadow);
  font-weight: 700; color: var(--ink); line-height: 1.5;
}
.matrix td small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.matrix td::before {
  content: "✓"; position: absolute; top: -8px; right: -6px;
  width: 26px; height: 26px; line-height: 26px; border-radius: 50%;
  font-size: 14px; color: #fff; background: var(--pink);
}
.matrix tr.math td { border-top: 5px solid var(--cyan); }
.matrix tr.sci td { border-top: 5px solid var(--yellow); }

.merit { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 16px; }
.merit li { background: #fff; border-radius: var(--radius); padding: 22px 22px 20px; box-shadow: var(--shadow); }
.merit h3 { margin: 0 0 6px; font-size: 18px; display: flex; gap: 10px; align-items: center; }
.merit h3 b {
  flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-size: 14px; color: #fff; background: var(--blue);
}
.merit p { margin: 0; font-size: 15px; }

.compare {
  margin-top: 40px; padding: 28px 22px; border-radius: var(--radius);
  background: #fff; border: 3px solid var(--yellow); position: relative;
}
.compare h3 { margin: 0 0 8px; font-size: 20px; }
.compare ul { margin: 14px 0 0; padding: 0; list-style: none; }
.compare li { padding: 10px 0 10px 34px; border-top: 1px dashed var(--line); position: relative; font-weight: 700; color: var(--ink); }
.compare li::before {
  content: ""; position: absolute; left: 4px; top: 15px; width: 18px; height: 18px;
  border: 2px solid var(--blue); border-radius: 4px;
}
.compare .note { margin: 14px 0 0; font-size: 14px; color: var(--muted); }

@media (min-width: 860px) {
  .menkyo-head { grid-template-columns: 1fr 1.1fr; gap: 56px; }
  .merit { grid-template-columns: repeat(3, 1fr); }
  .compare { padding: 32px 40px; }
}

/* ---------- 実績 ---------- */
.stats { display: grid; gap: 16px; margin-bottom: 40px; }
.stat {
  border-radius: var(--radius); padding: 26px 24px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}
.stat:nth-child(2) { background: linear-gradient(135deg, #ff7ac0, var(--pink-text)); }
.stat::after {
  content: ""; position: absolute; right: -40px; bottom: -60px; width: 180px; height: 180px;
  border-radius: 50%; border: 18px solid rgba(255, 255, 255, .18);
}
.stat p { margin: 0; font-weight: 700; }
.stat .val { font-size: 56px; font-weight: 900; line-height: 1.1; }
.stat .val small { font-size: 22px; margin-left: 4px; }
.stat .src { font-size: 12px; font-weight: 400; opacity: .9; margin-top: 6px; }
@media (min-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } }

/* お知らせ一覧 */
.news { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.news li { border-bottom: 1px solid var(--line); }
.news a { display: grid; gap: 2px; padding: 16px 4px; text-decoration: none; color: var(--ink); }
.news a:hover .t { color: var(--blue); text-decoration: underline; }
.news time { font-size: 13px; color: var(--muted); font-weight: 700; letter-spacing: .06em; }
.news .t { font-weight: 700; }
@media (min-width: 760px) {
  .news a { grid-template-columns: 9em 1fr; align-items: baseline; padding: 18px 8px; }
}

/* ---------- 特色 ---------- */
.features { display: grid; gap: 20px; }
.feature { background: #fff; border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); }
.feature svg { width: 56px; height: 56px; margin-bottom: 12px; }
.feature h3 { margin: 0 0 8px; font-size: 20px; }
.feature p { margin: 0; font-size: 15px; }
@media (min-width: 860px) { .features { grid-template-columns: repeat(3, 1fr); } }

/* ---------- 日記カード（横並びリスト） ---------- */
.cards { display: grid; gap: 14px; grid-template-columns: 1fr; margin-bottom: 32px; }
@media (min-width: 860px) { .cards { grid-template-columns: 1fr 1fr; gap: 18px 24px; } }
.card {
  display: flex; gap: 16px; align-items: center; background: #fff; border-radius: var(--radius);
  padding: 12px; box-shadow: var(--shadow); text-decoration: none; color: var(--text); transition: transform .2s;
}
.card:hover { transform: translateY(-2px); color: var(--text); }
.card:hover .t { color: var(--blue); }
.card .ph { flex: none; width: 104px; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: linear-gradient(135deg, #e7f7fe, #fff6d6); }
.card .ph img { width: 100%; height: 100%; object-fit: cover; }
.card .ph.noimg { display: grid; place-items: center; }
.card .ph.noimg svg { width: 48px; height: 48px; }
.card .body { min-width: 0; padding-right: 6px; }
.card time { font-size: 13px; color: var(--muted); font-weight: 700; }
.card .t { margin: 2px 0 0; font-weight: 700; color: var(--ink); line-height: 1.6; font-size: 15px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 600px) { .card .ph { width: 128px; } }
.tag {
  display: inline-block; margin-left: 6px; padding: 0 8px; border-radius: 999px;
  font-size: 11px; font-weight: 700; color: #fff; background: var(--pink-text); vertical-align: 1px;
}

/* ---------- CTA帯 ---------- */
.cta-band { position: relative; overflow: hidden; color: #fff; background: linear-gradient(120deg, var(--cyan), var(--blue) 60%, var(--navy)); }
.cta-band::before, .cta-band::after { content: ""; position: absolute; border-radius: 50%; }
.cta-band::before { width: 360px; height: 360px; right: -120px; top: -160px; background: rgba(250, 208, 54, .9); }
.cta-band::after { width: 220px; height: 220px; left: -90px; bottom: -120px; background: rgba(250, 71, 166, .85); }
.cta-band .wrap { position: relative; z-index: 1; padding-top: 64px; padding-bottom: 64px; }
.cta-band h2 { color: #fff; margin: 0 0 10px; font-size: clamp(24px, 5.5vw, 34px); font-weight: 900; }
.cta-band p { margin: 0 0 24px; }
.cta-band .btns { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn { background: #fff; color: var(--blue); }
.cta-band .btn:hover { background: var(--yellow); color: var(--navy); }

/* ---------- フッター ---------- */
.site-footer { background: #0b1d3a; color: #c9d4e6; font-size: 14px; }
.site-footer .wrap { padding-top: 40px; padding-bottom: 32px; display: grid; gap: 20px; }
.site-footer a { color: #fff; }
.site-footer strong { color: #fff; font-size: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer .copy { font-size: 12px; color: #8fa0bd; }
.stripe { height: 6px; background: linear-gradient(90deg, var(--sky) 0 40%, var(--yellow) 40% 70%, var(--pink) 70% 100%); }

/* ---------- 下層ページ ---------- */
.page-head { background: var(--bg-soft); padding: 48px 0 40px; position: relative; overflow: hidden; }
.page-head::after {
  content: ""; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--sky), var(--cyan)); opacity: .35;
}
.page-head h1 { margin: 0; font-size: clamp(28px, 7vw, 40px); font-weight: 900; position: relative; z-index: 1; }
.page-head p { margin: 8px 0 0; position: relative; z-index: 1; }
.breadcrumb { font-size: 13px; margin-bottom: 8px; position: relative; z-index: 1; }
.breadcrumb a { color: var(--muted); }
.article { max-width: 760px; }
.article h2 { font-size: 24px; margin: 48px 0 16px; padding-left: 14px; border-left: 6px solid var(--sky); }
.article h3 { font-size: 19px; margin: 32px 0 12px; }
.article figure { margin: 24px 0; }
.article figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; }
.article table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 15px; }
.article th, .article td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.article th { background: var(--bg-soft); }
.photo-row { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }

/* 日記ページ */
.filters { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-bottom: 28px; }
.filters select { font: inherit; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.filters label { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; }
.filters input { width: 18px; height: 18px; accent-color: var(--blue); }
.month { font-size: 20px; margin: 40px 0 12px; padding-bottom: 8px; border-bottom: 3px solid var(--sky); }
.entry { padding: 24px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.entry time { font-size: 14px; color: var(--muted); font-weight: 700; }
.entry h3 { margin: 4px 0 10px; font-size: 19px; }
.entry p { margin: 0 0 .8em; }
.entry .photos { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-top: 12px; }
.entry .photos button { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 12px; overflow: hidden; }
.entry .photos img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.entry:target { background: #fffbe6; }
.empty { color: var(--muted); }

dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1200px); }
dialog.lightbox::backdrop { background: rgba(5, 15, 35, .85); }
dialog.lightbox img { max-height: 84vh; width: auto; margin: 0 auto; border-radius: 10px; }
dialog.lightbox p { color: #fff; text-align: center; margin: 8px 0 0; }
dialog.lightbox button { position: fixed; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; font-size: 22px; cursor: pointer; }

/* 確認モード（パソコンで開いたときだけ出る点検パネル） */
.check-panel {
  position: fixed; left: 12px; bottom: 12px; z-index: 100; max-width: min(92vw, 520px); max-height: 50vh; overflow: auto;
  background: #fff; border: 3px solid var(--green); border-radius: 14px; padding: 14px 16px; font-size: 14px; line-height: 1.6;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
}
.check-panel.ng { border-color: #d92d20; }
.check-panel strong { display: block; margin-bottom: 4px; }
.check-panel ul { margin: 6px 0 0; padding-left: 1.2em; }
.check-panel .close { float: right; border: 0; background: none; font-size: 18px; cursor: pointer; }

/* ---------- あしらい（SVGパーツ） ---------- */
.has-deco { position: relative; overflow: hidden; }
.has-deco > .wrap { position: relative; z-index: 1; }
.deco { position: absolute; pointer-events: none; user-select: none; z-index: 0; }
.deco-plane { width: 200px; right: -30px; top: 24px; }
.deco-dots { width: 90px; left: 8px; bottom: 40px; opacity: .9; }
.deco-planet { width: 150px; right: -20px; top: 30px; }
.deco-tri { width: 70px; left: 12px; bottom: 30px; opacity: .8; }
.deco-atom { width: 110px; right: 4%; top: 40px; opacity: .85; }
@media (max-width: 759px) {
  .deco-plane { width: 130px; top: 10px; right: -24px; }
  .deco-planet { width: 100px; top: 16px; }
  .deco-atom { width: 72px; top: 24px; right: 8px; }
  .deco-dots, .deco-tri { display: none; }
}
@media (min-width: 1200px) {
  .deco-plane { width: 260px; right: 4%; }
  .deco-planet { width: 190px; right: 5%; }
}
.matrix .ico { width: 26px; height: 26px; display: inline-block; vertical-align: -7px; margin-right: 4px; }
.matrix tbody th { width: 5.2em; white-space: nowrap; }
.feature-ico { width: 64px; height: 64px; margin-bottom: 12px; padding: 10px; border-radius: 50%; background: var(--bg-soft); }
.feature:nth-child(2) .feature-ico { background: #fff6d6; }
.feature:nth-child(3) .feature-ico { background: #ffe8f3; }
.ribbon { line-height: 0; margin-top: -1px; }
.ribbon img { width: 100%; height: clamp(48px, 9vw, 140px); object-fit: fill; }
.cta-band { background: linear-gradient(180deg, var(--blue), var(--navy)); }
.page-head { padding-bottom: 72px; }
.page-head::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(36px, 6vw, 80px);
  background: url("../img/parts/ribbon.svg") center bottom / 100% 100% no-repeat; z-index: 1;
}
@media (min-width: 860px) {
  .menkyo-head > div:last-child { padding-top: 70px; }
  .deco-plane { top: 10px; }
}

/* ---------- イラスト ---------- */
.illust { border-radius: 24px; overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.illust img { width: 100%; height: auto; }
.menkyo-head .illust { max-width: 560px; }
.menkyo-body { margin-top: 32px; max-width: 720px; }
.jisseki-head { display: grid; gap: 20px; margin-bottom: 40px; align-items: center; }
.jisseki-head .stats { margin-bottom: 0; }
@media (min-width: 860px) {
  .menkyo-head > div:last-child { padding-top: 0; }
  .menkyo-head { grid-template-columns: 1fr 1fr; align-items: center; }
  .jisseki-head { grid-template-columns: 1.1fr 1fr; gap: 32px; }
  .jisseki-head .stats { grid-template-columns: 1fr; }
}
.feature { padding: 0 0 26px; overflow: hidden; }
.feature-img { width: 100%; aspect-ratio: 1; object-fit: cover; margin-bottom: 18px; }
.feature h3, .feature p { padding: 0 24px; }
.cta-grid { display: grid; gap: 28px; align-items: center; }
.cta-illust { border-radius: 20px; overflow: hidden; background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.cta-illust img { width: 100%; height: auto; }
@media (min-width: 860px) { .cta-grid { grid-template-columns: 1fr 1fr; gap: 48px; } }

/* ヒーロー：スマホは縦長イラストの上の余白に文字を重ねる */
@media (max-width: 759px) {
  .hero-copy { position: absolute; top: 0; left: 0; right: 0; z-index: 1; padding: 26px 20px 0; }
  .hero-art { margin: 0; }
}

/* 下層ページの見出し帯（イラスト） */
.page-head.band {
  background-color: #fff; background-repeat: no-repeat; background-position: right center; background-size: auto 100%;
  padding: 56px 0; min-height: 280px; border-bottom: 1px solid var(--line);
}
.page-head.band::before, .page-head.band::after { display: none; }
@media (max-width: 759px) {
  .page-head.band { background-size: 170% auto; background-position: right bottom; padding: 36px 0 52vw; min-height: 0; }
}
.cta-band::before { width: 260px; height: 260px; right: -110px; top: -130px; }
.section-title { font-size: clamp(22px, 6.4vw, 38px); }
@media (max-width: 759px) {
  .hero-art { margin-top: 64px; }
  .hero-lead { font-size: min(15px, 3.9vw); letter-spacing: .04em; white-space: nowrap; }
}
/* CTA帯の黄色の円：上で切れないよう、右端だけで切れる位置に */
.cta-band::before { width: 240px; height: 240px; right: -100px; top: 48px; }
@media (max-width: 759px) { .cta-band::before { width: 150px; height: 150px; right: -70px; top: 24px; } }
@media (max-width: 759px) { .cta-band::before { top: auto; bottom: 150px; right: -80px; } }

/* ---------- 泡のアニメーション（オープンキャンパス帯） ---------- */
.cta-illust-wrap { position: relative; }
.bubbles { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.bubbles span {
  position: absolute; left: var(--x); top: 22%;
  width: var(--s); height: var(--s); border-radius: 50%; opacity: 0;
  background: radial-gradient(circle at 32% 30%, rgba(255,255,255,.95) 0 18%, transparent 22%), var(--c);
  box-shadow: 0 0 0 2px rgba(255,255,255,.55);
}
.in-view .bubbles span { animation: bubble-up 5.2s ease-in var(--d) infinite; }
@keyframes bubble-up {
  0%   { transform: translate(0, 0) scale(.5); opacity: 0; }
  12%  { opacity: .95; }
  70%  { opacity: .8; }
  100% { transform: translate(var(--dx), -190px) scale(1.1); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .bubbles { display: none; } }

/* ---------- 授業風景・行事（記事ページ） ---------- */
.article h2 .grade, .article h2 .grade {
  display: inline-block; margin-left: 10px; padding: 1px 10px; border-radius: 999px;
  background: var(--bg-soft); color: var(--blue); font-size: 13px; font-weight: 700; vertical-align: 3px;
}
.article .photo-row img, .article figure img { border-radius: 12px; cursor: zoom-in; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #f3f5f8; }
.article .caption { font-size: 14px; color: var(--muted); margin: 6px 0 0; }
.article .back { margin-top: 48px; }
.toc { display: grid; gap: 12px; margin: 24px 0 8px; }
.toc > div { background: var(--bg-soft); border-radius: 14px; padding: 14px 18px; }
.toc .toc-year { margin: 0 0 4px; padding: 0; border: 0; font-size: 15px; color: var(--blue); }
.toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 15px; }
@media (min-width: 760px) { .toc { grid-template-columns: repeat(3, 1fr); } .toc ul { display: block; } }
.article h2[id] { scroll-margin-top: 80px; }
.exp-list { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .exp-list { grid-template-columns: repeat(3, 1fr); } }
.exp { display: block; text-decoration: none; color: var(--ink); background: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); transition: transform .2s; }
.exp:hover { transform: translateY(-2px); color: var(--blue); }
.exp img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.exp span { display: block; padding: 10px 12px 12px; font-weight: 700; font-size: 14px; line-height: 1.5; }
.event-index { list-style: none; margin: 20px 0 8px; padding: 0; display: grid; gap: 8px; }
.event-index a { display: flex; gap: 14px; align-items: baseline; padding: 12px 16px; border-radius: 12px; background: var(--bg-soft); text-decoration: none; color: var(--ink); font-weight: 700; }
.event-index time { min-width: 13em; font-size: 13px; color: var(--blue); }
@media (max-width: 599px) { .event-index a { flex-direction: column; gap: 0; } }
.more-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* あしらい：大きく・うっすら（紙飛行機は除く） */
.deco:not(.deco-plane) { opacity: .35; }
.deco-dots { width: 200px; left: -20px; bottom: 30px; }
.deco-atom { width: 260px; right: 2%; top: 20px; }
.deco-planet { width: 360px; right: -40px; top: 10px; }
@media (max-width: 759px) {
  .deco-atom { width: 150px; top: 16px; right: -20px; }
  .deco-planet { width: 190px; top: 8px; right: -40px; }
}

/* ---------- 4免許ページ ---------- */
.cmp { display: grid; gap: 16px; }
@media (min-width: 900px) { .cmp { grid-template-columns: 1fr 1fr 1.15fr; align-items: stretch; } }
.cmp-col { background: #fff; border-radius: var(--radius); padding: 22px 22px 18px; box-shadow: var(--shadow); }
.cmp-col.ours { border: 3px solid var(--blue); position: relative; }
.cmp-col.ours::before { content: "本学科"; position: absolute; top: -14px; left: 18px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 12px; border-radius: 999px; }
.cmp-type { margin: 0 0 10px; font-size: 19px; font-weight: 900; color: var(--ink); }
.cmp-type small { font-size: 13px; font-weight: 700; color: var(--muted); margin-left: 4px; }
.cmp dl { margin: 0; }
.cmp dt { font-size: 12px; font-weight: 700; color: var(--blue); margin-top: 10px; letter-spacing: .08em; }
.cmp dd { margin: 2px 0 0; font-size: 15px; line-height: 1.7; }
.cmp-col.ours strong { background: linear-gradient(transparent 60%, #fff0a8 60%); }
.note-s { font-size: 13px; color: var(--muted); margin: 14px 0 0; }
.bars { --lw: 9.5em; position: relative; display: grid; gap: 16px; padding: 34px 0 6px; }
.bar-row { display: grid; grid-template-columns: var(--lw) 1fr; align-items: center; gap: 0; }
.bar-label { font-weight: 700; font-size: 14px; color: var(--ink); }
.bar { position: relative; height: 40px; background: var(--bg-soft); border-radius: 10px; }
.bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 10px; }
.bar b { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 15px; color: var(--ink); }
.b-math { background: var(--cyan); } .b-sci { background: var(--yellow); } .b-all { background: linear-gradient(90deg, var(--cyan), var(--blue) 60%, var(--pink)); }
.bar-row:last-of-type b { color: #fff; }
.bar-line { position: absolute; top: 0; bottom: 0; border-left: 2px dashed var(--navy); }
.bar-line span { position: absolute; top: 0; left: 6px; white-space: nowrap; font-size: 12px; font-weight: 700; color: var(--navy); }
@media (max-width: 599px) { .bars { --lw: 7.2em; } .bar-label { font-size: 12px; } .bar-line span { left: auto; right: 6px; } }
.tani-notes { margin: 20px 0 0; padding-left: 1.2em; font-size: 15px; }
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: none; }
@media (min-width: 900px) { .flow { grid-template-columns: repeat(4, 1fr); } }
.flow li { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); border-top: 6px solid var(--sky); }
.flow li:nth-child(2) { border-top-color: var(--yellow); } .flow li:nth-child(3) { border-top-color: var(--pink); } .flow li:nth-child(4) { border-top-color: var(--blue); }
.flow .yr { font-weight: 900; color: var(--blue); font-size: 14px; }
.flow h3 { margin: 4px 0 6px; font-size: 17px; }
.flow p { margin: 0; font-size: 14px; }
.faq { background: #fff; border-radius: 14px; margin-bottom: 10px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; padding: 16px 44px 16px 18px; font-weight: 700; color: var(--ink); position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; color: var(--pink-text); font-weight: 900; margin-right: 10px; }
.faq summary::after { content: "＋"; position: absolute; right: 18px; color: var(--blue); }
.faq[open] summary::after { content: "－"; }
.faq p { margin: 0; padding: 0 18px 18px 42px; font-size: 15px; }
.compare ul.facts li::before { content: "✓"; border: 0; width: auto; height: auto; top: 9px; left: 6px; color: var(--pink-text); font-weight: 900; }
/* ヒーロー：h1の中に学科名とキャッチコピー */
.hero-copy h1 { margin: 0; font-size: inherit; line-height: inherit; }
.hero-copy .hero-kicker, .hero-copy .hero-title { display: block; }

/* ブログ記事の本文 */
.entry .post-body { overflow-wrap: anywhere; }
.entry .post-body img { max-width: 100%; height: auto !important; border-radius: 10px; cursor: zoom-in; display: inline-block; }
.entry .post-body .separator { margin: 10px 0; text-align: left !important; }
.entry .post-body a[style] { margin: 0 !important; }
.entry .post-body table { width: auto; }

/* ---- 小見出し（日本語）／免許カード：ぼかしなしの影 ---- */
.eyebrow { letter-spacing: .12em; font-size: 14px; }
.menkyo-big .unit { white-space: nowrap; }
.matrix tr.math td, .matrix tr.sci td { border-top: 0; }
.matrix td { border: 2px solid var(--navy); border-radius: 14px; }
.matrix tr.math td { box-shadow: 6px 6px 0 var(--cyan); }
.matrix tr.sci td { box-shadow: 6px 6px 0 var(--yellow); }
.matrix { border-spacing: 14px 16px; }
@media (max-width: 599px) {
  .matrix { border-spacing: 10px 14px; margin: 0 -4px; }
  .matrix td { padding: 18px 4px 14px; font-size: 14px; letter-spacing: 0; }
  .matrix tbody th { width: 4.2em; font-size: 15px; }
  .matrix .ico { width: 22px; height: 22px; }
}
.matrix td small { word-break: keep-all; }
.matrix td { border: 0; }
/* 白い背景の上に置いたときは、カードを淡い水色にして形を見せる */
.section:not(.soft) .matrix td { background: var(--bg-soft); }
