/* =========================================================================
   上野研究室 ホームページ 共通スタイルシート
   北九州市立大学 国際環境工学部 建築デザイン学科
   -------------------------------------------------------------------------
   配色：ビビッドブルー (#0070FF) ／ 白 ／ 濃紺〜黒 (#0A1226)
   構成：
     1. 変数・リセット
     2. 共通レイアウト（コンテナ・セクション・見出し）
     3. ヘッダー・ナビゲーション（js/main.js から挿入される）
     4. フッター（js/main.js から挿入される）
     5. ボタン・タグ・テーブルなどの部品
     6. HOME（ヒーロー・NEWS・研究テーマ帯）
     7. 各ページ固有（アコーディオン・タイムライン・カード等）
     8. アニメーション
     9. レスポンシブ
   ========================================================================= */

/* ======================== 1. 変数・リセット ======================== */
:root {
  --c-blue:        #0070FF;   /* メインの電光ブルー */
  --c-blue-bright: #33A0FF;   /* 明るい青（ダーク背景上のアクセント） */
  --c-blue-deep:   #0052CC;   /* 濃い青（ホバー等） */
  --c-dark:        #0A1226;   /* 濃紺（ダークセクション背景） */
  --c-dark-2:      #101E42;   /* 濃紺の明るめ（カード等） */
  --c-white:       #FFFFFF;
  --c-text:        #17202E;   /* 本文の黒 */
  --c-text-sub:    #5A6A80;   /* 補足テキストのグレー */
  --c-bg-gray:     #F2F6FB;   /* 薄い青グレー背景 */
  --c-line:        #D8E2EF;   /* 罫線 */

  --font-sans: "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans",
               "BIZ UDPGothic", "Yu Gothic UI", Meiryo, sans-serif;

  --header-h: 72px;
  --angle: 5vw;               /* 斜め区切りの深さ */
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  font-family: var(--font-sans);
  color: var(--c-text);
  background: var(--c-white);
  line-height: 1.85;
  font-size: 16px;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { list-style: none; }

/* ======================== 2. 共通レイアウト ======================== */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.section { padding: 88px 0; }
.section--gray { background: var(--c-bg-gray); }

/* 濃紺のダークセクション（上下が斜めに切れる） */
.section--dark {
  background: var(--c-dark);
  color: var(--c-white);
  clip-path: polygon(0 var(--angle), 100% 0, 100% calc(100% - var(--angle)), 0 100%);
  padding: calc(var(--angle) + 72px) 0 calc(var(--angle) + 72px);
}
.section--dark a { color: var(--c-blue-bright); }

/* セクション見出し：英語大見出し＋日本語サブ */
.sec-title { margin-bottom: 44px; }
.sec-title .en {
  display: table; /* 内容幅にフィットさせる（青帯が文字の上だけを通るように） */
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}
.sec-title .ja {
  display: inline-block;
  margin-top: 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--c-blue);
  padding-left: 42px;
  position: relative;
}
.sec-title .ja::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 32px; height: 3px;
  background: var(--c-blue);
  transform: translateY(-50%) skewX(-20deg);
}
.section--dark .sec-title .ja { color: var(--c-blue-bright); }
.section--dark .sec-title .ja::before { background: var(--c-blue-bright); }

/* 見出しアニメーション：斜めに傾いた青い帯が数秒おきに文字の上を
   左→右へ通過し、帯に重なった文字だけ「青地×白抜き」に反転する。
   （反転用の複製テキストは js/main.js が data-text 属性として自動生成。
     JSが無効な環境では data-text が付かず、通常の見出し表示になる） */
