/* ==========================================================================
   INCLUSION PRO SCHOOL - Common Stylesheet
   ========================================================================== */

:root {
  /* Brand colors */
  --navy: #0b2545;
  --navy-2: #13315c;
  --sky: #4a86c5;
  --sky-light: #d9e6f3;
  --sky-bg: #f2f6fb;
  --white: #ffffff;
  --off-white: #fafaf7;
  --paper: #f7f5f0;
  --ink: #17233d;
  --ink-2: #3b4763;
  --muted: #6e7891;
  --line: #e5e2da;
  --line-2: #dfe3ec;

  /* Department accents */
  --jp-red: #b3324a;         /* 日本語部門 */
  --jp-sakura: #e8b7c0;
  --jp-tint: #f7ecec;

  --tc-gold: #c99a3a;        /* キャリア教育部門 */
  --tc-yellow: #f4c95d;
  --tc-tint: #faf3e2;

  /* Type scale */
  --font-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-en: "Zodiak", "EB Garamond", "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Layout */
  --page-max: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 4px;
}

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;600;700&family=Noto+Serif+JP:wght@400;600&display=swap');
@import url('https://api.fontshare.com/v2/css?f[]=zodiak@400,500,700&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  font-family: var(--font-jp);
  color: var(--ink);
  background: var(--off-white);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease, color 0.2s ease;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; }

.wrap {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.wrap-wide {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ========== TYPOGRAPHY ========== */
.en-serif {
  font-family: var(--font-en);
  font-weight: 400;
  letter-spacing: 0.02em;
}
.mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
}

/* ========== HEADER ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar {
  max-width: 1440px;
  margin: 0 auto;
  padding: 12px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  transition: opacity 0.2s ease;
}
.brand:hover { opacity: 0.8; }
.brand-logo {
  display: block;
  height: 84px;
  width: auto;
  max-width: 520px;
}
@media (max-width: 900px) {
  .brand-logo { height: 68px; max-width: 400px; }
}
@media (max-width: 640px) {
  .brand-logo { height: 54px; max-width: 300px; }
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav a {
  font-size: 13px;
  color: var(--ink-2);
  letter-spacing: 0.04em;
  position: relative;
  padding: 6px 0;
}
.nav a:hover { color: var(--navy); }
.nav a.active { color: var(--navy); }
.nav a.active::after {
  content: ""; position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; background: var(--navy);
}

.header-actions {
  display: flex; align-items: center; gap: 14px;
}
.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.lang-switch button {
  padding: 4px 8px;
  border-radius: 2px;
  color: var(--muted);
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
}
.lang-switch button.on { color: var(--navy); font-weight: 600; }
.lang-switch .sep { color: var(--line); }

.btn-nav-cta {
  padding: 10px 20px;
  background: var(--navy);
  color: var(--white);
  font-size: 12px;
  letter-spacing: 0.1em;
  border-radius: 999px;
}
.btn-nav-cta:hover { background: var(--navy-2); }

.menu-toggle { display: none; }

@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-toggle {
    display: grid; place-items: center;
    width: 40px; height: 40px;
    border: 1px solid var(--line);
    border-radius: 4px;
  }
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  font-size: 14px;
  letter-spacing: 0.06em;
  border-radius: 999px;
  transition: all 0.25s ease;
  font-weight: 500;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn .arrow {
  transition: transform 0.25s ease;
  display: inline-block;
}
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary {
  background: var(--navy);
  color: var(--white);
}
.btn-primary:hover { background: var(--navy-2); }

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--navy);
}
.btn-ghost:hover { background: var(--navy); color: var(--white); }

.btn-light {
  background: var(--white);
  color: var(--navy);
}
.btn-light:hover { background: var(--sky-light); }

/* ========== CONTACT CTA CARD (Google Forms) ========== */
.contact-cta-card {
  background: var(--navy);
  color: var(--white);
  padding: 48px 44px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
}
.contact-cta-card::before {
  content: "";
  position: absolute;
  top: -60px; right: -60px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(74,134,197,0.35) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.contact-cta-card .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.24);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 999px;
  align-self: flex-start;
  margin-bottom: 24px;
}
.contact-cta-card .badge::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--tc-yellow);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(244,201,93,0.22);
}
.contact-cta-card h3 {
  font-family: var(--font-jp);
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 600;
  line-height: 1.45;
  color: var(--white);
  margin-bottom: 16px;
  text-wrap: pretty;
  position: relative;
}
.contact-cta-card p {
  font-size: 14px;
  color: rgba(255,255,255,0.78);
  line-height: 1.9;
  margin-bottom: 32px;
  position: relative;
}
.contact-cta-card .form-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 32px;
  background: var(--tc-yellow);
  color: var(--navy);
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: all 0.25s ease;
  position: relative;
  text-align: center;
}
.contact-cta-card .form-btn:hover {
  background: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -12px rgba(0,0,0,0.4);
}
.contact-cta-card .form-btn .arrow {
  transition: transform 0.25s ease;
  font-size: 18px;
}
.contact-cta-card .form-btn:hover .arrow { transform: translateX(4px); }
.contact-cta-card .meta {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.14);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  position: relative;
}
.contact-cta-card .meta .dot {
  width: 5px; height: 5px;
  background: var(--tc-yellow);
  border-radius: 50%;
}
.contact-cta-card .categories {
  display: grid;
  gap: 8px;
  margin-bottom: 32px;
  position: relative;
}
.contact-cta-card .categories li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: rgba(255,255,255,0.88);
  padding: 8px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.12);
  list-style: none;
}
.contact-cta-card .categories li::before {
  content: "◆";
  color: var(--tc-yellow);
  font-size: 8px;
}
.contact-cta-card .categories li:last-child { border-bottom: none; }

