/*
Theme Name: Eno Lab Theme
Author: Sayaka
Description: 榎将太研究室オリジナルテーマ
Version: 1.0
*/

/* ===================================
   Google Fonts読み込み
   =================================== */
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600;700&family=Montserrat:wght@400;700;900&family=Noto+Sans+JP:wght@400;700;900&family=Poppins:wght@400;700;900&family=Shippori+Mincho:wght@400;600;800&family=Zen+Kaku+Gothic+New:wght@400;500;700;900&display=swap");

/* ===================================
   基本設定 (BASE)
   =================================== */
html {
  font-size: 10px;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: "Montserrat", "Zen Kaku Gothic New", sans-serif;
  color: #333;
  line-height: 1.8;
  letter-spacing: 0.05em;
  -webkit-font-smoothing: antialiased;
  background: transparent;
  font-size: 1.6rem;
  margin-top: 100px;
  overflow-x: hidden;
}

a {
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  opacity: 0.7;
}

img,
svg {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

/* ===================================
   共通パーツ：セクションタイトル
   =================================== */
.section-title {
  text-align: center;
  font-family: "Montserrat", sans-serif;
  font-size: 4.2rem;
  font-weight: 800;
  color: #333;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 40px;
}

.ja-sub {
  display: block;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: #008c9e;
  letter-spacing: 0.2em;
  margin-top: 10px;
  display: flex;
  justify-content: center;
}

/* --- ジグザグ配置用クラス --- */
.title-left {
  text-align: left;
}

.title-left .ja-sub {
  justify-content: flex-start;
  margin-left: 2px;
}

.title-right {
  text-align: right;
}

.title-right .ja-sub {
  justify-content: flex-end;
  border-right: 1px solid #ccc;
  padding-right: 15px;
}

/* ===================================
   アニメーション（動き）の設定
   =================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.top-title {
  animation: fadeInUp 1s ease-out forwards;
  opacity: 0;
}

.top-sub {
  animation: fadeInUp 1s ease-out 0.5s forwards;
  opacity: 0;
}

/* --- スクロールしたら現れる動き（共通） --- */
.fade-in {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}

.fade-in.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- ADMISSION用 スライドイン --- */
.slide-in-left {
  opacity: 0;
  transform: translateX(-80px);
  transition: all 1s ease-out;
}

.slide-in-right {
  opacity: 0;
  transform: translateX(80px);
  transition: all 1s ease-out;
}

.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s ease-out;
}

.slide-in-left.is-active,
.slide-in-right.is-active,
.fade-in-up.is-active {
  opacity: 1;
  transform: translate(0, 0);
}

/* ===================================
   ヘッダー (HEADER)
   =================================== */
.header {
  width: 100%;
  padding: 20px 30px;
  box-sizing: border-box;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9990;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 25px;
}

.main-title {
  font-size: 2.4rem;
  font-weight: bold;
  letter-spacing: 0.1em;
}

.main-title-link {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
}

.logo-img {
  width: 40px;
  height: auto;
  object-fit: contain;
}

.lab-info {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 1.1rem;
  line-height: 1.5;
  color: #555;
  font-weight: 500;
  border-left: 1px solid #ccc;
  padding-left: 25px;
}

.lab-info p {
  margin: 0;
}

/* ===================================
   WordPress管理画面バーとの被り防止
   =================================== */
body.admin-bar .header {
  top: 32px; /* PCサイズの管理バーの高さ分下げる */
}
@media screen and (max-width: 782px) {
  body.admin-bar .header {
    top: 46px; /* スマホサイズの管理バーの高さ分下げる */
  }
}

/* ===================================
   ハンバーガーメニュー
   =================================== */
.hamburger-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  z-index: 9999;
  cursor: pointer;
}

.hamburger-btn span {
  display: block;
  width: 30px;
  height: 2px;
  background-color: #333;
  position: absolute;
  left: 10px;
  transition: 0.3s;
}

.hamburger-btn span:nth-child(1) {
  top: 15px;
}

.hamburger-btn span:nth-child(2) {
  top: 24px;
}

.hamburger-btn span:nth-child(3) {
  top: 33px;
}

.hamburger-btn.is-active span:nth-child(1) {
  top: 24px;
  transform: rotate(45deg);
}

.hamburger-btn.is-active span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.is-active span:nth-child(3) {
  top: 24px;
  transform: rotate(-45deg);
}

.hamburger-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #008c9e;
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hamburger-menu.is-active {
  opacity: 1;
  visibility: visible;
}

