@charset "utf-8";
/* =============================================================
   清風情報工科学院 リニューアル案 共通スタイル
   - 目的: モダンで分かりやすいデザイン＋お問い合わせ動線の改善
   - 方針: 外部フレームワーク不使用 / CSS変数による軽量デザインシステム
   - 対応: レスポンシブ（モバイルファースト）
   ============================================================= */

/* ----- デザイントークン（色・余白・字組み） ----- */
:root {
  /* ブランドカラー（現行の紺 #003399 を基調に調整） */
  --c-primary: #00337a;
  --c-primary-dark: #001f4d;
  --c-primary-light: #e8eefaff;

  /* CTA（資料請求・お問い合わせ）用アクセント：常に目立つ暖色 */
  --c-accent: #ff6a13;
  --c-accent-dark: #e2540a;

  /* オープンキャンパス用CTA：資料請求と区別する独立色（緑） */
  --c-oc: #1a9d5a;
  --c-oc-dark: #138047;

  /* 学科別カラー（動線上の識別を助ける） */
  --c-jp: #d6442f;       /* 日本語科 */
  --c-career: #00337a;   /* キャリア進学科 */
  --c-global: #0a8a8a;   /* グローバルIT学科 */

  /* ニュートラル */
  --c-ink: #1b2430;
  --c-muted: #5b6472;
  --c-line: #e2e6ee;
  --c-bg: #ffffff;
  --c-surface: #f5f7fb;

  /* 角丸・影 */
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(16, 30, 60, .08);
  --shadow-md: 0 6px 22px rgba(16, 30, 60, .12);
  --shadow-lg: 0 14px 40px rgba(16, 30, 60, .18);

  /* レイアウト */
  --container: 1120px;
  --header-h: 72px;
}

/* ----- リセット ----- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
  color: var(--c-ink);
  background: var(--c-bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: var(--c-primary); text-decoration: none; transition: color .2s, opacity .2s; }
a:hover { opacity: .8; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

/* フォーカスリング（アクセシビリティ） */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ----- 汎用レイアウト ----- */
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.section { padding: 64px 0; }
/* サーフェス面に幾何学モチーフ（ドット質感＋大きな弧） */
.section--surface {
  position: relative;
  overflow: hidden;
  background-color: var(--c-surface);
  background-image: radial-gradient(rgba(0, 51, 122, .09) 2.2px, transparent 2.4px);
  background-size: 26px 26px;
}
.section--surface::before {
  content: "";
  position: absolute; right: -120px; top: -120px;
  width: 320px; height: 320px;
  border: 40px solid rgba(0, 51, 122, .07);
  border-radius: 50%;
  pointer-events: none;
}
.section--surface > .container { position: relative; z-index: 1; }
/* 白い面は弱めに：隅にうっすら弧のみ（ドット背景は敷かない） */
.section:not(.section--surface) { position: relative; overflow: hidden; }
.section:not(.section--surface)::before {
  content: "";
  position: absolute; left: -120px; bottom: -130px;
  width: 320px; height: 320px;
  border: 38px solid rgba(0, 51, 122, .08);
  border-radius: 50%;
  pointer-events: none;
}
.section:not(.section--surface) > .container { position: relative; z-index: 1; }
.section__head { text-align: center; margin-bottom: 40px; }
.section__title {
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem);
  letter-spacing: .04em;
  font-weight: 800;
  color: var(--c-primary-dark);
}
.section__title small {
  display: block;
  font-size: .72rem;
  letter-spacing: .28em;
  color: var(--c-accent);
  font-weight: 700;
  margin-bottom: 8px;
}
/* 見出し下に3色ドットのモチーフ（中央見出しのみ・はっきり） */
.section__head .section__title::after {
  content: "";
  display: block;
  width: 76px;
  height: 13px;
  margin: 16px auto 0;
  background:
    radial-gradient(circle 6.5px at 6.5px 6.5px, var(--c-jp) 96%, transparent 100%),
    radial-gradient(circle 6.5px at 38px 6.5px, var(--c-career) 96%, transparent 100%),
    radial-gradient(circle 6.5px at 69px 6.5px, var(--c-global) 96%, transparent 100%);
  background-repeat: no-repeat;
}
.section__lead { color: var(--c-muted); margin-top: 12px; }

