body {
  font-family: "Noto Sans", "Noto Sans JP", -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #222;
  line-height: 1.7;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

html {
  -webkit-text-size-adjust: 100%;
}

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

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

table {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}


/* ===========
    Navigation
   =========== */

.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid #ddd;
  font-family: "Noto Sans JP", sans-serif;

  position: relative; /* 中央寄せのために追加 */
  background: linear-gradient(
    90deg,
    #0b2a5b 0%,
    #123a7a 40%,
    #339999 100%
  );

  color: #fff;
  min-height: 72px;
}

.main-nav .nav-item {
  text-decoration: none;
  font-size: 18px;
  letter-spacing: 0.03em;
  padding-bottom: 0;
  border-bottom: 3px solid transparent;
  font-family: "Zen Dots", "Noto Sans JP", sans-serif;
  font-weight: 500;
  margin-right: 24px;  /* ここを増やすと項目間が広がる */  
  color: #fff;
  line-height: 1.4;  /* 行間を詰める */
}

.main-nav .nav-item:hover {
  color: #888888;
  border-bottom: 3px solid #999;
}

.main-nav .nav-item.active {
  font-weight: 800;
  border-bottom: 3px solid #000;
}

/* 左側 ロゴとラボ名 */
.nav-left {
  display: flex;
  align-items: center;
  flex-shrink: 0; /* ロゴが縮まないようにする */
  gap: 10px; /* ロゴと文字の間隔 */
}

.nav-logo {
  display: flex;
  align-items: center;   /* ロゴと文字を中央揃え */
  gap: 5px;
  text-decoration: none;
  color: inherit;
}

.logo-img {
  height: 42px;
  width: auto;
  display: block;   /* ← 超重要 */
  border: none;
  outline: none;
  background: transparent;
}

.logo-text {
  display: flex;
  flex-direction: column; /* ← ここで2段 */
  line-height: 1.1;
}

.lab-main {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.lab-sub {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 11px;
  font-weight: 800;  
  letter-spacing: 0.3em;
  color: #999;
  align-self: flex-end;   /* GROUP右寄せ */  
}

/*
.lab-name {
  font-family: "Montserrat", "Noto Sans JP", sans-serif;
}
*/

/* === ハンバーガーメニュー & レスポンシブ対応 === */

.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 8px;
  margin-left: 8px;
  flex-shrink: 0;
  z-index: 1002;
}

.nav-toggle-label span {
  display: block;
  width: 25px;
  height: 3px;
  background: #fff;
  position: relative;
  transition: all 0.3s;
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: "";
  display: block;
  width: 25px;
  height: 3px;
  background: #fff;
  position: absolute;
  transition: all 0.3s;
}

.nav-toggle-label span::before { top: -8px; }
.nav-toggle-label span::after { top: 8px; }

.nav-content-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-grow: 1;
  justify-content: center;
}

#nav-toggle:checked ~ .nav-toggle-label span { background: transparent; }
#nav-toggle:checked ~ .nav-toggle-label span::before { top: 0; transform: rotate(45deg); }
#nav-toggle:checked ~ .nav-toggle-label span::after { top: 0; transform: rotate(-45deg); }

.nav-right {
  width: auto;
}

/* 右側（メニュー + 言語切替） */
/* .nav-right: position: absoluteによる中央配置をやめ、親要素のFlexboxでレイアウトを制御する */

/* メニュー項目 */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.5px;   /* ← メニュー同士の間隔 */
}
.nav-item {
  display: inline-block;      /* ← 改行させない */
  white-space: nowrap;        /* ← 日本語でも改行しない */
  margin: 0;
  text-decoration: none;
  font-weight: 500;
}

/*****  言語切替 *****/
.lang-switch {
  display: inline-block;
  margin: 0 20px;
  padding: 6px 12px;
  font-family: "Zen Dots", "Noto Sans JP", sans-serif;
  font-size: 12px;
  line-height: 2;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 14px;
  transition: all 0.2s ease;
}

.lang-switch:hover {
  background: rgba(255,255,255,0.15);
  border-color: #888888;
}

@media (min-width: 951px) {
  .lang-ja .main-nav .nav-item {
    margin-right: 38px;
  }
}

/* ハンバーガーを押した時はドロワーメニュー化 */
#nav-toggle:checked ~ .nav-content-wrapper {
  position: fixed;
  top: 0;
  right: 0;
  width: min(300px, 82vw);
  height: 100vh;
  background: rgba(11, 42, 91, 0.98);
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 96px 28px 28px;
  z-index: 1000;
}

#nav-toggle:checked ~ .nav-content-wrapper .nav-right {
  width: 100%;
}

#nav-toggle:checked ~ .nav-content-wrapper .nav-menu {
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

#nav-toggle:checked ~ .nav-content-wrapper .nav-item {
  margin-right: 0;
}

#nav-toggle:checked ~ .nav-content-wrapper .lang-switch {
  margin: 8px 0 0;
}

@media (max-width: 950px) {
  .nav-toggle-label {
    display: inline-flex;
  }

  .nav-content-wrapper {
    display: none;
  }

  #nav-toggle:checked ~ .nav-content-wrapper {
    width: min(300px, 82vw);
  }
}


/* =========================
   Home
   ========================= */

/* Home 全体 */

body.home {
  background: linear-gradient(
    90deg,
    #0b2a5b 0%,
    #123a7a 40%,
    #339999 100%
  );
  color: #eaeaea;
  min-height: 100vh;  
}

/*
 body.home {
    
     1つ目: 半透明の黒色 (rgba(0,0,0, 0.5)) のグラデーション
     2つ目: 背景画像  0.3にすると明るく、0.7にすると暗くなる
  
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.5)),
    url("/images/back_ground_graduation1.png");

  -- 画像を画面全体に隙間なく表示する設定 --
  background-size: cover;

  -- 画像の中央を表示する設定 --
  background-position: center;

  -- 画像を繰り返さない設定 --
  background-repeat: no-repeat;

  -- 必要に応じて背景を固定（スクロールしても動かないように）する場合 --
  background-attachment: fixed;

  color: #eaeaea;
  min-height: 100vh;
} 
*/


