/* インターを調べる（仮）
   色・余白・部品の形はアメ塾（juku.ameba.jp）の計測に合わせた。
   ロゴ・写真・キャッチコピー・マスコットは使っていない。 */
:root {
  --green: #298737;
  --green-80: #237b31;
  --green-10: #c6e5c9;
  --green-5: #e7f5e9;
  --ink: #08121a;
  --body: #222222;
  --muted: rgba(8, 18, 26, 0.74);
  --gray-5: #f5f6f6;
  --gray-10: #ebeced;
  --line: #d8d9da;
  --caution: #d91c0b;
  --paper: #ffffff;
  --container: 1032px;
  --school-col: 760px;
  --header-h: 64px;
  --radius: 12px;
  --font: "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Noto Sans CJK JP", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: only light; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.7;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

.inner {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

/* Header 64px, white, hairline */
.site-header {
  height: var(--header-h);
  background: var(--paper);
  border-bottom: 1px solid var(--gray-10);
}
.site-header .inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  color: var(--green);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  line-height: 1.2;
  white-space: nowrap;
}
.logo span {
  color: var(--muted);
  font-weight: 400;
  font-size: 13px;
  margin-left: 2px;
}
.nav { display: flex; gap: 24px; }
.nav a {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.nav a:hover { color: var(--green); text-decoration: none; }

/* Green bar (prototype notice, not a slogan) */
.site-bar {
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 32px;
  min-height: 32px;
}
.site-bar .inner { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Breadcrumb row */
.crumb-bar {
  background: var(--paper);
  border-bottom: 1px solid var(--gray-10);
  font-size: 12px;
  color: var(--muted);
  min-height: 32px;
}
.crumb-bar .inner { padding: 8px 0; }
.crumb-bar a { color: var(--muted); }
.crumb-bar a:hover { color: var(--green); }
.crumb-bar .sep { margin: 0 8px; color: #b0b3b6; }

/* Hero (index): mint wash, no gradient, no photo */
.hero {
  background: var(--green-5);
  padding: 40px 0 32px;
  border-bottom: 1px solid var(--green-10);
}
.hero h1 {
  margin: 0 0 8px;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.hero .lead {
  margin: 0 0 24px;
  font-size: 14px;
  color: var(--muted);
  max-width: 40em;
}

.search-card {
  background: var(--paper);
  border: 1px solid var(--gray-10);
  border-radius: 16px;
  padding: 24px;
}
.search-card .row-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 8px;
}
.search-card .pref-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.pref {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill, 999px);
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
}
.pref:hover { border-color: var(--green); color: var(--green); text-decoration: none; }
.pref.is-on {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.kw-row { display: flex; gap: 8px; }
.kw-row input[type="search"],
.kw-row input[type="text"] {
  flex: 1;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: var(--paper);
}
.kw-row input:focus { outline: 2px solid var(--green); outline-offset: 0; border-color: var(--green); }
.btn-search {
  height: 44px;
  padding: 0 24px;
  border: 0;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.btn-search:hover { background: var(--green-80); }
.search-note { margin: 12px 0 0; font-size: 12px; color: var(--muted); }

/* List page body */
.list-body { padding: 32px 0 64px; background: var(--paper); }
.list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 16px;
}
.list-head h2 {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}
.list-head .count { font-size: 12px; color: var(--muted); }

/* Featured school card (not identical to compact rows) */
.featured {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
  border: 1px solid var(--gray-10);
  border-radius: 16px;
  overflow: hidden;
  background: var(--paper);
  margin: 0 0 16px;
}
.featured-visual {
  background: var(--gray-5);
  border-right: 1px solid var(--gray-10);
  padding: 0;
  min-height: 200px;
  overflow: hidden;
  position: relative;
}
.featured-visual img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  display: block;
}
.featured-body { padding: 20px 24px; }
.featured-body h3 { margin: 0 0 8px; font-size: 20px; font-weight: 700; color: var(--ink); }
.featured-body h3 a { color: var(--ink); text-decoration: none; }
.featured-body h3 a:hover { color: var(--green); }
.featured-meta { margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.chip {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--gray-5);
  border: 1px solid var(--gray-10);
  font-size: 12px;
  color: var(--ink);
  line-height: 20px;
}
.featured-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Compact rows for schools without a page */
.row-list { border-top: 1px solid var(--gray-10); }
.school-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-10);
}
.school-row .name { margin: 0; font-size: 15px; font-weight: 700; color: var(--ink); }
.school-row .loc { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.badge-wait {
  font-size: 12px;
  color: var(--muted);
  background: var(--gray-5);
  border: 1px solid var(--gray-10);
  border-radius: 999px;
  padding: 4px 12px;
  white-space: nowrap;
}
.hidden { display: none !important; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--green);
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.btn:hover { background: var(--green-80); border-color: var(--green-80); color: #fff; text-decoration: none; }
.btn-outline {
  background: var(--paper);
  color: var(--green);
}
.btn-outline:hover { background: var(--green-5); color: var(--green); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 12px; }

/* School page */
.school-page { background: var(--paper); padding: 24px 0 80px; }
.school-col { width: min(var(--school-col), calc(100% - 32px)); margin: 0 auto; }
.school-page h1 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
}
.school-addr { margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.school-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }

/* Tabs: 51px, radius 12, active mint */
.tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 24px;
  border-bottom: 1px solid var(--gray-10);
}
.tab {
  appearance: none;
  border: 0;
  background: transparent;
  flex: 1;
  max-width: 220px;
  min-width: 96px;
  height: 51px;
  padding: 0 16px;
  border-radius: 12px 12px 0 0;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.tab:hover { color: var(--green); }
.tab.is-on {
  background: var(--green-5);
  color: var(--ink);
}
.panel { display: none; }
.panel.is-on { display: block; }

/* Official facts box: green border + mint fill (recommend-like) */
.reco {
  border: 1px solid var(--green);
  background: var(--green-5);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 0 0 32px;
}
.reco h2 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  border: 0;
  padding: 0;
}
.reco ul { margin: 0; padding: 0 0 0 1.2em; }
.reco li { margin: 0 0 8px; }
.reco li:last-child { margin: 0; }
.reco .src { margin: 12px 0 0; }

h2 {
  margin: 32px 0 16px;
  padding: 0 0 8px;
  border-bottom: 1px solid var(--gray-10);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
}
h3 {
  margin: 24px 0 12px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}
h2:first-child { margin-top: 0; }

/* Tables: rounded, left col gray-5 */
.table-wrap { overflow-x: auto; margin: 0 0 16px; }
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--gray-10);
  border-radius: 12px;
  overflow: hidden;
  font-size: 13px;
}
th, td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--gray-10);
}
tr:last-child th, tr:last-child td { border-bottom: 0; }
th {
  width: 32%;
  font-weight: 600;
  color: var(--ink);
  background: var(--gray-5);
}
thead th { background: var(--gray-5); width: auto; }
td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }

