@charset "UTF-8";
/* ==========================================================
   大阪星光学院 緊急用ページ
   モバイルファースト / ブレークポイント 768px
   ※アニメーション・トランジション・ホバー時の動きは使用しない
   ========================================================== */

:root {
  --navy: #011550;
  --text: #1a1a1a;
  --gray-bg: #f4f5f7;
  --border: #c9ccd4;
  --white: #ffffff;
  --full: #a3001b;   /* 満席 */
  --closed: #595959; /* 終了 */
}

/* ---------- base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.8;
  letter-spacing: 0.045em;
}

h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: var(--navy); }
address { font-style: normal; }

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

/* 改行位置の調整：この単位の途中では改行しない */
.nowrap { display: inline-block; }

.inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- header ---------- */
/* 画面上部に追従 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
}

.site-header__logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.site-header__logo img { height: 36px; width: auto; }

.btn-pamphlet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 28px;
  border-radius: 22px;
  background: var(--navy);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

/* ---------- notice ---------- */
.notice { padding: 40px 0 0; }

.notice__box {
  padding: 32px 20px;
  background: var(--gray-bg);
  font-size: 14px;
}
/* 段落のまとまりごとに1行分の余白。.is-join は直前と続けて表示 */
.notice__box > * + * { margin-top: 1.8em; }
.notice__box > .is-join { margin-top: 0; }
/* 文中リンク：見た目は変えずにタップ範囲を上下に広げる */
.notice__box a { padding: 12px 0; }

.notice__title {
  margin-bottom: 20px;
  color: var(--navy);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.last-updated {
  margin-top: 12px;
  font-size: 13px;
  text-align: right;
}

/* ---------- events ---------- */
.events { padding: 56px 0 64px; }

.events__title {
  margin-bottom: 32px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--navy);
  color: var(--navy);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
}

.event-group + .event-group { margin-top: 48px; }

.event-group__title {
  margin-bottom: 16px;
  color: var(--navy);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
}

