/* =======================================================
   OPT Lab — 共通スタイルシート（統合版）
   メインサイトと個人ページの両方で使用するスタイル．
   両サイトの css/ フォルダに同じファイルとしてアップロード．
   ======================================================= */

/* noto-sans-jp-300 - japanese_latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Noto Sans JP';
  font-style: normal;
  font-weight: 300;
  src: url('../fonts/noto-sans-jp-v56-japanese_latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* noto-sans-jp-regular - japanese_latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Noto Sans JP';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/noto-sans-jp-v56-japanese_latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* noto-sans-jp-500 - japanese_latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Noto Sans JP';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/noto-sans-jp-v56-japanese_latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* noto-sans-jp-700 - japanese_latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Noto Sans JP';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/noto-sans-jp-v56-japanese_latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* outfit-300 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300;
  src: url('../fonts/outfit-v15-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* outfit-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/outfit-v15-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* outfit-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/outfit-v15-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* outfit-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/outfit-v15-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

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

:root {
  --color-bg: #fafafa;
  --color-text: #2a2a2a;
  --color-text-sub: #666;
  --color-accent: #2563a0;
  --color-accent-light: #e8f0f8;
  --color-border: #ddd;
  --color-header-bg: rgba(255,255,255,0.92);
  --font-ja: 'Noto Sans JP', sans-serif;
  --font-en: 'Outfit', sans-serif;
  --content-max: 960px;
  --header-h: 64px;
}

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

body {
  font-family: var(--font-ja);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.85;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

/* ===== Canvas Background ===== */
#network-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: var(--color-header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
}

.header-logo {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 22px;
  color: var(--color-text);
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-decoration: none;
}
.header-logo span { color: var(--color-accent); }

/* Logo eyes */
.logo-o {
  position: relative;
  display: inline-block;
  color: var(--color-accent);
}
.logo-eye {
  position: absolute;
  width: 2px; height: 4px;
  background: var(--color-accent);
  border-radius: 50%;
  pointer-events: none;
  transition: transform 0.1s ease-out;
}
.logo-eye-l { top: 18px; left: 6px; }
.logo-eye-r { top: 18px; right: 6px; }

.header-nav { display: flex; gap: 4px; }
.header-nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-sub);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.header-nav a:hover {
  color: var(--color-accent);
  background: var(--color-accent-light);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px; height: 32px;
  cursor: pointer;
  background: none; border: none;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h); left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 18px;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 8px;
  transition: background 0.2s;
}
.mobile-nav a:hover { background: var(--color-accent-light); }

/* ===== Main Content ===== */
.main-content { position: relative; z-index: 1; }

/* ===== Footer ===== */
.site-footer {
  text-align: center;
  padding: 32px 24px;
  font-size: 12px;
  color: var(--color-text-sub);
  border-top: 1px solid var(--color-border);
  background: rgba(255,255,255,0.7);
  position: relative;
  z-index: 1;
}

/* ===== Member Table ===== */
.member-table { width: 100%; border-collapse: collapse; }
.member-table td {
  padding: 10px 16px;
  font-size: 14px;
  border-bottom: 1px solid #eee;
  vertical-align: top;
}
.member-table td:first-child {
  font-weight: 500;
  white-space: nowrap;
  width: 160px;
}
.member-table td:last-child { color: var(--color-text-sub); }

.member-link {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
}
.member-link:hover { text-decoration: underline; }


/* =======================================================
   メインサイト：トップページ (index.html) 固有
   ======================================================= */

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
}

.hero-affiliation {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-sub);
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.hero-title {
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}
.hero-title .title-sub {
  display: block;
  font-size: clamp(16px, 2.8vw, 22px);
  font-weight: 400;
  color: var(--color-text-sub);
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.hero-title .title-main {
  display: block;
  font-size: clamp(32px, 5.5vw, 52px);
}

.hero-title-en {
  font-family: var(--font-en);
  font-size: clamp(12px, 1.8vw, 15px);
  font-weight: 300;
  color: var(--color-text-sub);
  letter-spacing: 0.12em;
  margin-bottom: 32px;
}

.hero-lead {
  font-size: 15px;
  color: var(--color-text-sub);
  max-width: 560px;
  line-height: 2;
}

/* ===== Section Common ===== */
.section { padding: 80px 24px; }
.section:nth-child(even) { background: rgba(255,255,255,0.6); }

.section-inner {
  max-width: var(--content-max);
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 6px;
}

.section-title-ja {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 40px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--color-accent);
  display: inline-block;
}