.menu-logo {
  font-family: "Montserrat", sans-serif;
  font-size: 2.4rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 60px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-logo-img {
  width: 40px !important;
  height: auto;
  border: 2px solid #fff;
  padding: 2px;
  border-radius: 2px;
}

.show-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px 60px;
  max-width: 1000px;
  padding: 0 20px;
}

.show-menu li {
  margin-bottom: 0;
  text-align: center;
}

.menu-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #fff;
  transition: 0.3s;
}

.menu-link .en {
  font-family: "Montserrat", sans-serif;
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1;
  margin-bottom: 8px;
}

.menu-link .ja {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 1.2rem;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.7);
}

.menu-link:hover {
  opacity: 1;
}

.menu-link:hover .en {
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
  transform: translateY(-3px);
}

/* ===================================
   トップ（メインビジュアル）
   =================================== */
.top-section {
  width: 100%;
  height: 80vh;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
    url("img/training-overhead-lift-mv.png");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.top-inner {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  text-align: left;
}

.top-title {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 900;
  font-size: 4.5rem;
  line-height: 1.6;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.top-sub {
  font-family: "Montserrat", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  opacity: 0.9;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.7);
}

/* ===================================
   メッセージ（ジグザグ1）
   =================================== */
.message-section {
  width: 100%;
  padding-top: 100px;
  padding-bottom: 60px;
  background-color: #fff;
}

.zigzag-inner {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.zigzag-text {
  width: 45%;
}

.message-body {
  font-size: 1.6rem;
  line-height: 2.2;
  color: #333;
}

.btn-readmore {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Montserrat", sans-serif;
  font-weight: bold;
  font-size: 1.4rem;
  color: #333;
  border-bottom: 1px solid #333;
  padding-bottom: 5px;
}

.btn-readmore:hover {
  color: #008c9e;
  border-color: #008c9e;
}

.zigzag-img {
  width: 50%;
}

.zigzag-img img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  box-shadow: 20px 20px 0px #eaf6f8;
}

/* ===================================
   ニュース（ジグザグ2）
   =================================== */
.news-section {
  width: 90%;
  max-width: 1000px;
  margin: 60px auto;
}

.news-container {
  background-color: #fff;
  padding: 40px 30px;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 140, 158, 0.15);
  transform: translateY(-5px);
  transition: 0.3s;
}

.news-container:hover {
  box-shadow: 0 15px 50px rgba(0, 140, 158, 0.3);
}

.news-list {
  margin-bottom: 30px;
}

