/* ==========================================
   Mobile Styles (max-width: 768px)
   ========================================== */

/* Variables / Reset fixes */
:root {
  --header-height-mobile: 80px;
}

body {
  font-size: 14px;
}

.container {
  width: 95%;
}

/* Header & Navigation */
header {
  height: var(--header-height-mobile);
  padding: 0 15px;
}

.header-container {
  position: relative;
}

.logo-area img {
  height: 50px;
}

.header-title-text .top {
  font-size: 0.7rem;
  margin-left: -5px;
}

.header-title-text .bottom {
  font-size: 1.1rem;
  margin-left: -5px;
}

.header-title-text .english {
  display: none; /* スマホではタイトルのみ表示 */
}

/* Hamburger Button */
.hamburger-btn {
  display: flex !important;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2000;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.hamburger-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-color);
  transition: all 0.3s ease;
}

/* Menu logic (when active) */
.nav-menu {
  display: flex !important; /* style.cssのdisplay: noneを上書き */
  position: fixed;
  top: var(--header-height-mobile);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-height-mobile));
  background-color: white;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 1500;
  padding: 50px 0;
}

.nav-menu.active {
  transform: translateX(0);
}

.nav-menu li a {
  font-size: 1.2rem;
}

/* Specific Hamburger animations (Optional but good) */
.hamburger-btn.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}
.hamburger-btn.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Main Content */
main {
  margin-top: var(--header-height-mobile);
}

.catch-phrase {
  font-size: 1.2rem;
}

.intro-text {
  font-size: 1rem;
}

/* Slider adjustment */
.slide {
  flex: 0 0 90%; /* スマホではほぼ全幅表示 */
}

.slide img {
  height: 300px;
}

.slider-btn {
  width: 30px;
  height: 30px;
  font-size: 1rem;
}

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

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

.slider-dots {
  bottom: 10px;
}

/* Member Grid */
.member-grid {
  grid-template-columns: 1fr; /* 1カラムに */
}

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

/* Footer */
.footer-lab-title {
  gap: 20px;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-logo {
  margin-right: 0;
}

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

.footer-title-jp .top {
  margin-left: 0;
}

.footer-title-jp .bottom {
  border-left: none;
  padding-left: 0;
}

.footer-title-en {
  margin-left: 0;
}
