/* --------------------------------------------------------------
       Base
    -------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Noto Sans JP", "游ゴシック体", "YuGothic", sans-serif;
  color: #333;
  line-height: 1.8;
  letter-spacing: 0.03em;
  background-color: #ffffff;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.l-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}
.section {
  padding: 80px 0;
}
.section__title-en {
  font-weight: 600;
  color: #3F4EAC;
  padding-left: 15px;
  position: relative;
}
.page-hero__inner .section__title-en {
  color: #fff;
}
.section__title-en::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  transform: translateY(-50%);
  background: url("../images/top/icon.svg") no-repeat center/contain;
}
.section__title-ja {
  font-size: 32px;
  font-weight: 700;
  color: #3F4EAC;
  margin: 0 0 24px;
}
.c-button {
  display: inline-block;
  padding: 12px 32px;
  background-color: #1d63c5;
  color: #fff;
  font-size: 14px;
  border-radius: 2px;
  transition: opacity 0.2s ease;
}
.c-button:hover {
  opacity: 0.8;
}
/* --------------------------------------------------------------
       Header
    -------------------------------------------------------------- */
/* ヘッダーの基本レイアウト */
.site-header {
  background-color: #fff;
  border-bottom: 1px solid #dde5f0;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px;
  display: flex;
  align-items: center;
}
/* ロゴ */
.header__brand img {
  display: block;
  height: auto;
}
/* PCナビ（横並び） */
.header-nav {
  margin-left: auto;
}
.header-nav ul {
  display: flex;
  gap: 30px;
}
.header-nav li {
  list-style: none;
}
.header-nav a {
  text-decoration: none;
  color: #333;
  white-space: nowrap;
  position: relative;
  font-weight: 600;
}
.header-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 0;
  height: 2px;
  background-color: #1452a0;
  transition: width 0.2s ease;
}
.header-nav .active a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 100%;
  height: 4px;
  background-color: #1452a0;
  transition: width 0.2s ease;
}
.header-nav a:hover::after {
  width: 100%;
}
/* ハンバーガーボタン（共通の見た目。デフォは非表示） */
.header-toggle {
  display: none; /* ← ここがポイント。SPだけで display:block にする */
  position: relative;
  width: 32px;
  height: 24px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
}
/* 線3本 */
.header-toggle span, .header-toggle span::before, .header-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #1452a0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.header-toggle span {
  top: 50%;
  transform: translateY(-50%);
}
.header-toggle span::before {
  top: -8px;
}
.header-toggle span::after {
  top: 8px;
}
/* 開いたとき「×」にする */
.header-toggle.is-open span {
  background-color: transparent;
}
.header-toggle.is-open span::before {
  top: 0;
  transform: rotate(45deg);
}
.header-toggle.is-open span::after {
  top: 0;
  transform: rotate(-45deg);
}
/* =========================
   iPad Pro / mini / SP でハンバーガー
========================= */
@media (max-width: 1024px) {
  .header__inner {
    position: relative;
    justify-content: flex-start;
    padding: 10px 15px;
  }
  .header__brand {
    flex: 1 1 auto; /* ロゴを左側に寄せつつ広げる */
  }
  /* 右上に3本線 */
  .header-toggle {
    display: block; /* ★ここで出す */
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
  }
  /* ナビはヘッダー下にふわっと表示するドロップダウン */
  .header-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background-color: #ffffff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    padding: 16px 20px 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }
  .header-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .header-nav ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .header-nav a {
    display: block;
    font-size: 15px;
    padding: 4px 0;
  }
  .header-nav .active a::after {
    width: 100px;
  }
}
/* =========================
   SP / iPad mini 以下
========================= */
@media (max-width: 900px) {
  .header__inner {
    position: relative;
    justify-content: flex-start;
  }
  .header__brand {
    flex: 1 1 auto; /* ロゴ側を広げる */
  }
  /* 3本線ボタンを右上に表示 */
  .header-toggle {
    display: block; /* ★ここで display:block に上書き */
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
  }
  /* ナビをヘッダー下にふわっと表示 */
  .header-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background-color: #ffffff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    padding: 30px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }
  .header-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 100;
  }
  .header-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0
  }
  .header-nav li {
    list-style: none;
    border-bottom: 1px solid #e3e6ee;
    width: 100%;
  }
  .header-nav li:last-child {
    border-bottom: none;
  }
  .header-nav a {
    display: block;
    padding: 10px 0;
    white-space: nowrap;
  }
}
/* --------------------------------------------------------------
       Hero
    -------------------------------------------------------------- */
