@charset "UTF-8";

/* ==================================================
   1. 基本設定
   ================================================== */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: #ffffff;
  color: #333333;
  font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", メイリオ, Meiryo, sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

/* 中央配置コンテナ (PC時：最大940px) */
#container,
#header,
#slide,
#contents,
#footMenu,
#footer {
  max-width: 940px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  background-color: #ffffff;
}

/* ==================================================
   2. ヘッダー
   ================================================== */

#header {
  padding: 15px 15px 10px 15px;
}

.header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.header-left-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}

.header-sub {
  font-size: 12px;
  color: #555555;
}

.header-sub a,
.header-dept a {
  color: #006699;
  text-decoration: none;
}

.header-main {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 2px 0;
}

.site-title {
  font-size: 44px;
  font-weight: bold;
  color: #006699;
  margin: 0;
  line-height: 1.2;
}

.header-dept {
  font-size: 12px;
  color: #333333;
}

/* ヘッダーナビゲーション */
#menu, .global-nav {
  margin-bottom: 5px;
}

#menu ul, .global-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
  align-items: center;
}

#menu li a, .global-nav li a {
  display: block;
  padding: 6px 12px;
  color: #333333;
  text-decoration: none;
  font-size: 13px;
  font-weight: bold;
  border-radius: 4px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

#menu li a:hover, .global-nav li a:hover {
  background-color: #006699;
  color: #ffffff;
}

/* ==================================================
   3. スライドショー
   ================================================== */

#slide {
  position: relative;
  height: 300px;
  margin: 15px auto 20px auto;
  overflow: hidden;
  text-align: center;
}

#slide .slideInner {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

#slide .slideInner li {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  text-align: center;
}

#slide .slideInner li img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

.slidePrev, .slideNext {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  cursor: pointer;
}

.slidePrev { left: 10px; }
.slideNext { right: 10px; }

/* ==================================================
   4. メインコンテンツ
   ================================================== */

#contents {
  margin-top: 15px;
  padding: 0 15px;
}

#contents::after {
  content: "";
  display: block;
  clear: both;
}

#conL {
  float: left;
  width: 660px;
  max-width: 100%;
}

#conR {
  float: right;
  width: 250px;
  max-width: 100%;
}

.main-two-columns {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  width: 100%;
}

.main-two-columns #conL,
.main-two-columns #conR {
  float: none;
}

/* --------------------------------------------------
   見出し（h2）の色指定ルール
   -------------------------------------------------- */

/* ① デフォルトの見出し（h2）はすべて「赤色」 */
#contents h2,
#conL h2,
#conR h2 {
  background-color: #a32626;
  color: #ffffff;
  padding: 10px 15px;
  font-size: 16px;
  font-weight: bold;
  line-height: 1.4;
  margin: 20px 0 15px 0;
  border-radius: 3px;
  width: 100%;
  clear: both;
}

/* ② HTML側でクラス指定した見出し（新着情報など）を「緑色」にする */
#contents h2.green-title,
#contents h2.info-title,
#conL h2.green-title,
#conL h2.info-title,
#conR h2.green-title,
#conR h2.info-title {
  background-color: #008d4c;
}

/* 新着情報ボックス */
.information {
  background-color: #fafafa;
  border: 1px solid #e0e0e0;
  padding: 12px 15px;
  margin-bottom: 25px;
  max-height: 220px;
  overflow-y: auto;
  font-size: 13px;
}

.information dl {
  margin: 0;
  padding: 0;
}

.information dl::after {
  content: "";
  display: block;
  clear: both;
}

.information dt {
  float: left;
  clear: left;
  font-weight: bold;
  color: #000000;
  margin-top: 0;
  margin-right: 3em;
  line-height: 1.6;
}

.information dd {
  margin-left: 0;
  margin-bottom: 8px;
  padding-bottom: 0;
  border-bottom: none;
  line-height: 1.6;
  color: #333333;
}

/* トップ 3列ナビゲーション (青色見出し) */
.topNavi {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 25px;
  width: 100%;
  clear: both;
}

.topNaviColumn {
  flex: 1;
  background-color: #f7f9fa;
  border: 1px solid #e0e0e0;
  padding: 12px 15px;
  border-radius: 4px;
}

.topNaviColumn h2 {
  background-color: #008d4c !important;
  color: #ffffff !important;
  padding: 10px 15px;
  font-size: 16px;
  font-weight: bold;
  line-height: 1.4;
  margin: 0 0 15px 0;
  border-radius: 3px;
  display: block;
}

.status-working {
  color: #d9534f;
  font-weight: bold;
}

/* 見出し：研究テーマ・研究室情報 */
.submenu h3 {
  background: #003366;
  color: #ffffff;
  padding: 10px 15px;
  font-size: 16px;
  font-weight: bold;
  line-height: 1.4;
  margin: 0 0 15px 0;
  border-radius: 3px;
  display: block;
}

.submenu h3 a,
.submenu h3 span,
.submenu h3 .keyword-title {
  color: #ffffff;
  font-size: 12px;
  font-weight: normal;
  margin-left: 10px;
}

.submenu h4 {
  font-size: 14px;
  border-left: 4px solid #006699;
  padding-left: 8px;
  margin: 15px 0 8px 0;
  color: #333333;
}

.topic-list {
  list-style: none;
  padding: 0;
  margin: 0 0 15px 0;
}

.topic-list li {
  padding: 4px 0;
  border-bottom: 1px dashed #e0e0e0;
  font-size: 13px;
}

.topic-list .kw {
  display: block;
  font-size: 11px;
  color: #666666;
  margin-left: 10px;
}

