/* ===== Header base ===== */
.site-header {
  width: 100%;
}

/* ===== Top bar ===== */
/* 上段：full-width 前提 */
.nav-top {
  position: relative;
  background: #ffffff;
  border-bottom: 1px solid #ddd;
}

/* container は基準点になるだけ */
.nav-top-inner {
  position: relative;
  height: 64px;
}

/* ロゴ：左端固定 */
.nav-top .navbar-brand {
  position: absolute;
  left: 15px;   /* Bootstrap container padding に合わせる */
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
}

/* 右上リンク：右端固定 */
.top-links {
  position: absolute;
  right: 15px;  /* 同上 */
  top: 50%;
  transform: translateY(-50%);
}

/* Top links */
.top-links a {
  font-size: 14px;
  color: #333;
  text-decoration: none;
}

.top-links a:hover {
  text-decoration: underline;
}

/* ===== Main nav ===== */
.nav-main {
  background: #0d5257;
}

.nav-main .navbar {
  margin: 0;
  border: none;
  background: transparent;
}

.nav-main .navbar-nav > li > a {
  color: #ffffff;
}

.nav-main .navbar-nav > li > a:hover {
  background: #ffe89a;
  color: #000;
}

/* =========================================================
   Top bar (PC only)
   ========================================================= */



/* 上段の高さ */
.nav-top-inner {
  position: relative;
  height: 80px;
}

/* ロゴ画像サイズ */
.nav-top .navbar-brand img {
  max-height: none;
  height: 60px;
  width: auto;
}

/* ロゴを縦中央に */
.nav-top .navbar-brand {
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0;
}

/* 右上リンクを縦中央＋少し下 */
.nav-top .top-links {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(calc(-50% + 6px)); /* 中央より少し下 */
}


/* =========================================================
   Main navigation
   ========================================================= */

/* nav-main 自体の余白・背景整理 */
.nav-main {
  padding: 0;
}

.nav-main .navbar {
  margin: 0;
  padding: 0;
  min-height: 0;
  background: transparent !important;
}

/* アンダーライン無効化（常時） */
.nav-main .navbar-nav > li > a {
  text-decoration: none !important;
}


/* =========================================================
   PC：等分・中央寄せメニュー
   ========================================================= */
@media (min-width: 768px) {

  .nav-main .navbar-nav {
    float: none !important;
    display: flex;
    justify-content: center;
    align-items: stretch;
    width: 100%;
  }

  .nav-main .navbar-nav > li {
    float: none !important;
    flex: 1 1 0;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.6);
  }

  .nav-main .navbar-nav > li:first-child {
    border-left: 1px solid rgba(255,255,255,0.6);
  }

  .nav-main .navbar-nav > li > a {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 14px 6px;
    white-space: nowrap;
  }
}


/* =========================================================
   Mobile：Bootstrap 標準の縦リストに戻す
   ========================================================= */




/* ===== ドロップダウンメニューの文字色を真っ黒に ===== */
.nav-main .dropdown-menu > li > a {
  color: #333 !important;
}




/* ===== Home Card Sitemap ===== */

.home-cards {
  padding: 60px 0;
}

/* カード本体 */
.site-card {
  height: 100%;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 24px 22px 26px;
  text-align: center;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

/* ホバー効果 */
.site-card:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

/* アイコン */
.card-icon {
  font-size: 38px;
  margin-bottom: 12px;
  color: #0d5257;
}

/* 見出し */
.site-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

/* 説明文 */
.card-desc {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 14px;
  color: #555;
}

/* リンク群 */
.card-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.card-links li {
  margin: 6px 0;
}

.card-links a {
  display: inline-block;
  font-size: 16px;
  text-decoration: none;
}

.card-links a:hover {
  text-decoration: underline;
}

/* ===== カード型サイトマップ：高さ揃え（2列・3列対応） ===== */
@media (min-width: 768px) {

  /* 行を flex に */
  .card-grid {
    display: flex;
    flex-wrap: wrap;
  }

  /* 各カラムも flex にする */
  .card-grid > [class*="col-"] {
    display: flex;
  }

  /* カード本体を列いっぱいに伸ばす */
  .site-card {
    flex: 1;
    height: 100%;
  }

  /* 見出しと小項目の間の余白を広げる */
  .site-card h3 {
    margin-bottom: 16px;  /* ← もともとより少し大きく */
  }
  /* 小項目リストの上に余白を追加 */
.site-card .card-links {
  margin-top: 4px;
}

}

/* ===== 3列表示時のみ：最後のカードを中央に配置 ===== */
@media (min-width: 992px) {

  .card-grid .info-card {
    margin-left: 33.333333%;
  }

}


/* ===== Recent posts: more news button ===== */

.recent-posts-more {
  margin-top: 30px;
}

.btn-more-news {
  display: inline-block;
  padding: 10px 28px;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid #0d5257;
  color: #0d5257;
  background-color: transparent;
  text-decoration: none;
  border-radius: 3px;
  transition: all 0.2s ease;
}

/* hover / focus */
.btn-more-news:hover,
.btn-more-news:focus {
  background-color: #0d5257;
  color: #ffffff;
  text-decoration: none;
}




/* ===== ページ上部バナー：共通 ===== */
.page-banner {
  margin-bottom: 30px; /* PC基準 */
}

.page-banner img {
  width: 100%;
  max-height: 240px;   /* PCでは問題ない */
  object-fit: cover;
  display: block;
}


/* see_more 背景画像の差し替え */
.background-image-fixed-2 {
  background-image: url("../img/see_more_bg.jpg") !important;
}


section.bar.background-white.no-mb {
  padding-top: 0;
}

#blog-post {
  margin-bottom: 120px;
}