.hero {
  position: relative;
  height: 76vh;
  min-height: 520px;
  color: #ffffff;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
/* 背景スライド */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg-item {
  position: absolute;
  inset: 0;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease;
}
/* 3枚分の画像指定＆タイミング
.hero__bg-item--1 {
  background-image: url("../images/top/kv1.jpg");
}
.hero__bg-item--2 {
  background-image: url("../images/top/kv2.jpg");
}
.hero__bg-item--3 {
  background-image: url("../images/top/kv3.jpg");
}
*/
/* 表示中スライド */
.hero__bg-item.is-active {
  opacity: 1;
}
/* 文字は前面 */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero__inner {
  position: relative;
  z-index: 3;
}
/* Hero Title */
.hero__title {
  font-size: 40px;
  line-height: 1.3;
  font-weight: 700;
  padding-left: 40px;
  margin: 0 0 30px;
  color: #ffffff;
  z-index: 4;
  position: relative;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}
.hero__title span {
  display: block;
}
.hero__catch {
  position: absolute;
  top: 14%;
  right: 60px;
  z-index: 4;
}
.hero__catch img {
  width: 140px;
  height: auto;
}
/* --------------------------------------------------------------
       News
    -------------------------------------------------------------- */
.news {
  background-color: #ffffff;
}
.news__wrap {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 40px;
}
.news__title {
  font-size: 36px;
  font-weight: 700;
  color: #3F4EAC;
  line-height: 1.5;
}
.news__text {
	padding: 15px 0;
  font-size: 15px;
  line-height: 1.8;
  margin-top: 40px;
  color: #333;
}
.news__more {
  margin-top: 20px;
}
.news__more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px; /* テキストと矢印の間隔 */
  padding: 12px 28px;
  border: 2px solid #3F4EAC;
  font-size: 16px;
  font-weight: 600;
  color: #3F4EAC;
  text-decoration: none;
  border-radius: 2px;
  transition: 0.2s ease;
}
.news__img {
  display: flex;
  align-items: center;
}
.news__image img {
  width: 100%;
  height: auto;
  display: block;
  padding: 10px;
}
/* 矢印をCSSで作成 */
.news__more-link::after {
  content: "›"; /* ＞より少し細い矢印 */
  font-size: 18px;
  line-height: 1;
  color: #3F4EAC;
}
/* ホバー：背景と文字色入れ替え */
.news__more-link:hover {
  background-color: #3F4EAC;
  color: #fff;
}
.news__more-link:hover::after {
  color: #fff;
}
.news__more .c-button {
  background: transparent !important;
  border: 1px solid #3F4EAC !important;
  color: #3F4EAC !important;
  padding: 10px 28px;
  border-radius: 2px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.news__more .c-button::after {
  content: "›";
  font-size: 18px;
  line-height: 1;
  color: #3F4EAC;
}
.news__more .c-button:hover {
  background: #3F4EAC !important;
  color: #fff !important;
}
.news__more .c-button:hover::after {
  color: #fff;
}
.news-item {
  display: grid;
  grid-template-columns: 90px 100px 1fr;
  gap: 20px;
  padding: 14px 0;
  border-top: 1px solid #e3e6ee;
}
.news-item a:hover,
.news__body a:hover {
  text-decoration: none !important;
  color:darksalmon;
}
.news-item:first-child {
  border-top: none;
}
.news-item__date {
  white-space: nowrap;
}
.news-item__cat {
  display: inline-block;
  padding: 2px 8px;
  font-size: 14px;
  font-weight: 600;
  color: #3F4EAC;
  background: #EEF2FF;
  white-space: nowrap;
  text-align: center;
  align-items: center;
  display: flex;
  justify-content: center;
}
.news-item__cat_v {
  display: inline-block;
  width: 150px;
  padding: 2px 8px;
  font-size: 14px;
  font-weight: 600;
  color: #3F4EAC;
  background: #EEF2FF;
  white-space: nowrap;
  text-align: center;
  align-items: center;
  display: flex;
  justify-content: center;
}
.news-item__title a,
.news__body a {
  color:#1d5fbf;
}
.news-item__title a:hover {
  text-decoration: underline;
}
/* --------------------------------------------------------------
       About
    -------------------------------------------------------------- */
.about {
  position: relative;
  width: 100%;
}
/* 背景画像（左側に寄せて表示） */
.about__visual {
  position: relative;
  width: 100%;
  height: 620px;
  background: url("../images/top/bg1.jpg") no-repeat center left;
  background-size: cover;
  background-position: left center;
}
/* 中央固定のレイアウト幅 */
.about__content {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  z-index: 2;
}
/* 白ボックス */
.about__box {
  max-width: 500px;
}
.about__label {
  position: relative;
  padding-left: 15px;
  color: #3F4EAC;
  font-weight: 700;
}
.about__label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  transform: translateY(-50%);
  background: url("../images/top/icon.svg") no-repeat center/contain;
}
.about__title {
  font-size: 36px;
  font-weight: 700;
  color: #3F4EAC;
  margin-top: 0;
  margin-bottom: 20px;
}
.about__text {
  font-size: 14px;
}
/* --------------------------------------------------------------
       Overview
    -------------------------------------------------------------- */
