/* ============================================================
   common.css — 全ページ共通スタイル
   リセット / 共通カラートークン / ページローダー / 遷移オーバーレイ
   ※ 必ず各ページCSSより先に読み込むこと
   ※ ページ固有のトークン（--bg, --r, --f-head など）は各ページCSSで定義
   ============================================================ */

/* ── Reset ── */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}

/* ── 共通デザイントークン ── */
:root{
  --navy:    #19234C;
  --gold:    #e4c75a;
  --accent:  #b8001c;
  --text:    #1a1a1a;
  --sub:     #4a4a4a;
  --hint:    #888;
  --surface: #ffffff;
}

/* ── Page Loader ── */
#page-loader{
  position:fixed;inset:0;z-index:9999;
  background:var(--navy,#19234C);
  display:flex;align-items:center;justify-content:center;
  transition:opacity .5s ease,visibility .5s ease;
}
#page-loader.hidden{opacity:0;visibility:hidden}
#transition-overlay{
  position:fixed;inset:0;z-index:9997;
  background:var(--navy,#19234C);
  transform:translateY(101%);
  pointer-events:none;
  transition:transform .55s cubic-bezier(.76,0,.24,1);
}
#transition-overlay.active{transform:translateY(0)}
.mul7{height:70px;width:70px;position:relative}
.mul7circ{width:70px;height:70px;position:absolute}
.mul7circ:before{
  content:'';display:block;margin:0 auto;
  width:10px;height:10px;
  background-color:#333;border-radius:100%;
  animation:multiple7Animation 1.2s infinite ease-in-out both
}
.m7c12:before{background-color:#FFF9C4}
.m7c1:before,.m7c11:before{background-color:#FFF176}
.m7c2:before,.m7c10:before{background-color:#FFEE58}
.m7c3:before,.m7c9:before{background-color:#FDD835}
.m7c4:before,.m7c8:before{background-color:#FBC02D}
.m7c5:before,.m7c7:before{background-color:#F9A825}
.m7c6:before{background-color:#F57F17}
.m7c1{transform:rotate(30deg)}.m7c2{transform:rotate(60deg)}
.m7c3{transform:rotate(90deg)}.m7c4{transform:rotate(120deg)}
.m7c5{transform:rotate(150deg)}.m7c6{transform:rotate(180deg)}
.m7c7{transform:rotate(210deg)}.m7c8{transform:rotate(240deg)}
.m7c9{transform:rotate(270deg)}.m7c10{transform:rotate(300deg)}
.m7c11{transform:rotate(330deg)}
.m7c2:before{animation-delay:-1.1s}.m7c3:before{animation-delay:-1s}
.m7c4:before{animation-delay:-.9s}.m7c5:before{animation-delay:-.8s}
.m7c6:before{animation-delay:-.7s}.m7c7:before{animation-delay:-.6s}
.m7c8:before{animation-delay:-.5s}.m7c9:before{animation-delay:-.4s}
.m7c10:before{animation-delay:-.3s}.m7c11:before{animation-delay:-.2s}
.m7c12:before{animation-delay:-.1s}
@keyframes multiple7Animation{
  0%,80%,100%{transform:scale(0);opacity:0}
  40%{transform:scale(1);opacity:1}
}

/* ── 読替科目表：入学年度フィルタ ── */
.rep-year-filter{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-bottom:8px;}
.rep-year-filter label{font-size:13px;font-weight:700;color:var(--navy);}
.rep-year-filter select{font-family:inherit;font-size:14px;font-weight:700;padding:7px 12px;
  border:1px solid rgba(0,0,0,.18);border-radius:6px;background:#fff;color:var(--navy);cursor:pointer;}
.rep-year-clear{font-family:inherit;font-size:12px;padding:7px 12px;border:1px solid rgba(0,0,0,.18);
  border-radius:6px;background:#fff;color:var(--sub);cursor:pointer;}
.rep-year-clear:hover{background:#f1f1f1;}
.rep-year-result{font-size:13px;line-height:1.7;color:var(--navy);background:#eef3fb;
  border-left:4px solid #6b7da5;padding:8px 12px;margin:0 0 12px;border-radius:0 4px 4px 0;}
.rep-year-result:empty{display:none;}
.pdf-item.rep-dim{opacity:.32;}
.pdf-item.rep-match{background:#fffaf0;border-color:var(--gold);
  box-shadow:inset 4px 0 0 var(--gold);font-weight:700;color:var(--navy);}
.pdf-item.rep-match .pdf-tag{background:var(--navy);}

/* 読替科目表：共通／専門／第二部の大区分枠 */
.rep-group{border:1px solid rgba(0,0,0,.12);border-radius:8px;padding:12px 14px;
  margin-bottom:14px;background:#fcfcfd;}
.rep-group:last-child{margin-bottom:0;}
.rep-group-title{font-size:14px;font-weight:700;color:var(--navy);margin:0 0 10px;
  padding-bottom:6px;border-bottom:1px solid rgba(0,0,0,.08);}
.rep-group .pdf-list:last-child{margin-bottom:0;}

/* ── お知らせ掲示板（全ページ共通） ── */
.news-board{
  position: relative; z-index: 2;
  margin: 0 0 16px;
  background: #f1f6fb;
  border: 1px solid #cfdded;
  box-shadow: 0 3px 12px rgba(12,20,48,.06);
  overflow: hidden;
}
.news-board-head{
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: #2c3a6b;
  border-bottom: 1px solid #1f2a52;
  color: #fff;
  font-size: 12.5px; font-weight: 700; letter-spacing: .14em;
}
.news-board-head::before{
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold);
}
.news-board-list{ list-style: none; margin: 0; padding: 4px 0; }
.news-board-list li{
  display: flex; align-items: baseline; gap: 12px;
  padding: 9px 16px;
}
.news-board-list li:not(:last-child){ border-bottom: 1px solid rgba(0,0,0,.06); }
.news-date{
  flex-shrink: 0;
  font-size: 12px; color: var(--hint);
  letter-spacing: .04em; font-variant-numeric: tabular-nums;
}
.news-board-list a{
  color: var(--navy);
  font-size: 13.5px; line-height: 1.6; font-weight: 500;
  text-decoration: none;
  transition: color .2s;
}
.news-board-list a:hover{ color: var(--accent); text-decoration: underline; }
/* 重要なお知らせ（赤ヘッダー変種） */
.news-board.is-alert .news-board-head{
  background: #97333f;
  border-bottom-color: rgba(0,0,0,.18);
}
.news-alert{ color: var(--accent); font-size: 13.5px; line-height: 1.6; font-weight: 700; }
@media (max-width: 520px){
  .news-board-list li{ flex-direction: column; gap: 2px; }
}