.src { font-size: 12px; color: var(--muted); margin: 0 0 16px; }
.hint { font-size: 12px; color: var(--muted); margin: 8px 0 0; }
.mark {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 8px;
  margin: 0 8px 0 0;
  border-radius: 4px;
  background: var(--gray-10);
  color: var(--ink);
  vertical-align: 1px;
}
.mark-off {
  background: #f8e8e6;
  color: var(--caution);
}
.mark-ok {
  background: var(--green-10);
  color: var(--green-80);
}

.box {
  border: 1px solid var(--gray-10);
  background: var(--gray-5);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 0 0 16px;
}
.box p:first-child { margin-top: 0; }
.box p:last-child { margin-bottom: 0; }
.box-warn { background: #fff8f7; border-color: #f0c8c4; }
.box-miss { background: var(--gray-5); }
.unoff {
  border: 1px solid var(--line);
  background: var(--paper);
  border-left: 3px solid #8a9096;
  border-radius: 8px;
  padding: 16px 20px;
  margin: 0 0 16px;
}
.unoff > .label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #5c6166;
  margin: 0 0 8px;
}
.unoff p:last-child { margin-bottom: 0; }

ol, ul { margin: 0 0 16px; padding-left: 1.4em; }
li { margin: 0 0 6px; }
.toc-note { font-size: 12px; color: var(--muted); }

/* Forms */
.form-page { width: min(720px, calc(100% - 32px)); margin: 0 auto; padding: 24px 0 80px; }
.form-page h1 { font-size: 24px; font-weight: 700; color: var(--ink); margin: 0 0 8px; }
.form-page .sub { margin: 0 0 24px; color: var(--muted); }
.field { margin: 0 0 20px; }
.field > label, .field .lbl {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
}
.req { color: var(--caution); font-weight: 700; font-size: 11px; margin-left: 6px; }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: var(--paper);
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--green);
  outline-offset: 0;
  border-color: var(--green);
}
.radios { display: flex; flex-wrap: wrap; gap: 16px; }
.radios label, .checks label { font-weight: 400; display: flex; align-items: flex-start; gap: 8px; }
.checks { display: flex; flex-direction: column; gap: 10px; }
.form-actions { margin-top: 24px; }

/* Footer */
.site-footer {
  background: var(--gray-5);
  border-top: 1px solid var(--gray-10);
  color: var(--muted);
  font-size: 12px;
  padding: 24px 0 32px;
}
.site-footer a { color: var(--muted); }

/* Mobile CTA bar */
.mobile-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--paper);
  border-top: 1px solid var(--gray-10);
  padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
  gap: 8px;
  z-index: 20;
}
.mobile-bar .btn { flex: 1; }

