/* ===== Google Fonts ===== */
/* @import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&family=Space+Grotesk:wght@300;400;500;600;700&display=swap'); */

/* ===== CSS Variables ===== */
:root {
  /* --lab-primary: #1a237e;
  --lab-accent: #283593; */
  --lab-light: #e8eaf6;
  --lab-white: #ffffff;
  --lab-dark: #0d0d1a;
  --lab-gray: #f5f5f7;
  --lab-text: #1d1d1f;
  --lab-muted: #6e6e73;
  --hero-height: 100vh;
  --section-padding: 5rem 2rem;
}

/* ===== HOME PAGE: NO SCROLL ===== */
html.home-page,
html.home-page body {
  overflow: hidden;
  height: 100%;
  width: 100%;
  max-width: 100%;
  background: #000000;
  scrollbar-width: none; /* Firefox */
}

html.home-page::-webkit-scrollbar,
html.home-page body::-webkit-scrollbar {
  display: none; /* Chrome / Safari */
}

.home-page .md-container,
.home-page .md-main,
.home-page .md-content {
  overflow: hidden;
}

.home-page .md-content__inner {
  padding: 0;
  margin: 0;
}

/* ===== HOME PAGE: FULL SCREEN HERO ===== */
.home-page .hero-section {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: auto;
  height: auto;
  margin: 0;
  z-index: 0;
}

/* ===== HOME PAGE: FOOTER HIDDEN ===== */
.home-page .md-footer {
  display: none;
}

/* ===== HOME PAGE: HEADER & TABS TRANSPARENT WITH WHITE TEXT ===== */
.home-page .md-header {
  background: transparent !important;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
}

.home-page .md-header *,
.home-page .md-header__title,
.home-page .md-header__topic,
.home-page .md-ellipsis {
  color: #ffffff !important;
}

.home-page .md-header__button {
  color: #ffffff !important;
}

.home-page .md-tabs {
  background: transparent !important;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.home-page .md-tabs__link {
  color: rgba(255, 255, 255, 0.75) !important;
}

.home-page .md-tabs__link--active,
.home-page .md-tabs__link:hover {
  color: #ffffff !important;
}

/* ===== HERO SECTION ===== */
.hero-section {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: var(--hero-height);
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  margin-top: -64px; /* ナビゲーションバーの高さ分を調整 */
  background: #000000;
}

/* 動画バックグラウンド */
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* 3D Wave アニメーションキャンバス背景 */
#wave-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

/* グラデーションオーバーレイ */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0.35) 50%,
    rgba(0, 0, 0, 0.55) 100%
  );
  z-index: 1;
}

/* ヒーローコンテンツ */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: left;
  color: #ffffff;
  padding: 8rem 3.5rem 3rem;
  max-width: 700px;
  animation: fadeInUp 1.2s ease forwards;
}

.hero-eyebrow {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.75rem;
  display: block;
}

.hero-title {
  font-family: 'Space Grotesk', 'Noto Sans JP', sans-serif;
  /* font-size: clamp(0.5rem, 9vw, 9rem) !important; */
  font-size: 2.7rem !important; 
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: #ffffff !important;
  margin: 0 0 0.2rem 0 !important;
}

.hero-title strong {
  font-weight: 600;
  display: block;
}

.hero-content h1,
.hero-content h1.hero-title {
  margin-top: 0 !important;
  margin-bottom: 0.2rem !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.hero-content p.hero-subtitle {
  margin-top: 0 !important;
}

.hero-subtitle {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  color: rgba(180, 180, 180, 0.85);
  line-height: 1.5;
  margin: 0 0 1.5rem 0 !important;
  max-width: 600px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2.2rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: 50px;
  color: #ffffff !important;
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.hero-cta:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
  color: #ffffff;
  text-decoration: none;
}

/* スクロールインジケーター */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: 'Space Grotesk', sans-serif;
  animation: bounce 2s infinite;
}

.scroll-indicator::after {
  content: '';
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-8px); }
}

/* ===== SECTION: HIGHLIGHTS (ホームページ下部) ===== */
.highlights-section {
  padding: var(--section-padding);
  background: var(--lab-gray);
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.highlight-card {
  background: var(--lab-white);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.12);
}

.highlight-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.highlight-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--lab-primary);
  margin: 0 0 0.75rem 0;
}

.highlight-card p {
  color: var(--lab-muted);
  line-height: 1.7;
  margin: 0;
  font-size: 0.95rem;
}

/* ===== SECTION: NEWS (お知らせ) ===== */
.news-section {
  padding: var(--section-padding);
  max-width: 900px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--lab-primary);
  font-weight: 500;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-family: 'Space Grotesk', 'Noto Sans JP', sans-serif;
  font-size: 2rem;
  font-weight: 300;
  color: var(--lab-text);
}

.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-item {
  display: flex;
  gap: 2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  align-items: flex-start;
}

.news-date {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  color: var(--lab-muted);
  white-space: nowrap;
  min-width: 100px;
  padding-top: 0.15rem;
}

.news-tag {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  background: var(--lab-light);
  color: var(--lab-primary);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  font-family: 'Space Grotesk', sans-serif;
}

.news-title {
  font-size: 0.95rem;
  color: var(--lab-text);
  line-height: 1.6;
  margin: 0;
}

/* ===== NAVIGATION OVERRIDE ===== */
.md-header {
  background-color: rgba(255, 255, 255, 0.9) !important;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.md-header__title {
  font-family: 'Space Grotesk', sans-serif !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em;
}

.md-tabs {
  background-color: rgba(255, 255, 255, 0.95) !important;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

/* ===== CONTENT PAGES ===== */
.md-content {
  font-family: 'Noto Sans JP', sans-serif;
}

/* ===== MEMBER CARDS ===== */
.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.member-card {
  text-align: center;
  padding: 1.5rem 1rem;
  background: white;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.08);
  transition: transform 0.2s ease;
}

.member-card:hover {
  transform: translateY(-3px);
}

.member-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  display: block;
  background: var(--lab-light);
}

