/* ==========================================================
   日本女子体育大学 トップページ MOC 案A「ブランド・シーン型」
   code by Yuya Yamaguchi

   デザインコンセプト：写真の力でブランドの世界観を見せることを優先し、
   情報量を絞ったシンプルな構成にしている（多段ヘッダーや対象者別メニューは採用しない）。
   セクション番号（1.〜9.）はindex.php / header.php / footer.php内のHTMLコメントと対応。
   ========================================================== */

:root{
  --red: #d10000;
  --red-dark: #a80000;
  --ink: #1f1f1f;
  --ink-soft: #52504d;
  --bg: #ffffff;
  --bg-soft: #f7f6f3;
  --bg-soft2: #f1efe9;
  --line: #e4e1da;
  --alert-bg: #fdf3dd;
  --alert-border: #e0a100;
  --alert-ink: #8a5a00;
  --radius: 3px;
  --ff-jp: 'Noto Sans JP', sans-serif;
  --ff-en: 'Inter', sans-serif;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--ff-jp);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
h1,h2,h3,p{ margin: 0; }

.inner{
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

.sec-title{
  font-size: 26px;
  font-weight: 700;
  letter-spacing: .02em;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 32px;
}
.sec-title .en{
  font-family: var(--ff-en);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--red);
}

/* ============ 1. ヘッダー / メガメニュー ============ */
/* ト書き：常時1段構成。対象者別メニューは持たず、6カテゴリのメガメニューのみで導線を完結させる。 */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--line);
}
.header-bar{
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
  height: 76px;
  display: flex;
  align-items: center;
  gap: 36px;
}
.logo img{ height: 42px; width: auto; }

.mega-nav{ flex: 1; }
.mega-nav-top{
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: flex-start;
}
.mega-item{ position: relative; }
.mega-item > a{
  display: block;
  padding: 27px 16px;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: border-color .15s, color .15s;
}
.mega-item:hover > a{
  border-bottom-color: var(--red);
  color: var(--red-dark);
}

.mega-panel{
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 420px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  box-shadow: 0 16px 32px rgba(0,0,0,0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.mega-item:hover .mega-panel{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mega-panel-inner{
  display: flex;
  gap: 0;
}
.mega-panel-inner ul{
  flex: 1;
  padding: 18px 8px;
  min-width: 240px;
}
.mega-panel-inner li a{
  display: block;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius);
}
.mega-panel-inner li a:hover{
  background: var(--bg-soft);
  color: var(--red-dark);
}
.mega-panel-photo{
  width: 160px;
  flex-shrink: 0;
  overflow: hidden;
}
.mega-panel-photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-side{ flex-shrink: 0; }
.header-request{
  display: inline-block;
  padding: 11px 22px;
  background: var(--red);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius);
  transition: background .15s;
}
.header-request:hover{ background: var(--red-dark); }

/* ============ 重要なお知らせ（緊急告知バー） ============ */
/* ト書き：平常時は非表示にする運用を想定。告知が発生したときのみCMS側で表示をONにする。 */
.important-notice{
  background: var(--alert-bg);
  border-top: 1px solid var(--alert-border);
  border-bottom: 1px solid var(--alert-border);
}
.important-notice-inner{
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
  flex-wrap: wrap;
}
.important-notice-icon{
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--alert-border);
  color: #fff;
  font-family: var(--ff-en);
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.important-notice-body{
  flex: 1;
  min-width: 240px;
  font-size: 13.5px;
  color: var(--alert-ink);
  line-height: 1.6;
}
.important-notice-label{
  display: inline-block;
  font-weight: 700;
  margin-right: 10px;
  padding-right: 10px;
  border-right: 1px solid var(--alert-border);
}
.important-notice-link{
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--alert-ink);
  border-bottom: 1px solid var(--alert-ink);
  padding-bottom: 2px;
}
.important-notice-demo{
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px 10px;
  font-size: 11px;
  color: var(--alert-ink);
  opacity: .75;
}

/* ============ 2. ヒーロー ============ */
/* ト書き：4枚組の非対称コラージュ＋左下に重なるコピーカード。CTAボタンはあえて置かず、情緒的な訴求に専念させる。 */
.hero{
  position: relative;
  background: var(--bg-soft);
  padding: 56px 32px 64px;
}
.hero-collage{
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(2, 170px);
  gap: 12px;
}
.collage-item{ overflow: hidden; border-radius: var(--radius); }
.collage-item img{ width: 100%; height: 100%; object-fit: cover; }
.c1{ grid-column: 1 / 5; grid-row: 1 / 3; }
.c2{ grid-column: 5 / 8; grid-row: 1 / 2; }
.c3{ grid-column: 5 / 8; grid-row: 2 / 3; }
.c4{ grid-column: 8 / 13; grid-row: 1 / 3; }