/* ----- ボタン ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); opacity: 1; }
.btn--accent { background: var(--c-accent); color: #fff; box-shadow: var(--shadow-md); }
.btn--accent:hover { background: var(--c-accent-dark); }
.btn--primary { background: var(--c-primary); color: #fff; }
.btn--primary:hover { background: var(--c-primary-dark); }
.btn--oc { background: var(--c-oc); color: #fff; box-shadow: var(--shadow-md); }
.btn--oc:hover { background: var(--c-oc-dark); }
.btn--ghost { background: #fff; color: var(--c-primary); border-color: var(--c-line); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { border-color: var(--c-primary); }
.btn--lg { padding: 17px 34px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn__ico { font-size: 1.1em; line-height: 1; }

/* =============================================================
   ヘッダー（全ページ共通・固定。お問い合わせを常時表示）
   ============================================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--c-line);
}
.header.is-scrolled { box-shadow: var(--shadow-sm); }
.header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--header-h);
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}
.header__brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.header__logo { height: 44px; width: auto; }
.header__name { font-size: .95rem; font-weight: 700; color: var(--c-primary-dark); line-height: 1.2; white-space: nowrap; }
/* サブタイトル（3学科名）はヘッダーでは非表示。ナビ・フッターと重複し横幅を圧迫するため */
.header__name small { display: none; }

.gnav { display: flex; align-items: center; gap: 2px; flex-wrap: nowrap; }
.gnav__link {
  display: inline-block;
  padding: 10px 12px;
  font-weight: 700;
  color: var(--c-ink);
  font-size: .95rem;
  white-space: nowrap;          /* 文字の途中改行を防ぐ（「ホー/ム」のような折返し崩れ対策） */
  border-radius: var(--radius-sm);
}
.gnav__link:hover { background: var(--c-primary-light); opacity: 1; }
.gnav__link.is-current { color: var(--c-primary); }

.header__cta { display: flex; align-items: center; gap: 10px; margin-left: 6px; }
.header__cta .btn { padding: 11px 18px; font-size: .92rem; white-space: nowrap; }
/* 電話番号はヘッダーでは非表示。フッター・各ページ・モバイル下部固定バーに集約（横幅確保のため） */
.header__tel { display: none; font-weight: 800; color: var(--c-primary-dark); font-size: 1.02rem; white-space: nowrap; }
.header__tel small { display: block; font-size: .62rem; color: var(--c-muted); font-weight: 600; letter-spacing: .1em; }

/* ハンバーガー（モバイル） */
.navtoggle {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--c-line);
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
  position: relative;
}
.navtoggle span, .navtoggle span::before, .navtoggle span::after {
  content: "";
  position: absolute;
  left: 50%; transform: translateX(-50%);
  width: 22px; height: 2px; background: var(--c-primary-dark);
  transition: .25s;
}
.navtoggle span { top: 50%; }
.navtoggle span::before { top: -7px; }
.navtoggle span::after { top: 7px; }
.navtoggle.is-open span { background: transparent; }
.navtoggle.is-open span::before { top: 0; transform: translateX(-50%) rotate(45deg); }
.navtoggle.is-open span::after { top: 0; transform: translateX(-50%) rotate(-45deg); }

/* =============================================================
   ヒーロー
   ============================================================= */