/* テーブル（ピックアップ領域） */
.hpb-cnt-tb3 {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 13px;
}

.hpb-cnt-tb-cell3 {
  width: 48%;
  vertical-align: top;
  background-color: #fcfcfc;
  border: 1px solid #e0e0e0;
  padding: 10px;
}

.hpb-cnt-tb-cell4 { width: 4%; }

/* バナーエリア */
.bnrL {
  margin-top: 25px;
  clear: both;
}

.bnrL ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.side-link-box {
  border: 1px solid #e0e0e0;
  padding: 10px;
  text-align: center;
  margin-bottom: 12px;
  background-color: #fafafa;
  font-size: 12px;
}

.side-link-box a {
  color: #006699;
  text-decoration: none;
}

.cpi-banner {
  margin-top: 15px;
  text-align: center;
}

.last-update-box {
  margin-top: 45px;
  text-align: center;
  font-size: 12px;
  color: #666666;
  clear: both;
}

.last-update-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ==================================================
   5. 社会貢献ページ (syakai.html) 用スタイル
   ================================================== */

.layout-twocol {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  margin-bottom: 30px;
}

.activity-section {
  margin-bottom: 2rem;
}

.activity-section h3 {
  border-left: 5px solid #006699;
  padding: 6px 12px;
  margin-bottom: 12px;
  font-size: 1.15rem;
  color: #222222;
  background-color: #f7f9fa;
}

.activity-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.activity-list li {
  padding: 10px 0;
  border-bottom: 1px solid #e0e0e0;
  font-size: 13px;
}

.speaker { font-weight: bold; color: #006699; }
.date { margin-left: 6px; font-weight: bold; color: #333333; }
.location { margin-left: 8px; color: #666666; font-size: 0.9em; }
.detail { margin-top: 4px; padding-left: 12px; }

#conR.gallery-sidebar {
  width: 250px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.gallery-item {
  margin: 0;
  text-align: center;
  background: #fdfdfd;
  padding: 8px;
  border: 1px solid #e0e0e0;
}

.gallery-item figcaption {
  font-size: 12px;
  margin-top: 6px;
  color: #555555;
}

/* ==================================================
   6. フッター
   ================================================== */

#footMenu {
  border-top: 2px solid #006699;
  padding-top: 15px;
  margin-top: 30px;
  text-align: center;
  clear: both;
}

#footMenu ul {
  display: flex;
  justify-content: center;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin-bottom: 15px;
}

#footMenu a {
  color: #006699;
  text-decoration: none;
  font-weight: bold;
}

.foot-banner-images {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

#footer {
  text-align: center;
  padding: 15px 0 30px 0;
  font-size: 12px;
  color: #666666;
  border-top: 1px solid #e0e0e0;
  clear: both;
}

/* ==================================================
   7. レスポンシブ表示
   ================================================== */

@media screen and (max-width: 939px) {

  .site-title {
    font-size: 30px;
  }

  .header-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  #menu, .global-nav {
    width: 100%;
  }

  #menu ul, .global-nav ul {
    flex-wrap: wrap;
    gap: 6px;
  }

  #menu li a, .global-nav li a {
    padding: 8px 12px;
    background-color: #f5f5f5;
  }

  #slide {
    height: 200px;
  }

  .topNavi {
    flex-direction: column;
    gap: 15px;
  }

  .main-two-columns,
  .layout-twocol {
    flex-direction: column;
    gap: 20px;
  }

  #conL, #conR, #conR.gallery-sidebar {
    float: none;
    width: 100%;
  }

  .submenu h3 .keyword-title {
    display: block;
    margin-left: 0;
    margin-top: 4px;
  }

  .hpb-cnt-tb3 tbody,
  .hpb-cnt-tb3 tr,
  .hpb-cnt-tb3 td {
    display: block;
    width: 100%;
  }

  .hpb-cnt-tb-cell4 {
    display: none;
  }

  .hpb-cnt-tb-cell3 {
    margin-bottom: 15px;
  }

  .bnrL ul {
    justify-content: center;
  }

  .foot-banner-images {
    flex-direction: column;
    gap: 10px;
  }
}

/* スライドショーコントロール */
#slide .controlNav,
#slide .controlNav * {
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
}

#slide .controlNav a,
#slide .controlNav span,
#slide .controlNav li,
#slide .controlNav div {
  display: inline-block !important;
  width: 12px !important;
  height: 12px !important;
  min-width: 12px !important;
  min-height: 12px !important;
  margin: 0 4px !important;
  padding: 0 !important;
  background-color: rgba(255, 255, 255, 0.7) !important;
  border: 1px solid rgba(0, 0, 0, 0.3) !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
  transition: all 0.25s ease !important;
  vertical-align: middle !important;
}

#slide .controlNav a:hover,
#slide .controlNav span:hover,
#slide .controlNav li:hover {
  background-color: #ffffff !important;
  transform: scale(1.2) !important;
}

#slide .controlNav .active,
#slide .controlNav .activeSlide,
#slide .controlNav .current,
#slide .controlNav [class*="active"] {
  background-color: #006699 !important;
  border-color: #ffffff !important;
  transform: scale(1.25) !important;
  opacity: 1 !important;
}

/* ホームボタン */
.top-button-container {
  display: flex;
  justify-content: flex-end;
  margin-top: 0;
  margin-bottom: 5px;
}

.home-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background-color: #ffffff;
  color: #006699;
  border: 2px solid #006699;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.home-btn:hover {
  background-color: #eef6fa;
  color: #004080;
  border-color: #004080;
  text-decoration: none !important;
}