/* 説明会テーブル：スマホはカード表示 */
.session-table {
  display: block;
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.session-table thead {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.session-table tbody { display: block; }

.session-table tbody tr {
  display: block;
  border: 1px solid var(--border);
}
.session-table tbody tr + tr { margin-top: 12px; }

.session-table tbody th {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  text-align: left;
}

.session-table tbody td {
  display: flex;
  padding: 8px 14px;
  border-top: 1px solid var(--border);
}
.session-table tbody td::before {
  content: attr(data-label);
  flex: 0 0 5em;
  color: var(--navy);
  font-weight: 700;
}

/* 受付状況バッジ：tr のクラスで切り替え
   ※現在は非表示。表示する場合は index.html の
     <section class="events"> に show-status クラスを追加する */
.status { display: none; }
.show-status .status {
  display: inline-block;
  padding: 0 8px;
  border: 1px solid var(--white);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.8;
}
.show-status .session.is-open   .status::before { content: "受付中"; }
.show-status .session.is-full   .status::before { content: "満席"; }
.show-status .session.is-closed .status::before { content: "終了"; }

.show-status .session.is-open .status { background: var(--white); color: var(--navy); }
.show-status .session.is-full .status { background: var(--full); color: var(--white); }
.show-status .session.is-closed .status { background: var(--closed); color: var(--white); }

/* 終了した回はグレー表示 */
.show-status .session.is-closed { color: #595959; }
.show-status .session.is-closed th { background: var(--closed); }

.notes {
  margin-top: 12px;
  font-size: 12px;
}

/* 概要PDFリンク（表の上） */
.event-group__doc { margin-bottom: 6px; }
.doc-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: #0070D9;
  font-weight: 700;
  text-decoration: none;
}
.doc-link__text { text-decoration: underline; }
.doc-link .icon-pdf { width: 36px; height: 36px; font-size: 10px; }

/* 予約ボタン（中学・高校それぞれの表の下） */
.reserve {
  margin-top: 32px;
  text-align: center;
}
.btn-reserve {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 60px;
  padding: 12px 24px;
  border-radius: 50px;
  background: var(--navy);
  color: var(--white);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
}

/* ---------- career（進路指導部より） ---------- */
.career { padding: 0 0 64px; }

.doc-list { border-top: 1px solid var(--border); }
.doc-list li { border-bottom: 1px solid var(--border); }

.doc-list__link {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 44px;
  padding: 14px 8px;
  color: var(--text);
  text-decoration: none;
}

.icon-pdf {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #0070D9;
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.045em;
}

/* ---------- recruit（教職員募集） ---------- */
.recruit { padding: 0 0 64px; }
/* 電話リンク：見た目は変えずにタップ範囲を上下に広げる */
.recruit a { padding: 12px 0; }

/* ---------- footer ---------- */
.site-footer {
  padding: 40px 0 24px;
  background: var(--gray-bg);
  color: var(--navy);
  font-size: 13px;
}
.site-footer__info p + p { margin-top: 8px; }
.site-footer__name {
  font-size: 15px;
  font-weight: 700;
}
.site-footer__tel {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  font-weight: 700;
}
.site-footer__copy {
  margin-top: 32px;
  font-size: 11px;
}

/* ==========================================================
   PC（768px以上）
   ========================================================== */
@media (min-width: 768px) {
  body { font-size: 16px; }

  .inner { padding: 0 24px; }

  .site-header__inner { min-height: 88px; }
  .site-header__logo img { height: 48px; }
  .btn-pamphlet { font-size: 14px; }

  .notice { padding-top: 80px; }
  .notice__box {
    padding: 56px 80px;
    font-size: 16px;
  }
  .notice__title { margin-bottom: 32px; font-size: 24px; }

  .events { padding: 96px 0 104px; }
  .events__title { margin-bottom: 48px; font-size: 32px; }
  .career { padding-bottom: 104px; }
  .recruit { padding-bottom: 104px; }
  .doc-list__link { padding: 16px 24px; gap: 6px; }
  .event-group + .event-group { margin-top: 64px; }
  .event-group__title { font-size: 24px; }

  /* テーブル表示に戻す */
  .session-table { display: table; font-size: 15px; }
  .session-table thead {
    position: static;
    width: auto; height: auto;
    overflow: visible;
    clip: auto;
    display: table-header-group;
  }
  .session-table tbody { display: table-row-group; }
  .session-table tr,
  .session-table tbody tr { display: table-row; border: 0; }
  .session-table tbody tr + tr { margin-top: 0; }

  .session-table th,
  .session-table td,
  .session-table tbody th,
  .session-table tbody td {
    display: table-cell;
    padding: 12px 16px;
    border: 1px solid var(--border);
    vertical-align: middle;
    text-align: left;
  }
  .session-table tbody td::before { content: none; }

  .session-table thead th {
    background: var(--gray-bg);
    color: var(--navy);
    font-weight: 700;
  }
  .session-table tbody th {
    width: 9em;
    text-align: center;
    background: var(--gray-bg);
    color: var(--navy);
    white-space: nowrap;
  }
  .show-status .session-table tbody th .status { margin-left: 8px; }

  .show-status .session.is-open .status { background: var(--navy); color: var(--white); border-color: var(--navy); }
  .show-status .session.is-full .status { border-color: var(--full); }
  .show-status .session.is-closed .status { border-color: var(--closed); }
  .show-status .session.is-closed th { background: var(--gray-bg); color: #595959; }

  .reserve { margin-top: 40px; }
  .btn-reserve {
    display: inline-flex;
    width: auto;
    min-width: 420px;
    min-height: 72px;
    font-size: 20px;
  }

  .site-footer { padding: 56px 0 32px; }
  .site-footer__info {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 32px;
  }
  .site-footer__info p + p { margin-top: 0; }
  .site-footer__name { flex-basis: 100%; }
  .site-footer__tel { min-height: 0; }
}