.section p {
  font-size: 15px;
  color: var(--color-text-sub);
  line-height: 2;
  margin-bottom: 16px;
}

/* ===== Research ===== */
.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.research-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 28px 24px;
  transition: box-shadow 0.25s, border-color 0.25s, transform 0.2s;
}
.research-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.research-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--color-text);
}
.research-card p { font-size: 14px; margin-bottom: 0; color: var(--color-text-sub); }

.research-card .card-more {
  display: inline-block;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-accent);
}
.research-card .card-more::after { content: ' →'; }

.research-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  background: var(--color-accent-light);
  color: var(--color-accent);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 14px;
}

/* ===== Admission (トップのボックス) ===== */
.admission-box {
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 32px;
  margin-top: 24px;
}
.admission-box h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}

.admission-list {
  list-style: none;
  padding: 0;
}
.admission-list li {
  font-size: 14px;
  color: var(--color-text-sub);
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  padding-left: 16px;
  position: relative;
}
.admission-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 6px; height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
  transform: translateY(-50%);
}

.link-btn {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-accent);
  text-decoration: none;
  padding: 10px 24px;
  border: 1px solid var(--color-accent);
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.link-btn:hover {
  background: var(--color-accent);
  color: #fff;
}
.link-btn::after { content: ' →'; }

/* ===== Members (トップ) ===== */
.member-group { margin-bottom: 36px; }
.member-group h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}

.alumni-link { margin-top: 8px; }

/* ===== Publications (Accordion) ===== */
.pub-year-header {
  font-family: var(--font-en);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-accent);
  margin-top: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}
.pub-year-header:first-of-type { margin-top: 0; }
.pub-year-header:hover { color: var(--color-text); }

.pub-year-header .toggle-icon {
  font-size: 14px;
  transition: transform 0.3s;
  color: var(--color-text-sub);
}
.pub-year-header.open .toggle-icon {
  transform: rotate(180deg);
}

.pub-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.pub-body.open { max-height: 2000px; }

.pub-list { list-style: none; padding: 0; }
.pub-list li {
  font-size: 14px;
  color: var(--color-text-sub);
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  line-height: 1.75;
}
.pub-list li strong { color: var(--color-text); font-weight: 500; }

.pub-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 4px;
  margin-right: 8px;
  vertical-align: middle;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.pub-label.journal   { background: #e0f0e8; color: #1a7a4a; }
.pub-label.intl-conf { background: #e3ecf8; color: #2a5ea8; }
.pub-label.domestic  { background: #f0eadc; color: #8a6d2e; }

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}

.contact-card {
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 28px 24px;
}
.contact-card h3 { font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.contact-card p { font-size: 14px; margin-bottom: 6px; }
.contact-card a { color: var(--color-accent); text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }


/* =======================================================
   サブページ共通
   （メイン：admission/alumni/collaboration/research_*
    個人：index/papers）
   ======================================================= */

.page-header {
  padding: calc(var(--header-h) + 48px) 24px 48px;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
  background: rgba(255,255,255,0.5);
}

.page-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  background: var(--color-accent-light);
  color: var(--color-accent);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
  font-family: var(--font-en);
  letter-spacing: 0.04em;
}

.page-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
}
.page-title small {
  font-size: 50%;
  font-weight: 400;
  color: var(--color-text-sub);
}
.page-title-en {
  font-family: var(--font-en);
  font-size: clamp(12px, 1.6vw, 14px);
  font-weight: 300;
  color: var(--color-text-sub);
  letter-spacing: 0.1em;
}

.content-section {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 56px 24px;
}
.content-section h2 {
  font-size: 20px;
  font-weight: 700;
  margin-top: 48px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-accent);
  display: table;
}
.content-section h2:first-of-type { margin-top: 0; }
.content-section h3 {
  font-size: 16px;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 12px;
}
.content-section p {
  font-size: 15px;
  color: var(--color-text-sub);
  line-height: 2;
  margin-bottom: 16px;
}
.content-section ul { list-style: none; padding: 0; }
.content-section ul li {
  font-size: 14px;
  color: var(--color-text-sub);
  padding: 6px 0;
  padding-left: 16px;
  position: relative;
}
.content-section ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 6px; height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
  transform: translateY(-50%);
}

.content-figure {
  margin: 32px 0;
  padding: 32px;
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  text-align: center;
  color: var(--color-text-sub);
  font-size: 14px;
}