/* 背景画像（左寄せ） */
/* Overview section 全体を背景画像に */
.overview {
  position: relative;
  width: 100%;
  padding: 120px 0;
  background: url("../images/top/bg2.jpg") no-repeat;
  background-size: cover;
  background-position: right center;
}
.edu-button {
  display: inline-block;
  padding: 12px 24px;
  color: #fff;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  /* 左から右へ流れるように見せるため 3色構成 */
  background: linear-gradient(90deg, #3a8dde 0%, #1d5fbf 50%, #3a8dde 100%);
  background-size: 200% 100%;
  background-position: 0% 0%;
  transition: background-position 0.6s ease-out;
}
.edu-button2 {
  display: inline-block;
  padding: 12px 24px;
  color: #fff;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  /* 左から右へ流れるように見せるため 3色構成 */
  background: linear-gradient(90deg, #3a8dde 0%, #1d5fbf 50%, #3a8dde 100%);
  background-size: 200% 100%;
  background-position: 0% 0%;
  transition: background-position 0.6s ease-out;
  margin-top: 30px;
}
.edu-button:hover {
  /* 右端まで流れる → 結果的に反転して見える */
  background-position: 100% 0%;
}
/* 矢印 */
.edu-button::after {
  content: "›";
  font-size: 24px;
  line-height: 1;
  margin-left: 12px;
  color: #ffffff;
}
/* レイアウト幅（1200px）の右半分に白ボックス */
.overview__wrap {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  z-index: 1;
}
/* 白ボックス */
.overview__content {
  max-width: 460px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 4px;
  padding: 36px 40px;
  color: #333;
  box-sizing: border-box;
}
.overview__text {
  font-size: 14px;
  max-width: 600px;
}
.overview__text p, .about__text {
  line-height: 2;
}
.overview__button {
  margin-top: 24px;
}
.overview__image-wrap {
  position: relative;
}
.overview__image-bg {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.18);
}
/* --------------------------------------------------------------
       Access
    -------------------------------------------------------------- */
.access {
  padding: 80px 0 100px;
  background-color: #ffffff;
}
.access__wrap {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
  gap: 40px;
  align-items: flex-start;
}
.access__text {
  font-size: 14px;
}
.access__bus-logo {
  margin: 24px 0 8px;
  max-width: 280px;
}
.access__text a:hover {
  color: inherit;
  text-decoration: underline;
}
/* --------------------------------------------------------------
       Footer
    -------------------------------------------------------------- */
.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.footer__top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 16px;
}
.footer__logo {
  max-width: 220px;
}
.footer__address {
  line-height: 1.8;
}
.footer__bottom {
  text-align: center;
  padding-top: 12px;
  margin-top: 12px;
  font-size: 10px;
}
.footer__pagetop {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 48px;
  height: 48px;
  background: #1452a0;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 1000;
  transition: opacity 0.2s ease;
}
.footer__pagetop img {
  width: 4px;
  height: auto;
  display: block;
}
.footer__pagetop:hover {
  opacity: 0.85;
}
/* --------------------------------------------------------------
       下層ページ用 Hero
    -------------------------------------------------------------- */