/* ========== FOOTER ========== */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  padding: 80px 0 40px;
  margin-top: 120px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
.footer-brand-logo {
  display: block;
  height: 92px;
  width: auto;
  max-width: 520px;
  margin-bottom: 28px;
  /* Invert dark logo to appear white on dark footer */
  filter: brightness(0) invert(1);
}
@media (max-width: 640px) {
  .footer-brand-logo { height: 68px; max-width: 380px; }
}
.footer-brand p {
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255,255,255,0.65);
  max-width: 320px;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 18px;
  font-weight: 500;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col a {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
}
.footer-col a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom .status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}
.footer-bottom .status .dot {
  width: 6px; height: 6px; background: var(--tc-yellow);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(244,201,93,0.18);
}
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* ========== NOTICE / DISCLAIMER ========== */
.notice {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 22px 26px;
  border-radius: 6px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-2);
}
.notice .label {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  padding: 4px 10px;
  border: 1px solid var(--navy);
  border-radius: 2px;
  margin-top: 2px;
}

/* ========== EDITABLE PLACEHOLDERS ========== */
.tbd {
  display: inline-block;
  border: 1px dashed var(--muted);
  color: var(--muted);
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  border-radius: 3px;
  background: rgba(110,120,145,0.05);
}
.tbd-block {
  border: 1px dashed var(--muted);
  color: var(--muted);
  padding: 20px 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  border-radius: 4px;
  background: rgba(110,120,145,0.04);
  line-height: 1.8;
}

/* ========== SECTION ========== */
section {
  padding: 120px 0;
}
.section-head {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 60px;
  margin-bottom: 64px;
  align-items: end;
}
.section-head .num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.section-head h2 {
  font-family: var(--font-jp);
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--navy);
  text-wrap: pretty;
}
.section-head h2 .en {
  display: block;
  font-family: var(--font-en);
  font-size: 15px;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-weight: 400;
  margin-bottom: 14px;
  text-transform: uppercase;
}
@media (max-width: 780px) {
  .section-head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 40px; }
  section { padding: 80px 0; }
}

/* ========== UTILITY ========== */
.divider {
  height: 1px;
  background: var(--line);
  margin: 0;
}
.pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid currentColor;
}

/* Accessible mobile navigation */
@media (max-width:1080px) {
 .site-header .nav.is-open { display:flex; position:absolute; top:100%; left:0; right:0; flex-direction:column; align-items:stretch; gap:0; padding:12px 24px; background:#fff; border-bottom:1px solid var(--line); box-shadow:0 12px 24px rgba(11,37,69,.12); max-height:calc(100dvh - 100px); overflow:auto; }
 .site-header .nav.is-open a { padding:12px 0; font-size:15px; }
}
@media (max-width:420px) { .header-actions {gap:6px;} .btn-nav-cta {padding:8px 10px; font-size:11px;} .site-header .brand-logo {max-width:110px; height:auto;} }
:focus-visible {outline:3px solid var(--sky);outline-offset:4px;}
@media (prefers-reduced-motion:reduce) {html {scroll-behavior:auto;} *,*::before,*::after {animation:none!important;transition:none!important;}}

/* Supplied crest: preserve the original image; frame its surrounding whitespace. */
.school-logo-frame { display:block; position:relative; overflow:hidden; flex-shrink:0; background:transparent; }
.header-logo-frame { width:100px; height:84px; }
.footer-logo-frame { width:132px; height:112px; margin-bottom:28px; border-radius:4px; }
.school-logo-frame .brand-logo, .school-logo-frame .footer-brand-logo,
.site-header .school-logo-frame .brand-logo {
 position:absolute; top:-40%; left:0; display:block; width:100%; max-width:none; height:auto; margin:0; filter:none;
}
@media(max-width:900px) { .header-logo-frame {width:81px;height:68px;} }
@media(max-width:640px) { .header-logo-frame {width:65px;height:55px;} .footer-logo-frame {width:110px;height:93px;} }
