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

html,
body {
  height: 100%;
  font-family:
    "Noto Sans JP",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  overflow-x: hidden;
}

/* ========================================
   ローディング画面
======================================== */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  overflow: hidden;
}

.loading-screen.fade-out {
  animation: loadingFadeOut 0.8s ease forwards;
}

@keyframes loadingFadeOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

.loading-left,
.loading-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.loading-left {
  background: #eef3f9;
}

.loading-right {
  background: #fff;
}

.loading-center-line {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 3px;
  height: 0;
  background: #000;
  animation: lineGrow 0.6s ease 0.3s forwards;
  z-index: 10;
}

@keyframes lineGrow {
  0% {
    height: 0;
  }
  100% {
    height: 100%;
  }
}

.loading-logo-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.loading-logo {
  height: 70px;
  width: auto;
  opacity: 0;
  transform: scale(0.8);
  animation: logoPopIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.8s forwards;
}

/* D3ロゴアニメーション */
.d3-logo {
  animation-delay: 0.8s;
}

/* PRIMeロゴアニメーション */
.prime-logo {
  animation-delay: 1s;
}

@keyframes logoPopIn {
  0% {
    opacity: 0;
    transform: scale(0.5) rotate(-10deg);
  }
  60% {
    transform: scale(1.1) rotate(3deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

.loading-line {
  display: none;
}

.loading-left .loading-line {
  background: linear-gradient(90deg, #1e5db3, #4a90d9);
  right: 0;
  left: auto;
}

.loading-right .loading-line {
  background: linear-gradient(90deg, #0068b6, #009fe8);
}

@keyframes lineExpand {
  to {
    width: 100%;
  }
}

/* ========================================
   モバイル切り替えボタン
======================================== */
.mobile-toggle {
  display: none;
  margin-left: auto;
}

.mobile-toggle-btn {
  width: 120px;
  padding: 14px 0;
  background: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #999;
  font-family: "Google Sans", sans-serif;
  border: 1px solid #ccc;
}

.mobile-toggle-btn.left-btn {
  border-radius: 5px 0 0 5px;
  border-right: none;
}

.mobile-toggle-btn.right-btn {
  border-radius: 0 5px 5px 0;
  border-left: none;
}

.mobile-toggle-btn.active {
  background: #eef3f9;
  color: #1e5db3;
  border: 1px solid #1e5db3;
  position: relative;
  z-index: 1;
}

/* ========================================
   イントロオーバーレイ
======================================== */
.intro-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1654 0%, #2d287f 40%, #3d3899 100%);
  z-index: 8000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.intro-overlay.exit {
  animation: introExit 0.9s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

@keyframes introExit {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-60px);
  }
}

.intro-content {
  text-align: center;
  padding: 40px;
  max-width: 700px;
}

/* タイトル */
.intro-title {
  font-size: 24px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 2px;
  line-height: 1.6;
  opacity: 0;
  transform: scale(0.9) translateY(15px);
}

.intro-overlay.animate .intro-title {
  animation: introTitleIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes introTitleIn {
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* イントロ英語タイトル */
.intro-title-en {
  font-family: "Google Sans", sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 2px;
  line-height: 1.6;
  opacity: 0;
  transform: scale(0.9) translateY(15px);
}

.intro-overlay.animate .intro-title-en {
  animation: introTitleIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.intro-en {
  font-family: "Google Sans", sans-serif;
}

.intro-br {
  display: block;
}

/* 区切り線 */
.intro-line {
  width: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.4);
  margin: 28px auto;
}

.intro-overlay.animate .intro-line {
  animation: introLineGrow 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
}

@keyframes introLineGrow {
  to {
    width: 80px;
  }
}

/* 説明文 */
.intro-desc {
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  line-height: 2;
  font-weight: 400;
}

.intro-desc-line {
  display: inline;
  opacity: 0;
  transform: translateY(12px);
}

.intro-overlay.animate .intro-desc-line {
  animation: introDescLineIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.intro-overlay.animate .intro-desc-line:nth-child(1) {
  animation-delay: 0.9s;
}
.intro-overlay.animate .intro-desc-line:nth-child(2) {
  animation-delay: 1s;
}
.intro-overlay.animate .intro-desc-line:nth-child(3) {
  animation-delay: 1.1s;
}
.intro-overlay.animate .intro-desc-line:nth-child(4) {
  animation-delay: 1.2s;
}
.intro-overlay.animate .intro-desc-line:nth-child(5) {
  animation-delay: 1.3s;
}
.intro-overlay.animate .intro-desc-line:nth-child(6) {
  animation-delay: 1.4s;
}
.intro-overlay.animate .intro-desc-line:nth-child(7) {
  animation-delay: 1.5s;
}

@keyframes introDescLineIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* イントロ英語説明文 */
.intro-desc-en {
  color: rgba(255, 255, 255, 0.88);
  font-family: "Google Sans", sans-serif;
  font-size: 14px;
  line-height: 2;
}

/* スクロールヒント */
.intro-scroll-hint {
  margin-top: 40px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  letter-spacing: 2px;
  opacity: 0;
}

.intro-overlay.animate .intro-scroll-hint {
  animation: introHintIn 0.5s ease 2s forwards;
}

@keyframes introHintIn {
  to {
    opacity: 1;
  }
}

.intro-scroll-arrow {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid rgba(255, 255, 255, 0.5);
  margin: 12px auto 0;
  animation: introArrowBounce 1.5s ease-in-out infinite;
}

@keyframes introArrowBounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

/* ========================================
   共通ヘッダー
======================================== */
.global-header {
  height: 40px;
  background: #2d287f;
  border-bottom: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 300;
  overflow: hidden;
  transition:
    height 0.3s ease,
    opacity 0.3s ease;
}

.global-header.hidden {
  height: 0;
  opacity: 0;
}

.global-header-text {
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.global-header-en {
  font-family: "Google Sans", sans-serif;
}

.global-header-en-text {
  font-family: "Google Sans", sans-serif;
}

/* 言語切替トグル */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.lang-toggle-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-family: "Google Sans", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  padding: 2px 4px;
  transition: color 0.3s ease;
}

.lang-toggle-btn.active {
  color: #fff;
}

.lang-toggle-btn:hover {
  color: rgba(255, 255, 255, 0.8);
}

.lang-toggle-divider {
  color: rgba(255, 255, 255, 0.3);
  font-size: 12px;
  font-family: "Google Sans", sans-serif;
}

/* ========================================
   言語切替 表示/非表示
======================================== */

/* 日本語モード: 英語コンテンツを非表示 */
body.lang-ja .lang-en-text,
body.lang-ja .global-header-en-text,
body.lang-ja .header-en,
body.lang-ja .intro-title-en,
body.lang-ja #intro-desc-en,
body.lang-ja .about-description-en,
body.lang-ja .member-description-en,
body.lang-ja .news-item-title-en,
body.lang-ja .news-card-title-en,
body.lang-ja .output-card-title-en,
body.lang-ja .member-name-en,
body.lang-ja .about-btn-text-en,
body.lang-ja .footer-copyright-en {
  display: none;
}

/* 英語モード: 日本語コンテンツを非表示 */
body.lang-en .lang-ja-text,
body.lang-en .global-header-ja,
body.lang-en .header-ja,
body.lang-en .section-title-ja,
body.lang-en #intro-title-ja,
body.lang-en #intro-desc-ja,
body.lang-en .about-description,
body.lang-en .member-description-ja,
body.lang-en .news-item-title,
body.lang-en .news-card-title,
body.lang-en .output-card-title,
body.lang-en .member-name-ja,
body.lang-en .member-role,
body.lang-en .about-btn-text-ja,
body.lang-en .footer-copyright:not(.footer-copyright-en) {
  display: none;
}

/* 英語モードで英語コンテンツの表示を確保 */
body.lang-en .about-description-en,
body.lang-en .member-description-en,
body.lang-en .news-item-title-en,
body.lang-en .news-card-title-en,
body.lang-en .output-card-title-en {
  display: block;
}

/* ========================================
   スプリットスクリーンコンテナ
======================================== */
.split-container {
  display: flex;
  height: calc(100% - 40px);
  transition: height 0.3s ease;
}

.global-header.hidden ~ .split-container {
  height: 100%;
}

/* 左右のパネル */
.panel {
  flex: 1;
  height: 100%;
  overflow-y: auto;
  transition: transform 0.3s ease;
  position: relative;
  scroll-behavior: smooth;
}

.panel-left {
  background: #eef3f9;
  border-right: 1.5px solid #000;
}

.panel-right {
  background: #fff;
  border-left: 1.5px solid #000;
}

/* パネル内のスクロールコンテンツ */
.panel-content {
  margin-top: -96px; /* ヘッダー分を重ねる */
}

/* ========================================
   共通ヘッダースタイル
======================================== */
.header-wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 13px;
  transform: translateY(0);
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.header-wrapper.hidden {
  transform: translateY(-100%);
  opacity: 0;
}

.site-header {
  height: 70px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 7px;
  box-shadow: 0 3px 3px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 20px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

h1.header-text,
h2.hero-catch-main,
h3.section-title-en {
  margin: 0;
}

h1.header-text {
  font-weight: inherit;
  font-size: inherit;
}

.header-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 15px;
  border-left: 1px solid #ddd;
}

.header-university {
  font-size: 12px;
  color: #2d2d2e;
  letter-spacing: 0.24px;
}

.header-department {
  font-size: 12px;
  color: #2d2d2e;
  letter-spacing: 0.24px;
}

/* 右パネルのヘッダーは文字量が多いのでフィット調整 */
.panel-right .header-university {
  font-size: clamp(9px, 1.1vw, 12px);
}

/* スマホ用短縮テキストの出し分け */
.header-text-short {
  display: none;
}

/* ヘッダーロゴ */
.header-logo-mark {
  height: 50px;
  width: auto;
}

/* ========================================
   ヒーローセクション
======================================== */
.hero {
  position: relative;
  height: 780px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(200, 220, 255, 0.5) 0%,
    rgba(180, 200, 240, 0.3) 100%
  );
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.hero-content {
  position: absolute;
  left: 60px;
  bottom: 80px;
}

.hero-catch-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.hero-line {
  display: inline-block;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.5px;
  line-height: 1;
  font-feature-settings: "palt";
  padding: 10px 10px;
  color: #fff;
  clip-path: inset(0 100% 0 0);
}

/* D3側：ブルーグラデ */
.panel-left .hero-line {
  background: linear-gradient(45deg, #1a4f8c, #2a6db8);
}

/* PRIMe側：パープルグラデ */
.panel-right .hero-line {
  background: linear-gradient(45deg, #4a2578, #6b3fa0);
}

/* ========================================
   News & Topics セクション
======================================== */
.news-section {
  position: relative;
  z-index: 1;
}

/* 左パネル（D3 CENTER）用 */
.panel-left .news-section {
  background: #1e5db3;
  padding: 70px 36px 80px;
}

/* 右パネル（PRIMe）用 - PRIMe固有スタイルで上書き */

.section-header {
  text-align: center;
  color: #fff;
  margin-bottom: 40px;
}

.section-title-ja {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1.26px;
  margin-bottom: 5px;
}

.section-title-en {
  font-size: 46px;
  font-family: "Google Sans", sans-serif;
  font-weight: 500;
}

.news-cards-wrapper {
  overflow-x: auto;
  padding: 0 25px;
  -webkit-overflow-scrolling: touch;
}

.news-cards-wrapper::-webkit-scrollbar {
  display: none;
}

.news-cards {
  display: flex;
  gap: 16px;
}

.news-card {
  flex: 1;
  min-width: 250px;
  background: #fff;
  border-radius: 14px;
  padding: 24px 22px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.04);
  position: relative;
}

/* PC時はカードが幅に合わせて広がる（最大980px、4件以上はスクロール） */
@media (min-width: 900px) {
  .news-cards-wrapper {
    overflow-x: auto;
    max-width: 980px;
    margin: 0 auto;
    padding: 0 40px;
  }

  .news-cards {
    display: flex;
    gap: 16px;
  }

  .news-card {
    flex: 0 0 calc((980px - 80px - 32px) / 3);
    min-width: calc((980px - 80px - 32px) / 3);
  }
}

.news-card-category {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 3px;
  font-size: 12px;
  font-family: "Google Sans", sans-serif;
  font-weight: 500;
  color: #fff;
  margin-bottom: 12px;
}

.news-card-title {
  font-size: 14px;
  line-height: 22px;
  color: #2d2d2e;
  letter-spacing: 0.14px;
  margin-bottom: 12px;
}

.news-card-title-en {
  font-size: 12px;
  font-family: "Google Sans", sans-serif;
  font-weight: 500;
  color: #707070;
  line-height: 18px;
  margin-bottom: 20px;
}

.news-card-date {
  position: absolute;
  top: 24px;
  right: 22px;
  font-size: 13px;
  font-family: "Google Sans", sans-serif;
  color: #2d2d2e;
}

/* PRIMe用 News セクション */
.panel-right .news-section {
  background: #eeeff9;
  padding: 70px 36px;
  margin-bottom: 0;
}

.panel-right .section-header {
  color: #3e3e3e;
}

/* PRIMe News リスト形式 */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.news-item {
  background: #fff;
  border-radius: 14px;
  padding: 24px 22px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.04);
  position: relative;
}

.news-item-category {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 3px;
  font-size: 12px;
  font-family: "Google Sans", sans-serif;
  font-weight: 500;
  color: #fff;
  margin-bottom: 12px;
}

.news-item-title {
  font-size: 14px;
  line-height: 22px;
  color: #2d2d2e;
  letter-spacing: 0.14px;
  margin-bottom: 12px;
}

.news-item-title-en {
  font-size: 12px;
  font-family: "Google Sans", sans-serif;
  font-weight: 500;
  color: #707070;
  line-height: 18px;
  margin-bottom: 20px;
}

.news-item-date {
  position: absolute;
  top: 24px;
  right: 22px;
  font-size: 13px;
  font-family: "Google Sans", sans-serif;
  color: #2d2d2e;
}

/* ========================================
   PRIMe 固有スタイル
======================================== */

/* PRIMe About セクション */
.panel-right .about-section {
  background: #fff;
  padding: 120px 40px;
}

.panel-right .about-bg-text span {
  color: #f0f4f8;
}

.panel-right .about-header .section-title-ja,
.panel-right .about-header .section-title-en {
  color: #009fe8;
}

/* PRIMe ダイアグラム */
.prime-diagram {
  margin: 50px auto 20px;
  text-align: center;
}

.prime-diagram-img {
  max-width: 100%;
  height: auto;
}

/* PRIMe Member セクション */
.panel-right .member-section {
  background: #eeeff9;
}

.panel-right .member-header .section-title-ja,
.panel-right .member-header .section-title-en {
  color: #009fe8;
}

.panel-right .member-link {
  background: #fff;
}

/* PRIMe Outputs セクション */
.panel-right .outputs-section {
  background: #fff;
}

.panel-right .outputs-header .section-title-ja,
.panel-right .outputs-header .section-title-en {
  color: #009fe8;
}

.panel-right .output-card {
  border: 1px solid #d8d8d8;
}

/* PRIMe Contact セクション */
.panel-right .contact-section {
  background: #fff;
}

.panel-right .contact-header .section-title-ja,
.panel-right .contact-header .section-title-en {
  color: #009fe8;
}

/* PRIMe フローティングメニュー アクティブ状態 */
.panel-right .floating-menu-item.active {
  color: #009fe8;
}

.panel-right .floating-menu-item.active .floating-menu-icon {
  filter: invert(47%) sepia(98%) saturate(1500%) hue-rotate(175deg)
    brightness(95%) contrast(95%);
}

/* PRIMe フッター */
.panel-right .site-footer {
  border-top: 2px solid #0068b6;
}

/* ========================================
   About セクション
======================================== */
.about-section {
  position: relative;
  overflow: hidden;
}

/* 左パネル（D3 CENTER）用 */
.panel-left .about-section {
  background: #eef3f9;
  padding: 120px 40px;
}

/* 右パネル（PRIMe）用 - 基本スタイルはここで上書き */

.about-bg-text-wrapper {
  position: absolute;
  left: 0;
  right: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

/* 左パネル（D3 CENTER）用 */
.panel-left .about-bg-text-wrapper {
  top: 50px;
}

/* 右パネル（PRIMe）用 */
.panel-right .about-bg-text-wrapper {
  top: 50px;
}

.about-bg-text {
  display: flex;
  white-space: nowrap;
  animation: marquee 20s linear infinite;
  will-change: transform;
}

.about-bg-text span {
  font-size: 140px;
  font-family: "Google Sans", sans-serif;
  font-weight: 700;
  color: #e7edf4;
  padding-right: 80px;
  flex-shrink: 0;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ========================================
   フェードインアニメーション
======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
}

.fade-in.visible {
  animation: fadeInUp 0.6s ease forwards;
}

/* 遅延アニメーション */
.fade-in.visible:nth-child(1) {
  animation-delay: 0s;
}
.fade-in.visible:nth-child(2) {
  animation-delay: 0.1s;
}
.fade-in.visible:nth-child(3) {
  animation-delay: 0.2s;
}
.fade-in.visible:nth-child(4) {
  animation-delay: 0.3s;
}
.fade-in.visible:nth-child(5) {
  animation-delay: 0.4s;
}
.fade-in.visible:nth-child(6) {
  animation-delay: 0.5s;
}

/* ========================================
   ヒーローテキストアニメーション
======================================== */

/* 左右共通 - ラインリビールアニメーション */
.panel-left .hero-content,
.panel-right .hero-content {
  opacity: 0;
}

.panel-left .hero-content.animate,
.panel-right .hero-content.animate {
  opacity: 1;
}

.hero-content.animate .hero-line:nth-child(1) {
  animation: revealLine 0.4s ease forwards;
  animation-delay: 0s;
}

.hero-content.animate .hero-line:nth-child(2) {
  animation: revealLine 0.4s ease forwards;
  animation-delay: 0.15s;
}

.hero-content.animate .hero-line:nth-child(3) {
  animation: revealLine 0.4s ease forwards;
  animation-delay: 0.3s;
}

@keyframes revealLine {
  0% {
    clip-path: inset(0 100% 0 0);
  }
  100% {
    clip-path: inset(0 0 0 0);
  }
}

/* キャッチコピー切替 - 非表示アニメーション */
@keyframes hideLine {
  0% {
    clip-path: inset(0 0 0 0);
  }
  100% {
    clip-path: inset(0 0 0 100%);
  }
}

.hero-content.animate-out .hero-line:nth-child(1) {
  animation: hideLine 0.3s ease forwards;
  animation-delay: 0s;
}

.hero-content.animate-out .hero-line:nth-child(2) {
  animation: hideLine 0.3s ease forwards;
  animation-delay: 0.1s;
}

.hero-content.animate-out .hero-line:nth-child(3) {
  animation: hideLine 0.3s ease forwards;
  animation-delay: 0.2s;
}

.about-header {
  position: relative;
  z-index: 1;
}

.about-header .section-title-ja {
  color: #1e5db3;
  font-size: 18px;
}

.about-header .section-title-en {
  color: #1e5db3;
}

.about-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

/* PC時はAboutコンテンツが幅に合わせて広がる（最大980px） */
@media (min-width: 900px) {
  .about-content {
    max-width: 980px;
  }

  .d3-diagram-img,
  .prime-diagram-img {
    max-width: 100%;
    width: 100%;
  }
}

.about-description {
  font-size: 15px;
  line-height: 27px;
  color: #2d2d2e;
  margin-top: 30px;
}

.about-description-en {
  font-size: 13px;
  font-family: "Google Sans", sans-serif;
  line-height: 23px;
  color: #707070;
  margin-top: 15px;
}

/* D3 ダイアグラム */
.d3-diagram {
  margin: 50px auto 15px;
  text-align: center;
}

.d3-diagram-img {
  max-width: 100%;
  height: auto;
}

/* 詳しく見るボタン */
.about-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 260px;
  padding: 0 50px 0 30px;
  height: 53px;
  background: #2d2d2e;
  color: #fff;
  border-radius: 100px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  margin-top: 30px;
  transition: opacity 0.3s ease;
}

/* Aboutボタン英語テキスト */
.about-btn-text-en {
  font-size: 15px;
  font-weight: 500;
}

.about-btn-arrow {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

/* ========================================
   Member セクション
======================================== */
.member-section {
  background: #fff;
  padding: 80px 40px;
}

.member-header .section-title-ja {
  color: #1e5db3;
}

.member-header .section-title-en {
  color: #1e5db3;
}

.member-description {
  text-align: center;
  margin-top: 30px;
}

.member-description-ja {
  font-size: 14px;
  line-height: 27px;
  color: #2d2d2e;
}

.member-description-en {
  font-size: 13px;
  font-family: "Google Sans", sans-serif;
  line-height: 23px;
  color: #707070;
  margin-top: 10px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.member-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 50px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* PC時はメンバーカードが幅に合わせて広がる（最大980px） */
@media (min-width: 1160px) {
  .member-cards {
    grid-template-columns: repeat(3, 1fr);
    max-width: 980px;
    gap: 30px;
  }
}

.member-card {
  text-align: center;
}

.member-photo {
  width: 100%;
  aspect-ratio: 210 / 265;
  background: #d9d9d9;
  border-radius: 4px;
  margin-bottom: 15px;
}

.member-role {
  font-size: 12px;
  color: #707070;
  margin-bottom: 5px;
}

.member-name-ja {
  font-size: 18px;
  font-weight: 500;
  color: #2d2d2e;
  line-height: 27px;
}

.member-name-en {
  font-size: 12px;
  font-family: "Google Sans", sans-serif;
  font-weight: 500;
  color: #2d2d2e;
  margin-top: 5px;
}

.member-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f3f3f3;
  padding: 10px 20px;
  border-radius: 100px;
  text-decoration: none;
  font-size: 13px;
  font-family: "Google Sans", sans-serif;
  font-weight: 500;
  color: #2d2d2e;
  margin-top: 15px;
  transition: opacity 0.3s ease;
}

.member-link-icon {
  width: 14px;
  height: 14px;
}

/* ========================================
   Outputs セクション
======================================== */
.outputs-section {
  background: #eef3f9;
  padding: 80px 36px;
}

.outputs-header .section-title-ja {
  color: #1e5db3;
}

.outputs-header .section-title-en {
  color: #1e5db3;
}

.outputs-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 40px;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.output-card {
  background: #fff;
  border-radius: 14px;
  padding: 46px 42px;
  position: relative;
}

.output-card-category {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 3px;
  font-size: 12px;
  font-family: "Google Sans", sans-serif;
  font-weight: 500;
  color: #fff;
  margin-bottom: 20px;
}

.output-card-title {
  font-size: 14px;
  line-height: 22px;
  color: #2d2d2e;
  letter-spacing: 0.14px;
  margin-bottom: 20px;
}

.output-card-title-en {
  font-size: 12px;
  font-family: "Google Sans", sans-serif;
  font-weight: 500;
  color: #707070;
  line-height: 18px;
  margin-bottom: 20px;
}

.output-card-date {
  position: absolute;
  top: 46px;
  right: 42px;
  font-size: 13px;
  font-family: "Google Sans", sans-serif;
  color: #2d2d2e;
}

/* ========================================
   Contact セクション
======================================== */
.contact-section {
  background: #eef3f9;
  padding: 80px 36px;
}

.contact-header .section-title-ja {
  color: #1e5db3;
}

.contact-header .section-title-en {
  color: #1e5db3;
}

.contact-form-wrapper {
  margin-top: 40px;
}

.contact-form-placeholder {
  background: #b4b4b4;
  border-radius: 14px;
  height: 455px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
}

/* ========================================
   フッター
======================================== */
.site-footer {
  background: #fff;
  padding: 50px 40px 120px; /* フローティングメニュー分の余白 */
}

.footer-content {
  display: flex;
  flex-direction: column;
  min-height: 180px;
}

.footer-logo {
  display: flex;
  align-items: center;
}

.footer-logo-mark {
  height: 80px;
  width: auto;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.footer-copyright {
  font-size: 10px;
  font-family: "Google Sans", sans-serif;
  color: #a1a1a1;
}

/* フッター英語コピーライト */
.footer-copyright-en {
  font-size: 10px;
  font-family: "Google Sans", sans-serif;
  color: #a1a1a1;
}

.footer-privacy {
  font-size: 10px;
  font-family: "Google Sans", sans-serif;
  color: #3e3e3e;
  text-decoration: none;
}

/* ========================================
   フローティングメニュー
======================================== */
.floating-menu {
  position: fixed;
  bottom: 0;
  left: 0;
  width: calc(50% - 1.5px);
  height: 78px;
  background: #fff;
  box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.17);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 200;
  transform: translateY(0);
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.floating-menu.hidden {
  transform: translateY(100%);
  opacity: 0;
}

.panel-right .floating-menu {
  left: auto;
  right: 0;
  width: calc(50% - 1.5px);
}

.floating-menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: #2d2d2e;
  font-size: 15px;
  font-family: "Google Sans", sans-serif;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.floating-menu-item.active {
  color: #1e5db3;
}

.floating-menu-item.active .floating-menu-icon {
  filter: invert(27%) sepia(85%) saturate(1500%) hue-rotate(205deg)
    brightness(90%) contrast(90%);
}

.floating-menu-icon {
  width: 28px;
  height: 28px;
}

/* ========================================
   モバイル対応
======================================== */
@media (max-width: 768px) {
  /* モバイル切り替えボタン表示 */
  .mobile-toggle {
    display: flex;
  }

  .split-container {
    position: relative;
    overflow: hidden;
    padding-top: 0;
  }

  .panel {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .panel.active {
    opacity: 1;
    pointer-events: auto;
  }

  .panel-left {
    left: 0;
    border-right: none;
  }

  .panel-right {
    left: 0;
    border-left: none;
  }

  /* モバイル時のヘッダー調整 */
  .site-header {
    justify-content: space-between;
    padding: 0 12px;
    height: auto;
    min-height: 60px;
  }

  .header-wrapper {
    padding: 10px;
  }

  .header-left {
    gap: 8px;
  }

  .header-logo-mark {
    height: 32px;
  }

  .header-text {
    padding-left: 8px;
    border-left: 1px solid #ddd;
  }

  .header-university {
    font-size: 10px;
  }

  .header-department {
    font-size: 9px;
  }

  /* スマホ時：右パネルは短縮テキストに切替 */
  .panel-right .header-text-full {
    display: none;
  }

  .panel-right .header-text-short {
    display: flex;
  }

  .mobile-toggle-btn {
    width: 90px;
    padding: 10px 0;
    font-size: 13px;
  }

  /* 言語トグル - 768px */
  .lang-toggle-btn {
    font-size: 11px;
  }

  /* タイポグラフィ - 768px */
  .section-title-en {
    font-size: 36px;
  }

  .section-header {
    margin-bottom: 30px;
  }

  .hero {
    height: 600px;
  }

  .hero-content {
    left: 24px;
    bottom: 60px;
  }

  .hero-line {
    font-size: 24px;
    padding: 10px 14px;
  }

  /* セクションパディング - スマホ時 */
  .panel-left .about-section {
    padding: 120px 40px;
  }

  .panel-left .about-bg-text-wrapper {
    top: 10px;
  }

  .about-bg-text span {
    font-size: 200px;
  }

  .about-description {
    font-size: 14px;
    line-height: 24px;
  }

  .about-description-en {
    font-size: 12px;
    line-height: 20px;
  }

  /* News余白調整 */
  .news-section {
    margin-bottom: -60px;
  }

  .news-cards-wrapper {
    padding: 0 20px;
  }

  /* メンバー説明文 */
  .member-description-ja {
    font-size: 13px;
    line-height: 22px;
  }

  .member-description-en {
    font-size: 12px;
  }

  .member-section {
    padding: 60px 24px;
  }

  .outputs-section {
    padding: 60px 24px;
  }

  .contact-section {
    padding: 60px 24px;
  }

  .panel-right .news-section {
    padding: 70px 24px;
    margin-bottom: 0;
  }

  .panel-right .about-section {
    padding: 60px 24px;
  }

  .output-card {
    padding: 30px 24px;
  }

  /* メンバー - スマホ時2列 */
  .member-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  /* フッター - スマホ時 */
  .site-footer {
    padding: 30px 24px 100px;
  }

  .footer-content {
    min-height: auto;
  }

  .footer-logo-mark {
    height: 50px;
  }

  /* フローティングメニュー - スマホ時 */
  .floating-menu,
  .panel-right .floating-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 200;
  }

  /* 非アクティブパネルのメニューを非表示 */
  .panel:not(.active) .floating-menu {
    display: none;
  }

  /* 共通ヘッダー - スマホ時 */
  .global-header-text {
    font-size: 11px;
  }

  /* イントロ - スマホ時 */
  .intro-content {
    padding: 32px 24px;
  }

  .intro-br {
    display: block;
  }

  .intro-title {
    font-size: 17px;
    letter-spacing: 1px;
    white-space: normal;
    line-height: 1.7;
  }

  .intro-desc {
    font-size: 12.5px;
    line-height: 1.9;
    text-align: left;
  }

  .intro-line {
    margin: 20px auto;
  }

  /* ローディング - スマホ時 */
  .loading-screen {
    flex-direction: column;
  }

  .loading-left,
  .loading-right {
    flex: 1;
  }

  .loading-center-line {
    width: 100%;
    height: 3px;
    animation: lineGrowHorizontal 0.6s ease 0.3s forwards;
  }

  @keyframes lineGrowHorizontal {
    0% {
      width: 0;
    }
    100% {
      width: 100%;
    }
  }

  .loading-logo {
    height: 50px;
  }

  .loading-line {
    display: none;
  }
}

/* さらに小さい画面 */
@media (max-width: 480px) {
  /* イントロ - 超小画面 */
  .intro-content {
    padding: 24px 30px;
  }

  .intro-title {
    font-size: 20px;
    letter-spacing: 0.5px;
    white-space: normal;
    line-height: 1.4;
  }

  .intro-desc {
    font-size: 13px;
    line-height: 1.85;
    text-align: left;
  }

  .intro-scroll-hint {
    margin-top: 30px;
  }

  /* ヘッダー */
  .header-text {
    display: none;
  }

  .header-logo-mark {
    height: 24px;
  }

  .mobile-toggle-btn {
    width: 75px;
    padding: 8px 0;
    font-size: 11px;
  }

  /* タイポグラフィ - 480px */
  .section-title-en {
    font-size: 28px;
  }

  .section-title-ja {
    font-size: 16px;
  }

  .section-header {
    margin-bottom: 24px;
  }

  /* ヒーロー */
  .hero {
    height: 500px;
  }

  .hero-content {
    left: 24px;
    bottom: 50px;
  }

  .hero-line {
    font-size: 20px;
    padding: 8px 12px;
  }

  .hero-catch-main {
    gap: 6px;
  }

  /* About */
  .about-section {
    padding: 80px 24px 40px;
  }

  .about-bg-text span {
    font-size: 100px;
  }

  .about-description {
    font-size: 13px;
    line-height: 22px;
  }

  .about-description-en {
    font-size: 11px;
    line-height: 18px;
  }

  .about-btn {
    width: auto;
    max-width: 100%;
  }

  /* News */
  .news-section {
    margin-bottom: -40px;
  }

  .news-cards-wrapper {
    padding: 0 16px;
  }

  .news-card {
    width: 220px;
    padding: 18px 16px;
  }

  /* PRIMe用 - 480px */
  .panel-right .news-section {
    margin-bottom: 0;
  }

  .panel-right .about-section {
    padding: 100px 24px;
  }

  /* Member - 1列 */
  .member-section,
  .outputs-section,
  .contact-section {
    padding: 50px 24px;
  }

  .member-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .member-description-ja {
    font-size: 12px;
    line-height: 20px;
  }

  .member-description-en {
    font-size: 11px;
  }

  /* Outputs */
  .output-card {
    padding: 20px 16px;
  }

  /* フッター */
  .site-footer {
    padding: 25px 24px 90px;
  }

  .footer-logo-mark {
    height: 40px;
  }

  /* フローティングメニュー */
  .floating-menu {
    height: 70px;
  }

  .floating-menu-item {
    font-size: 12px;
  }

  .floating-menu-icon {
    width: 24px;
    height: 24px;
  }
}

/* =============================================
   MicroCMS ローディング・エラー表示
============================================= */

/* ローディング表示 */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: #707070;
  font-size: 14px;
}

.loading::before {
  content: "";
  width: 20px;
  height: 20px;
  border: 2px solid #e0e0e0;
  border-top-color: #1e5db3;
  border-radius: 50%;
  margin-right: 10px;
  animation: spin 0.8s linear infinite;
}

.panel-right .loading::before {
  border-top-color: #009fe8;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* エラー表示 */
.error,
.no-data {
  width: 100%;
  padding: 40px 20px;
  font-size: 14px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.error {
  color: #c00;
}

.no-data {
  color: #707070;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 14px;
  padding: 50px 20px;
}

/* メンバー写真なし */
.member-photo .no-photo {
  display: block;
  width: 100%;
  height: 100%;
  background: #e0e0e0;
}

/* メンバー写真（背景画像対応） */
.member-photo {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Output カードリンク */
.output-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.output-card-link:hover {
  opacity: 0.8;
}

/* PDFリンク */
.pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  color: #2d2d2e;
  font-size: 13px;
  font-weight: 500;
  text-decoration: underline;
  transition: opacity 0.3s ease;
}

.pdf-link:hover {
  opacity: 0.6;
}

.pdf-link-icon {
  width: 18px;
  height: 18px;
}

/* 関連情報リンク */
.related-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  color: #2d2d2e;
  font-size: 13px;
  font-weight: 500;
  text-decoration: underline;
  transition: opacity 0.3s ease;
}

.related-link:hover {
  opacity: 0.6;
}

.related-link-icon {
  width: 14px;
  height: 14px;
}

/* 動画サムネイル */
.video-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  padding: 12px;
  background: #f5f5f5;
  border-radius: 10px;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.video-row:hover {
  opacity: 0.8;
}

.video-thumbnail {
  position: relative;
  flex-shrink: 0;
  width: 120px;
  border-radius: 6px;
  overflow: hidden;
  background: #d9d9d9;
  aspect-ratio: 16 / 9;
}

.video-thumbnail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
}

.video-play-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 55%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 5px 0 5px 9px;
  border-color: transparent transparent transparent #fff;
}

.video-title {
  font-size: 13px;
  line-height: 20px;
  color: #2d2d2e;
}