/* 本文下に余白 */
body.single #post-content {
  margin-bottom: 80px;
}


/* news icon thumbnails */
.news-thumb {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: #fff;
}

.news-research { background: #3b82f6; }
.news-award    { background: #f59e0b; }
.news-seminar  { background: #10b981; }
.news-other    { background: #6b7280; }
.news-personnel  { background: #ef4444; }




.map-embed {
  width: 100%;
  aspect-ratio: 4 / 3;   /* Google Maps 推奨比率 */
  position: relative;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}


@media (max-width: 767px) {
  .nav-main .dropdown-menu > li > a {
    color: #fff !important;
  }

  .page-banner img {
    height: 150px;
  }
}


/* ===== サムネイル共通 ===== */
.news-thumb {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* recent_posts（正方形） */
.news-thumb.thumb-1x1 {
  aspect-ratio: 1 / 1;
}

/* 記事一覧（横長） */
.news-thumb.thumb-16x9 {
  aspect-ratio: 16 / 9;
}

/* 画像のフィット */
.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}





.home-carousel {
  position: relative;
  background-image: url("../img/aquatan.jpg") !important;
  overflow: hidden;
}

.home-carousel .dark-mask {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* 動くグリッド（模様だけを動かす） */
.home-carousel .dark-mask::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  background-image:
    repeating-linear-gradient(
      60deg,
      rgba(255,255,255,0.08) 0,
      rgba(255,255,255,0.08) 1px,
      transparent 1px,
      transparent 24px
    ),
    repeating-linear-gradient(
      -60deg,
      rgba(255,255,255,0.08) 0,
      rgba(255,255,255,0.08) 1px,
      transparent 1px,
      transparent 24px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,0.08) 0,
      rgba(255,255,255,0.08) 1px,
      transparent 1px,
      transparent 24px
    );

  animation: hc_grid_scroll 450s linear infinite;
}

@keyframes hc_grid_scroll {
  from {
    background-position: 0 0, 0 0, 0 0;
  }
  to {
  background-position:
  -6000px -6000px,
    -6000px -6000px,
    0 0;
}
}





/* コンテンツを前面に */
.home-carousel .container {
  position: relative;
  z-index: 2;
}




/* カルーセル：大学名（控えめ） */
/* カルーセル：大学名を本文トーンに */
.home-carousel h1 .slider-univ {
  font-size: 0.50em;     /* h1基準で本文相当 */
  font-weight: inherit; /* 太さはそのまま */
  opacity: 1;           /* 薄くしない */
  letter-spacing: 0;    /* 変えない */
}

/* 念のため行間だけ安定させる */
.home-carousel h1 {
  line-height: 1.2;
  white-space: nowrap;
}

/* ===== カルーセル画像の表示サイズを統一 ===== */
.home-carousel .item .col-sm-7 {
  aspect-ratio: 3 / 2;   /* ★ここがポイント */
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-carousel .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;          /* はみ出た分をトリミング */
}




html[lang="en"] body {
  font-family: "Noto Sans", sans-serif;
}


/* ===== 英語版 Recent News の注意書き ===== */
html[lang="en"] section.bar > .container > .col-md-12 > .lead {
  text-align: center;
  font-size: 1.2em;
  line-height: 1.6;
  opacity: 0.8;
}


/* 全体（本文） */
html[lang="en"] body {
  font-size: 16px;
  line-height: 1.6;
}

/* 段落 */
html[lang="en"] p {
  margin-bottom: 1em;
}

/* 見出し（詰める） */
html[lang="en"] h1 {
  line-height: 1.25;
}

html[lang="en"] h2 {
  line-height: 1.3;
}

html[lang="en"] h3 {
  line-height: 1.35;
}

/* Universal 特有：content 内も明示 */
html[lang="en"] .content,
html[lang="en"] .box-simple {
  line-height: 1.6;
}

/* ナビ・ボタンは詰め気味 */
html[lang="en"] nav,
html[lang="en"] .navbar,
html[lang="en"] button,
html[lang="en"] .btn {
  line-height: 1.4;
}

/* モバイル対応 */
@media (max-width: 768px) {
  html[lang="en"] body {
    font-size: 15px;
    line-height: 1.65;
  }
}



html[lang="en"] .navbar-nav > li > a {
  font-size: 0.9em;
  line-height: 1.2;
}