/* ★お知らせ一列化の変更箇所★ */
.news-item {
  display: flex;
  flex-direction: row; /* 横並びに変更 */
  align-items: center; /* 上下中央揃え */
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

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

/* ★日付とタグを包むエリアも横並びに★ */
.news-meta {
  flex-shrink: 0;
  margin-right: 20px;
  display: flex;
  flex-direction: row; /* 縦から横に変更 */
  align-items: center;
  gap: 15px; /* 日付とカテゴリーの隙間 */
}

.news-date {
  font-weight: bold;
  font-family: "Montserrat", sans-serif;
  color: #333;
  min-width: 100px; /* 幅を固定して揃える */
}

.news-tag {
  display: inline-block;
  font-size: 1.1rem;
  padding: 4px 10px;
  color: #fff;
  border-radius: 2px;
  text-align: center;
  width: fit-content;
  white-space: nowrap; /* タグが改行されないように */
}

.tag-media {
  background-color: #d4a024;
}

.tag-research {
  background-color: #9575cd;
}

.tag-notice {
  background-color: #008c9e;
}

.tag-event {
  background-color: #e74c3c;
}

.news-content {
  flex: 1; /* 残りの幅をタイトルに使う */
}

.news-text {
  font-size: 1.6rem;
  margin-bottom: 0; /* 中央揃えのために下の余白をリセット */
  line-height: 1.6;
}

.news-link {
  font-size: 1.2rem;
  color: #888;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.news-link:hover {
  color: #008c9e;
}

.news-btn-area {
  text-align: right;
}

.btn-view-all {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  background-color: #fff;
  color: #333;
  font-size: 1.4rem;
  font-weight: bold;
  padding-left: 20px;
  width: 180px;
  height: 50px;
  border: 1px solid #eee;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.arrow-box {
  background-color: #008c9e;
  width: 50px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.6rem;
  transition: 0.3s;
}

.btn-view-all:hover .arrow-box {
  background-color: #333;
}

/* ===================================
   プロフィール（ジグザグ3）
   =================================== */
.profile-section {
  width: 100%;
  background-color: #eaf6f8;
  padding: 80px 0;
  margin-top: 0;
}

.profile-inner {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
}

.profile-wrapper {
  display: flex;
  gap: 50px;
  align-items: flex-start;
}

.profile-right {
  flex: 1;
}

.profile-name {
  font-size: 2.8rem;
  font-weight: bold;
  margin-bottom: 10px;
  border-bottom: 2px solid #ccc;
  padding-bottom: 10px;
}

.en-name {
  font-size: 1.6rem;
  color: #888;
  margin-left: 15px;
  font-weight: normal;
  font-family: "Montserrat", sans-serif;
}

.profile-position {
  font-size: 1.6rem;
  margin-bottom: 30px;
}

.profile-box {
  background-color: #fff;
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.box-title {
  font-weight: bold;
  color: #008c9e;
  margin-bottom: 10px;
  font-size: 1.4rem;
}

.box-text {
  font-size: 1.4rem;
}

.keyword-title {
  font-weight: bold;
  color: #333;
  font-size: 1.4rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  color: #333;
  font-weight: normal;
  font-size: 1.2rem;
  font-family: "Zen Kaku Gothic New", sans-serif;
}

.profile-left {
  width: 300px;
  flex-shrink: 0;
}

.profile-photo {
  width: 100%;
  height: auto;
  border-radius: 5px;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.profile-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-link {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: bold;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 1.1rem;
  padding: 8px 12px;
  border: 1px solid #008c9e;
  color: #008c9e;
  background: #fff;
  border-radius: 50px;
  transition: 0.3s;
  white-space: nowrap;
}

.btn-link i {
  font-size: 1rem;
}

.btn-link:hover {
  background: #008c9e;
  color: #fff;
  border-color: #008c9e;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 140, 158, 0.3);
}

/* ===================================
   研究内容 (RESEARCH)
   =================================== */
.research-section {
  width: 100%;
  background-color: #fff;
  padding: 90px 0;
}

.research-inner {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
}

.research-list {
  margin-bottom: 60px;
}

.research-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  margin-bottom: 60px;
}

.research-item:last-child {
  margin-bottom: 0;
}

.research-img {
  width: 45%;
  flex-shrink: 0;
}

.research-img img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 5px;
  box-shadow: 15px 15px 0px #f0f9fa;
  transition: 0.3s;
}

.research-item:hover .research-img img {
  transform: translateY(-5px);
  box-shadow: 10px 15px 0px #008c9e;
}

.research-text {
  width: 50%;
}

.research-item-title {
  font-size: 2rem;
  font-weight: bold;
  font-family: "Zen Kaku Gothic New", sans-serif;
  color: #008c9e;
  margin-bottom: 15px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.research-item-desc {
  font-size: 1.5rem;
  line-height: 1.8;
  color: #333;
}

.research-btn-area {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.btn-research-large {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background-color: #008c9e;
  color: #fff;
  padding: 20px 40px;
  text-decoration: none;
  border-radius: 50px;
  transition: 0.3s;
  box-shadow: 0 10px 30px rgba(0, 140, 158, 0.2);
}

.btn-main {
  font-size: 1.8rem;
  font-weight: bold;
  font-family: "Zen Kaku Gothic New", sans-serif;
}

.btn-sub {
  font-size: 1.2rem;
  opacity: 0.8;
  font-family: "Montserrat", sans-serif;
  margin-left: 15px;
  margin-right: auto;
}

.btn-arrow {
  font-size: 2rem;
  font-family: "Montserrat", sans-serif;
  transition: 0.3s;
}

.btn-research-large:hover {
  background-color: #333;
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.btn-research-large:hover .btn-arrow {
  transform: translateX(5px);
}

/* ===================================
   大学院生募集 (ADMISSION)
   =================================== */
.admission-section {
  width: 100%;
  background-color: #eaf6f8;
  padding: 100px 0;
  overflow: hidden;
}

.admission-inner {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

.admission-content {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  align-items: stretch;
  margin-bottom: 50px;
}

.admission-requirements {
  flex: 1.2;
  min-width: 300px;
  background-color: #fff;
  padding: 50px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.admission-req-title {
  font-size: 2.2rem;
  color: #008c9e;
  font-weight: bold;
  margin-bottom: 25px;
  border-bottom: 2px solid #eaf6f8;
  padding-bottom: 10px;
}

.admission-req-item {
  margin-bottom: 20px;
}

.admission-req-item:last-child {
  margin-bottom: 0;
}

.admission-req-item strong {
  font-size: 1.7rem;
  color: #333;
  display: flex;
  gap: 8px;
  margin-bottom: 5px;
}

.admission-req-item strong i {
  color: #008c9e;
  margin-top: 3px;
}

.admission-req-item p {
  font-size: 1.5rem;
  color: #555;
  line-height: 1.6;
  padding-left: 24px;
}

.admission-img-area {
  flex: 1;
  min-width: 300px;
  position: relative;
}

.admission-img-1,
.admission-img-2,
.admission-img-3 {
  position: absolute;
  border: 6px solid #fff;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.admission-img-1 img,
.admission-img-2 img,
.admission-img-3 img {
  width: 100%;
  height: auto;
  display: block;
}

.admission-img-1 {
  width: 80%;
  top: 0;
  left: 0;
  z-index: 1;
}

.admission-img-2 {
  width: 75%;
  top: 33%;
  right: 0;
  z-index: 2;
}

.admission-img-3 {
  width: 90%;
  bottom: 0;
  left: 0;
  z-index: 3;
}

.delay-img-1 {
  transition-delay: 0.2s !important;
}
.delay-img-2 {
  transition-delay: 0.4s !important;
}

.admission-action {
  text-align: center;
}

.delay-img {
  transition-delay: 0.3s !important;
}

/* ===================================
   COLLABORATION (社会連携・依頼)
   =================================== */
.collaboration-section {
  width: 100%;
  background-color: #fff;
  padding: 100px 0;
}

.collab-list {
  margin: 30px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  padding: 20px 0;
}

.collab-list li {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 1.6rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.collab-list li:last-child {
  margin-bottom: 0;
}

.collab-list li i {
  color: #008c9e;
  font-size: 1.4rem;
  background-color: #eaf6f8;
  padding: 8px;
  border-radius: 50%;
}

/* ===================================
   フッター (FOOTER)
   =================================== */
.footer {
  background-color: #333;
  color: #fff;
  padding: 60px 0 20px;
  position: relative;
}

.footer-inner {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 50px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-info {
  width: 40%;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  font-family: "Montserrat", sans-serif;
  font-size: 2.4rem;
  font-weight: bold;
}

.footer-logo img {
  width: 40px;
  height: auto;
}

.footer-address {
  font-size: 1.3rem;
  line-height: 1.8;
  opacity: 0.8;
  font-family: "Zen Kaku Gothic New", sans-serif;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 30px;
  width: 50%;
  justify-content: flex-end;
}

.footer-nav li a {
  color: #fff;
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  font-size: 1.3rem;
  font-weight: bold;
  opacity: 0.7;
  transition: 0.3s;
  letter-spacing: 0.05em;
}

.footer-nav li a:hover {
  opacity: 1;
  color: #008c9e;
}

.footer-copyright {
  text-align: center;
  font-size: 1.1rem;
  opacity: 0.5;
  font-family: "Montserrat", sans-serif;
}

#page-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #008c9e;
  color: #fff;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  border-radius: 50%;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  font-size: 1.8rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  right: clamp(10px, 4vw, 20px);
  max-width: 50px;
  box-sizing: border-box;
}

#page-top.show {
  opacity: 1;
  visibility: visible;
}

#page-top:hover {
  background-color: #333;
  transform: translateY(-5px);
}

/* ===================================================
   ■ 下層ページ共通パーツ（ヘッダー・パンくず・ボタン）
   =================================================== */
.page-header {
  background-color: #eaf6f8;
  width: 100%;
  padding: 60px 0;
  margin-bottom: 50px;
  text-align: center;
  margin-top: 0;
}

.page-title {
  font-family: "Montserrat", sans-serif;
  font-size: 3.6rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: #008c9e;
  margin-bottom: 15px;
}

.breadcrumbs {
  font-size: 1.2rem;
  color: #888;
  display: flex;
  justify-content: center;
  gap: 10px;
  font-family: "Montserrat", sans-serif;
}

.breadcrumbs a {
  color: #888;
  text-decoration: none;
  transition: 0.3s;
}

.breadcrumbs a:hover {
  color: #008c9e;
  text-decoration: underline;
}

.btn-research-detail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #fff;
  color: #008c9e;
  border: 1px solid #008c9e;
  padding: 10px 25px;
  border-radius: 50px;
  font-weight: bold;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 1.3rem;
  text-decoration: none;
  transition: 0.3s;
  margin-top: 20px;
}

.btn-research-detail:hover {
  background-color: #008c9e;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 140, 158, 0.3);
}

.btn-research-detail span {
  font-family: "Montserrat", sans-serif;
  transition: 0.3s;
}

.btn-research-detail:hover span {
  transform: translateX(5px);
}

span.my-name {
  font-weight: 700 !important;
  text-decoration: underline !important;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
  color: #000;
}

/* ===================================================
   ■ 研究業績ページ (ACHIEVEMENTS)
   =================================================== */
.achieve-section {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto 100px;
}

.achieve-controls {
  background-color: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 60px;
  border: 1px solid #f0f9fa;
}

.control-group {
  margin-bottom: 25px;
}

.control-group:last-child {
  margin-bottom: 0;
}

.control-label {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-weight: bold;
  font-size: 1.2rem;
  color: #888;
  margin-bottom: 15px;
  letter-spacing: 0.1em;
}

.control-label i {
  color: #008c9e;
  margin-right: 5px;
}

.control-buttons,
.tag-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-filter {
  display: inline-block;
  padding: 10px 20px;
  background-color: #008c9e;
  color: #fff;
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: bold;
  border-radius: 4px;
  transition: 0.3s;
  font-family: "Zen Kaku Gothic New", sans-serif;
  cursor: pointer;
  border: none;
}

.btn-filter:hover {
  background-color: #333;
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
}

.btn-filter.active {
  background-color: #333;
}

.tag-filter {
  display: inline-block;
  padding: 6px 15px;
  background-color: #fff;
  color: #008c9e;
  border: 1px solid #008c9e;
  font-size: 1.2rem;
  border-radius: 20px;
  cursor: pointer;
  transition: 0.3s;
  font-family: "Zen Kaku Gothic New", sans-serif;
}

.tag-filter:hover {
  background-color: #eaf6f8;
}

.tag-filter.active {
  background-color: #008c9e;
  color: #fff;
}

.tag-reset {
  border-color: #aaa;
  color: #aaa;
}

.tag-reset:hover {
  background-color: #eee;
  color: #333;
}

.achieve-block {
  margin-bottom: 80px;
  scroll-margin-top: 120px;
}

.achieve-head {
  font-family: "Montserrat", sans-serif;
  font-size: 2.4rem;
  font-weight: 900;
  color: #333;
  margin-bottom: 30px;
  border-bottom: 2px solid #eaf6f8;
  padding-bottom: 10px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 15px;
}

.ja-head {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 1.4rem;
  font-weight: bold;
  color: #008c9e;
}

.paper-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.paper-card {
  background-color: #fff;
  border: 1px solid #eee;
  border-left: 5px solid #008c9e;
  padding: 30px;
  border-radius: 5px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  transition: 0.3s;
}

.paper-card:hover {
  box-shadow: 0 10px 30px rgba(0, 140, 158, 0.1);
  transform: translateX(5px);
  border-left-width: 8px;
}

.paper-info {
  flex: 1;
  padding-right: 30px;
}

.paper-title {
  font-size: 1.6rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 8px;
  line-height: 1.5;
}

.paper-authors {
  font-size: 1.4rem;
  color: #666;
  margin-bottom: 5px;
}

.paper-journal {
  font-size: 1.3rem;
  color: #999;
  font-style: italic;
  margin-bottom: 15px;
  font-family: "Montserrat", sans-serif;
}

.paper-action {
  flex-shrink: 0;
  margin-left: 20px;
}

.btn-external {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 25px;
  background-color: #fff;
  border: 1px solid #eee;
  color: #008c9e;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: bold;
  border-radius: 4px;
  transition: 0.3s;
  font-family: "Montserrat", sans-serif;
  min-width: 120px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.btn-external:hover {
  background-color: #008c9e;
  color: #fff;
  border-color: #008c9e;
}

.card-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.card-tag {
  font-size: 1.2rem;
  color: #008c9e;
  font-weight: bold;
  font-family: "Zen Kaku Gothic New", sans-serif;
}

/* ===================================================
   ■ ニュース一覧ページ (NEWS)
   =================================================== */
.news-archive-section {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto 100px;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 50px;
}

.page-num,
.page-next,
.page-numbers {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid #ddd;
  text-decoration: none;
  color: #333;
  font-family: "Montserrat", sans-serif;
  font-weight: bold;
  border-radius: 4px;
  transition: 0.3s;
  background-color: #fff;
}

.page-next {
  width: auto;
  padding: 0 15px;
}

.page-num:hover,
.page-next:hover,
.page-numbers:hover,
.page-num.active,
.page-numbers.current {
  background-color: #008c9e;
  color: #fff;
  border-color: #008c9e;
}

.page-dots {
  color: #aaa;
  letter-spacing: 2px;
}

/* ===================================================
   ■ 投稿詳細ページ (SINGLE)
   =================================================== */
.single-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 20px;
}

.single-header {
  margin-bottom: 40px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 20px;
}

.single-date {
  color: #888;
  font-size: 1.3rem;
}

.single-title {
  font-size: 2rem;
  font-weight: bold;
  margin-top: 10px;
  line-height: 1.4;
}

.single-cat {
  display: inline-block;
  background: #333;
  color: #fff;
  padding: 4px 10px;
  font-size: 1.2rem;
  margin-left: 10px;
}

.single-content p {
  margin-bottom: 1.5em;
  line-height: 1.8;
}

/* ===================================================
   ■ お問い合わせページ (CONTACT)
   =================================================== */
.contact-section {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto 100px;
}

.contact-container {
  display: flex;
  justify-content: space-between;
  gap: 60px;
}

.contact-sub-title {
  font-family: "Montserrat", sans-serif;
  font-size: 2rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 30px;
  padding-bottom: 10px;
  border-bottom: 2px solid #eaf6f8;
}

.contact-info {
  width: 40%;
}

.info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
}

.info-item i {
  font-size: 2rem;
  color: #008c9e;
  margin-right: 20px;
  margin-top: 5px;
}

.info-label {
  font-family: "Montserrat", sans-serif;
  font-weight: bold;
  font-size: 1.4rem;
  color: #333;
  margin-bottom: 5px;
}

.info-text p {
  font-size: 1.4rem;
  line-height: 1.8;
  color: #666;
}

.access-photos {
  display: flex;
  gap: 15px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.access-photos img {
  flex: 1 1 calc(50% - 8px);
  min-width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid #eee;
  display: block;
}

.map-container {
  margin-top: 40px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid #eee;
}

.contact-form-area {
  width: 55%;
  background-color: #fff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid #f9f9f9;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  font-weight: bold;
  font-size: 1.4rem;
  color: #333;
  margin-bottom: 8px;
}

/* CF7が自動挿入するラベル直後の<br>を無効化 */
.form-group br {
  display: none;
}

.required {
  background-color: #ff6b6b;
  color: #fff;
  font-size: 1rem;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 5px;
  vertical-align: middle;
}

.contact-form-area input[type="text"],
.contact-form-area input[type="email"],
.contact-form-area textarea {
  width: 100%;
  padding: 15px;
  font-size: 1.4rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: #f9f9f9;
  transition: 0.3s;
  font-family: inherit;
}

.contact-form-area input:focus,
.contact-form-area textarea:focus {
  background-color: #fff;
  border-color: #008c9e;
  box-shadow: 0 0 0 3px rgba(0, 140, 158, 0.1);
  outline: none;
}

.form-consent {
  text-align: center;
  font-size: 1.4rem;
  color: #555;
  margin-top: 30px;
}

.form-consent .wpcf7-list-item {
  margin: 0;
}

.form-consent .wpcf7-list-item-label {
  margin-left: 8px;
}

.form-consent a {
  color: #008c9e;
  text-decoration: underline;
}

.form-btn-area {
  text-align: center;
  margin-top: 40px;
}

.btn-submit {
  background-color: #333;
  color: #fff;
  font-size: 1.6rem;
  font-weight: bold;
  padding: 15px 60px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: 0.3s;
  font-family: "Zen Kaku Gothic New", sans-serif;
  display: flex;
  width: fit-content;
  margin: 0 auto;
  align-items: center;
  gap: 10px;
}

.btn-submit:hover {
  background-color: #008c9e;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 140, 158, 0.3);
}

/* ===================================
   Contact Form 7 用の調整
   =================================== */
.contact-form-area .wpcf7-form-control-wrap {
  display: block;
}

.contact-form-area .btn-submit::after {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  content: "\f1d8"; /* paper-plane */
}

.contact-form-area .wpcf7-not-valid-tip {
  display: block;
  margin-top: 8px;
  font-size: 1.3rem;
  color: #ff6b6b;
}

.contact-form-area .wpcf7-response-output {
  margin-top: 20px;
  padding: 15px 20px;
  border-radius: 5px;
  font-size: 1.4rem;
  text-align: center;
}

.contact-form-area .wpcf7-form.sent .wpcf7-response-output {
  border-color: #008c9e;
  color: #008c9e;
}

.contact-form-area .wpcf7-form.invalid .wpcf7-response-output,
.contact-form-area .wpcf7-form.failed .wpcf7-response-output,
.contact-form-area .wpcf7-form.aborted .wpcf7-response-output,
.contact-form-area .wpcf7-form.spam .wpcf7-response-output {
  border-color: #ff6b6b;
  color: #ff6b6b;
}

/* ===================================================
   ■ メッセージ・研究詳細ページ
   =================================================== */
.research-detail-section {
  width: 90%;
  max-width: 800px;
  margin: 0 auto 100px;
}

.research-article {
  background-color: #fff;
}

.article-title {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1.5;
  margin-bottom: 30px;
  border-left: 8px solid #008c9e;
  padding-left: 20px;
}

.article-subtitle {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: 1.4rem;
  color: #008c9e;
  font-weight: bold;
  margin-top: 10px;
  text-transform: uppercase;
}

.article-hero-img {
  width: 100%;
  height: 400px;
  margin-bottom: 50px;
}

.article-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.article-body h3 {
  font-size: 2.2rem;
  font-weight: bold;
  color: #333;
  margin-top: 50px;
  margin-bottom: 20px;
  border-bottom: 2px solid #eaf6f8;
  padding-bottom: 10px;
}

.article-body p {
  font-size: 1.6rem;
  line-height: 2;
  margin-bottom: 30px;
  text-align: justify;
}

.article-body ul {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 30px;
}

.article-body li {
  list-style: none;
  position: relative;
  padding-left: 20px;
  margin-bottom: 15px;
  font-weight: 500;
}

.article-body li:last-child {
  margin-bottom: 0;
}

.article-body li::before {
  content: "●";
  color: #008c9e;
  position: absolute;
  left: 0;
  top: 0;
}

.article-img-row {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.article-img-row img {
  width: calc(50% - 10px);
  border-radius: 5px;
}

.article-nav {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: space-between;
}

.btn-back,
.btn-next {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #333;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.btn-back:hover,
.btn-next:hover {
  color: #008c9e;
}

/* ===================================
   メディアクエリ（スマホ対応・完成版！）
   =================================== */
@media screen and (max-width: 768px) {
  /* Bodyの余白をスマホのヘッダーの高さ(約70px)に合わせて隙間を消す */
  body {
    margin-top: 70px;
  }
  /* Header */
  .header {
    padding: 15px 20px;
  }
  .lab-info {
    display: none;
  }
  .menu-logo {
    margin-bottom: 20px;
  }
  .show-menu {
    flex-direction: column;
    gap: 10px;
  }
  .menu-link .en {
    font-size: 2rem;
    margin-bottom: 0;
  }
  .hamburger-btn {
    top: 10px;
  }

  /* Top */
  .top-section {
    height: 40svh;
    margin-top: 0;
  }

  .top-title {
    font-size: 2.3rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }
  .top-sub {
    font-size: 0.8rem;
    word-break: break-all;
  }

  /* Section Title */
  .section-title {
    font-size: 2.9rem;
    word-break: break-word;
    margin-bottom: 30px; /* タイトル下の余白も少し詰める */
  }

  /* ★ セクション全体の上下余白を統一（100px → 50pxに最適化） ★ */
  .message-section,
  .profile-section,
  .research-section,
  .admission-section,
  .collaboration-section {
    padding: 50px 0;
  }

  /* マージンで余白を取っているセクションの調整 */
  .news-section {
    margin: 50px auto;
    padding: 0 5%; /* 他セクションと外枠位置を揃える */
  }
  .achieve-section,
  .contact-section,
  .news-archive-section,
  .research-detail-section {
    margin-bottom: 50px;
  }

  /* ★ 白い箱（カード）の余白を統一してスッキリ ★ */
  .news-container,
  .admission-requirements,
  .contact-form-area,
  .achieve-controls,
  .paper-card {
    padding: 25px 20px;
  }

  /* HTMLに直書きされていた余白をスマホ用に強制上書き */
  .research-article {
    padding: 25px 20px !important;
  }

  /* 下層ページヘッダー（水色エリア） */
  .page-header {
    padding: 40px 0;
    margin-bottom: 30px;
  }

  /* Zigzag Common（画像とテキストの順番調整） */
  .zigzag-inner {
    flex-direction: column;
    gap: 30px;
    padding: 0 5%;
  }
  .zigzag-text {
    order: 1;
    width: 100%;
  }
  .zigzag-img {
    order: 2;
    width: 100%;
  }
  .zigzag-img img {
    box-shadow: 10px 10px 0px #f0f9fa;
  }
  .btn-readmore {
    display: flex;
    width: fit-content;
    margin-left: auto;
  }

  /* コラボレーションのみ：画像をタイトル直後・本文の前に表示（PCの2カラム構成は変えない） */
  .collaboration-section .zigzag-inner {
    gap: 0;
  }
  .collaboration-section .zigzag-text {
    display: contents;
  }
  .collaboration-section .section-title {
    order: 1;
    width: 100%;
  }
  .collaboration-section .message-body {
    order: 3;
    width: 100%;
    margin: 20px 0px;
  }
  .collaboration-section .collab-list {
    order: 4;
    width: 100%;
  }
  .collaboration-section .btn-research-detail {
    order: 5;
  }

  /* News */
  .news-item {
    flex-direction: column;
  }
  .news-meta {
    width: 100%;
    margin-right: 0;
    margin-bottom: 10px;
  }

  /* Profile */
  .profile-inner {
    padding: 0 5%; /* 他セクションと外枠位置を揃える */
  }
  .profile-wrapper {
    flex-direction: column-reverse;
    align-items: center;
  }
  .profile-left {
    width: 100%;
    max-width: 300px;
  }
  .profile-right {
    width: 100%;
  }

  /* Research */
  .btn-research-large {
    padding: 16px 20px;
  }
  .btn-main {
    font-size: 1.5rem;
    white-space: nowrap;
  }
  .btn-sub {
    font-size: 1rem;
    margin-left: 8px;
    white-space: nowrap;
  }
  .btn-arrow {
    font-size: 1.6rem;
    margin-left: 8px;
  }
  .research-inner {
    padding: 0 5%; /* 他セクション（zigzag-inner）の左右余白に揃える */
  }
  .research-item {
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
  }
  .research-img,
  .research-text {
    width: 100%;
  }
  .research-img img {
    height: 200px;
    box-shadow: 10px 10px 0px #f0f9fa;
  }

  /* Achievements */
  .paper-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .paper-info {
    padding-right: 0;
    margin-bottom: 15px;
  }
  .paper-action {
    width: 100%;
    text-align: right;
  }

  /* Contact */
  .contact-container {
    flex-direction: column;
    gap: 40px;
  }
  .contact-info,
  .contact-form-area {
    width: 100%;
  }

  /* Footer */
  .footer-content {
    flex-direction: column;
    gap: 40px;
    padding-bottom: 20px;
    margin-bottom: 30px;
  }
  .footer-info,
  .footer-nav {
    width: 100%;
    text-align: left;
    justify-content: flex-start;
  }
  .footer-nav {
    flex-direction: column;
    gap: 15px;
  }

  /* Page Top */
  #page-top {
    right: 15px;
    bottom: 15px;
    width: 45px;
    height: 45px;
    font-size: 1.6rem;
  }

  /* Research Detail（詳細ページのスマホ調整） */
  .article-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }
  .article-hero-img {
    height: 200px;
    margin-bottom: 30px;
    margin-top: 20px !important;
  }
  .article-body h3 {
    font-size: 1.8rem;
    margin-top: 30px;
  }
  .article-img-row {
    flex-direction: column;
  }
  .article-img-row img {
    width: 100%;
  }

  /* ===================================
     Admission（スマホ用の写真3枚重ね・配置調整）
     =================================== */
  .admission-inner {
    padding: 0 5%; /* 他セクションと外枠位置を揃える */
  }
  .admission-content {
    flex-direction: column; /* テキストと画像を上下に並べる */
    gap: 10px;
    margin: 20px 0; /* 左右は admission-inner の余白に揃える */
  }

  .admission-requirements {
    width: 100%; /* 左側のテキストエリアを横幅いっぱいに */
  }

  .admission-img-area {
    width: 100%;
    position: static;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
  }

  /* スマホでは重ねずに縦に並べる */
  .admission-img-1,
  .admission-img-2,
  .admission-img-3 {
    position: static;
    width: 100%;
    border-width: 4px; /* 白い枠線をスマホ用に少し細く */
  }
}

/* COLLABORATION */
/* スマホの時だけボタンを中央寄せにする */
.btn-research-detail {
  display: flex;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