.page-hero {
  position: relative;
  height: 260px;
  color: #ffffff;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.page-hero--equipment {
  background: url("../images/facility/hero-equipment.jpg") center center / cover no-repeat;
}
.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.55));
}
.page-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px 32px;
  width: 100%;
}
.page-hero__en {
  font-size: 18px;
  padding-top: 40px;
  font-weight: 600;
  line-height: 1;
}
.page-hero__title {
  font-size: 40px;
  font-weight: 600;
  margin: 0;
  letter-spacing: .03em;
}
/* --------------------------------------------------------------
       Equipment list
    -------------------------------------------------------------- */
.equipment-block + .equipment-block {
  margin-top: 64px;
}
.equipment-heading {
  position: relative;
  font-size: 32px;
  font-weight: 600;
  color: #1452a0;
  margin: 0 0 32px;
  padding-bottom: 12px; /* 青ラインと文字の余白 */
  border-bottom: 1px solid #dde5f0; /* 下のグレーライン */
}
.equipment-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px; /* グレー線の上に重なる */
  width: 160px; /* ← 青ラインの長さ（調整OK） */
  height: 1px;
  background-color: #1452a0;
}
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 60px;
}
.equipment-card figure {
  margin: 0 0 8px;
}
.equipment-card__title {
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 18px;
}
.equipment-card__desc {
  margin: 0;
}
/* 1カラムで縦並びにしたいとき用 */
.equipment-grid--1 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  max-width: 47.3%;
  margin-top: 60px;
}
/* 2カラムで見せたい部分用 */
.equipment-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
/* Outline コンテンツ */
.outline {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    padding: 80px 40px 40px;
}
.outline__section {
  margin-bottom: 60px;
}
.outline__text {
  font-size: 16px;
  line-height: 2;
  color: #333;
  margin-bottom: 80px;
}
.outline__image img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 80px;
}
/* Outline ヘッダー背景（施設・設備と同じ構造） */
.page-hero--outline {
  background-image: url("../images/outline/hero-outline.jpg");
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  height: 320px;
  position: relative;
}
/* ========================
   Members page hero
======================== */
.page-hero--members {
  background-image: url("../images/member/hero-member.jpg");
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
}
/* ========================
   Members
======================== */
.members {
  background-color: #ffffff;
}
.members-grid {
  display: grid;
  gap: 40px 40px;
}
/* 上段：写真付き 2 カラム */
.members-grid--main {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 72px;
}
/* 下段：テキストのみ 2 カラム */
.members-grid--staff {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
/* カード */
/* メンバーカード：中身は縦並び */
.member-card {
  display: flex;
  flex-direction: column; /* ★縦方向に並べる */
  align-items: flex-start;
  gap: 16px;
}
/* 写真は上、下に余白 */
.member-card__photo {
  margin: 0 0 16px;
  width: 100%;
  max-width: 320px; /* 好きな幅に調整 */
}
.member-card__photo img {
  display: block;
  width: 100%;
  height: auto;
}
/* テキスト部分はそのまま */
.member-card__body {
  width: 100%;
}
/* テキスト */
.member-card__name-ja {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 4px;
}
.member-card__name-en {
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 8px;
}
.member-card__name-kana {
  font-size: 12px;
}
.member-card__position {
  font-size: 14px;
  margin: 15px 0 0;
}
.member-card__field {
  font-size: 13px;
  margin: 0 0 16px;
}
/* 研究紹介ボタン（既存の edu-button を細めに） */
.member-card__btn {
  display: inline-flex;
  margin-top: 8px;
  width: 240px;
}
/* 下段のシンプルカード（写真なし） */
.member-card--simple {
  display: block;
}
.member-card--simple .member-card__body {
  padding-top: 8px;
}
.page-hero--usage {
  background-image: url("../images/use/hero-use.jpg");
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
}
.page-err {
  background-image: url("../images/err.webp");
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
}
/* Usage main content */
.usage {
  padding: 80px 20px;
  background: #fff;
}
.usage__lead {
  font-size: 16px;
  line-height: 1.9;
  margin-bottom: 48px;
  color: #333;
}
/* Step box */
.usage-step h2 {
  margin-bottom: 40px;
  padding: 20px;
  background: #F7F7F7;
}
.usage-step__title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}
.usage-step__text {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 40px;
  color: #333;
}
/* 添付ファイル一覧 */
.usage-files {
  margin-top: 32px;
  padding-left: 0;
  list-style: none;
}
.usage-files li {
  margin-bottom: 12px;
}
.usage-files a {
  color: #1452a0;
  text-decoration: none;
}
.usage-files a:hover {
  text-decoration: underline;
}
/* --------------------------------------------------------------
       Footer（簡易）
    -------------------------------------------------------------- */