.sec-title .en,
.page-hero__en {
  position: relative;
}
.sec-title .en[data-text]::after,
.page-hero__en[data-text]::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: var(--c-white);
  background: var(--c-blue);
  /* 斜めの帯（平行四辺形）で切り抜く。初期位置は左外 */
  clip-path: polygon(-14% 0, -2% 0, -14% 100%, -26% 100%);
  animation: bandSweep 28s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  pointer-events: none;
}
@keyframes bandSweep {
  0%   { clip-path: polygon(-14% 0, -2% 0, -14% 100%, -26% 100%); }   /* 左外に待機 */
  25%  { clip-path: polygon(112% 0, 124% 0, 112% 100%, 100% 100%); }  /* 左→右へ静かに通過（約7秒） */
  100% { clip-path: polygon(112% 0, 124% 0, 112% 100%, 100% 100%); }  /* 約21秒の静止をはさんで繰り返し */
}
@media (prefers-reduced-motion: reduce) {
  .sec-title .en[data-text]::after,
  .page-hero__en[data-text]::after { animation: none; visibility: hidden; }
}

/* 小見出し（h3クラス） */
.sub-title {
  font-size: 22px;
  font-weight: 800;
  margin: 48px 0 20px;
  padding-left: 14px;
  border-left: 5px solid var(--c-blue);
  line-height: 1.4;
}
.sub-title .en-small { font-size: 13px; font-weight: 600; color: var(--c-text-sub); margin-left: 10px; }

.lead { font-size: 16.5px; margin-bottom: 28px; }
.note { font-size: 13.5px; color: var(--c-text-sub); }

/* 「準備中」のダミーテキスト表示 */
.tbd { color: #9AA8BC; font-style: italic; }

/* 下層ページ共通のタイトル帯（濃紺・下辺が斜め） */
.page-hero {
  background:
    linear-gradient(105deg, rgba(10, 18, 38, 0.96) 40%, rgba(0, 82, 204, 0.55)),
    var(--c-dark) url("../images/illustrations/hero_bg.svg") center / cover no-repeat;
  color: var(--c-white);
  padding: calc(var(--header-h) + 80px) 0 calc(var(--angle) + 56px);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--angle)), 0 100%);
}
.page-hero__en {
  display: table; /* 内容幅にフィットさせる（青帯が文字の上だけを通るように） */
  font-size: clamp(34px, 5.5vw, 58px);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.15;
}
.page-hero__ja { margin-top: 12px; font-size: 15px; color: var(--c-blue-bright); font-weight: 700; }

/* テキストと画像を半々に置く2カラム */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split__img img {
  width: 100%;
  border: 1px solid var(--c-line);
  background: var(--c-bg-gray); /* 仮画像（背景透過SVG）の下地色。実写真では見えない */
}

