/**
 * カスタムヘッダースタイル
 * PC版: 1440px幅、100px高さ
 * SP版: ハンバーガーメニュー
 */

/* ========================================
 * ヘッダー基本スタイル
 * ======================================== */
.c-header {
    background-color: #ffffff;
    width: 100%;
    position: relative;
    z-index: 100;
}

.c-header__inner {
    max-width: 1440px;
    height: 100px;
    margin: 0 auto;
    padding: 10px 23px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

/* ========================================
 * ロゴ
 * ======================================== */
.c-header__logo {
    flex-shrink: 0;
}

.c-header__logo-link {
    display: block;
    text-decoration: none;
}

.c-header__logo-img {
    display: block;
    height: auto;
}

/* PC用ロゴ: 246x80px */
.c-header__logo-img--pc {
    width: 246px;
    max-height: 80px;
    object-fit: contain;
}

/* SP用ロゴ（PC時は非表示） */
.c-header__logo-img--sp {
    display: none;
    width: 138px;
    max-height: 32px;
    object-fit: contain;
}

/* ========================================
 * PCナビゲーション
 * ======================================== */
.c-header__nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    gap: 30px;
    overflow: hidden;
}

.c-header__nav-list {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.c-header__nav-item {
    margin: 0;
}

.c-header__nav-link {
    font-family: "Yu Gothic", "YuGothic", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    font-weight: bold;
    font-size: 16px;
    color: #000000;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

.c-header__nav-link:hover {
    opacity: 0.7;
}

/* ========================================
 * CTAボタン
 * ======================================== */
.c-header__cta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.c-header__cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 6px;
    font-family: "Inter", "Noto Sans JP", sans-serif;
    font-weight: bold;
    font-size: 14px;
    color: #ffffff;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

.c-header__cta-btn:hover {
    opacity: 0.85;
    color: #ffffff;
}

/* 青ボタン（掲載希望） */
.c-header__cta-btn--blue {
    background-color: #2563eb;
}

/* オレンジボタン（見積もり） */
.c-header__cta-btn--orange {
    background-color: #ff8a00;
}

/* ========================================
 * SPハンバーガーメニューボタン
 * ======================================== */
.c-header__menu-btn-wrap {
    display: none;
}

.c-header__menu-btn {
    width: 50px;
    height: 50px;
    background-color: #006dff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 0 17px 0 rgba(172, 255, 246, 0.21);
    transition: opacity 0.2s ease;
}

.c-header__menu-btn:hover {
    opacity: 0.9;
}

.c-header__menu-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 24px;
    height: 24px;
}

.c-header__menu-icon span {
    display: block;
    width: 18px;
    height: 2px;
    background-color: #ffffff;
    border-radius: 1px;
}

/* ========================================
 * レスポンシブ: SP対応 (959px以下)
 * ======================================== */
@media screen and (max-width: 959px) {
    .c-header {
        background-color: #fefefe;
        border-bottom: 1px solid #e3e3e3;
    }

    .c-header__inner {
        height: auto;
        padding: 12px 16px;
    }

    /* ロゴ切り替え */
    .c-header__logo-img--pc {
        display: none;
    }

    .c-header__logo-img--sp {
        display: block;
    }

    /* PCナビ非表示 */
    .c-header__nav {
        display: none;
    }

    /* SPメニューボタン表示 */
    .c-header__menu-btn-wrap {
        display: block;
    }
}

/* ========================================
 * 追加調整
 * ======================================== */

/* SWELLテーマとの競合回避 */
.c-header .c-header__inner {
    box-sizing: border-box;
}

.c-header ul {
    margin: 0;
    padding: 0;
}

.c-header li {
    list-style: none;
}

/* フォーカス時のスタイル（アクセシビリティ） */
.c-header__nav-link:focus,
.c-header__cta-btn:focus,
.c-header__menu-btn:focus {
    outline: 2px solid #006dff;
    outline-offset: 2px;
}

.c-header__menu-btn:focus {
    outline-color: #ffffff;
}

/* ========================================
 * SPメニュー（ドロワーメニュー）
 * ======================================== */
.c-sp-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s 0.3s, opacity 0.3s ease;
}