.dna {
  position: relative;
  width: 100%;
  height: 70vh;

  background-image:
    linear-gradient(
      rgba(0,0,0,0.30),
      rgba(0,0,0,0.30)
    ),
    url("/images/9963f836-0a65-4f59-a782-a0882db135f4.png");

  background-size: cover;
  background-position: center;

  display: flex;
  align-items: center;
  justify-content: center;
}

.dna-overlay {
  text-align: left;
  color: #fff;
}

.dna-title {
  font-family: "Source Sans 3", "Noto Sans JP", sans-serif;
  font-size: clamp(30px, 5vw, 60px);
  letter-spacing: 0.15em;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.92);
}

.dna-subtitle {
  font-family: "Source Sans 3", "Noto Sans JP", sans-serif;
  font-size: 34px;
  letter-spacing: 0.2em;
  opacity: 0.85;
  line-height: 1.6;
}

.dna-title-mobile,
.dna-subtitle-mobile {
  display: none;
}

/* PC表示時のみ、見出しの字間を少し詰める */
.dna-title-desktop {
  letter-spacing: 0.07em;
}

.dna-subtitle-desktop {
  letter-spacing: 0.11em;
}

@media (max-width: 768px) {
  .dna {
    min-height: 0;
    height: auto;
    padding: 56px 16px 72px;
    align-items: flex-start;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
  }

  .dna-overlay {
    width: 100%;
  }

  .dna-title {
    font-size: clamp(28px, 8vw, 40px);
    letter-spacing: 0.08em;
    margin-bottom: 10px;
  }

  .dna-subtitle {
    font-size: clamp(18px, 4.8vw, 24px);
    letter-spacing: 0.08em;
    line-height: 1.5;
    margin: 0;
  }

  .dna-title-desktop,
  .dna-subtitle-desktop {
    display: none;
  }

  .dna-title-mobile,
  .dna-subtitle-mobile {
    display: block;
    text-align: center;
  }

  .dna-subtitle-mobile {
    letter-spacing: 0.04em;
  }
}

/* 言語別 Home About */ 
.home-about {
  padding: 80px 40px;
  background: transparent;
}

.home-about .about-title {
  font-family: "Source Sans 3", sans-serif;
  font-size: 48px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin: 0 auto 20px auto;
  text-align: left;
  max-width: 900px;
}

.home-about .container {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.home-about h2 {
  font-family: "Source Sans 3", "Noto Sans JP", sans-serif;
  font-size: 32px;
  margin-bottom: 24px;
}

.home-about p {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 20px;
  line-height: 1.9;
}

/* === Home News === */
.home-news {
  padding: 60px 40px 80px 40px; /* 上は詰めて、下を空ける */
  background: transparent;
}

.home-news .news-title {
  font-family: "Source Sans 3", sans-serif;
  font-size: 48px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin: 0 auto 30px auto;
  text-align: left;
  max-width: 900px;
  color: #fff; /* タイトル色 */
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.home-news .container {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.twitter-link {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
}

.twitter-link:hover {
  color: #888888;
  text-decoration: underline;
}

.twitter-link svg {
  width: 14px;
  height: 14px;
  margin-right: 6px;
  fill: currentColor;
}

.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: clamp(280px, 45vh, 420px); /* NEWS表示高さ（最小/可変/最大） */
  overflow-y: auto;       /* 縦スクロールバーを表示 */
  padding-right: 15px;    /* スクロールバーと文字の間隔 */
}

/* スクロールバーのデザイン（Chrome, Safari, Edge用） */
.news-list::-webkit-scrollbar {
  width: 8px;             /* バーの太さ */
}

.news-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1); /* 背景（薄い透明な白） */
}

.news-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.5); /* つまみ部分（半透明の白） */
  border-radius: 4px;     /* 丸みをつける */
}

.news-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.3); /* 半透明の白線 */
  padding: 15px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
}

.news-date {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7); /* 日付は少し薄く */
  min-width: 100px;
}

.news-link {
  text-decoration: none;
  color: #fff;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  flex: 1;
  transition: opacity 0.2s;
}

.news-link:hover {
  opacity: 0.7;
  text-decoration: underline;
  color: #888888;
}

.new-badge {
  color: red;
  font-weight: bold;
}
/* もっと見るボタン */
.more-link {
  display: flex;              /* テキストと矢印を横並びにする */
  align-items: center;        /* 上下中央揃え */
  gap: 12px;                  /* テキストと矢印の間隔 */
  width: fit-content;
  margin: 24px 0 0 auto;
  padding: 14px 40px;         /* 余白を増やしてボタンを大きく */
  background-color: transparent; /* 背景を透明にする */
  color: #EAEAEA;             /* 文字色（テーマカラー） */
  border: 2px solid #EAEAEA;  /* 枠線（テーマカラー） */
  text-decoration: none;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 18px;            /* 文字を大きく */
  font-weight: 600;
  border-radius: 8px;           /* 角を四角くする（お好みで 4px などに戻してください） */
  transition: all 0.3s ease;
}

/* 矢印（→）を追加 */
.more-link::after {
  content: "→";
  font-family: sans-serif;
  transition: transform 0.3s ease;
}

.more-link:hover {
  color: #888888; 
  border: 2px solid #888888;               /* ホバー時に文字を白く */
}

/* ホバー時に矢印を少し右に動かすアニメーション */
.more-link:hover::after {
  transform: translateX(5px);
}

/* === Home External Links (Newsの下) === */
.home-links {
  padding: 80px 40px 20px 40px; /* 上の余白(padding-top)を0から40pxに変更 */
  background: transparent;
}

.home-links .container {
  max-width: 900px;
  margin: 0 auto;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(3, 200px); /* 幅を200pxに固定（ここを変更して調整） */
  justify-content: center; /* 全体を中央寄せ */
  gap: 80px;
}