.member-avatar-placeholder {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8eaf6, #c5cae9);
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.member-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;

}

.member-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--lab-text);
  margin: 0 0 0 0;
}
.member-name-ja {
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--lab-text);
  margin: 0 0 0.45rem 0;
}

.member-role {
  font-size: 0.82rem;
  margin: 0 0 0.45rem 0;
}

.member-affiliation {
  font-size: 0.7rem;
  color: var(--lab-muted);
  margin: 0 0 0.3rem 0;
}

.member-info {
  font-size: 0.7rem;
  color: var(--lab-muted);
  margin: 0;
}

/* ===== PUBLICATION LIST ===== */
.pub-list {
  list-style: none;
  padding: 0;
}

.pub-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  align-items: flex-start;
}

.pub-thumbnail {
  flex-shrink: 0;
  width: 200px;
}

.pub-thumbnail img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,0.08);
  display: block;
}

.pub-thumbnail-placeholder {
  width: 200px;
  height: 150px;
  background: rgba(0,0,0,0.05);
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: rgba(0,0,0,0.2);
}

.pub-info {
  flex: 1;
  min-width: 0;
}

@media (max-width: 600px) {
  .pub-item {
    flex-direction: column;
  }
  .pub-thumbnail {
    width: 100%;
  }
  .pub-thumbnail img,
  .pub-thumbnail-placeholder {
    width: 100%;
    height: 140px;
  }
}

.pub-year {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--lab-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.pub-title {
  font-weight: 500;
  font-size: 1rem;
  color: var(--lab-text);
  margin: 0 0 0.3rem 0;
  line-height: 1.5;
}

.pub-authors {
  font-size: 0.88rem;
  color: var(--lab-muted);
  margin: 0 0 0.3rem 0;
}

.pub-journal {
  font-size: 0.88rem;
  color: var(--lab-muted);
  font-style: italic;
  margin: 0;
}

.pub-links {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.75rem;
}

.pub-link {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  color: var(--lab-primary);
  text-decoration: none;
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--lab-primary);
  border-radius: 4px;
  transition: all 0.2s;
}

.pub-link:hover {
  background: var(--lab-primary);
  color: white;
  text-decoration: none;
}

/* ===== MAP / ACCESS ===== */
.access-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

@media (max-width: 768px) {
  .access-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-title {
    font-size: 3rem !important;
  }
  
  .news-item {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* ===== NEWS 2-COLUMN GRID ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  margin-top: 1.5rem;
}

.news-card2 {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  display: flex;
  flex-direction: column;
}

.news-card2:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

.news-card2-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e8eaf6;
}

.news-card2-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-card2-body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-card2-body .blog-excerpt {
  flex: 1;
}

@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
}

[data-md-color-scheme="slate"] .news-card2 {
  background: #1e2a45;
  border-color: rgba(255, 255, 255, 0.08);
}

/* ===== DARK MODE ADJUSTMENTS ===== */
[data-md-color-scheme="slate"] {
  --lab-gray: #1a1a2e;
  --lab-white: #16213e;
  --lab-text: #e8e8e8;
  --lab-muted: #9e9e9e;
}

[data-md-color-scheme="slate"] .highlight-card,
[data-md-color-scheme="slate"] .member-card {
  background: #1e2a45;
  border-color: rgba(255,255,255,0.08);
}

/* ===== BLOG / NEWS ===== */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.blog-card {
  padding: 1.75rem 2rem;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.blog-card:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.blog-date {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  color: var(--lab-muted);
  letter-spacing: 0.04em;
}

.blog-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.7rem 0;
  line-height: 1.5;
}

.blog-title a {
  color: var(--lab-text);
  text-decoration: none;
  transition: color 0.2s;
}

.blog-title a:hover {
  color: var(--lab-primary);
}

.blog-excerpt {
  font-size: 0.92rem;
  color: var(--lab-muted);
  line-height: 1.75;
  margin: 0 0 1rem 0;
}

.blog-read-more {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--lab-primary);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: opacity 0.2s;
}

.blog-read-more:hover {
  opacity: 0.7;
  text-decoration: none;
}

/* タグ色 */
.tag-paper     { background: #e3f2fd; color: #1565c0; }
.tag-award     { background: #fff8e1; color: #f57f17; }
.tag-event     { background: #e8f5e9; color: #2e7d32; }
.tag-presentation { background: #fce4ec; color: #880e4f; }

/* 記事詳細ページ */
.post-header {
  margin-bottom: 1.5rem;
}

.post-back {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  color: var(--lab-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.post-back:hover {
  color: var(--lab-primary);
  text-decoration: none;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.75rem 0 0.5rem;
}

.post-title {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0.25rem 0 0;
}

.post-nav {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0,0,0,0.08);
}

/* ダークモード対応 */
[data-md-color-scheme="slate"] .blog-card {
  background: #1e2a45;
  border-color: rgba(255,255,255,0.08);
}

[data-md-color-scheme="slate"] .blog-title a {
  color: #e8e8e8;
}

[data-md-color-scheme="slate"] .tag-paper        { background: #1a2a40; color: #90caf9; }
[data-md-color-scheme="slate"] .tag-award        { background: #2a2210; color: #ffd54f; }
[data-md-color-scheme="slate"] .tag-event        { background: #102010; color: #a5d6a7; }
[data-md-color-scheme="slate"] .tag-presentation { background: #2a1020; color: #f48fb1; }