/* メニュー開いた状態 */
.c-sp-menu.-opened {
    visibility: visible;
    opacity: 1;
    transition: visibility 0s, opacity 0.3s ease;
}

.c-sp-menu__inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    background-color: #f9fafb;
    min-height: 100%;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.c-sp-menu.-opened .c-sp-menu__inner {
    transform: translateX(0);
}

/* オーバーレイ */
.c-sp-menu__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
    cursor: pointer;
}

/* ========================================
 * SPメニュー ヘッダー部分
 * ======================================== */
.c-sp-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 0 16px;
    background-color: #fefefe;
    border-bottom: 1px solid #e3e3e3;
}

.c-sp-menu__logo {
    flex-shrink: 0;
}

.c-sp-menu__logo a {
    display: block;
}

.c-sp-menu__logo-img {
    width: 138px;
    height: 32px;
    object-fit: contain;
}

/* 閉じるボタン */
.c-sp-menu__close-btn {
    width: 50px;
    height: 50px;
    background-color: #006dff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 0 17px 0 rgba(172, 255, 246, 0.21);
    transition: opacity 0.2s ease;
}

.c-sp-menu__close-btn:hover {
    opacity: 0.9;
}

.c-sp-menu__close-btn svg {
    width: 16px;
    height: 16px;
}

/* ========================================
 * SPメニュー 本体
 * ======================================== */
.c-sp-menu__body {
    background-color: #ffffff;
    border-radius: 10px;
    margin: 0;
    padding: 10px 20px;
    overflow-y: auto;
}

/* ナビゲーション */
.c-sp-menu__nav {
    width: 100%;
}

.c-sp-menu__nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.c-sp-menu__nav-item {
    border-bottom: 1px solid #f3f4f6;
}

.c-sp-menu__nav-item:first-child {
    border-top: none;
}

.c-sp-menu__nav-list--sub .c-sp-menu__nav-item:first-child {
    border-top: 1px solid #f3f4f6;
}

.c-sp-menu__nav-link {
    display: block;
    padding: 7px 0;
    font-family: "Yu Gothic", "YuGothic", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    font-size: 16px;
    color: #000000;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.c-sp-menu__nav-link:hover {
    opacity: 0.7;
}

/* メインナビ（Bold） */
.c-sp-menu__nav-item--main .c-sp-menu__nav-link {
    font-weight: bold;
}

/* サブナビ（Medium） */
.c-sp-menu__nav-item--sub .c-sp-menu__nav-link {
    font-weight: 500;
}

/* ========================================
 * SPメニュー CTAボタン
 * ======================================== */
.c-sp-menu__cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 10px 0 20px;
}

.c-sp-menu__cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 335px;
    height: 50px;
    padding: 16px 32px;
    border-radius: 8px;
    font-family: "Yu Gothic", "YuGothic", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    font-weight: bold;
    font-size: 20px;
    text-decoration: none;
    transition: opacity 0.2s ease;
    box-sizing: border-box;
}

.c-sp-menu__cta-btn:hover {
    opacity: 0.85;
}

/* オレンジボタン（見積もり） */
.c-sp-menu__cta-btn--orange {
    background-color: #ff8a00;
    color: #ffffff;
}

.c-sp-menu__cta-btn--orange:hover {
    color: #ffffff;
}

/* アウトラインボタン（掲載希望） */
.c-sp-menu__cta-btn--outline {
    background-color: #ffffff;
    color: #006dff;
    border: 1px solid #006dff;
}

.c-sp-menu__cta-btn--outline:hover {
    color: #006dff;
}

/* ========================================
 * SWELLデフォルトSPメニュー非表示
 * ======================================== */
.p-spMenu {
    display: none !important;
}