/* ======================== 3. ヘッダー・ナビゲーション ======================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(10, 18, 38, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--c-blue), transparent 70%) 1;
  transition: background 0.3s;
}
.site-header.is-scrolled { background: rgba(10, 18, 38, 0.98); }

.site-header__inner {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none !important; }
.brand__mark {
  width: 40px; height: 40px; flex: none;
  background: var(--c-blue);
  color: var(--c-white);
  font-weight: 800;
  font-size: 22px;
  display: grid; place-items: center;
  clip-path: polygon(0 0, 100% 0, 100% 78%, 78% 100%, 0 100%);
}
.brand__text { line-height: 1.3; }
.brand__en { display: block; color: var(--c-white); font-weight: 800; font-size: 16px; letter-spacing: 0.06em; }
.brand__ja { display: block; color: #A9BAD6; font-size: 10.5px; }

.gnav__list { display: flex; gap: 4px; }
.gnav__list a {
  display: block;
  padding: 10px 14px;
  color: var(--c-white);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.06em;
  position: relative;
  text-decoration: none !important;
  transition: color 0.25s;
}
.gnav__list a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px;
  background: var(--c-blue-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}
.gnav__list a:hover { color: var(--c-blue-bright); }
.gnav__list a:hover::after,
.gnav__list a.is-active::after { transform: scaleX(1); }
.gnav__list a.is-active { color: var(--c-blue-bright); }

/* ハンバーガーボタン（モバイル） */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: none; border: none; cursor: pointer;
  position: relative;
  z-index: 110;
}
.nav-toggle span {
  position: absolute;
  left: 10px; right: 10px;
  height: 2px;
  background: var(--c-white);
  transition: transform 0.3s, opacity 0.3s, top 0.3s;
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ======================== 4. フッター ======================== */
.site-footer {
  background: var(--c-dark);
  color: var(--c-white);
  margin-top: 96px;
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--c-blue), var(--c-blue-bright), transparent);
}
.site-footer__inner { padding: 56px 24px 28px; max-width: 1120px; margin: 0 auto; }
.site-footer__name { font-size: 18px; font-weight: 800; letter-spacing: 0.04em; }
.site-footer__name-ja { font-size: 13px; color: #A9BAD6; margin-top: 4px; }
.site-footer__addr { font-size: 13px; color: #A9BAD6; margin-top: 16px; line-height: 1.9; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-top: 24px; }
.site-footer__nav a { color: var(--c-white); font-size: 12.5px; font-weight: 700; letter-spacing: 0.05em; }
.site-footer__nav a:hover { color: var(--c-blue-bright); text-decoration: none; }
.site-footer__copy {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 11.5px;
  color: #7C8CA5;
  letter-spacing: 0.04em;
}

/* ======================== 5. 部品（ボタン・タグ・テーブル） ======================== */
/* ボタン：通常＝青地→ホバーで白地に色反転 */
.btn {
  display: inline-block;
  background: var(--c-blue);
  color: var(--c-white) !important;
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.05em;
  padding: 14px 36px;
  border: 2px solid var(--c-blue);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
  transition: background 0.25s, color 0.25s, transform 0.25s, box-shadow 0.25s;
  text-decoration: none !important;
  cursor: pointer;
}
.btn:hover {
  background: var(--c-white);
  color: var(--c-blue) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 112, 255, 0.3);
}
/* 白抜きボタン（ダーク背景用）：ホバーで青地に反転 */
.btn--outline {
  background: transparent;
  color: var(--c-white) !important;
  border-color: var(--c-white);
}
.btn--outline:hover {
  background: var(--c-blue);
  border-color: var(--c-blue);
  color: var(--c-white) !important;
}

/* NEWSタグ */
.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 12px;
  color: var(--c-white);
  background: var(--c-blue);
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.tag--announcements { background: var(--c-dark); }

/* テーブル共通 */
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.data-table th, .data-table td {
  padding: 14px 18px;
  border: 1px solid var(--c-line);
  text-align: left;
  vertical-align: top;
}
.data-table thead th {
  background: var(--c-dark);
  color: var(--c-white);
  font-weight: 700;
  letter-spacing: 0.05em;
  border-color: var(--c-dark-2);
}
.data-table tbody tr:nth-child(even) { background: var(--c-bg-gray); }
.data-table tbody tr { transition: background 0.2s; }
.data-table tbody tr:hover { background: #E3EEFF; }
.data-table .month { white-space: nowrap; font-weight: 800; color: var(--c-blue); }
.data-table .en-note { display: block; font-size: 12.5px; color: var(--c-text-sub); }

/* --- HOME Welcome：年度別集合写真 --- */
.year-photo__frame {
  border: 1px solid var(--c-line);
  border-top: 4px solid var(--c-blue);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--c-bg-gray);
}
.year-photo__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s;
}
.year-photo__frame img.is-fading { opacity: 0; }
/* 年度ボタンの列：年度が何十年分増えても横スクロールで選べる */
.year-tabs {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--c-blue) var(--c-bg-gray);
}
.year-tabs::-webkit-scrollbar { height: 6px; }
.year-tabs::-webkit-scrollbar-track { background: var(--c-bg-gray); }
.year-tabs::-webkit-scrollbar-thumb { background: var(--c-blue); }
.year-tab {
  flex: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 8px 20px;
  background: var(--c-white);
  color: var(--c-blue);
  border: 2px solid var(--c-blue);
  cursor: pointer;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
  transition: background 0.25s, color 0.25s, transform 0.25s;
}
.year-tab:hover { background: #E3EEFF; transform: translateY(-2px); }
.year-tab.is-active { background: var(--c-blue); color: var(--c-white); }
.year-photo .note { margin-top: 8px; }

/* ======================== 6. HOME ======================== */
/* ファーストビュー：フルスクリーン。集合写真(jpg)が無い間はSVG都市イラストを表示 */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: var(--c-white);
  position: relative;
  background:
    linear-gradient(100deg, rgba(8, 13, 30, 0.82) 30%, rgba(8, 13, 30, 0.45) 70%, rgba(0, 112, 255, 0.25)),
    url("../images/photos/team_photo_main.jpg") center / cover no-repeat,
    url("../images/illustrations/hero_bg.svg") center / cover no-repeat,
    var(--c-dark);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--angle)), 0 100%);
  padding: calc(var(--header-h) + 40px) 0 calc(var(--angle) + 64px);
}
.hero__inner { position: relative; z-index: 2; }
.hero__lab {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--c-blue-bright);
  border: 1px solid var(--c-blue-bright);
  padding: 6px 16px;
  margin-bottom: 24px;
}
.hero__title {
  font-size: clamp(44px, 8vw, 96px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.hero__title .accent { color: var(--c-blue-bright); }
.hero__sub {
  margin-top: 20px;
  font-size: clamp(15px, 2vw, 20px);
  font-weight: 700;
  letter-spacing: 0.06em;
}
.hero__ja { margin-top: 10px; font-size: 14px; color: #C6D4EA; }
.hero__btns { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 16px; }

/* スクロール誘導 */
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: calc(var(--angle) + 18px);
  transform: translateX(-50%);
  font-size: 10.5px;
  letter-spacing: 0.3em;
  color: #C6D4EA;
  text-transform: uppercase;
  padding-bottom: 44px;
}
.hero__scroll::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  width: 1px; height: 36px;
  background: var(--c-blue-bright);
  animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  45%  { transform: scaleY(1); transform-origin: top; }
  55%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* NEWSカード（クリックでポップアップ表示） */
.news-date {
  font-weight: 800;
  font-size: 14.5px;
  color: var(--c-blue);
  letter-spacing: 0.04em;
  font-feature-settings: "tnum";
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}
.news-card {
  background: var(--c-white);
  border: 1px solid var(--c-line);
  cursor: pointer;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}
.news-card:hover,
.news-card:focus-visible {
  transform: translateY(-8px);
  box-shadow: 0 18px 36px rgba(10, 18, 38, 0.16);
}
.news-card.is-hidden { display: none; } /* 4件目以降はMOREボタンで表示（JSが自動制御） */
.news-card__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--c-bg-gray); }
.news-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.news-card:hover .news-card__img img { transform: scale(1.05); }
.news-card__body { padding: 18px 20px 48px; }
.news-card__meta { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.news-card__title { font-size: 16px; font-weight: 700; line-height: 1.7; }
.news-card__detail { display: none; } /* ポップアップ用の本文。カード上には出さない */
.news-card__arrow {
  position: absolute;
  right: 20px; bottom: 14px;
  font-size: 20px;
  font-weight: 700;
  color: var(--c-text);
  transition: transform 0.25s, color 0.25s;
}
.news-card:hover .news-card__arrow { transform: translateX(6px); color: var(--c-blue); }
.news-more-wrap { text-align: center; margin-top: 44px; }

/* NEWS詳細ポップアップ（モーダル） */
.news-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
}
.news-modal[hidden] { display: none; }
.news-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 38, 0.72);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.news-modal__panel {
  position: relative;
  background: var(--c-white);
  width: min(640px, 100%);
  max-height: 85vh;
  overflow-y: auto;
  border-top: 5px solid var(--c-blue);
  padding-bottom: 34px;
  animation: modalIn 0.3s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}
