@charset "UTF-8";

/* ==========================================================================
   Reset / base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; line-height: 1.5; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

:root {
  --navy: #17324f;
  --navy-deep: #0e2138;
  --gold: #c99a3f;
  --gold-light: #f1d99a;
  --teal: #2f7d78;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --text: #232a33;
  --text-soft: #5b6673;
  --border: #e4e7ec;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --shadow: 0 8px 30px rgba(23, 50, 79, 0.08);
  --shadow-sm: 0 2px 10px rgba(23, 50, 79, 0.06);
  --container: 1100px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 56px 0; }
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 36px;
}
.section-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold);
  background: rgba(201, 154, 63, 0.12);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(1.3rem, 1.05rem + 1.1vw, 1.9rem);
  color: var(--navy);
}
.section-lead {
  color: var(--text-soft);
  margin-top: 12px;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand { display: flex; flex-direction: column; min-width: 0; }
.brand-name {
  font-weight: 700;
  color: var(--navy);
  font-size: clamp(0.85rem, 0.7rem + 0.6vw, 1.05rem);
  white-space: nowrap;
}
.brand-sub { font-size: 0.72rem; color: var(--text-soft); }
.header-nav {
  display: none;
  gap: 18px;
}
.header-nav a {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-soft);
  white-space: nowrap;
}
.header-nav a.active, .header-nav a:hover { color: var(--navy); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  border: 2px solid transparent;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, #b8842a 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(201, 154, 63, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(201, 154, 63, 0.42); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  background: radial-gradient(ellipse at top right, #1f4c6e 0%, var(--navy) 45%, var(--navy-deep) 100%);
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 12% 20%, rgba(201, 154, 63, 0.22), transparent 40%),
    radial-gradient(circle at 88% 82%, rgba(47, 125, 120, 0.28), transparent 45%);
  pointer-events: none;
}
.hero .container { position: relative; padding: 40px 24px; }
.hero-banner-img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(1.3rem, 1.05rem + 1.2vw, 1.9rem);
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}
.hero-lead {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 620px;
}
.breadcrumb {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 10px;
}
.breadcrumb a { color: rgba(255, 255, 255, 0.85); }
.breadcrumb a:hover { color: #fff; }

/* ==========================================================================
   Layout: content + sidebar
   ========================================================================== */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

/* ==========================================================================
   Article content card
   ========================================================================== */
.content-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 32px;
}
.content-card h3.heading {
  color: var(--navy);
  font-size: 1.15rem;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border);
}
.article-body p { margin-bottom: 1em; color: var(--text); }
.article-body img { border-radius: var(--radius-sm); }
.article-body hr { border: 0; border-top: 1px solid var(--border); margin: 20px 0; }
.article-date {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
  background: rgba(201, 154, 63, 0.12);
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* ==========================================================================
   News feed (index page)
   ========================================================================== */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.news-item {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.news-item:last-child { border-bottom: 0; }
.news-date {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
  padding-top: 2px;
}
.news-item a { color: var(--navy); font-weight: 500; }
.news-item a:hover { color: var(--gold); text-decoration: underline; }
.news-item img { margin-top: 10px; border-radius: var(--radius-sm); max-width: 220px; }

/* ==========================================================================
   School directory grid (index page)
   ========================================================================== */
.school-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.school-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.school-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.school-card h4 { font-size: 0.98rem; margin-bottom: 8px; }
.school-card h4 a { color: var(--navy); }
.school-card h4 a:hover { color: var(--gold); }
.school-card p {
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.school-card .school-thumbs { display: flex; gap: 6px; }
.school-card .school-thumbs img { border-radius: var(--radius-sm); flex: 1; height: 80px; object-fit: cover; }

/* ==========================================================================
   Sidebar
   ========================================================================== */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.sidebar-card h3 {
  font-size: 0.95rem;
  color: var(--navy);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.sidebar-card ul { display: flex; flex-direction: column; gap: 8px; }
.sidebar-card li { font-size: 0.86rem; color: var(--text-soft); }
.sidebar-card li a { color: var(--navy); font-weight: 500; }
.sidebar-card li a:hover { color: var(--gold); }
.sidebar-card .cta-banner { display: block; margin-bottom: 12px; }
.sidebar-card .updated { font-size: 0.76rem; color: var(--text-soft); text-align: right; margin-top: 8px; }

.steps-list { display: flex; flex-direction: column; gap: 14px; counter-reset: step; }
.steps-list li {
  position: relative;
  padding-left: 34px;
  font-size: 0.86rem;
  color: var(--text-soft);
}
.steps-list li.step-title {
  counter-increment: step;
  font-weight: 700;
  color: var(--navy);
  padding-top: 6px;
}
.steps-list li.step-title::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.82);
  padding: 48px 0 24px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-grid h4 { color: #fff; font-size: 0.95rem; margin-bottom: 10px; }
.footer-grid p { font-size: 0.86rem; margin: 0; }
.footer-grid a:hover { color: var(--gold-light); }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-bottom {
  padding-top: 18px;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ==========================================================================
   Back to top
   ========================================================================== */
#pagetop { position: fixed; bottom: 22px; right: 22px; z-index: 200; }
#pagetop a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: var(--shadow);
  transition: background 0.15s ease, transform 0.15s ease;
}
#pagetop a:hover { background: var(--gold); transform: translateY(-3px); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media screen and (min-width: 720px) {
  .header-nav { display: flex; }
  .layout { grid-template-columns: minmax(0, 1fr) 300px; }
}
@media screen and (max-width: 760px) {
  .section { padding: 40px 0; }
  .news-item { grid-template-columns: 1fr; gap: 4px; }
  .content-card { padding: 22px; }
}