.link-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  height: 80px; /* 箱の高さを固定 */
  overflow: hidden; /* 角丸からはみ出さないようにする */
  background: #fff; /* 背景を白にして、ロゴの色を正しく表示 */
  border: none;
  border-radius: 0px;
  text-decoration: none;
  color: #fff;
  transition: all 0.3s ease;
}

.link-item:hover {
  background: #fff;
  transform: translateY(-4px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.link-icon {
  width: 85%;        /* 画像の幅 */
  height: 85%;       /* 画像の高さ */
  object-fit: contain; /* 画像全体を表示（トリミングなし） */
  margin-bottom: 0; /* タイトルとの間隔 */
  transition: transform 0.3s ease;
}

/* ホバー時に画像を少し拡大 */
.link-item:hover .link-icon {
  transform: scale(1.1);
}

.link-title {
  font-family: "Source Sans 3", "Noto Sans JP", sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.05em;
  display: none; /* テキストを非表示にする */
}

@media (max-width: 768px) {
  .links-grid {
    grid-template-columns: 1fr; /* スマホでは縦並び */
  }
}

@media (max-width: 768px) {
  .home-about {
    padding: 56px 16px;
  }

  .home-about .about-title {
    font-size: clamp(30px, 9vw, 38px);
    letter-spacing: 0.06em;
    margin-bottom: 14px;
  }

  .home-about h2 {
    font-size: clamp(22px, 6.4vw, 28px);
    margin-bottom: 14px;
  }

  .home-about p {
    font-size: clamp(15px, 4.2vw, 18px);
    line-height: 1.8;
  }

  .home-news {
    padding: 40px 16px 56px;
  }

  .home-news .news-title {
    font-size: clamp(30px, 9vw, 38px);
    letter-spacing: 0.06em;
    margin-bottom: 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .twitter-link {
    font-size: 13px;
    letter-spacing: 0.02em;
  }

  .twitter-link svg {
    width: 13px;
    height: 13px;
  }

  .news-list {
    max-height: min(52vh, 420px);
    padding-right: 8px;
  }

  .news-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 10px;
    align-items: start;
    padding: 12px 0;
  }

  .news-date {
    min-width: 0;
    font-size: 14px;
  }

  .new-badge {
    font-size: 12px;
    align-self: center;
  }

  .news-link {
    grid-column: 1 / -1;
    font-size: 15px;
    line-height: 1.6;
  }
}


/* === Page Title Section === */
.page-title {
  min-height: 200px;       /* 高さを確保 */
  display: flex;           /* Flexboxで配置制御 */
  align-items: flex-end;   /* 下揃え */
  justify-content: center; /* 左右中央 */
  padding: 0 40px 50px;    /* 下に余白を持たせる */
  color: #fff;
  background-color: #2c3e50; /* 仮の背景色 */
  background-image: url('/images/slideshow_photo_4.png');
  background-size: cover;
  background-position: center;
  position: relative;
}

/* 背景画像の上に半透明の黒を重ねて文字を読みやすくする */
.page-title::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.05);
  z-index: 1;
}

.page-title .container {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
}

.page-title h1 {
  font-family: "Source Sans 3", sans-serif;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 0.2em;
  margin: 0;
  line-height: 1.2;
  text-align: center;
}

body.lang-ja .page-title h1 {
  font-size: 34px;
}

body.lang-en .page-title h1 {
  letter-spacing: 0.08em;
}

.page-title h1 .title-ja {
  font-size: 28px; /* ← ここの数値を変更して大きさを調整 */
  letter-spacing: 0.1em;
}

/* Global: page titles are centered on every page using .page-title */
section.page-title > .container,
section.page-title > .container > h1 {
  text-align: center;
}

/* === Research Page === */
/* === Research Page Background === */
/*
body.research {
  background-color: rgba(0, 0, 0, 0.1);
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
    url("/images/back_ground_blue.png");

  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh;
}


body.research {
  background: linear-gradient(
    90deg,
    rgba(11, 42, 91, 0.5) 0%,
    rgba(18, 58, 122, 0.5) 40%,
    rgba(51, 153, 153, 0.5) 100%
  );
  color: #eaeaea;
  min-height: 100vh;  
}
  */

body.research {
  background: #ffffff;
  color: #222;
  min-height: 100vh;  
}

/* Researchページ一覧のサマリー画像 */
body.research .research-summary-image-wrapper {
  max-width: 1000px;
  margin: 4rem auto 0;
  padding: 0 20px;
  box-sizing: border-box;
}