/* 案A：幾何学グラフィック（白基調＋抽象図形）を共通採用 */
.hero { position: relative; background: #eef3fb; color: var(--c-ink); overflow: hidden; }
.hero__inner {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
  padding: 64px 0 72px;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 36px;
  align-items: center;
}
.hero__badge {
  display: inline-block;
  background: var(--c-accent);
  color: #fff;
  font-weight: 700;
  font-size: .82rem;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero__title {
  font-size: clamp(1.9rem, 1.2rem + 3.2vw, 3.2rem);
  font-weight: 900;
  letter-spacing: .01em;
  line-height: 1.3;
  color: var(--c-primary-dark);
}
.hero__title em { color: var(--c-accent); font-style: normal; }
.hero__text { margin-top: 20px; font-size: 1.05rem; max-width: 560px; color: var(--c-muted); }
/* 資料請求とオープンキャンパスを対等な2ボタンとして並べる */
.hero__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; max-width: 600px; }
.hero__actions .btn { flex: 1 1 240px; }
.hero__sub { margin-top: 16px; }
.hero__sub a { color: var(--c-primary); font-weight: 600; font-size: .95rem; text-decoration: underline; text-underline-offset: 3px; }

/* ヒーローの抽象図形 */
.hero__media { position: relative; display: flex; justify-content: center; }
.hero__circle { width: min(100%, 400px); aspect-ratio: 1; object-fit: cover; border-radius: 50%; box-shadow: var(--shadow-lg); position: relative; z-index: 2; }
.hero .shape { position: absolute; pointer-events: none; }
.hero .s-ring { width: 560px; height: 560px; border: 44px solid rgba(0,51,122,.14); border-radius: 50%; right: -170px; top: -160px; z-index: 0; }
.hero .s-teal { width: 92px; height: 92px; background: var(--c-global); border-radius: 50%; left: 6%; top: 18%; opacity: .95; z-index: 0; }
.hero .s-accent { width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #ff9a4d, var(--c-accent)); right: 4%; bottom: -18px; z-index: 1; }
.hero .s-dots { width: 132px; height: 108px; left: -18px; bottom: 8px; z-index: 1; background-image: radial-gradient(var(--c-primary) 2.6px, transparent 2.8px); background-size: 18px 18px; opacity: .5; }

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; gap: 24px; padding: 48px 0 56px; }
  .hero__media { order: -1; }
  .hero__circle { width: 240px; }
  .hero .s-ring { right: -220px; }
}

/* =============================================================
   学科カード（3学科を分かりやすく並列表示）
   ============================================================= */
.dept-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.dept-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.dept-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.dept-card__img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.dept-card__bar { height: 6px; background: var(--dept, var(--c-primary)); }
.dept-card__body { padding: 26px 24px; display: flex; flex-direction: column; flex: 1; }
.dept-card__tag {
  align-self: flex-start;
  font-size: .72rem;
  font-weight: 700;
  color: #fff;
  background: var(--dept, var(--c-primary));
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.dept-card__title { font-size: 1.35rem; font-weight: 800; color: var(--c-primary-dark); }
.dept-card__title span { display: block; font-size: .78rem; color: var(--c-muted); font-weight: 600; margin-top: 4px; }
.dept-card__desc { margin-top: 14px; color: var(--c-muted); font-size: .96rem; flex: 1; }
.dept-card__actions { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }

/* 日本語科 / キャリア / グローバル の色適用 */
.dept--jp { --dept: var(--c-jp); }
.dept--career { --dept: var(--c-career); }
.dept--global { --dept: var(--c-global); }

/* =============================================================
   お問い合わせ動線セクション（トップ内）
   ============================================================= */
.contact-cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--c-primary-dark), var(--c-primary));
  color: #fff;
  border-radius: var(--radius);
  padding: 44px clamp(24px, 5vw, 56px);
  text-align: center;
  box-shadow: var(--shadow-md);
}
/* CTAパネルに弧（リング）モチーフを薄く配置 */
.contact-cta::before {
  content: "";
  position: absolute; right: -70px; top: -70px;
  width: 230px; height: 230px;
  border: 32px solid rgba(255, 255, 255, .20);
  border-radius: 50%;
  pointer-events: none;
}
.contact-cta::after {
  content: "";
  position: absolute; left: -40px; bottom: -55px;
  width: 170px; height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .22), transparent 70%);
  pointer-events: none;
}
.contact-cta > * { position: relative; z-index: 1; }
.contact-cta--oc { background: linear-gradient(135deg, var(--c-oc-dark), var(--c-oc)); }
.contact-cta h2 { font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem); font-weight: 800; }
.contact-cta p { margin-top: 12px; color: rgba(255, 255, 255, .9); }
.contact-cta__actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* =============================================================
   お問い合わせハブ（contact.html）
   ============================================================= */
.contact-hub {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
/* 2学科のみ（OCページ）用：中央寄せ2カラム */
.contact-hub--two { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin-inline: auto; }
.choice-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--c-line);
  border-top: 5px solid var(--dept, var(--c-primary));
  border-radius: var(--radius);
  padding: 28px 26px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.choice-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.choice-card__title { font-size: 1.25rem; font-weight: 800; color: var(--c-primary-dark); display: flex; align-items: center; gap: 10px; }