.news-modal__close {
  position: absolute;
  top: 12px; right: 12px;
  width: 40px; height: 40px;
  background: var(--c-dark);
  color: var(--c-white);
  border: none;
  font-size: 16px;
  cursor: pointer;
  z-index: 2;
  transition: background 0.25s, transform 0.25s;
}
.news-modal__close:hover { background: var(--c-blue); transform: rotate(90deg); }
.news-modal__content > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.news-modal__text { padding: 22px 30px 0; }
.news-modal__title { font-size: 20px; font-weight: 800; line-height: 1.6; margin: 10px 0 14px; }
.news-modal__detail { font-size: 15px; }
@media (prefers-reduced-motion: reduce) {
  .news-modal__panel { animation: none; }
}

/* 研究テーマ帯（HOMEのダークセクション内アイコングリッド） */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.theme-grid__item {
  background: var(--c-dark-2);
  border: 1px solid rgba(0, 112, 255, 0.35);
  padding: 28px 20px;
  text-align: center;
  color: var(--c-white);
  text-decoration: none !important;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
  transition: transform 0.25s, border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.theme-grid__item:hover {
  transform: translateY(-6px);
  border-color: var(--c-blue-bright);
  background: #14295E;
  box-shadow: 0 14px 30px rgba(0, 112, 255, 0.35);
}
.theme-grid__item img {
  width: 72px; height: 72px;
  margin: 0 auto 14px;
  background: var(--c-white);
  border-radius: 50%;
  padding: 12px;
}
.theme-grid__item p { font-size: 13.5px; font-weight: 700; line-height: 1.6; }

/* ======================== 7. 各ページ固有 ======================== */
/* --- INFORMATION：研究テーマのアコーディオン --- */
.accordion { border-top: 2px solid var(--c-dark); }
.accordion__item { border-bottom: 1px solid var(--c-line); }
.accordion__btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 56px 22px 8px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--c-text);
  text-align: left;
  position: relative;
  transition: color 0.25s, background 0.25s;
}
.accordion__btn:hover { color: var(--c-blue); background: var(--c-bg-gray); }
.accordion__num {
  flex: none;
  font-size: 13px;
  font-weight: 800;
  color: var(--c-blue);
  letter-spacing: 0.05em;
}
.accordion__icon { flex: none; width: 44px; height: 44px; }
.accordion__cat { display: block; font-size: 12px; font-weight: 600; color: var(--c-text-sub); }
/* 開閉の＋印 */
.accordion__btn::before,
.accordion__btn::after {
  content: "";
  position: absolute;
  right: 20px; top: 50%;
  width: 16px; height: 2px;
  background: var(--c-blue);
  transition: transform 0.3s;
}
.accordion__btn::after { transform: rotate(90deg); }
.accordion__btn[aria-expanded="true"]::after { transform: rotate(0deg); }
.accordion__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.accordion__panel-inner {
  padding: 4px 8px 26px 70px;
  font-size: 15px;
  color: var(--c-text-sub);
}
/* 研究テーマの紹介図（ポンチ絵） */
.accordion__panel-inner .theme-figure {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 18px;
  border: 1px solid #e5e9f0;
  border-radius: 8px;
}