body.research .research-summary-image-wrapper img {
  width: 100%;
  max-width: 800px; /* 画像の最大幅を800pxに設定 */
  height: auto;
  display: block;
  margin: 0 auto; /* 中央に配置 */
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.research-card-title::before {
  content: "";
  display: inline-block;
  width: 0.6em;
  height: 0.6em;
  width: 14px; /* 細い棒状に */
  height: 1.2em; /* テキストより少し高く */
  background-color:#00366e; /* Publications等の見出しと同じ赤系の色 */
  margin-right: 0.6rem;
  flex-shrink: 0;
}

/* Researchページ（一覧）の説明文エリア */
/* homeのAboutセクション風に */
.container > .research-content {
  background: transparent;
  color: #222;
  padding: 0 20px;
  max-width: 1000px;
  margin: 4rem auto 0; /* 画像と説明文の間の余白を広げる */
}

.container > .research-content p {
  font-size: 1.2rem;
  line-height: 1.8;
  text-align: left;
}

/* === Research card layout === */
/* 全体レイアウト（カード一覧）自動で横並び 画面幅<に応じて列数変更*/
.research-list {
  display: grid;
  grid-template-columns: 1fr; /* 1列レイアウトに変更 */
  gap: 40px;

  max-width:900px;   /* ← 全体の横幅を制限 */
  margin: 4rem auto 6rem; /* 上下の余白も少し詰めました */
  padding: 0 16px;    /* ← 画面端との余白 */  
}

/* スマホでは1列にする */
@media (max-width: 768px) {
  .research-list {
    grid-template-columns: 1fr;
  }

  .container > .research-content {
    padding: 0 12px;
    margin: 1.6rem auto 0;
  }

  .container > .research-content .join-us-title {
    font-size: clamp(1.35rem, 6vw, 1.75rem);
    margin-bottom: 0.8rem;
    line-height: 1.35;
  }

  .container > .research-content p {
    font-size: 0.98rem;
    line-height: 1.65;
  }

  /* スマホでは画像を上、テキストを下に */
  .research-link {
    flex-direction: column !important;
  }
  .research-image, .research-text {
    width: 100% !important;
  }
  .research-image {
    border: none !important;
    border-bottom: 3px solid #aaa !important;
  }
}

/* カード本体（箱の大きさ・位置）*/
.research-item {
  background: transparent;
  border: none; /* 枠線を削除 */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.research-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

/* クリック範囲をカード全体に */
.research-link {
  display: flex; /* flexboxで横並びにする */
  align-items: stretch; /* 子要素の高さを揃える */
  color: inherit;
  text-decoration: none;
}

/* 偶数番目(2,4,...)は テキスト | 画像 の順にする */
.research-item:nth-child(even) .research-link {
  flex-direction: row-reverse;
}

/* === image box === */
.research-image {
  width: 50%; /* 幅を半分に */
  flex-shrink: 0; /* 縮まないようにする */
  /*  aspect-ratio: 4 / 3;   ここが重要 */
  height: auto; /* 高さは自動調整 */
  overflow: hidden;
  background: #f5f5f5;
  border: 5px solid #ccc;
}

.research-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center; /* 表示位置を中央に */
}

/* === text area === */
.research-text {
  padding: 24px;
  background-color: transparent; /* 背景色をなくし、カードの背景と一体化 */
  width: 50%; /* 幅を半分に */
  box-sizing: border-box; /* paddingを含めて幅を計算 */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.research-text h2 {
  font-size: 1.2rem;
  margin: 0 0 0.1rem 0; /* h2とsummaryの間隔を調整 */
  line-height: 1.3;       /* 行間を少し詰める */
  min-height: 3.1rem;     /* 常に2行分の高さを確保 (1.1rem * 1.4 * 2行 ≒ 3.1rem) */
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;  /* 2行を超えたら...で省略 */
  -webkit-box-orient: vertical;
  color: #444;
  overflow: hidden;
}

.research-text .summary {
  font-size: 1.15rem;
  color: #444;
  line-height: 1.4; /* 行間を調整して読みやすくします */
  font-weight: 500;
  min-height: 3.2rem; /* 文字サイズに合わせて2行分の高さを確保 */
  margin-top: 0; 
}

/* ===== Research detail page ===== */

.research-detail {
  max-width: 1000px;
  margin: 4rem auto;
}

.research-title {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.research-sub_title {
  font-size: 2rem;
  font-weight: 600;
  color:#00366e;
  margin: 1.2rem auto 0.8rem;
}

.research-summary {
  font-size: 1.5rem;
  color: #00366e;
  line-height: 1.5;
  font-weight: 600;
  margin: 1.2rem auto 0.8rem;
}

.research-divider {
  width: 580px;
  height: 2px;
  margin: 0 auto 2rem;
  border: none;
  background: linear-gradient(
    to right,
    #3aaed8 0%,
    #3aaed8 30%,
    #133846 60%,
    #000 100%
  );
}

.research-detail-image {
  max-width: 500px;
  margin: 5rem auto;
  display: block;
}

.research-content {
  text-align: left;   /* 本文は左寄せ（cyr.mae風） */
  line-height: 1.8;
  margin: 3rem auto;
  color: #444;
  font-size: 1.2rem;
}

.back-link {
  text-align: right;
  margin-top: 3rem;
}

.back-link a {
  color: #0056b3;
  text-decoration: none;
}

@media (max-width: 768px) {
  .research-detail {
    margin: 2rem auto;
    padding: 0 16px;
    box-sizing: border-box;
  }

  .research-sub_title {
    font-size: clamp(1.4rem, 6vw, 1.8rem);
    margin: 0.8rem auto 0.6rem;
    line-height: 1.35;
  }

  .research-summary {
    font-size: clamp(1.05rem, 4.6vw, 1.25rem);
    line-height: 1.55;
    margin: 0.8rem auto 0.6rem;
  }

  .research-divider {
    width: 100%;
    max-width: 100%;
    margin: 0 0 1.2rem;
  }

  .research-detail .research-content {
    margin: 1.4rem auto;
    font-size: 1rem;
    line-height: 1.75;
  }

  .research-detail-image {
    width: 100%;
    max-width: 100%;
    margin: 2rem auto;
    height: auto;
  }

  .back-link {
    text-align: left;
    margin-top: 1.6rem;
  }
}

/* === Publications Page === */
body.publications {
  background-color: #ffffff; 
  color: #222;            /* 基本の文字色を濃い色に */
  min-height: 100vh;  
}

/* Publications Page Layout */
.publications-wrapper {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}

.publications-sidebar {
  min-width: 240px;
  width: 240px;
  position: fixed;
  top: 110px;
  left: calc(1vw + 1rem);
  z-index: 40;
  max-height: none;
  overflow: visible;
  /* カードのコンテナ自体は透明に */
  background-color: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.publications-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  /* gap: 0.75rem; */ /* カード間の隙間をなくし、一体感のあるデザインに */
  border-radius: 8px; /* メニュー全体に角丸を適用 */
  box-shadow: 0 2px 8px rgba(11, 42, 91, 0.1); /* 影を全体に適用 */
}

.publications-menu li a {
  display: block;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
  font-size: 1rem;
  font-weight: 500;
  /* カードのスタイル */
  background-color: #1D5A84; /* ツールのボタンと同じ色 */
  color: #fff; /* 文字色を白に */
  border-bottom: 1px solid rgba(255, 255, 255, 0.2); /* 区切り線を半透明の白に */
}

/* 最後の項目からは区切り線を削除 */
.publications-menu li:last-child a {
  border-bottom: none;
}

.publications-menu li a:hover {
  background-color: #dbe8ff; /* ホバー時にもう少し濃い青に */
  color: #1D5A84;
}

.publications-menu li a.active {
  background-color: #fff; /* アクティブな項目は白背景に */
  color: #1D5A84; /* 文字色をツールボタンの色に */
  font-weight: 600;
}

.publications-menu li.has-dropdown {
  position: relative;
}

.publications-menu li.has-dropdown > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.dropdown-toggle {
  transition: transform 0.2s ease;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  list-style: none;
  padding: 0;
  margin: 0;
  z-index: 10;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  overflow: visible;
}

.publications-menu li.has-dropdown:hover .dropdown-menu {
  display: block;
}

.publications-menu li.has-dropdown:focus-within .dropdown-menu {
  display: block;
}

.publications-menu li.has-dropdown:hover .dropdown-toggle {
  transform: rotate(90deg);
}

.publications-menu li.has-dropdown:focus-within .dropdown-toggle {
  transform: rotate(90deg);
}

.dropdown-menu li a {
  background-color: #fff;
  color: #333;
  font-weight: 500;
  border-bottom: 1px solid #eee;
}

.publications-content {
  flex: 1;
  min-width: 0; /* flexアイテムのオーバーフローを防ぐ */
  padding-right: 1rem;
  padding-left: 1rem;
  margin-left: calc(240px + 3rem);
}

/* アンカーリンクで飛んだ際に見出しが隠れないように調整 */
h3[id] {
  scroll-margin-top: 2rem;
}

.publications-container {
  background-color: #ffffff;
  max-width: 98%;
  margin: 4rem auto;
  padding: 0 1rem;
  text-align: left;
  color: inherit; /* body.publications の文字色を継承する */
}

.publications-container h3 {
  font-size: 2.0em; 
  color: #e63f22;
}

.publications-heading {
  font-size: 2.4rem;
  color: #e63f22;
  margin-bottom: 1rem;
}

.publication-year {
  font-size: 2rem;
  color: #0b2a5b;
  border-bottom: 2px solid #ddd;
  margin-top: 3rem;
  margin-bottom: 1rem;
  font-family: "Source Sans 3", sans-serif;
}

.publication-list {
  list-style-type: none;
  padding: 0;
  line-height: 1.3; /* 行の高さを詰めます */
  display: flex;
  flex-direction: column;
  gap: 0; /* アイテム間の隙間をなくします */
}

.publication-item {
  padding-bottom: 0; /* テキストと下線の間の余白をなくします */
  border-bottom: 1px solid #eee;
  font-size: 1.2rem;
}

.publication-item:last-child {
  border-bottom: none;
}

@media (max-width: 768px) {
  .publications-wrapper {
    flex-direction: column;
  }
  .publications-sidebar {
    width: 100%;
    position: sticky;
    top: 88px;
    left: auto;
    margin-bottom: 1rem;
    box-sizing: border-box;
    max-height: none;
    overflow: visible;
    z-index: 50;
  }
  .publications-content {
    margin-left: 0;
  }
}

/* === Members Page === */
body.members {
  background-color: #f0f0f0;
  color: #222;
  min-height: 100vh;
  font-size: 18px;
}



.members-photo-container {
  max-width: 1150px; /* ここで全体の最大幅を調整します（例: 1500px -> 1000px） */
  margin: 2rem auto;
  padding: 0 20px;
}

.members-photo-container img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}
.members-container {
  --members-panel-width: 820px;
  max-width: 1500px;
  margin: 4rem auto;
  padding: 0 20px;
}



/* === Members Table === */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.members-table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0;
  min-width: 600px; /* スマホでスクロールさせるために最小幅を設定 */
}

.former-members-table {
  width: 100%;
  margin: 10px 0;
}
.members-table th, .members-table td {
  border: 1px solid #ddd;
  padding: 12px 15px;
  text-align: left;
}
.members-table th {
  background-color: #0b2a5b;
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}
.members-table tr:nth-child(even) {
  background-color: #f8f9fa;
}
.members-table tr:hover {
  background-color: #e9ecef;
}
.members-table a {
  color: #0b2a5b;
  text-decoration: none;
}
.members-table a:hover {
  text-decoration: underline;
}

.members-table a.member-profile-link,
.prof-text a.member-profile-link {
  color: inherit; /* 親要素の色を継承し、通常のテキストと同じ色にします */
  text-decoration: underline; /* 下線を表示します */
}

.member-profile-link:hover {
  text-decoration: underline;
}

/* === Professor Info Section (Interactive) === */
.professor-section {
  margin-top: 60px;
}

.professor-photos {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}

.prof-photo {
  width: auto;
  height: 250px;
  object-fit: contain;
  border: 5px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 1;
}

.prof-photo:hover {
  opacity: 1;
  transform: translateY(-5px);
}

.prof-photo.active {
  opacity: 1;
  border-color: #0b2a5b;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.professor-info-display {
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  max-width: var(--members-panel-width);
  margin: 0 auto;
}

.prof-info-content {
  display: none;
  background-color: #f2f2f2;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.prof-info-content.active {
  display: block;
}

.prof-info-flex {
  display: flex;
  align-items: flex-start;
  gap: 50px;
}

.prof-detail-photo {
  width: 150px;
  height: auto;
  object-fit: contain;
  border: 5px solid #0b2a5b;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  flex-shrink: 0;
  margin-left: 30px;
}

.prof-text {
  flex: 1;
}

.prof-info-content h3 {
  font-size: 2.0rem;
  color: #C00C3A;
  margin-top: 0;
  margin-bottom: 0;
  text-align: left;
  font-family: "Source Sans 3", "Noto Sans JP", sans-serif;
}

.prof-info-content p {
  line-height: 1.8;
  text-align: left;
}

.prof-role {
  margin-top: 0;
  font-weight: 700;
  color: #666;
  margin-bottom: 15px;
}

.alumni-section {
  max-width: var(--members-panel-width);
  margin: 60px auto 0;
}

.alumni-title {
  color: #0b2a5b;
  border-bottom: 2px solid #ddd;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.alumni-section .table-responsive {
  width: 100%;
  margin: 0 auto;
}

.alumni-section .former-members-table {
  display: table;
  width: 100%;
  min-width: 0;
  table-layout: auto;
  margin: 10px 0;
}

.alumni-section .former-members-table th:nth-child(1),
.alumni-section .former-members-table td:nth-child(1),
.alumni-section .former-members-table th:nth-child(2),
.alumni-section .former-members-table td:nth-child(2) {
  width: 50%;
}

.alumni-section .former-members-table th:nth-child(3),
.alumni-section .former-members-table td:nth-child(3) {
  width: 1%;
  min-width: 110px;
  white-space: nowrap;
}

@media (max-width: 768px) {
  body.members {
    font-size: 16px;
  }

  .members-photo-container {
    margin: 1.2rem auto;
    padding: 0 12px;
  }

  .members-container {
    margin: 2rem auto;
    padding: 0 12px;
  }

  .table-responsive {
    border-radius: 8px;
    overflow-x: visible;
  }

  .members-table,
  .alumni-section .former-members-table {
    min-width: 0;
    width: 100%;
    table-layout: fixed;
  }

  .members-table th,
  .members-table td {
    padding: 8px 6px;
    font-size: 12px;
    white-space: normal;
    word-break: break-word;
  }

  .alumni-section .former-members-table th,
  .alumni-section .former-members-table td {
    padding: 8px 6px;
    font-size: 12px;
    white-space: normal;
    word-break: break-word;
  }

  .members-table th {
    white-space: normal;
  }

  .professor-section {
    margin-top: 40px;
  }

  .professor-photos {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 10px;
    padding-bottom: 6px;
  }

  .prof-photo {
    width: auto;
    height: 88px;
    flex: 0 0 auto;
    border-width: 3px;
  }

  .professor-info-display {
    max-width: 100%;
  }

  .prof-info-flex {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .prof-info-content {
    padding: 18px 14px;
  }

  .prof-info-content h3 {
    font-size: 1.6rem;
    text-align: left;
  }

  .prof-info-content p {
    font-size: 15px;
    line-height: 1.7;
  }

  .prof-detail-photo {
    margin-bottom: 20px;
    margin-left: 0;
  }

  .alumni-section {
    margin-top: 40px;
  }

  .alumni-title {
    margin-bottom: 14px;
    padding-bottom: 8px;
  }

  .alumni-section .former-members-table th:nth-child(1),
  .alumni-section .former-members-table td:nth-child(1),
  .alumni-section .former-members-table th:nth-child(2),
  .alumni-section .former-members-table td:nth-child(2) {
    width: 42%;
  }

  .alumni-section .former-members-table th:nth-child(3),
  .alumni-section .former-members-table td:nth-child(3) {
    width: 16%;
    min-width: 64px;
    max-width: 84px;
    white-space: nowrap;
    text-align: center;
  }
}

.member-profile-page .professor-info-display {
  max-width: 1240px;
}

.member-profile-page .prof-info-content {
  background-color: transparent;
  box-shadow: none;
  padding: 56px;
}

.member-profile-page .prof-info-flex {
  gap: 76px;
}

.member-profile-page .prof-detail-photo {
  width: 210px;
}

.member-profile-page .prof-info-content h3 {
  font-size: 2.7rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}

.member-profile-page .prof-role {
  font-size: 1.65rem;
  font-weight: 800;
  color: #0b2a5b;
}

.member-profile-page .prof-affiliation {
  font-size: 1.5rem;
  font-weight: 700;
}

.member-profile-page .profile-external-links {
  margin-top: 24px;
}

.member-profile-page .profile-details {
  max-width: 1240px;
  margin: 0 auto;
}

.member-profile-page .profile-details > * {
  margin-left: 40px;
}

.member-profile-page .external-links-divider {
  border-top: 1px solid rgba(11, 42, 91, 0.35);
  margin: 0 0 28px;
}

.member-profile-page .external-links-grid {
  display: grid;
  grid-template-columns: repeat(6, 190px);
  justify-content: center;
  gap: 10px;
}

.member-profile-page .external-link-item {
  display: block;
}

.member-profile-page .external-link-image-img {
  width: 100%;
  height: 76px;
  display: block;
  object-fit: contain;
}

.member-profile-page .profile-details h2 {
  font-size: 2.1rem;
  font-weight: 800;
  color: #062152;
  margin-top: 2.2rem;
  margin-bottom: 0.8rem;
}

.member-profile-page .profile-details h3 {
  font-size: 1.55rem;
  font-weight: 700;
  color: #0b2a5b;
  margin-top: 1.4rem;
  margin-bottom: 0.6rem;
}

.member-profile-page .profile-details h3 a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: currentColor;
}

.member-profile-page .profile-details h4 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #8b312b;
  margin-top: 1.0rem;
  margin-bottom: 0.5rem;
}

