:root {
  --primary-color: #c8102e;
  /* 神戸大学カラーに近い赤 */
  --text-color: #111111;
  --bg-color: #ffffff;
  --gray-light: #f4f4f4;
  --border-color: #dddddd;
  --font-family: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --header-height: 100px;
  /* 80pxから拡大、ロゴサイズに合わせて調整 */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s;
}

a:hover {
  opacity: 0.7;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  padding: 0 2%;
}

.header-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-area img {
  height: 80px;
  /* 40pxから2倍の80pxへ */
}

.header-title-text {
  line-height: 1.2;
}

.header-title-text .top {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 3px;
  margin-left: -15px;
}

.header-title-text .bottom {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  margin-left: -15px;
}

.header-title-text .english {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(17, 17, 17, 0.6);
  /* 80% グレー */
  margin-top: 6px;
  margin-left: -15px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 25px;
}

.nav-menu li a {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Page Layout */
main {
  margin-top: var(--header-height);
  padding-bottom: 50px;
}

NotActive.page-header-bg {
  position: absolute;
  bottom: 0px;
  left: 0;
  width: 100%;
  height: 500px;
  z-index: -1;
  background-size: cover;
  background-position: bottom;
  opacity: 0.35;
  mask-image: linear-gradient(to top, black 30%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, black 30%, transparent 100%);
  pointer-events: none;
}

.page-header-bg-center {
  position: fixed;
  top: 50%;
  left: 0;
  width: 100%;
  height: 50vh;
  /* 画面全体の高さ */
  transform: translateY(-30%);
  z-index: -1;
  background-size: cover;
  background-position: center;
  opacity: 0.25;
  /* 中央固定は少し薄めに */
  mask-image: linear-gradient(to bottom,
      transparent 0%,
      black 20%,
      black 80%,
      transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom,
      transparent 0%,
      black 20%,
      black 80%,
      transparent 100%);
  pointer-events: none;
}

NotActive.page-header-bg-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 136px;
  /* 背景の高さ */
  z-index: -1;
  /* コンテンツの背面に配置 */
  background-size: cover;
  background-position: center 65%;
  opacity: 0.15;
  /* マウス操作を透過 */
}

.container {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
}

section {
  padding: 20px 0;
}

/* Text Style */
.ja,
.en {
  text-shadow: 0 0 2px white, 0 0 2px white, 0 0 2px white, 0 0 2px white, 0 0 2px white, 0 0 2px white;
}

.head {
  text-shadow: 0 0 4px white, 0 0 4px white, 0 0 4px white, 0 0 4px white, 0 0 4px white, 0 0 4px white;
}

/* Title Section */
.page-title-area {
  padding-bottom: 20px;
  padding-top: 25px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 30px;
}

.lab-title {
  display: flex;
  align-items: flex-start;
}

.lab-title .logo {
  height: 60px;
  margin-right: 20px;
}

.lab-title-text h1 {
  font-weight: 500;
  line-height: 1.2;
}

.lab-title-text .top-part {
  font-size: 1.2rem;
  display: block;
  margin-bottom: 8px;
}

.lab-title-text .bottom-part {
  font-size: 2.2rem;
  font-weight: 700;
  display: block;
  border-left: 4px solid var(--primary-color);
  padding-left: 15px;
}

/* Typography & Elements */
h2 {
  font-size: 2.2rem;
  margin-bottom: 30px;
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 120px;
  height: 3px;
  background-color: var(--primary-color);
  transform-origin: left;
  /* 左端を起点にする */
  animation: swipe-line 1s cubic-bezier(0.19, 1, 0.22, 1) forwards;
  /* アニメーション適用 */
}