.hero-copy{
  max-width: 1180px;
  margin: -40px auto 0;
  padding: 0 32px;
  position: relative;
}
.hero-copy::before{
  content: "";
  position: absolute;
  left: 32px;
  top: 0;
  width: 460px;
  height: calc(100% + 40px);
  background: rgba(255,255,255,0.94);
  z-index: 0;
  border-radius: var(--radius);
}
.hero-eyebrow, .hero-title, .hero-lead{ position: relative; z-index: 1; }
.hero-eyebrow{
  font-family: var(--ff-en);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .3em;
  color: var(--red);
  padding: 40px 40px 0;
}
.hero-title{
  font-size: 52px;
  font-weight: 900;
  line-height: 1.28;
  padding: 12px 40px 0;
  letter-spacing: .02em;
}
.hero-lead{
  font-size: 15px;
  color: var(--ink-soft);
  padding: 20px 40px 40px;
  max-width: 420px;
}

/* ============ 3. クイックCTA ============ */
/* ト書き：ヒーロー直下に独立配置。Open Campus／入試情報／資料請求の3導線を等価に並べ、離脱前に行動を促す。 */
.quick-cta{ padding: 0 32px 64px; margin-top: -12px; }
.quick-cta .inner{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 0;
  max-width: 1180px;
}
.cta-card{
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 26px 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: box-shadow .15s, transform .15s;
}
.cta-card:hover{
  box-shadow: 0 14px 28px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}