.choice-card__title .pin { font-size: 1.4rem; }
.choice-card__desc { margin-top: 12px; color: var(--c-muted); flex: 1; }
.choice-card__actions { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.choice-card__note { font-size: .78rem; color: var(--c-muted); margin: -2px 0 2px; }

.contact-info {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  align-items: center;
}
.contact-info__box { background: var(--c-surface); border-radius: var(--radius); padding: 28px; }
.contact-info__row { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--c-line); }
.contact-info__row:last-child { border-bottom: 0; }
.contact-info__label { font-weight: 700; color: var(--c-primary-dark); min-width: 92px; }

/* 地図埋め込み（アクセスページ） */
.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--c-line); }
.map-embed iframe { display: block; width: 100%; height: 420px; border: 0; }

/* 注記ボックス（例：日本語科はOC実施なし） */
.notice {
  margin-top: 26px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-left: 4px solid var(--c-muted);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  color: var(--c-muted);
  font-size: .92rem;
}
.notice strong { color: var(--c-ink); }

/* パンくず */
.breadcrumb { font-size: .82rem; color: var(--c-muted); padding: 16px 0; }
.breadcrumb a { color: var(--c-muted); }
.breadcrumb span { margin: 0 8px; }

/* ページ見出し帯 */
.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--c-primary-dark), var(--c-primary));
  color: #fff;
  padding: 48px 0;
}
/* 見出し帯にも弧モチーフを薄く */
.page-hero::after {
  content: "";
  position: absolute; right: -50px; top: -50px;
  width: 200px; height: 200px;
  border: 28px solid rgba(255, 255, 255, .20);
  border-radius: 50%;
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); font-weight: 900; }
.page-hero h1 small { display: block; font-size: .5em; font-weight: 700; color: rgba(255, 255, 255, .82); margin-top: 6px; }
.page-hero p { margin-top: 10px; color: rgba(255, 255, 255, .9); max-width: 680px; }
.page-hero__cta { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ページ別ヒーロー写真（左を濃いめに沈めて白文字を読みやすく） */
.page-hero--jp, .page-hero--global, .page-hero--career,
.page-hero--guide, .page-hero--admission, .page-hero--access {
  padding: 76px 0;
  background-color: var(--c-primary);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.page-hero--jp {
  background-image: linear-gradient(90deg, rgba(0,31,77,.92) 0%, rgba(0,31,77,.72) 45%, rgba(0,31,77,.35) 100%), url("../img/hero-jp.webp");
}
.page-hero--global {
  background-image: linear-gradient(90deg, rgba(0,31,77,.92) 0%, rgba(0,31,77,.72) 45%, rgba(0,31,77,.35) 100%), url("../img/hero-global.webp");
}
.page-hero--career {
  background-image: linear-gradient(90deg, rgba(0,31,77,.92) 0%, rgba(0,31,77,.72) 45%, rgba(0,31,77,.35) 100%), url("../img/hero-career.webp");
}
.page-hero--guide {
  background-image: linear-gradient(90deg, rgba(0,31,77,.92) 0%, rgba(0,31,77,.72) 45%, rgba(0,31,77,.35) 100%), url("../img/hero-guide.webp");
}
.page-hero--admission {
  background-image: linear-gradient(90deg, rgba(0,31,77,.92) 0%, rgba(0,31,77,.72) 45%, rgba(0,31,77,.35) 100%), url("../img/hero-admission.webp");
}
.page-hero--access {
  background-image: linear-gradient(90deg, rgba(0,31,77,.92) 0%, rgba(0,31,77,.72) 45%, rgba(0,31,77,.35) 100%), url("../img/hero-access.webp");
}

/* 実績などの数値（学科トップ用） */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 26px 20px; text-align: center; box-shadow: var(--shadow-sm); }
.stat__num { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 2.8rem); font-weight: 900; color: var(--c-primary); line-height: 1.1; }
.stat__num span { font-size: .5em; font-weight: 800; }
.stat__label { margin-top: 8px; color: var(--c-muted); font-size: .92rem; }