@keyframes swipe-line {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

.dashed-divider {
  border: none;
  border-top: 1px dashed var(--border-color);
  margin: 20px 0;
}

/* Main Visual Slider */
.main-visual {
  margin-bottom: 60px;
  width: 100%;
  position: relative;
}

.slider-container {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  overflow: hidden;
  padding: 20px 0;
}

.slider-wrapper {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  /* 中央寄せを考慮した初期位置の調整はJSで行うが、
     ここでは構造のみを定義 */
}

.slide {
  flex: 0 0 70%;
  /* 1枚の幅を70%に設定して、左右が15%ずつ見えるようにする */
  padding: 0 10px;
  transition: transform 0.5s ease, opacity 0.5s ease;
  opacity: 0.5;
  transform: scale(0.9);
}

.slide.active {
  opacity: 1;
  transform: scale(1);
}

.slide img {
  width: 100%;
  height: 480px;
  /* 高さを統一 */
  object-fit: cover;
  /* 比率を維持して切り抜き */
  display: block;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}

/* Slider Navigation Buttons */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.8);
  color: var(--text-color);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s, color 0.3s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.slider-btn:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Slider Pagination Dots */
.slider-dots {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.dot.active {
  background-color: var(--primary-color);
  transform: scale(1.4);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.dot:hover {
  background-color: rgba(255, 255, 255, 1);
}

.slider-btn.prev {
  left: 5%;
}

.slider-btn.next {
  right: 5%;
}

.catch-phrase {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.catch-phrase-section {
  margin-bottom: -20px;
}

.intro-text {
  font-size: 1.1rem;
  max-width: 1000px;
}

.intro-section {
  margin-top: -30px;
}

/* News Section */
.news-list {
  list-style: none;
}

.news-item {
  padding: 15px 0;
  border-bottom: 1px dashed var(--border-color);
  display: flex;
  gap: 20px;
}

.news-item .date {
  font-weight: 600;
  color: var(--primary-color);
  min-width: 100px;
}

/* Accordion for Publication */
.accordion-item {
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.accordion-header {
  width: 100%;
  padding: 20px 0;
  background: none;
  border: none;
  text-align: left;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-header::after {
  content: '+';
  font-size: 1.5rem;
}

.accordion-item.active .accordion-header::after {
  content: '-';
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.accordion-item.active .accordion-content {
  max-height: 100000px;
}

.paper-list {
  list-style: none;
  padding: 0 0 20px 0;
}

.paper-item {
  padding: 10px 0;
  font-size: 0.95rem;
}

.pubmed-link {
  color: var(--primary-color);
  font-size: 0.9rem;
  margin-left: 0px;
}

/* Members Section */
.member-block {
  margin-bottom: 20px;
}

.member-block .en {
  font-size: 1rem;
  margin-left: 10px;
  color: rgba(0, 0, 0, 0.7)
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.member-card {
  padding: 20px;
  background-color: var(--gray-light);
}

.member-card .name {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: -5px;
}

.member-card .english {
  font-size: 0.8rem;
  color: rgba(0, 0, 0, 0.6)
}

.member-card .info {
  font-size: 0.9rem;
  margin-top: 5px;
  margin-bottom: -5px;
}

.researchmap-link {
  color: var(--primary-color);
  font-size: 0.8rem;
}

/* Access Section */
.access-info .en {
  margin-left: 10px;
  font-size: 1rem;
  color: rgba(0, 0, 0, 0.7)
}

/* Links Section */
.links-content .en {
  margin-left: 10px;
  font-size: 1rem;
  color: rgba(0, 0, 0, 0.7)
}

/* Footer */
footer {
  background-color: var(--text-color);
  color: var(--bg-color);
  padding: 5px 0 30px;
  text-align: center;
  font-size: 0.8rem;
}

.footer-lab-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  text-align: left;
  margin-bottom: 30px;
}

.footer-logo {
  height: 80px;
  margin-right: -40px;
}

.footer-title-jp {
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  padding-right: 20px;
}

.footer-title-jp .top {
  display: block;
  font-size: 0.75rem;
  margin-bottom: 1px;
  margin-left: 18px;
}

.footer-title-jp .bottom {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  border-left: 4px solid var(--primary-color);
  padding-left: 15px;
}

.footer-title-en {
  max-width: 500px;
  margin-left: -13px;
}

.footer-title-en span {
  display: block;
  font-size: 0.8rem;
  line-height: 1.5;
}

.copyright {
  margin-top: -20px;
  margin-bottom: -15px;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .lab-title-text .bottom-part {
    font-size: 1.5rem;
  }
}