body {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 400;
  font-style: normal;
}
.sen {
  font-family: "Sen", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}
/* Smooth Scroll用のスタイル */
html {
  scroll-behavior: auto; /* GSAPが制御するためautoに設定 */
}
.smooth-scroll-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.smooth-scroll-content {
  will-change: transform;
}
/* 初期状態の設定（GSAPで制御するため最小限のみ） */
.mil-preloader-animation {
  opacity: 0;
}
.mil-h3 {
  opacity: 0;
}
.mil-reveal-box {
  opacity: 0;
  width: 0%;
}
.mil-up {
  opacity: 0;
}
.mil-header {
  opacity: 1;
  transform: translateY(0);
}
.mil-image-section {
  opacity: 0;
  transform: translateX(-100px);
}
.mil-message-section {
  opacity: 0;
  transform: translateX(100px);
}
/* ヘッダーのEmotionXロゴスタイル */
.mil-header .bg-white {
  box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.3);
}
.mil-hidden {
  display: none !important;
}
/* セクション間のスペーシング調整 */
.section-spacing {
  padding: 4rem 0;
}
/* スクロールインジケーター */
.scroll-indicator {
  position: fixed;
  top: 50%;
  right: 2rem;
  transform: translateY(-50%);
  z-index: 30;
  opacity: 0;
}
.scroll-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  margin: 1rem 0;
  cursor: pointer;
  transition: all 0.3s ease;
}
.scroll-dot.active {
  background: white;
  transform: scale(1.2);
}

/* ハンバーガーメニューのスタイル */
.hamburger {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: #000;
  margin: 3px 0;
  transition: 0.3s;
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
  background-color: #fff;
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
  background-color: #fff;
}

/* モバイルメニューオーバーレイ */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  text-align: center;
}

.mobile-menu a {
  color: white;
  font-size: 2rem;
  font-weight: 300;
  text-decoration: none;
  margin: 1rem 0;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.3s ease;
}

.mobile-menu a:hover {
  color: #60a5fa;
}

.mobile-menu-overlay.active .mobile-menu a {
  opacity: 1;
  transform: translateY(0);
}

/* デスクトップナビゲーション */
.desktop-nav {
  display: none;
}

@media (min-width: 768px) {
  .desktop-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
  }

  .desktop-nav a {
    color: #000;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
  }

  .desktop-nav a:hover {
    color: #60a5fa;
  }

  .desktop-nav a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #60a5fa;
    transition: width 0.3s ease;
  }

  .desktop-nav a:hover::after {
    width: 100%;
  }

  .hamburger {
    display: none;
  }
}

/* 閉じるボタンのスタイル */
.mobile-close-btn {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}

.mobile-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

/* ヘッダーの初期表示 */
.emotion-header {
  opacity: 1;
  transform: translateY(0);
}

/* ロゴホバー効果 */
.logo-hover {
  transition: transform 0.3s ease;
}

.logo-hover:hover {
  transform: scale(1.05);
}

/* フォームスタイル */
.form-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  transition: all 0.3s ease;
}

.form-input:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: #60a5fa;
  outline: none;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* アニメーション */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
}

/* Micromodal styles */
.modal {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal__overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  transition: background-color 0.3s ease, opacity 0.3s ease;
}

.modal-container {
  background-color: white;
  max-width: 90vw;
  max-height: 90vh;
  width: 100%;
  position: relative;
  overflow: visible;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  /* 開く時：少し上から出現 */
  transform: translateY(100px) scale(0.95);
  opacity: 0;
  transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (min-width: 768px) {
  .modal-container {
    max-width: 80vw;
    max-height: 85vh;
  }
}

@media (min-width: 1024px) {
  .modal-container {
    max-width: 50vw;
    max-height: 90vh;
  }
}

.modal.is-open .modal-container {
  /* 開いた状態：元の位置に戻る */
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal.is-open .modal__overlay {
  background: rgba(0, 0, 0, 0.8);
  opacity: 1;
}

/* Closing animation */
.modal.is-closing .modal__overlay {
  background: rgba(0, 0, 0, 0);
}

/* 閉じる時：少し下に下がる */
.modal.is-closing .modal-container {
  transform: translateY(100px) scale(0.95);
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

.modal.is-closing {
  opacity: 0;
  visibility: hidden;
}

.modal__header {
  position: sticky;
  top: 0;
  background: white;
  z-index: 10;
}

.modal_content {
  overflow-y: auto;
  max-height: calc(95vh - 4rem);
}

@media (min-width: 768px) {
  .modal_content {
    max-height: calc(95vh - 4rem);
  }
}

@media (min-width: 1024px) {
  .modal_content {
    max-height: calc(95vh - 4rem);
  }
}

.modal_close {
  position: absolute;
  top: -1.5rem;
  right: -1.5rem;
  background: rgba(180, 180, 180, 0.9);
  border: none;
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 30;
  /* モーダルよりも高いz-index */
  transition: background-color 0.3s;
}

.modal_close:hover {
  background: rgba(220, 220, 220, 0.9);
}

.modal_close svg {
  width: 1.25rem;
  height: 1.25rem;
}