.site-footer {
  background: linear-gradient(to right, #e7f1fb, #f7fcff);
  padding: 32px 0 16px;
  font-size: 12px;
  color: #4b4f63;
}
.footer__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.footer__top {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 16px;
}
/* --------------------------------------------------------------
       Responsive
    -------------------------------------------------------------- */
@media (max-width: 1024px) {
  .header__brand {
    max-width: 300px;
  }
  iframe {
    width: 100%;
  }
  .about__content {
    padding-right: 40px;
  }
  .overview {
    padding-left: 40px;
    background-size: cover;
  }
  .access {
    padding: 40px;
  }
  .page-hero__inner {
    padding: 0 40px 32px;
  }
}
@media (max-width: 960px) {
  .equipment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .equipment-grid--1 {
    max-width: 100%;
  }
}
/* =========================
   1024px 以下（iPad Pro / mini / SP）
========================= */
@media (max-width: 1024px) {
  .header__inner {
    position: relative;
    justify-content: flex-start;
  }
  .header__brand {
    flex: 1 1 auto;
  }
  /* 3本線ボタンを右上に出す */
  .header-toggle {
    display: block; /* ★ここで表示 */
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2000;
  }
  /* ドロップダウンナビ（ヘッダーの真下） */
  .header-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background-color: #ffffff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    padding: 16px 20px 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 1500; /* ★コンテンツの上に出す */
  }
  .header-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .header-nav ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .header-nav a {
    display: block;
    font-size: 15px;
    padding: 4px 0;
  }
  .news__title {
    font-size: 22px;
  }
  .section__title-ja {
    font-size: 22px;
    margin-bottom: 10px;
  }
  .about__title {
    font-size: 22px;
    margin-bottom: 10px;
  }
  .about__content {
    padding: 40px;
  }
}
@media (max-width: 768px) {
  .header__inner {
    position: relative;
    justify-content: flex-start;
  }
  .header__brand {
    flex: 1 1 auto;
  }
  .header-nav ul {
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
  }
  .hero {
    height: auto;
    min-height: 420px;
  }
  .hero__inner {
    padding-bottom: 40px;
  }
  .hero__title {
    font-size: 26px;
  }
  .hero__message {
    position: static;
    transform: none;
    writing-mode: horizontal-tb;
    margin-top: 20px;
    display: inline-block;
  }
  .news__wrap {
    grid-template-columns: 1fr;
  }
  .news-item {
    display: grid;
    grid-template-columns: 60px 1fr; /* ← 左固定・右が残り全部 */
    row-gap: 6px;
    padding: 12px 0;
    border-bottom: 1px solid #e3e5ea;
    align-items: start;
  }
  .news-item > :nth-child(n + 3) {
    grid-column: 1 / -1; /* 1列にする（全幅） */
  }
  .news-item__date {
    font-size: 12px;
    padding-top: 4px;
  }
  .news-item__cat {
    justify-self: start; /* 右に寄せたいなら end */
    display: inline-block;
    padding: 2px 12px;
    font-size: 12px;
    background: #eef2ff;
    color: #1452a0;
    white-space: nowrap; /* ←カテゴリが潰れない！ */
  }
  .about__visual {
    height: auto;
    background: url(../images/top/bg1_sp.jpg) no-repeat center bottom;
    background-size: 100% auto;
  }
  .about__content {
    justify-content: center;
    padding: 20px 40px 500px;
  }
  .about__box {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
  }
  .overview {
    background: url(../images/top/bg2_sp.jpg) no-repeat center bottom;
    background-size: 100% auto;
    padding: 40px;
  }
  .overview__wrap {
    justify-content: center;
    padding: 0 0 350px;
    max-width: 100%;
    width: 100%;
    display: block;
  }
  .overview__content {
    max-width: 100%;
    padding: 24px 20px;
  }
    .overview__text{
    max-width:  100%;
  }
  .overview__text p br, .about__text br {
    display: none;
  }
  .access__wrap {
    grid-template-columns: 1fr;
    gap: 20px
  }
  iframe {
    max-height: 300px;
  }
  .footer__top {
    flex-direction: column;
  }
  .footer__pagetop {
    right: 12px;
    bottom: 12px;
  }
}
/* =========================
   540px 以下（SP）
========================= */
@media (max-width: 540px) {
  .section {
    padding: 40px 0;
  }
  .page-hero {
    height: auto;
  }
  .hero__inner {
    padding-bottom: 0;
  }
  .hero__catch {
    top: 7%;
    right: 21px;
  }
  .hero__catch img {
    width: 80px;
    height: auto;
  }
  .hero__title {
    padding-left: 20px;
  }
  .page-hero__title {
    font-size: 22px;
  }
  .news__wrap {
    gap: 20px
  }
  .news__title {
    font-size: 22px;
  }
  .about__content {
    padding: 20px 20px 280px;
  }
  .overview__wrap {
    padding: 0 0 180px;
  }
  .section.overview{
    padding: 40px 20px;
  }
  .access__wrap {
    padding: 0;
  }
  .access {
    padding: 40px 20px 50px;
  }
  .news__head .section__title-en {
    font-size: 13px;
    width: 70px;
    margin: 0 auto;
  }
  .news__more .c-button {
    width: 100%;
    justify-content: center;
  }
  .page-hero__en {
    font-size: 13px;
  }
  .about__label{
    font-size: 13px;
  }
  .edu-button{
    width: 100%;
    text-align: center;
  }
  .usage {
    padding: 40px 0;
  }
  .l-inner {
    padding: 0 20px;
  }
  .usage-files a {
    display: block;
  }
  .outline {
    padding: 40px 20px 20px;
  }
  .outline__text, .outline__image img, .outline__section {
    margin-bottom: 40px;
  }
  .outline__image {
    margin: 0;
  }
  .equipment-grid {
    grid-template-columns: auto;
  }
  .equipment-heading {
    font-size: 22px;
    margin-bottom: 24px;
  }
  .equipment-grid {
    gap: 30px;
  }
  .usage__lead {
    margin-top: 0;
  }
  .members-grid--main, .members-grid--staff {
    grid-template-columns: auto;
  }
  .member-card__photo {
    max-width: 100%;
  }
  .member-card__btn {
    max-width: 100%;
  }
}