.member-profile-page .profile-details h4 a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: currentColor;
}

.member-profile-page .profile-details h5 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #062152;
  margin-top: 0.7rem;
  margin-bottom: 0.4rem;
  padding-left: 1em;
}

.member-profile-page .profile-details h5 a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: currentColor;
}

.member-profile-page .profile-details p {
  font-size: 1.25rem;
  line-height: 1.8;
}

.member-profile-page .profile-details ul {
  margin-top: 0.35em;
  margin-bottom: 0.5em;
}

.member-profile-page .profile-details li {
  font-size: 1.25rem;
  line-height: 1.35;
  margin: 0.1em 0;
}

.member-profile-page .profile-details li > p {
  line-height: 1.35;
  margin: 0;
}

.member-profile-page .profile-details .career-emphasis {
  color: #8b312b;
  font-weight: 700;
  font-size: 0.95em;
}

/* === Opportunities Page === */
.opportunities-container {
  font-size: 1.3rem;
  max-width: 1500px;
  margin: 4rem auto;
  padding: 0 20px;
  font-weight: 500;
}

.opportunities-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

.opportunities-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.opportunities-content th,
.opportunities-content td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #ddd;
}

.opportunities-content thead th {
  border-bottom: 2px solid #cfcfcf;
}

.join-us-title {
  color: #e63f22;
  margin-top: 0;
  margin-bottom: 1.5rem;
}