/* 合格大学などのチップ表示 */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { background: #fff; border: 1px solid var(--c-line); border-radius: 999px; padding: 6px 14px; font-size: .9rem; font-weight: 600; color: var(--c-ink); }
.chip-group { margin-top: 18px; }
.chip-group__label { font-weight: 800; color: var(--c-primary-dark); font-size: .95rem; margin-bottom: 10px; }

/* 下層ページへのリンク一覧 */
.linklist { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.linklist a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 16px 18px; background: #fff; border: 1px solid var(--c-line);
  border-radius: var(--radius-sm); font-weight: 700; color: var(--c-ink); box-shadow: var(--shadow-sm);
}
.linklist a:hover { border-color: var(--c-primary); opacity: 1; }
.linklist a::after { content: "›"; color: var(--c-primary); font-size: 1.2em; }

/* =============================================================
   フローティングCTA（モバイルで常時表示する下部バー）
   ============================================================= */
.floating-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: none;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .97);
  border-top: 1px solid var(--c-line);
  box-shadow: 0 -6px 20px rgba(16, 30, 60, .12);
}
.floating-cta .btn { flex: 1; padding: 12px 6px; font-size: .82rem; }
.floating-cta .btn--tel {
  flex: 0 0 52px;
  background: #fff;
  color: var(--c-primary-dark);
  border-color: var(--c-line);
  font-size: 1.2rem;
}

/* =============================================================
   フッター
   ============================================================= */
.footer { background: var(--c-primary-dark); color: rgba(255, 255, 255, .85); padding: 56px 0 28px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer__brand-name { color: #fff; font-weight: 800; font-size: 1.1rem; }
.footer__addr { margin-top: 14px; font-size: .9rem; line-height: 1.9; }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid var(--c-accent); display: inline-block; }
.footer__list li { padding: 5px 0; }
.footer__list a { color: rgba(255, 255, 255, .82); font-size: .9rem; }
.footer__list a:hover { color: #fff; }
.footer__bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .15); text-align: center; font-size: .8rem; color: rgba(255, 255, 255, .6); }

/* 提案メモ（プロトタイプ用バナー） */
.proto-banner {
  background: #fff4e5;
  border-bottom: 1px solid #ffd9a8;
  color: #8a4b00;
  text-align: center;
  font-size: .82rem;
  font-weight: 600;
  padding: 8px 16px;
}

/* =============================================================
   レスポンシブ
   ============================================================= */