/* ========== Pager (circle UI like the image) ========== */
.pager {
  display: flex;
  justify-content: center;
  margin: 50px 0 0 0;
}

.pager .page-numbers {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 18px; /* 40pxに合わせて少し詰める */
  padding: 0;
  margin: 0;
}

.pager .page-numbers a.page-numbers,
.pager .page-numbers span.page-numbers {
  width: 40px; 
  height: 40px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: #7981b7;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  line-height: 1;

  border: 2px solid transparent;
  box-sizing: border-box;

  transition: all .15s ease;
}

/* 現在ページ（黒80%） */
.pager .page-numbers span.page-numbers{
	background: #3F4EAC;
	color: #fff;
}

/* hover時（黒50%） */
.pager .page-numbers a.page-numbers:hover {
  background: #999;
	color: #fff;
}

/* 矢印だけ少し太く */
.pager .page-numbers a.prev,
.pager .page-numbers a.next,
.pager .page-numbers a.forward {
  font-size: 18px;
  font-weight: 700;
}


/* エラー表示 */
 .error-container {
	background: white;
	border-radius: 20px;
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
	max-width: 600px;
	width: 100%;
	padding: 60px 40px;
	text-align: center;
	margin: 100px auto;
}
.error-title {
	font-size: 28px;
	color: #333;
	margin-bottom: 20px;
	font-weight: bold;
}
.error-message {
	font-size: 16px;
	color: #666;
	line-height: 1.8;
	margin-bottom: 40px;
}
.btn-home {
	display: inline-block;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	padding: 15px 40px;
	border-radius: 50px;
	text-decoration: none;
	font-weight: bold;
	transition: transform 0.3s, box-shadow 0.3s;
	box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
	margin-bottom: 15px;
}
.btn-home:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}
@media (max-width: 600px) {
	.error-code {
		font-size: 80px;
	}
	.error-title {
		font-size: 22px;
	}
	.error-container {
		padding: 40px 30px;
		margin: 80px 20px;
		max-width: calc(100% - 40px); 
	}
}

