/* =========================================
 *  左サイドバー・メインメニュー
 * ========================================= */

/* サイトタイトル */
.site-title {
  font-family: var(--font-hero-en);
  font-size: clamp(1.7rem, 2.4vw, 2.6rem);
  font-weight: 400;
  line-height: 1.1;
}

/* サイドバー */
.front-sidebar {
  position: sticky;
  top: 0;
  align-self: flex-start;
  min-height: 100vh;
  padding: 2rem 1.7rem 2rem 2rem;
  border-right: 1px solid var(--color-border);
  background: var(--color-bg-sidebar);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* メインナビゲーション */
.main-nav ul {
  list-style: none;
  padding-left: 0;
  margin: 2rem 0;
}

.main-nav li + li {
  margin-top: .75rem;
}

.main-nav a {
  font-family: var(--font-hero-en);
  font-size: clamp(0.95rem, 1.1vw, 1.1rem);
  font-weight: 400;
  text-decoration: none;
  color: var(--color-text-main);
  transition: all 0.3s ease;
}

.main-nav a:hover {
  text-decoration: none;
  background: linear-gradient(to right, var(--color-primary-start), var(--color-primary-end));
  background-size: 200% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-slide 0.5s ease forwards;
}

/* SNSリンク */
.sidebar-sns {
  display: flex;
  gap: 0.75rem;
  font-size: 1.1rem;
}

.sidebar-sns a {
  color: var(--color-text-main);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.sidebar-sns a:hover {
  opacity: 0.7;
  text-decoration: none;
}

/* モバイル用メニュートグルボタン */
.menu-toggle-btn {
  display: none;
}

/* モバイル対応 */
@media (max-width: 768px) {
  .front-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: min(18rem, 80vw);
    transform: translateX(-100%);
    transition: transform .3s ease-in-out;
    z-index: 1000;
  }

  .front-sidebar.is-open {
    transform: translateX(0);
  }

  .menu-toggle-btn {
    position: fixed;
    top: .8rem;
    left: 1rem;
    z-index: 1100;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    border: 1px solid #ddd0c0;
    background: rgba(249, 244, 235, .97);
    cursor: pointer;
  }
}