/* --- PROFILE：略歴タイムライン --- */
.timeline { position: relative; padding-left: 34px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 8px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--c-blue), var(--c-line));
}
.timeline li { position: relative; padding-bottom: 22px; list-style: none; }
.timeline li::before {
  content: "";
  position: absolute;
  box-sizing: border-box;
  left: -31px; top: 9px;
  width: 12px; height: 12px;
  background: var(--c-white);
  border: 3px solid var(--c-blue);
  transform: rotate(45deg);
}
.timeline .year { font-weight: 800; color: var(--c-blue); margin-right: 14px; font-size: 17px; }
.timeline .en-note { display: block; font-size: 12.5px; color: var(--c-text-sub); }

/* メッセージ本文 */
.message-body p { margin-bottom: 1.4em; }

/* --- MEMBERS：メンバーカード --- */
.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}
.member-card {
  --card-c: var(--c-blue); /* パーソナルカラー（下の10色クラスで上書き） */
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-top: 4px solid var(--card-c);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
/* メンバーカードのパーソナルカラー12色
   使い方：<article class="member-card member-card--red"> のように
   2つ目のクラス名を差し替える（見本は color-samples.html を参照） */
.member-card--blue   { --card-c: #0070FF; } /* ブルー（サイト基調色） */
.member-card--sky    { --card-c: #00A7E1; } /* スカイ */
.member-card--red    { --card-c: #E60033; } /* レッド */
.member-card--pink   { --card-c: #FF4D8D; } /* ピンク */
.member-card--orange { --card-c: #FF7A00; } /* オレンジ */
.member-card--yellow { --card-c: #F5B700; } /* イエロー */
.member-card--green  { --card-c: #00A356; } /* グリーン */
.member-card--teal   { --card-c: #00B8A9; } /* ティール */
.member-card--purple { --card-c: #7C3AED; } /* パープル */
.member-card--navy   { --card-c: #2E3A8C; } /* ネイビー */
.member-card--lime   { --card-c: #7FB800; } /* ライム */
.member-card--silver { --card-c: #6B7A90; } /* シルバー */
.member-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 36px rgba(10, 18, 38, 0.16);
}
.member-card__photo { aspect-ratio: 3 / 4; overflow: hidden; background: var(--c-bg-gray); }
/* 写真が未配置の間は、写真エリアをパーソナルカラーの淡いグラデーションで塗る。
   上端ほど色を濃くして、カード上端のカラーラインから自然につながるように。
   （実写真を置くと写真がエリア全体を覆うため、この下地は見えなくなる） */
@supports (background: color-mix(in srgb, #fff 50%, #000)) {
  .member-card__photo {
    background: linear-gradient(170deg,
      color-mix(in srgb, var(--card-c) 42%, #fff) 0%,
      color-mix(in srgb, var(--card-c) 12%, #fff) 55%,
      color-mix(in srgb, var(--card-c) 28%, #fff) 100%);
  }
}
.member-card__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.member-card:hover .member-card__photo img { transform: scale(1.05); }
.member-card__body { position: relative; padding: 20px 22px 24px; }
.member-card__name { font-size: 19px; font-weight: 800; }
/* 英語氏名の斜め帯（写真と本文の境目に、左下→右上の傾きで表示） */
.member-card__name-en {
  position: absolute;
  top: -14px;
  left: 12px;
  padding: 6px 20px;
  background: var(--card-c);
  color: #fff;
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: rotate(-6deg);
  box-shadow: 0 3px 8px rgba(10, 18, 38, 0.18);
  white-space: nowrap;
}
/* 帯と重ならないよう日本語氏名を少し下げる */
.member-card__name-en + .member-card__name { margin-top: 12px; }
/* 白字が見えにくい2色（イエロー・ライム）のみ濃色文字に切替 */
.member-card--yellow .member-card__name-en,
.member-card--lime .member-card__name-en { color: #1a1a1a; }
.member-card__role { font-size: 12px; font-weight: 700; color: var(--card-c); letter-spacing: 0.06em; margin-bottom: 14px; }
.member-card__dl { font-size: 13.5px; }
.member-card__dl dt {
  font-weight: 700;
  color: var(--card-c);
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.03em;
}
.member-card__dl dd { line-height: 1.7; }

/* --- CONTACT：地図プレースホルダー --- */
.map-placeholder {
  border: 1px solid var(--c-line);
  background:
    repeating-linear-gradient(45deg, #EDF2F9 0 14px, #F6F9FD 14px 28px);
  aspect-ratio: 16 / 7;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--c-text-sub);
  font-size: 14px;
  margin-top: 24px;
}
.map-placeholder .pin { font-size: 40px; display: block; margin-bottom: 8px; color: var(--c-blue); }

/* お問い合わせ・留学案内の囲みボックス */
.info-box {
  border: 2px solid var(--c-blue);
  background: var(--c-white);
  padding: 36px 40px;
  position: relative;
}
.info-box::before {
  content: "";
  position: absolute;
  top: -2px; left: -2px;
  border-style: solid;
  border-width: 26px 26px 0 0;
  border-color: var(--c-blue) transparent transparent transparent;
}

/* --- TO-APPLICANT：英語ページの条件リスト --- */
.check-list li {
  position: relative;
  padding: 8px 0 8px 34px;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 4px; top: 17px;
  width: 12px; height: 7px;
  border-left: 3px solid var(--c-blue);
  border-bottom: 3px solid var(--c-blue);
  transform: rotate(-45deg);
}

/* --- LINK：リンク集 --- */
.link-group { margin-bottom: 12px; }
.link-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.link-list a {
  display: block;
  padding: 16px 20px;
  border: 1px solid var(--c-line);
  border-left: 4px solid var(--c-blue);
  color: var(--c-text);
  font-weight: 700;
  font-size: 14.5px;
  background: var(--c-white);
  text-decoration: none !important;
  transition: background 0.25s, color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.link-list a:hover {
  background: var(--c-blue);
  color: var(--c-white);
  transform: translateX(6px);
  box-shadow: 0 8px 20px rgba(0, 112, 255, 0.25);
}
/* リンク未設定（href="#" のまま）のカードは、青ではなく黒背景×白文字の
   別ホバーになる。実URLに書き換えると自動的に青のホバーに切り替わる */
.link-list a[href="#"] { cursor: default; }
.link-list a[href="#"]:hover {
  background: var(--c-dark);
  border-left-color: var(--c-dark);
  color: var(--c-white);
  transform: none;
  box-shadow: none;
}
.link-list a[href="#"]::after {
  content: "URL準備中";
  float: right;
  font-size: 10.5px;
  font-weight: 400;
  opacity: 0;
  transition: opacity 0.25s;
}
.link-list a[href="#"]:hover::after { opacity: 0.7; }
.link-list .link-sub { display: block; font-size: 11.5px; font-weight: 400; opacity: 0.7; }
.link-cat {
  font-size: 14px;
  font-weight: 800;
  color: var(--c-blue);
  margin: 26px 0 12px;
  letter-spacing: 0.04em;
}

/* ======================== 8. アニメーション（スクロールで出現） ======================== */
/* JSが有効な場合のみ .reveal を非表示から開始（JS無効環境でも内容が見えるように） */
html.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
html.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll::after { animation: none; }
}

/* ======================== 9. レスポンシブ ======================== */
@media (max-width: 960px) {
  /* ナビをハンバーガー＋ドロワーに切り替え */
  .nav-toggle { display: block; }
  .gnav {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(320px, 82vw);
    background: var(--c-dark);
    padding: calc(var(--header-h) + 24px) 28px 40px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    z-index: 105;
    overflow-y: auto;
  }
  .gnav.is-open { transform: translateX(0); box-shadow: -12px 0 40px rgba(0, 0, 0, 0.4); }
  .gnav__list { flex-direction: column; gap: 0; }
  .gnav__list a {
    font-size: 16px;
    padding: 16px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .gnav__list a::after { display: none; }

  .split { grid-template-columns: 1fr; gap: 32px; }
  .brand__en { font-size: 14px; }
  .brand__ja { font-size: 9.5px; }
}

@media (max-width: 600px) {
  body { font-size: 15px; }
  .section { padding: 64px 0; }
  .container { padding: 0 18px; }
  .info-box { padding: 26px 22px; }
  .accordion__panel-inner { padding-left: 8px; }
  .accordion__icon { width: 36px; height: 36px; }
  .member-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .member-card__body { padding: 14px 14px 18px; }
  .member-card__name { font-size: 16px; }
  .member-card__name-en { font-size: 11.5px; padding: 5px 14px; top: -11px; left: 8px; }
  .hero__btns .btn { width: 100%; text-align: center; }
}

@media (max-width: 430px) {
  .member-grid { grid-template-columns: 1fr; }
}