body.research .join-us-title {
  color: #000;
}

body.opportunities .join-us-title {
  color: #000;
}

@media (max-width: 768px) {
  .research-content .join-us-title,
  .opportunities-content .join-us-title {
    color: #000;
  }
}

.opportunity-item {
  margin-top: 3rem;
  margin-bottom: 2rem;
}

.opportunity-item h2 {
  color: #0b2a5b;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.collaboration-link {
  font-weight: 600; /* 少し太く */
  margin-top: 1.0rem;
  margin-bottom: 4rem;
  color: #0b2a5b;
  text-align: right;
}

.major-links {
  margin-top: 2rem;
  text-align: left;
  font-weight: 600;
}

.major-links a {
  color: #0b2a5b;
}

@media (max-width: 768px) {
  .opportunities-container {
    font-size: 1rem;
    margin: 2rem auto;
    padding: 0 12px;
  }

  .opportunities-content {
    padding: 8px 0;
  }

  .opportunities-content p,
  .opportunities-content li,
  .opportunities-content td,
  .opportunities-content th {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .opportunities-content table {
    margin: 0.6rem 0;
  }

  .opportunities-content th,
  .opportunities-content td {
    padding: 6px 7px;
  }

  .opportunity-item {
    margin-top: 1.4rem;
    margin-bottom: 1rem;
  }

  .opportunity-item h2 {
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
    padding-bottom: 0.35rem;
  }

  .collaboration-link {
    margin-top: 0.6rem;
    margin-bottom: 1.4rem;
    font-size: 0.92rem;
    line-height: 1.5;
  }

  .major-links {
    margin-top: 1rem;
    font-size: 0.95rem;
  }

  .major-links p {
    margin: 0.35rem 0;
  }
}

/* === Tools Page === */
.tools-container {
  font-size: 2.0rem;
  max-width: 1100px;
  margin: 4rem auto;
  padding: 0 20px;
  font-weight: 600;
  text-align: center; /* コンテナ内のテキストを中央揃えにします */
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-top: 50px;
}

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

.tool-card {
  display: flex;
  flex-direction: row;        /* 横並びに戻す */
  align-items: center;        /* 中央揃え */
  justify-content: center;    /* 中央揃え */
  padding: 13px;
  min-height: 10px;
  background: #1D5A84;
  border: 1px solid #1D5A84;
  border-radius: 16px;
  text-decoration: none;
  color: #ffffff;
  transition: all 0.4s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.tool-card:hover {
  background: #ffffff;
  color: #1D5A84;
  transform: translateY(-7px);
  box-shadow: 0 15px 30px rgba(11, 42, 91, 0.2);
  border-color: #1D5A84;
}

.tool-card h3 {
  margin: 0;
  margin-bottom: 0;           /* 下のマージンを削除 */
  font-size: 1.5rem;
  font-family: "Source Sans 3", sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.tool-card i {
  margin-right: 12px;
  font-size: 1.1em;
}

.tool-description {
  margin-top: 15px;           /* 箱との間隔 */
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 400;
  width: 100%;
  color: #333;                /* 文字色を黒っぽく */
  text-align: left; /* 説明文は意図せず中央揃えにならないよう左揃えに戻します */
}

/* 新しいラッパークラス */
.tool-item {
  display: flex;
  flex-direction: column;
}

.tools-section-title {
  font-size: 1.8rem;
  color: #0b2a5b;
  margin-top: 100px;
  margin-bottom: 10px;
  font-family: "Source Sans 3", sans-serif;
  font-weight: 700;
}

/* Previous Projects Card Color */
.tool-card.previous {
  background: #2A808F; /* 落ち着いたブルーグレー */
  border-color: #2A808F;
}

.tool-card.previous:hover {
  background: #ffffff;
  color: #2A808F;
  border-color: #2A808F;
}

@media (max-width: 768px) {
  .tools-container {
    font-size: 1rem;
    margin: 2rem auto;
    padding: 0 12px;
  }

  .tools-container > p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0.5rem 0;
  }

  .tools-grid {
    gap: 14px;
    margin-top: 22px;
  }

  .tool-card {
    padding: 10px;
    border-radius: 12px;
  }

  .tool-card h3 {
    font-size: 1.08rem;
    line-height: 1.3;
  }

  .tool-card i {
    margin-right: 8px;
    font-size: 1em;
  }

  .tool-description {
    margin-top: 8px;
    font-size: 0.92rem;
    line-height: 1.5;
  }

  .tools-section-title {
    font-size: 1.35rem;
    margin-top: 2rem;
    margin-bottom: 0.6rem;
  }
}

/* === Access Page === */
.access-container {
  font-size: 2.0rem;
  max-width: 1300px;
  margin: 4rem auto; /* 上下の余白を統一 */
  padding: 0 20px;
  font-weight: 600;
}
.access-address {
  margin-top: 3rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.access-lab-name {
  font-family: "Source Sans 3", "Noto Sans JP", sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #0b2a5b;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2.5rem;
  position: relative;
  text-align: center;
}

.access-lab-name-mobile {
  display: none;
}

.access-detail-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  line-height: 1.6;
}

.access-icon {
  color: #0b2a5b;
  font-size: 1.4rem;
  margin-right: 20px;
  margin-top: 4px;
  width: 24px;
  flex-shrink: 0;
}

.access-text {
  color: #333;
  font-weight: 500;
}

@media (max-width: 600px) {
  .access-detail-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .access-icon {
    margin-right: 0;
    margin-bottom: 10px;
  }
}

.access-content {
  color: #000;
  font-size: 1.8rem;
  text-align: center;
  line-height: 1.7;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}


/* === Google Map === */
.map-container {
  position: relative;
  overflow: hidden;
  width:80%;
  height: 500px;
  margin: 2rem auto 0; /* 上に余白、左右autoで中央寄せ、下は0 */
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.map-link-wrapper {
  width: 80%; /* 地図と同じ幅に設定 */
  margin: 1rem auto 0; /* 上に余白、左右autoで中央寄せ */
  text-align: right; /* 右寄せにする */
}

.google-map-link {
  display: inline-block;
  padding: 5px 20px;       /* ボタンの内側の余白 */
  background-color: #1654b9; /* 背景色（テーマカラー） */
  color: #fff;              /* 文字色を白に */
  font-size: 0.8rem;        /* 文字サイズを大きく */
  text-decoration: none;    /* 下線を消す */
  border-radius: 6px;       /* 角を少し丸く */
  transition: opacity 0.3s;
}

.google-map-link:hover {
  opacity: 0.8;             /* ホバー時に少し薄くする */
}

/* === Access Page Images === */
.access-images-wrapper {
  display: flex;
  gap: 60px; /* 写真同士の間隔 */
  align-items: flex-start; /* Align items to the top */
  width: 70%;
  margin: 6rem auto 0; 
}

.access-image-item {
  flex: 1; /* Each item takes up equal space */
  display: flex;
  flex-direction: column;
}

.access-image {
  width: 90%;
  height: auto;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.access-caption {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #333;
  font-weight: 500;
  text-align: left;
  margin-top: 0;
  margin-bottom: 10px;
  min-height: 6rem; /* キャプションの高さを揃え、写真の開始位置を統一する */
}

@media (max-width: 768px) {
  .access-container {
    font-size: 1rem;
    margin: 2rem auto;
    padding: 0 12px;
  }

  .access-content {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0.8rem;
    text-align: left;
  }

  .access-lab-name {
    font-size: 1.15rem;
    margin-bottom: 1.1rem;
    line-height: 1.4;
    text-wrap: balance;
  }

  .access-lab-name-desktop {
    display: none;
  }

  .access-lab-name-mobile {
    display: block;
  }

  .access-lab-name-line {
    display: block;
  }

  .access-address {
    margin-top: 1.2rem;
  }

  .access-detail-row {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    line-height: 1.45;
  }

  .access-icon {
    font-size: 1rem;
    margin-right: 10px;
    width: 16px;
  }

  .map-container,
  .map-link-wrapper,
  .access-images-wrapper {
    width: 100%;
  }

  .map-container {
    height: 320px;
    margin-top: 1rem;
  }

  .google-map-link {
    padding: 4px 12px;
    font-size: 0.72rem;
  }

  .access-images-wrapper {
    flex-direction: column;
    gap: 24px;
    margin-top: 2rem;
  }

  .access-image {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .access-caption {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 6px;
    min-height: 0;
  }
}

/* === Global responsive adjustments === */
img {
  max-width: 100%;
}

@media (max-width: 1200px) {
  .member-profile-page .prof-info-content {
    padding: 40px 28px;
  }

  .member-profile-page .prof-info-flex {
    gap: 40px;
  }

  .member-profile-page .external-links-grid {
    grid-template-columns: repeat(3, minmax(0, 190px));
  }
}

@media (max-width: 900px) {
  .page-title {
    min-height: 160px;
    padding: 0 20px 32px;
  }

  .page-title h1 {
    font-size: 32px;
    letter-spacing: 0.12em;
    text-align: center;
  }

  body.lang-en .page-title h1 {
    letter-spacing: 0.05em;
  }

  body.lang-ja .page-title h1 {
    font-size: 28px;
  }

  .home-links {
    padding: 56px 20px 20px;
  }

  .links-grid {
    grid-template-columns: repeat(2, minmax(0, 200px));
    gap: 24px;
  }

  .member-profile-page .prof-info-content {
    padding: 28px 20px;
  }

  .member-profile-page .prof-info-flex {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .member-profile-page .prof-detail-photo {
    margin-left: 0;
    width: min(210px, 45vw);
  }

  .member-profile-page .profile-details > * {
    margin-left: 0;
  }

  .member-profile-page .external-links-grid {
    grid-template-columns: repeat(2, minmax(0, 190px));
  }

  .map-container,
  .map-link-wrapper,
  .access-images-wrapper {
    width: 100%;
  }

  .access-images-wrapper {
    gap: 32px;
    margin-top: 4rem;
  }

  .access-image {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-title {
    min-height: 132px;
    padding: 0 14px 22px;
  }

  .page-title h1 {
    font-size: clamp(22px, 7vw, 27px);
    letter-spacing: 0.08em;
    line-height: 1.2;
  }

  body.lang-ja .page-title h1 {
    font-size: clamp(20px, 6.5vw, 24px);
    letter-spacing: 0.06em;
  }

  body.lang-en .page-title h1 {
    letter-spacing: 0.04em;
  }

  .links-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .member-profile-page .external-links-grid {
    grid-template-columns: 1fr;
  }

  .member-profile-page .external-link-image-img {
    height: auto;
    max-height: 76px;
  }
}

/* === Footer === */
.site-footer {
  background-color: #062152;
  color: #fff;
  padding: 10px 0;
  margin-top: auto;
}

.site-footer p {
  margin: 0;
  font-size: 14px;
  font-family: "Noto Sans JP", sans-serif;
  letter-spacing: 0.05em;
  text-align: center;
}

:root {
  --site-font-unified: "IBM Plex Sans", "IBM Plex Sans JP", sans-serif;
}

body,
body * {
  font-family: var(--site-font-unified) !important;
}

.fa,
.fas,
.far,
.fa-solid,
.fa-regular {
  font-family: "Font Awesome 6 Free" !important;
}

.fab,
.fa-brands {
  font-family: "Font Awesome 6 Brands" !important;
}