@media (max-width: 800px) {
  :root { --header-h: 56px; }
  .site-header { height: auto; min-height: 56px; }
  .site-header .inner {
    height: auto;
    flex-wrap: wrap;
    padding: 10px 0 8px;
  }
  .nav { width: 100%; gap: 16px; justify-content: flex-start; }
  .nav a { font-size: 12px; white-space: nowrap; }
  .logo { font-size: 15px; }
  th { width: 30%; word-break: keep-all; }
  .hero { padding: 24px 0 20px; }
  .hero h1 { font-size: 24px; }
  .search-card { padding: 16px; }
  .featured { grid-template-columns: 1fr; }
  .featured-visual {
    min-height: 0;
    aspect-ratio: 16 / 9;
    border-right: 0;
    border-bottom: 1px solid var(--gray-10);
  }
  .featured-visual img { min-height: 0; height: 100%; }
  .school-page h1 { font-size: 22px; }
  .tabs { overflow-x: auto; }
  .tab { min-width: 96px; height: 44px; }
  th { width: 36%; }
  .school-page, .form-page, .list-body { padding-bottom: 96px; }
  .mobile-bar { display: flex; }
  .school-actions { display: none; }
}
@media (max-width: 480px) {
  .inner, .school-col, .form-page { width: calc(100% - 24px); }
  .kw-row { flex-direction: column; }
  .btn-search { width: 100%; }
  .school-row { grid-template-columns: 1fr; gap: 8px; align-items: start; }
}

/* Heading banners (image, Ameba-like form and color only) */
.banner-wrap {
  margin: 0 0 24px;
}
.banner-wrap picture, .banner-wrap img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  background: var(--green-5);
}
.list-body { padding-top: 24px; }

/* School hero photo */
.school-hero {
  margin: 0 0 16px;
}
.school-hero img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 60%;
  border-radius: 12px;
  background: var(--gray-5);
}
.credit {
  font-size: 11px;
  color: var(--muted);
  margin: 6px 0 0;
  line-height: 1.6;
}
.credit a { color: var(--muted); }
.featured-credit { margin: 8px 0 16px; }

/* ここがおすすめ: numbered circles, not emoji */
.reco-osusume ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.reco-osusume li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0 0 12px;
}
.reco-osusume li:last-child { margin: 0; }
.reco-osusume .num {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  margin-top: 3px;
}
.reco-osusume h2 { color: var(--green); }
.reco-osusume .src { margin: 12px 0 0; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* --- 2026-12-02 listing, forms, discreet apply --- */
.school-row.has-thumb {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 16px;
  align-items: center;
}
.row-thumb {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--gray-5);
  flex: 0 0 72px;
}
.row-thumb img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  display: block;
}
.row-thumb.is-empty {
  background: var(--gray-5);
  border: 1px solid var(--gray-10);
}
.school-row .name a { color: inherit; text-decoration: none; }
.school-row .name a:hover { color: var(--green); }
.scope-note, .apply-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 16px;
}
.footer-apply {
  display: inline-block;
  margin-left: 12px;
  color: var(--muted);
  text-decoration: underline;
}
.fee-block { margin: 0; font-size: 14px; line-height: 1.7; }
.empty-pref { color: var(--muted); font-size: 14px; margin: 24px 0; }
.reco ol.reco-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.reco .reco-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0 0 12px;
}
.reco .reco-list li:last-child { margin: 0; }
.reco .reco-num {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  margin-top: 3px;
}
.apply-form label {
  display: block;
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 600;
}
.apply-form input[type="text"],
.apply-form input[type="url"],
.apply-form select,
.apply-form textarea {
  display: block;
  width: 100%;
  margin: 6px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--gray-10);
  border-radius: 8px;
  font: inherit;
  font-weight: 400;
  box-sizing: border-box;
}
.apply-form .check { font-weight: 400; }
.apply-form .btn { margin-top: 8px; }
@media (max-width: 800px) {
  .school-row.has-thumb {
    grid-template-columns: 56px 1fr;
  }
  .school-row.has-thumb .btn { grid-column: 2; justify-self: start; }
  .row-thumb, .row-thumb img { width: 56px; height: 56px; }
}
.pref-links{font-size:13px;margin:0 0 16px;}
.pref-links a{margin:0 4px;}

.pref-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px 16px; list-style:none; margin: 16px 0 32px; padding:0; }
.pref-grid li { margin:0; padding: 10px 12px; background:#f4faf5; border-radius:8px; }
.pref-grid a { color:#217a2f; font-weight:700; }
.pref-grid .count { display:block; color:#5a6a5c; font-size:12px; font-weight:400; margin-top:2px; }

.pre-note {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.for-schools .lead { margin: 0 0 12px; font-size: 15px; line-height: 1.7; }
.for-schools .merit { margin: 0 0 28px; padding-left: 1.2em; font-size: 14px; line-height: 1.7; }
.for-schools .merit li { margin: 0 0 6px; }
.for-schools .hint { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* 受験前・入学前の表：出典の小さい表示 */
.srcl{display:block;margin-top:2px;font-size:12px;color:#6b6b6b;line-height:1.5}
.exp{display:inline-block;margin-right:6px;padding:0 6px;font-size:11px;color:#6b4a00;background:#fff3d6;border:1px solid #e8d49a;border-radius:3px;vertical-align:1px}