@media (max-width: 960px) {
  .dept-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

/* タブレット〜小型ノート幅：ヘッダーをドロワー化してメニュー崩れを防ぐ
   （PCナビ＋CTA2個が余裕をもって収まる約1160pxを境にハンバーガーへ切替。
     境界直上で文字が折り返さないよう、余白を確保できる幅で切替える） */
@media (max-width: 1160px) {
  /* グローバルナビをドロワー化 */
  .navtoggle { display: block; order: 3; }
  .gnav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--c-line);
    box-shadow: var(--shadow-lg);
    padding: 8px 16px 16px;
    transform: translateY(-120%);
    visibility: hidden;                 /* 閉時は完全に非表示にし、下端がヘッダー下にはみ出すのを防ぐ */
    transition: transform .28s ease;    /* visibilityは即時切替（リサイズ時のちらつき防止）。開くスライドは維持 */
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .gnav.is-open { transform: translateY(0); visibility: visible; }
  .gnav__link { padding: 14px 8px; border-bottom: 1px solid var(--c-line); border-radius: 0; }
  .header__cta .btn { display: none; }       /* ヘッダーのボタンはモバイルで隠し、下部固定バーに集約 */
  .header__cta .header__tel { display: none; }
  .floating-cta { display: flex; }
  body { padding-bottom: 76px; }             /* 下部バー分の余白 */
  .contact-hub { grid-template-columns: 1fr; }
  .contact-info { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .section { padding: 48px 0; }
  /* スマホでは2つのCTAを縦に積み、どちらも大きくタップしやすく */
  .hero__actions { max-width: none; }
  .hero__actions .btn { flex: 1 1 100%; }
  .stats { grid-template-columns: 1fr; }
}

/* =============================================================
   メールフォーム（資料請求・お問い合わせ・OC申込）
   ============================================================= */
.form-card {
  max-width: 760px;
  margin-inline: auto;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: clamp(20px, 4vw, 40px);
}
.form-row { padding: 16px 0; border-bottom: 1px dashed var(--c-line); }
.form-row:last-of-type { border-bottom: 0; }
.form-row__label {
  display: block;
  font-weight: 700;
  color: var(--c-primary-dark);
  margin-bottom: 8px;
}
.form-row__label .en { display: inline; font-weight: 500; font-size: .8rem; color: var(--c-muted); margin-left: 6px; }
.req {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  color: #fff;
  background: var(--c-accent);
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
}
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  font: inherit;
  color: var(--c-ink);
  background: #fff;
  box-sizing: border-box;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus { outline: 2px solid var(--c-primary); outline-offset: 1px; border-color: var(--c-primary); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-radios { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.form-radios label { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }

/* 郵便番号 → 住所自動入力 */
.form-zip { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.form-zip .form-input { width: 180px; }
.form-zip__btn {
  padding: 11px 18px;
  border: 1px solid var(--c-primary);
  background: var(--c-primary-light);
  color: var(--c-primary-dark);
  font-weight: 700;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}
.form-zip__btn:hover { background: var(--c-primary); color: #fff; }
.form-zip__hint { width: 100%; font-size: .82rem; color: var(--c-muted); }

.form-actions { margin-top: 28px; text-align: center; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.form-note { max-width: 760px; margin: 0 auto 24px; color: var(--c-muted); font-size: .92rem; }

/* =============================================================
   卒業生・在校生の声（円形写真カード＋年度タブ切替）
   ============================================================= */
/* 年度タブ */
.voice-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 auto 32px; max-width: 920px; }
.voice-tab {
  appearance: none; border: 1px solid var(--c-line); background: #fff;
  color: var(--c-primary-dark); font-weight: 700; font-size: .95rem;
  padding: 9px 18px; border-radius: 999px; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.voice-tab:hover { border-color: var(--c-primary); }
.voice-tab.is-active { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }

/* 年度パネル（is-activeのみ表示） */
.voice-panel { display: none; }
.voice-panel.is-active { display: block; }

/* 声カード（写真＋本文の横並び） */
.voice-list { display: grid; gap: 20px; max-width: 920px; margin-inline: auto; }
.voice-item {
  display: flex; gap: 24px; align-items: flex-start;
  background: #fff; border: 1px solid var(--c-line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 24px 26px;
}
.voice-item__photo { flex: 0 0 120px; }
.voice-item__photo img {
  width: 120px; height: 120px; border-radius: 50%; object-fit: cover;
  border: 3px solid #fff; box-shadow: var(--shadow-md);
}
.voice-item__body { flex: 1; min-width: 0; }
.voice-item__name { font-weight: 800; color: var(--c-primary-dark); font-size: 1.05rem; margin: 0; }
.voice-item__unis { list-style: none; margin: 8px 0 12px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.voice-item__unis li { font-weight: 700; color: var(--c-accent-dark); font-size: .95rem; padding-left: 24px; position: relative; }
.voice-item__unis li::before { content: "🎓"; position: absolute; left: 0; }
.voice-item__comment { color: var(--c-ink); font-size: .95rem; line-height: 1.9; margin: 0; }

/* 注目（夢を叶えた喜びの声）＝アクセント縁取り */
.voice-list--featured .voice-item { border-left: 4px solid var(--c-accent); }

@media (max-width: 640px) {
  .voice-item { flex-direction: column; align-items: center; text-align: center; padding: 22px 18px; }
  .voice-item__photo { flex: none; }
  .voice-item__unis { align-items: center; }
  .voice-item__unis li { padding-left: 0; }
  .voice-item__unis li::before { position: static; margin-right: 4px; }
  .voice-item__comment { text-align: left; }
  .voice-tab { font-size: .88rem; padding: 8px 14px; }
}

/* =============================================================
   画像で掲載する詳細図（カリキュラム表・学費表など）
   ============================================================= */
.figure-list { display: grid; gap: 24px; max-width: 900px; margin-inline: auto; }
.figure-card {
  margin: 0; background: #fff; border: 1px solid var(--c-line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden;
}
.figure-card figcaption {
  font-weight: 800; color: var(--c-primary-dark); font-size: .98rem;
  padding: 14px 20px; background: var(--c-surface); border-bottom: 1px solid var(--c-line);
}
.figure-card a { display: block; }
.figure-card img { display: block; width: 100%; height: auto; }
.figure-card__note { padding: 10px 18px; margin: 0; font-size: .85rem; color: var(--c-muted); }

/* チェックリスト（WEB選考の試験内容など） */
.ticklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ticklist li { position: relative; padding-left: 28px; font-weight: 600; color: var(--c-ink); }
.ticklist li::before { content: "✓"; position: absolute; left: 0; color: var(--c-oc); font-weight: 800; }
