/* --------------------------------- */
/* 各種基本定義 */
/* フォントのインポート */
@import url("https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400..700&family=Noto+Sans+JP:wght@100..900&family=Noto+Sans:ital,wght@0,100..900;1,100..900&family=Noto+Serif+JP:wght@200..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Zen+Antique&display=swap");
/* 全体のフォントスタイル設定 */
html {
  font-family: "Noto Sans JP", sans-serif; /* 日本語フォントを優先的に使用 */
}
/* 特定のフォントスタイルを定義 */
.times-new-roman {
  font-family: "Times New Roman", serif; /* Times New Romanフォント */
}
/* Flexboxの基本設定 */
.flex {
  display: flex; /* Flexboxを有効化 */
  justify-content: space-between; /* 子要素を均等に配置 */
  flex-wrap: wrap; /* 子要素が幅を超える場合折り返し */
  align-items: center; /* 子要素を縦方向中央揃え */
}
/* Flexboxの基本設定 */
.logo-flex {
  display: flex; /* Flexboxを有効化 */
  justify-content: space-between; /* 子要素を均等に配置 */
  flex-wrap: wrap; /* 子要素が幅を超える場合折り返し */
  align-items: center; /* 子要素を縦方向中央揃え */
}
.flex-start {
  display: flex; /* Flexboxを有効化 */
  justify-content: space-between; /* 子要素を均等に配置 */
  flex-wrap: wrap; /* 子要素が幅を超える場合折り返し */
  align-items: flex-start; /* 縦方向上揃え */
}
/* コンテナスタイル */
.container {
  width: 90%; /* 全体幅の90%を使用 */
  max-width: 1120px; /* 最大幅1120px */
  /* background-color: green; コメントアウトされた背景色 */
  margin: 0 auto; /* 水平中央揃え */
  position: relative; /* 相対位置を指定 */
  margin-bottom: 70px;
}
/* --------------------------------- */
/* --------------------------------- */
/* --------------------------------- */
/* --------------------------------- */
/* スマートフォン向けスタイル */
@media (max-width: 885px) {
  .flex {
    flex-direction: column; /* 縦並びに変更 */
    align-items: center; /* 子要素を中央揃え */
  }
  .container {
    width: 95%; /* コンテナ幅を縮小 */
    max-width: 767px; /* 最大幅を767pxに */
    /* background-color: green; コメントアウトされた背景色 */
    margin: 0 auto; /* 水平中央揃え */
    position: relative; /* 相対位置を指定 */
    margin-bottom: 24px;
  }
  img {
    max-width: 100%; /* 画像が画面幅を超えないよう調整 */
    height: auto; /* アスペクト比を維持 */
  }
  .header-bottom {
    display: none; /* ヘッダーのボトムを非表示 */
  }
  .drawer {
    display: block; /* SPメニューを表示 */
  }
}
/* PC向けスタイル */
@media (min-width: 769px) {
  .drawer {
    display: none; /* ドロワーメニューを非表示 */
  }
}
/* --------------------------------- */
/* --------------------------------- */
/* --------------------------------- */
/* --------------------------------- */
/* -------------------------------- */
/* ------body------ */
/* ページ全体のスタイル */
body {
  font-family: "Noto Sans JP", sans-serif;
  margin: 0; /* ページ余白を削除 */
  font-size: calc(16px + 0.5vw); /* 画面幅に応じたフォントサイズ */
  background-color: rgb(241, 255, 250);
}
.fade-in {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}
.delay {
  transition-delay: 0.3s;
}
/* ------ Header 全体のスタイル ------ */
/* ヘッダー全体の幅と中央揃え */
header {
  width: 100%; /* ヘッダー全体の幅を指定 */
  margin: 0 auto; /* 中央揃え */
}
/* ヘッダー上部の背景色と余白 */
.header-top {
  background-color: white; /* 背景色を白に設定 */
  padding: 10px 0; /* 上下の余白を設定 */
}
/* ヘッダー下部の背景色と配置 */
.header-bottom {
  background-color: white; /* 背景色を白に設定 */
  padding: 15px 0; /* 上下の余白を設定 */
  text-align: center; /* テキスト中央揃え */
}
/* ------ スマホ向けドロワーメニュー設定 ------ */
/* ドロワーメニューの基本スタイル */
@media screen and (max-width: 885px) {
  .drawer {
    width: 55px; /* ドロワーボタンの幅 */
    height: 70px; /* ドロワーボタンの高さ */
    position: absolute; /* 固定表示 */
    top: 19px; /* 上端からの距離 */
    right: 12px; /* 右端からの距離 */
    z-index: 200; /* 他要素より前面に表示 */
    display: block; /* スマホでのみ表示 */
  }
}
/* チェックボックスのスタイル */
input[type="checkbox"] {
  box-sizing: border-box; /* ボックスサイズを設定 */
  padding: 0; /* 内側余白を削除 */
}
input[type="checkbox" i] {
  background-color: initial; /* 背景を初期値に */
  cursor: default; /* 通常のカーソル */
  appearance: auto; /* ブラウザデフォルトの見た目 */
  margin: 3px 3px 3px 4px; /* 外側余白を指定 */
  padding: initial; /* 初期値 */
  border: initial; /* 初期値 */
}
/* チェックボックス用のリセット */
input {
  overflow: visible; /* 内容のオーバーフローを許可 */
  margin: 0; /* 外側余白をリセット */
  font-family: inherit; /* 親要素のフォントを継承 */
  font-size: inherit; /* 親要素のサイズを継承 */
  line-height: inherit; /* 親要素の行間を継承 */
}
/* ドロワーボタンのスタイル */
.drawer-open {
  display: flex; /* フレックスボックスで配置 */
  height: 25px; /* 高さを指定 */
  width: 30px; /* 幅を指定 */
  justify-content: center; /* 中央揃え */
  align-items: center; /* 縦方向中央揃え */
  position: relative; /* 相対位置指定 */
  z-index: 100; /* 前面に表示 */
  cursor: pointer; /* クリック可能なカーソル */
}
/* ドロワーメニューのコンテンツ */
.drawer-content {
  color: #ffff; /* テキスト色を白に設定 */
  line-height: 2.5; /* 行間を～倍に設定 */
  justify-content: center; /* 中央揃え */
  align-items: center; /* 縦方向中央揃え */
  font-size: 32px; /* フォントサイズ */
  width: 100%; /* 幅を全体に設定 */
  height: 100%; /* 高さを全体に設定 */
  position: fixed; /* 固定表示 */
  top: 0; /* 上端から配置 */
  left: 100%; /* 初期位置を画面外に配置 */
  z-index: 99; /* 他要素より後ろに設定 */
  background: #212529; /* 背景色を暗めに設定 */
  transition: 0.5s; /* アニメーション効果 */
  opacity: 0.9; /* 半透明 */
}
.drawer-list {
  margin-left: 32px;
}
/* チェック状態の切り替えによるドロワー表示 */
#drawer-check:checked ~ .drawer-content {
  left: 0; /* メニューを画面内に表示 */
  transition: 0.5s ease-in-out; /* アニメーションを適用 */
}
.drawer-hidden {
  display: none; /*チェックボックスの非表示 */
}
.menu-icon {
  width: 20px;
  height: 25px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.drawer-open .menu-icon div {
  width: 30px;
  height: 3px;
  background-color: black;
  position: absolute;
  transition: 0.3s;
  transform-origin: center; /* 回転の基準を中心に */
}
/* 3本線の配置 */
.drawer-open .menu-icon div:nth-child(1) {
  top: 0;
}
.drawer-open .menu-icon div:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}
.drawer-open .menu-icon div:nth-child(3) {
  bottom: 0;
}
/* バツ印に変形 */
#drawer-check:checked ~ .drawer-open .menu-icon div:nth-child(1) {
  background-color: white;
  transform: rotate(45deg);
  top: 45%;
}
#drawer-check:checked ~ .drawer-open .menu-icon div:nth-child(2) {
  background-color: white;
  opacity: 0;
}
#drawer-check:checked ~ .drawer-open .menu-icon div:nth-child(3) {
  background-color: white;
  transform: rotate(-45deg);
  bottom: 45%;
}
/* ------ ロゴ部分のスタイル ------ */
/* 研究室ロゴ */
.logo {
  font-family: "Noto Sans JP", sans-serif; /* 日本語フォントを優先的に使用 */
  font-size: 24px; /* フォントサイズ */
  font-weight: 300; /* 太さ */
  letter-spacing: 0.04em; /* 文字間隔調整 */
  margin-left: 18px;
}
/* ロゴ画像 */
.logo-image {
  background-image: url(../images/nishidalab_logo.png);
  height: 60px; /* 高さを指定 */
  margin-right: 18px; /* 画像と文字の間に余白 */
}
.logo-text {
  display: flex;
  flex-direction: column; /* 縦方向に配置 */
  align-items: center; /* 中央揃え */
  text-align: center; /* テキストを中央揃え */
  line-height: 1.2;
}
/* ロゴ下のテキスト */
.logo p {
  font-family: "Noto Sans JP", sans-serif; /* 日本語フォントを優先的に使用 */
  color: rgb(236, 186, 7); /* テキスト色 */
  font-size: 24px; /* フォントサイズ */
}
/* 大学ロゴ */
.logo2 {
  font-size: 16px; /* フォントサイズ */
  font-weight: 300; /* 太さ */
  letter-spacing: -0.04em; /* 文字間隔調整 */
  margin-right: 18px;
}
.logo2-image {
  height: 32px; /* 高さを指定 */
  margin-right: 10px; /* 画像と文字の間に余白 */
}
.logo2 p {
  font-family: "Noto Sans JP", sans-serif; /* 日本語フォントを優先的に使用 */
  font-size: 10px; /* フォントサイズ */
}
/* ------ メニューリンクのスタイル ------ */
.header_menu li {
  margin-left: 60px; /* メニュー間の余白 */
}
/* リンクのホバーエフェクト */
.header_menu li a {
  font-size: 18px; /* フォントサイズ */
  position: relative; /* アニメーション用の相対位置指定 */
  color: #333; /* 通常時の文字色 */
  text-decoration: none; /* 下線を削除 */
  transition: color 0.3s, transform 0.3s; /* ホバー時のエフェクト */
}
/* ホバー時の効果 */
.header_menu li a:hover {
  color: rgb(46, 180, 1); /* ホバー時の色 */
  transform: scale(1.1); /* ホバー時の拡大 */
}
/* ホバー時の下線アニメーション */
.header_menu li a::after {
  content: ""; /* 空の擬似要素 */
  position: absolute; /* 下線を絶対配置 */
  bottom: -5px; /* テキストの下に配置 */
  left: 0; /* 左端に配置 */
  width: 100%; /* テキスト幅いっぱいに設定 */
  height: 2px; /* 下線の高さ */
  background: rgb(46, 180, 1); /* 下線の色 */
  transform: scaleX(0); /* 初期状態で非表示 */
  transform-origin: left; /* アニメーションの開始点 */
  transition: transform 0.3s ease; /* アニメーション効果 */
}
.header_menu li a:hover::after {
  transform: scaleX(1); /* ホバー時に下線を表示 */
}
/* ------ Mainセクション ------ */
/* Heroセクション（メインビジュアル） */
/* Heroセクション */
#hero {
  position: relative;
  width: 100%;
  height: auto; /* 画面の90%の高さ */
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: rgb(241, 255, 250);
  margin-top: 36px;
  margin-bottom: 36px;
}
.hero-header {
  width: 80%; /* ヘッダー全体の幅を指定 */
  margin: 0 auto; /* 中央揃え */
}
.hero-logo {
  font-family: "Noto Sans JP", serif; /* フォント設定 */
  font-size: 46px; /* フォントサイズ */
  font-weight: 400; /* 太さ */
  color: #2c3e50;
  letter-spacing: 0.04em; /* 文字間隔調整 */
}
/* Heroの画像コンテンツ */
.hero-img {
  width: 420px;
  height: 100%;
}
.hero-container {
  width: 80%; /* 全体幅の90%を使用 */
  height: auto;
  max-width: 700px; /* 最大幅1120px */
  margin: 0 auto; /* 水平中央揃え */
  position: relative; /* 相対位置を指定 */
  margin-bottom: 46px;
}
/* ロゴ画像 */
.hero-logo-img {
  height: 40px; /* 高さを指定 */
  margin-right: 18px; /* 画像と文字の間に余白 */
}
@media (max-width: 895px) {
  .hero-logo {
    font-size: 28px;
  }
}
/* --------------------------------- */
/* --------------------------------- */
/* --------------------------------- */
/* --------------------------------- */
/* ------研究内容セクション ------ */
/* カラム（左右に分ける要素）のスタイル */
.column-contact {
  width: 47.5%; /* カラムの幅を全体の50%に設定 */
}
/* テキスト部分のスタイル */
.text {
  font-family: "Noto Sans JP", serif; /* フォント設定 */
  font-size: 18px; /* フォントサイズ */
  line-height: 1.8; /* 行間を1.8倍に設定 */
  margin-bottom: 10px; /* 各段落の下に余白を追加 */
}
.map-container {
  width: 45%; /* コンテナの幅を100%にする */
  max-width: 600px; /* 最大幅を指定して大きくなりすぎないようにする */
  height: auto; /* 高さは自動調整 */
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  margin-bottom: 70px;
}
/* レスポンシブデザイン: スマホ向け設定 */
/* 画面幅が867px以下の場合のスタイル調整 */
@media (max-width: 885px) {
  .map-container {
    width: 95%;
    margin-bottom: 10px;
  }
  /* カラム（左右に分ける要素）のスタイル */
  .column-contact {
    width: 95%; /* カラムの幅を全体の50%に設定 */
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 24px;
  }
  .text {
    font-size: 18px; /* フォントサイズ */
    line-height: 1.2; /* 行間を1.8倍に設定 */
    margin-bottom: 8px; /* 各段落の下に余白を追加 */
  }
}
/* --------------------------------- */
/* --------------------------------- */
/* --------------------------------- */
/* --------------------------------- */
/* ------Footerセクション ------ */
/* フッター全体のスタイル */
footer {
  background-color: rgb(245, 247, 255); /* フッターの背景色（淡い色） */
  padding: 80px; /* 内側余白を追加 */
}
/* フッターのコンテナ設定 */
.footer-container {
  display: flex; /* フレックスボックスで子要素を配置 */
  justify-content: space-between; /* 子要素を左右に均等配置 */
  max-width: 1200px; /* 最大幅を1200pxに制限 */
  margin: 0 auto; /* コンテナを中央揃え */
}
/* フッターのセクション */
.footer-section {
  font-family: "Noto Sans JP", sans-serif; /* 日本語フォントを優先的に使用 */
  display: flex; /* フレックスボックスで子要素を配置 */
  font-size: 24px; /* フォントサイズ */
  font-weight: 300; /* 太さ */
  letter-spacing: 0.04em; /* 文字間隔調整 */
  margin-left: 18px;
}
/* フッターロゴのスタイル */
.footer-logo-image {
  height: 60px; /* ロゴの高さを指定 */
  margin-right: 24px; /* ロゴと隣接要素の間に余白 */
}
.footer-logo-text {
  display: flex;
  flex-direction: column; /* 縦方向に配置 */
  align-items: center; /* 中央揃え */
  text-align: center; /* テキストを中央揃え */
  line-height: 1.2;
}
/* フッターセクションの見出し（h2）のスタイル */
.footer-section h2 {
  font-family: "Noto Sans JP", sans-serif; /* 日本語フォントを優先的に使用 */
  font-size: 32px; /* 見出しのフォントサイズ */
  font-weight: 400; /* 太字 */
  margin-top: 18px; /* 上部に余白 */
  margin-bottom: 15px; /* 下部に余白 */
  display: inline-block; /* インラインブロック要素として配置 */
}
/* フッターセクションのサブ見出し（h3）のスタイル */
.footer-section h3 {
  font-family: "Noto Sans JP", sans-serif; /* 日本語フォントを優先的に使用 */
  font-size: 24px; /* サブ見出しのフォントサイズ */
  margin-right: 46px; /* 右側に余白 */
  margin-bottom: 14px; /* 下部に余白 */
}
/* フッターセクション内のリスト */
.footer-section ul {
  list-style: none; /* リストマーカーを非表示に */
}
/* フッターリスト項目のスタイル */
.footer-section ul li {
  font-size: 24px; /* フォントサイズ */
  line-height: 2; /* 行間を設定 */
  margin-bottom: 10px; /* 下部に余白 */
  display: flex; /* フレックスボックスで子要素を配置 */
  justify-content: space-between; /* 子要素を左右に均等配置 */
  align-items: center; /* 子要素を縦方向に中央揃え */
  cursor: pointer; /* ポインタをクリック可能に */
}
/* リンクの基本スタイル */
.footer-section li a {
  font-family: "Noto Sans JP", sans-serif; /* 日本語フォントを優先的に使用 */
  font-size: 24px; /* フォントサイズ */
  position: relative; /* アニメーション用の相対位置 */
  color: #333; /* 通常時の文字色 */
  text-decoration: none; /* 下線を非表示に */
  transition: color 0.3s, transform 0.3s; /* ホバー時のアニメーション */
}
/* リンクホバー時のスタイル */
.footer-section li a:hover {
  color: rgb(46, 180, 1); /* ホバー時の文字色 */
  transform: scale(1.1); /* ホバー時に少し拡大 */
}
/* リンクホバー時の下線アニメーション */
.footer-section li a::after {
  content: ""; /* 擬似要素で下線を生成 */
  position: absolute; /* リンク内に絶対配置 */
  bottom: -5px; /* リンクの下部に配置 */
  left: 0; /* 左端から配置 */
  width: 100%; /* 下線幅をリンク全体に設定 */
  height: 2px; /* 下線の高さ */
  background: rgb(46, 180, 1); /* 下線の色 */
  transform: scaleX(0); /* 初期状態で非表示 */
  transform-origin: left; /* 左からアニメーション開始 */
  transition: transform 0.3s ease; /* アニメーション効果 */
}
.footer-section li a:hover::after {
  transform: scaleX(1); /* ホバー時に下線を表示 */
}
/* フッターのテキスト部分のスタイル */
.footer-text {
  font-family: "Noto Sans JP", sans-serif; /* 日本語フォントを優先的に使用 */
  margin-top: 150px; /* 上部に余白 */
  font-size: 24px; /* フォントサイズ */
}
.footer-text2 {
  font-family: "Noto Sans JP", sans-serif; /* 日本語フォントを優先的に使用 */
  margin-top: 20px; /* 上部に余白 */
  font-size: 20px; /* フォントサイズ */
}
/* レスポンシブデザイン: 画面幅1165px以下のスタイル調整 */
@media (max-width: 1165px) {
  /* フッター全体のパディング調整 */
  footer {
    padding: 30px; /* 内側余白を縮小 */
  }
  /* フッターコンテナの縦方向配置 */
  footer .footer-container {
    flex-direction: column; /* 子要素を縦並びに */
    align-items: center; /* 子要素を中央揃え */
    max-width: 1165px; /* 最大幅を調整 */
    margin: 0 auto; /* 水平中央揃え */
  }
  /* フッターロゴの調整 */
  .footer-logo {
    height: 80px; /* 高さを縮小 */
    margin-top: 15px; /* 上部に余白 */
    margin-right: 18px; /* 右側に余白 */
  }
  /* フッターセクションの調整 */
  footer .footer-section {
    width: 95%; /* 幅を画面幅の95%に設定 */
    max-width: 1165px; /* 最大幅を調整 */
    margin: 0 auto; /* 中央揃え */
    text-align: center; /* テキストを中央揃え */
    margin-bottom: 30px; /* 下部に余白 */
  }
  /* 最後のフッターセクションの余白を削除 */
  footer .footer-section:last-child {
    margin-bottom: 0;
  }
  /* フッターテキスト部分のフォントサイズ調整 */
  .footer-text {
    margin-top: 110px;
    font-size: 16px; /* フォントサイズを小さく */
  }
  .footer-text2 {
    margin-top: 20px;
    font-size: 14px; /* フォントサイズを小さく */
  }
}
/* --------------------------------- */
/* --------------------------------- */
/* --------------------------------- */
/* --------------------------------- */