.back-link {
  display: inline-block;
  margin-top: 32px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-accent);
  text-decoration: none;
  padding: 10px 24px;
  border: 1px solid var(--color-accent);
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.back-link:hover {
  background: var(--color-accent);
  color: #fff;
}
.back-link::before { content: '← '; }


/* =======================================================
   個人ページ (~suzuki/index.html, ~suzuki/papers.html) 固有
   ======================================================= */

/* index.html：English version へのリンク */
.page-header-lang { font-size: 13px; }
.page-header-lang a { color: var(--color-accent); text-decoration: none; }
.page-header-lang a:hover { text-decoration: underline; }

/* index.html：プロフィールカード（顔写真と所属） */
.profile-card {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  margin-bottom: 32px;
}
.profile-photo {
  width: 120px;
  height: auto;
  border-radius: 8px;
  flex-shrink: 0;
}
.profile-info p { margin-bottom: 8px; }
.profile-info a { color: var(--color-accent); text-decoration: none; }
.profile-info a:hover { text-decoration: underline; }

/* index.html：黒丸付きリスト（研究分野など） */
.styled-list { list-style: none; padding: 0; }
.styled-list li {
  font-size: 14px;
  color: var(--color-text-sub);
  padding: 6px 0 6px 16px;
  position: relative;
}
.styled-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 6px; height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
  transform: translateY(-50%);
}

/* index.html：情報テーブル（職歴・学歴・受賞歴など） */
.info-table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.info-table td {
  padding: 10px 16px;
  font-size: 14px;
  border-bottom: 1px solid #eee;
  vertical-align: top;
  color: var(--color-text-sub);
}
.info-table td:first-child {
  font-weight: 500;
  white-space: nowrap;
  width: 220px;
  color: var(--color-text);
}
.info-table a { color: var(--color-accent); text-decoration: none; }
.info-table a:hover { text-decoration: underline; }

/* index.html：著書カード */
.book-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 24px;
  margin-top: 16px;
  transition: box-shadow 0.25s, border-color 0.25s;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.book-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border-color: var(--color-accent);
}
.book-cover {
  width: 120px;
  border-radius: 4px;
  flex-shrink: 0;
}
.book-info {
  font-size: 14px;
  color: var(--color-text-sub);
  line-height: 1.8;
}

/* papers.html：論文テーブル */
.papers-table { width: 100%; border-collapse: collapse; }
.papers-table tr { border-bottom: 1px solid #eee; }
.papers-table td {
  padding: 12px 8px;
  font-size: 14px;
  color: var(--color-text-sub);
  line-height: 1.75;
  vertical-align: top;
}
.papers-table td:first-child {
  width: 40px;
  font-weight: 500;
  color: var(--color-text);
  white-space: nowrap;
  text-align: right;
  padding-right: 16px;
}
.papers-table b { font-weight: 600; }
.papers-table a { color: var(--color-accent); text-decoration: none; }
.papers-table a:hover { text-decoration: underline; }

/* papers.html：著者一覧の中の自分をハイライト */
.author-me { color: var(--color-accent); font-weight: 500; }

/* index.html / papers.html：最終更新日 */
.last-updated {
  text-align: right;
  font-size: 12px;
  color: var(--color-text-sub);
  margin-top: 32px;
}

.note {
  font-size: 13px;
  color: var(--color-text-sub);
  font-style: italic;
  margin-top: 8px;
}

/* =======================================================
   Mobile
   ======================================================= */
@media (max-width: 768px) {
  :root { --header-h: 56px; }
  .header-nav { display: none; }
  .hamburger { display: flex; }
  .site-header { padding: 0 16px; }

  /* メイン：トップページ */
  .hero { padding: 100px 20px 60px; min-height: 80vh; }
  .hero-title .title-sub { font-size: 15px; }
  .hero-title .title-main { font-size: 28px; }
  .section { padding: 56px 16px; }
  .section-title-ja { font-size: 20px; margin-bottom: 28px; }
  .research-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .admission-box { padding: 20px; }

  /* サブページ共通 */
  .page-header { padding: calc(var(--header-h) + 32px) 16px 32px; }
  .content-section { padding: 40px 16px; }

  /* メンバーテーブル */
  .member-table td:first-child { width: 100px; }

  /* 個人ページ */
  .profile-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }
  .book-card {
    flex-direction: column;
    align-items: center;
  }
  .info-table td:first-child { width: auto; white-space: normal; }
  .info-table td { display: block; padding: 4px 16px; }
  .info-table td:first-child { padding-top: 12px; border-bottom: none; }
  .papers-table td:first-child { width: 30px; padding-right: 8px; }
}
