/* ============================
   Header Base
============================ */
#site-header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background: #ffffff;
}

.header-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo img {
    max-width: 200px;
    height: auto;
}

/* PCメニュー */
.header-menu {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-menu a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

/* SP：ハンバーガー */
#menu-btn {
    display: none;
    border: none;
    background: none;
}

#menu-btn span {
    width: 24px;
    height: 2px;
    background: #333;
    margin: 4px 0;
    display: block;
}

/* SPブレイクポイント */
@media (max-width: 1024px) {
    .header-nav {
        display: none;
    }
    #menu-btn {
        display: block;
    }
}

/* ============================
   SPメニューベース
============================ */

/* ポップアップ全体 */
#sp-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;  /* 今は白 */
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 9999;
}

/* 表示状態 */
#sp-menu.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

/* 中身 */
.sp-menu-inner {
    position: relative;
    width: 100%;
    height: 100%;
 }

/* ×ボタン（変化したハンバーガー） */
#sp-close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 32px;
    height: 32px;
    border: none;
    background: none;
}

/* ×ライン */
#sp-close-btn span {
    position: absolute;
    width: 100%;
    height: 2px;
    background: #000;
    top: 50%;
    left: 0;
    transform-origin: center;
}

#sp-close-btn span:nth-child(1) {
    transform: translateY(-50%) rotate(45deg);
}
#sp-close-btn span:nth-child(2) {
    transform: translateY(-50%) rotate(-45deg);
}

/* メニュー（中央寄せ） */
.sp-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center; /* 中央配置 */
    align-items: center;
    gap: 18px;
}

.sp-menu-list a {
    text-decoration: none;
    color: #000;
    font-size: 16px; /* 小さめ */
    font-weight: 400;
}

.site-title {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  text-decoration: none;
}

/* ロゴ画像の共通調整 */
.header-logo img {
    max-height: 80px; 
    width: auto;
    height: auto;
}