@charset "utf-8";
/* CSS Document */
/* =========================================
   ナビゲーション
========================================= */
.main-nav {
  position: relative;
  margin-top: 1.5rem;
}

/* ナビリスト */
.main-nav ul {
  display: none;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
  background: #fff;
  padding: 1.5rem 0;
  border-top: 1px solid #eee;
}

/* 各リンク */
.main-nav a {
  font-size: 1rem;
  color: #333;
  transition: color 0.3s;
}

.main-nav a:hover {
  color: #78b3a4;
}

/* お問い合わせボタン */
.main-nav .btn {
  display: inline-block;
  background: #78b3a4;
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 2rem;
  transition: background 0.3s;
}

.main-nav .btn:hover {
  background: #5b9c8d;
}

/* ハンバーガーボタン */
.menu-toggle {
  width: 32px;
  height: 26px;
  margin: 0 auto;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu-toggle span {
  display: block;
  height: 3px;
  background: #333;
  border-radius: 2px;
  transition: 0.3s;
}

/* 開閉時アニメーション */
.menu-toggle.active span:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
}

/* メニュー開閉時 */
.main-nav ul.open {
  display: flex;
}

/* =========================================
   タブレット以上（横並び）
========================================= */
@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }

  .main-nav ul {
    display: flex !important;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    background: transparent;
    border: none;
    padding: 0;
  }

  .main-nav a {
    font-size: 1rem;
  }

  .main-nav .btn {
    padding: 0.5rem 1.5rem;
  }
}