.cta-label{ font-size: 21px; font-weight: 700; }
.cta-sub{ font-size: 13px; color: var(--ink-soft); margin-bottom: 14px; }
.cta-arrow{ font-size: 13px; font-weight: 700; color: var(--red-dark); }
.cta-doc{ background: var(--red); color: #fff; border-color: var(--red); }
.cta-doc .cta-sub{ color: rgba(255,255,255,0.85); }
.cta-doc .cta-arrow{ color: #fff; }

/* ============ 4. NEWS ============ */
/* ト書き：ALL／大学から／受験生向けの3タブ切替（js/main.js）。写真付き4件のみ表示し、詳細は一覧ページへ誘導する。 */
.news{ padding: 20px 32px 76px; }
.sec-head{
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}
.sec-head .sec-title{ margin-bottom: 0; }
.news-tabs{ display: flex; gap: 8px; }
.tab{
  font-family: var(--ff-jp);
  font-size: 13px;
  font-weight: 700;
  padding: 9px 18px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  cursor: pointer;
  color: var(--ink-soft);
  transition: all .15s;
}
.tab.active, .tab:hover{
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.news-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.news-grid .thumb{
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 14px;
}
.news-grid .thumb img{ width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.news-grid a:hover .thumb img{ transform: scale(1.05); }
.news-grid .meta{ display: flex; gap: 10px; font-size: 12px; color: var(--ink-soft); margin-bottom: 8px; }
.news-grid .meta .date{ font-family: var(--ff-en); }
.news-grid .meta .cat{
  color: var(--red-dark);
  font-weight: 700;
  border-left: 2px solid var(--red);
  padding-left: 8px;
}
.news-grid .title{ font-size: 14.5px; font-weight: 500; line-height: 1.6; }
.list-link{ text-align: center; margin-top: 40px; }
.list-link a{ font-size: 14px; font-weight: 700; border-bottom: 1px solid var(--ink); padding-bottom: 3px; }

/* ============ 5. 学科紹介 ============ */
/* ト書き：写真1枚＋テキストリストの「Academics型」。ホバーで写真が切り替わることで学科を回遊しやすくする。 */
.academics{ padding: 20px 32px 80px; background: var(--bg-soft); }
.academics-body{
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 40px;
  align-items: stretch;
}
.academics-photo{
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.academics-photo img{ width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.academics-list{ display: flex; flex-direction: column; justify-content: center; }
.academics-list li{
  border-bottom: 1px solid var(--line);
}
.academics-list li a{
  display: flex;
  flex-direction: column;
  padding: 20px 8px;
  gap: 4px;
}
.academics-list li .dept-ja{ font-size: 19px; font-weight: 700; transition: color .15s; }
.academics-list li .dept-en{
  font-family: var(--ff-en);
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: .02em;
}
.academics-list li.is-active{ position: relative; }
.academics-list li.is-active::before{
  content: "";
  position: absolute;
  left: -8px;
  top: 14px;
  bottom: 14px;
  width: 4px;
  background: var(--red);
}
.academics-list li.is-active .dept-ja{ color: var(--red-dark); }

/* ============ 6. 数字で見るニチジョ ============ */
/* ト書き：実績数値5項目を並べ、体育大学としての信頼性・実績を端的に示すセクション。 */
.numbers{ padding: 76px 32px; }
.numbers-grid{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.numbers-grid li{
  padding: 30px 18px;
  border-right: 1px solid var(--line);
  text-align: center;
}
.numbers-grid li:last-child{ border-right: none; }
.numbers-grid .num{
  font-family: var(--ff-en);
  font-weight: 800;
  color: var(--red);
  margin-bottom: 12px;
  line-height: 1;
}
.numbers-grid .num span{ font-size: 34px; }
.numbers-grid .num i{ font-style: normal; color: var(--ink-soft); font-size: 20px; margin: 0 2px; }
.numbers-grid .label{ font-size: 12.5px; color: var(--ink-soft); line-height: 1.6; }

/* ============ 7. 特設サイト誘導 ============ */
/* ト書き：ダンス学科特設サイト・百周年記念館という、個別に力を入れたいコンテンツへの2カラムバナー。 */
.specials{ padding: 0 32px 80px; }
.specials-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.special-card{
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/8;
}
.special-card img{
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s;
}
.special-card:hover img{ transform: scale(1.04); }
.special-card::after{
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,0.62) 100%);
}
.special-label{
  position: absolute; left: 28px; bottom: 24px; z-index: 2;
  display: flex; flex-direction: column; gap: 4px;
}
.special-en{
  font-family: var(--ff-en);
  color: #f0c0c0;
  font-size: 12px; font-weight: 700; letter-spacing: .18em;
}
.special-ja{ color: #fff; font-size: 22px; font-weight: 700; }

/* ============ 8. クラブ活動 ============ */
/* ト書き：トップページ最後のセクション。写真グリッドで学生生活の活気を見せ、公式Instagramへ回遊させる。 */
.clubs{ padding: 20px 32px 88px; }
.ig-link{
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
}
.ig-link:hover{ border-color: var(--red); color: var(--red-dark); }
.clubs-lead{
  font-size: 13.5px;
  color: var(--ink-soft);
  margin: -18px 0 28px;
}
.club-grid{
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.club-item{
  position: relative;
  display: block;
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  overflow: hidden;
}
.club-item img{ width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.club-item:hover img{ transform: scale(1.06); }
.club-item::after{
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.68) 100%);
}
.club-item span{
  position: absolute; left: 10px; bottom: 10px; z-index: 2;
  color: #fff; font-size: 12.5px; font-weight: 700;
}

/* ============ 9. フッター ============ */
/* ト書き：1行のflexレイアウトで完結させ、他案にあるような多段フッターは採用しない（ミニマム方針）。 */
.site-footer{ background: var(--bg-soft2); border-top: 1px solid var(--line); }
.footer-top{
  padding: 48px 32px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-logo img{ height: 34px; }
.footer-nav ul{
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
}
.footer-nav a{ font-size: 13px; font-weight: 500; }
.footer-nav a:hover{ color: var(--red-dark); }
.footer-sns{ display: flex; gap: 14px; }
.footer-sns a{
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
}
.footer-sns a:hover{ background: var(--red); border-color: var(--red); color: #fff; }
.footer-bottom{
  padding: 18px 32px 28px;
  border-top: 1px solid var(--line);
}
.copyright{
  font-family: var(--ff-en);
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: .04em;
}

/* ============ レスポンシブ方針（簡易） ============ */
/* ト書き：MOC（比較検討用モック）のため、スマホ最適化は最小限。本実装時はブレークポイントを再設計する前提。 */
@media (max-width: 960px){
  .header-bar{ height: auto; flex-wrap: wrap; padding: 16px 20px; }
  .mega-nav{ order: 3; width: 100%; }
  .mega-nav-top{ flex-wrap: wrap; }
  .mega-panel{ position: static; opacity: 1; visibility: visible; transform: none; display: none; box-shadow: none; }
  .mega-item:hover .mega-panel{ display: block; }

  .hero{ padding: 32px 20px 40px; }
  .hero-collage{ grid-template-columns: 1fr; grid-template-rows: repeat(2, 200px); }
  .c1,.c2,.c3,.c4{ grid-column: 1; }
  .c1{ grid-row: 1; }
  .c4{ grid-row: 2; }
  .c2, .c3{ display: none; }
  .hero-copy{ margin-top: 20px; padding: 0 20px; }
  .hero-copy::before{ left: 20px; width: calc(100% - 40px); }
  .hero-title{ font-size: 34px; padding: 12px 24px 0; }
  .hero-eyebrow{ padding: 24px 24px 0; }
  .hero-lead{ padding: 16px 24px 24px; max-width: none; }

  .quick-cta .inner{ grid-template-columns: 1fr; }
  .news-grid{ grid-template-columns: repeat(2, 1fr); }
  .academics-body{ grid-template-columns: 1fr; }
  .numbers-grid{ grid-template-columns: repeat(2, 1fr); }
  .numbers-grid li{ border-right: none; border-bottom: 1px solid var(--line); }
  .specials-grid{ grid-template-columns: 1fr; }
  .club-grid{ grid-template-columns: repeat(3, 1fr); }
}
