/* =====================
   HEADER BASE (PC)
===================== */

/* ヘッダー本体 */
.ps-header {
    width: 100%;
    height: 44px;
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* 内側レイアウト */
.ps-header-inner {
    max-width: 1200px;
    height: 44px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ロゴ */
.ps-logo a {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    text-decoration: none;
}

/* PC ナビゲーション */
.ps-nav ul {
    display: flex;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ps-nav a {
    font-size: 14px;
    color: #222;
    text-decoration: none;
    padding: 4px;
}

/* PC ハンバーガー非表示 */
.ps-hamburger {
    display: none;
}

/* =====================
   MEGA MENU（PCのみ）
===================== */

.ps-mega-menu {
    width: 100%;
    background: #fff;
    border-top: 1px solid #e5e5e5;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    position: absolute;
    left: 0;
    top: 44px;
    padding: 20px 0;     /* ← 上下の余白ここで調整 */
    display: none;
}

.ps-mega-menu.active {
    display: block;
}

/* 中のグリッド */
.ps-mega-menu .mega-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px 60px;
}

.ps-mega-menu h4 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 12px;
}

.ps-mega-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ps-mega-menu li {
    margin-bottom: 6px;
    font-size: 14px;
    line-height: 1.6;
}

.ps-mega-menu .mega-col {
    min-width: 200px;
}

/* =====================
   SP（768px 以下）
===================== */

@media (max-width: 768px) {

    /* PC用ナビは非表示 */
    .ps-nav ul {
        display: none !important;
    }

    /* ハンバーガー表示 */
    .ps-hamburger {
        display: flex !important;
        width: 26px;
        height: 20px;
        flex-direction: column;
        justify-content: space-between;
        cursor: pointer;
    }

    .ps-hamburger span {
        display: block;
        height: 3px;
        background: #000;
        border-radius: 2px;
    }

    /* ナビ本体（隠す） */
    .ps-nav {
        position: absolute;
        top: 44px;
        right: 0;
        background: #fff;
        border: 1px solid #e5e5e5;
        display: none;
    }

    /* 開いたとき */
    .ps-nav.open {
        display: block !important;
    }

    .ps-nav.open ul {
        display: flex !important;
        flex-direction: column;
        width: 240px;
        padding: 20px;
        gap: 16px;
    }

    /* メガメニューはSP無効 */
    .ps-mega-menu {
        display: none !important;
    }
}
