@charset "UTF-8";
/**
 * PE-LOG ヘッダーカスタマイズ
 * - ロゴ左・メニュー右レイアウト（投稿ページのみ）
 * - カテゴリナビにFont Awesomeアイコン
 * - 検索アイコン化
 */

/* =========================================
   ヘッダー全体レイアウト
   ========================================= */
/* ヘッダーコンテナ */
#header-container {
    overflow-x: hidden;
}

/* =========================================
   投稿ページ用：ロゴ左・ナビ右レイアウト
   （.single = 投稿ページのみ適用）
   ========================================= */
.single #header-container-in.hlt-center-logo {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    padding: 12px 30px;
    max-width: 1256px;
    margin: 0 auto;
    box-sizing: border-box;
    gap: 40px;
}

.single #header-container-in.hlt-center-logo #header {
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    width: auto;
}

.single #header-container-in.hlt-center-logo #header-in {
    display: flex;
    align-items: center;
    padding: 0;
    width: auto;
}

.single #header-container-in.hlt-center-logo .logo-header {
    text-align: left;
    margin: 0;
}

.single .logo-header img,
.single .header-site-logo-image {
    max-height: 40px !important;
    width: auto !important;
    height: auto !important;
}

.single #header-container-in.hlt-center-logo #navi {
    flex: 0 1 auto;
    margin: 0;
    padding: 0;
}

.single #header-container-in.hlt-center-logo #navi-in {
    display: flex;
    justify-content: flex-end;
    padding: 0;
    width: auto;
}

.single #header-container-in.hlt-center-logo #navi-in.wrap {
    max-width: none;
}

/* =========================================
   カテゴリナビ スタイル
   ========================================= */
/* ナビ全体 - デフォルトは中央寄せ */
#navi .menu-header {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: nowrap;
    justify-content: center !important;
    margin: 0;
    padding: 0;
}

/* 投稿ページのみ右寄せ */
.single #navi .menu-header {
    justify-content: flex-end !important;
}

/* ナビ項目 */
#navi .menu-header .menu-item {
    margin: 0;
    padding: 0;
    width: auto !important;
    height: auto !important;
}

#navi .navi-in > ul li,
#navi .menu-header > li {
    width: auto !important;
    height: auto !important;
}

#navi .menu-header .menu-item > a {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 8px 8px;
    color: #333;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s, opacity 0.2s;
    position: relative;
    white-space: nowrap;
}

#navi .menu-header .menu-item > a:hover {
    opacity: 0.7;
}

/* caption-wrapのスタイル調整 */
#navi .menu-header .caption-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* item-labelの前にアイコン用スペース */
#navi .menu-header .item-label {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* =========================================
   Font Awesome アイコン設定
   ========================================= */
/* 共通アイコンスタイル */
#navi .menu-header .menu-item > a::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 12px;
    color: #333;
    display: inline-block;
    margin-right: 2px;
}

/* iPad / Tablet */
#navi .menu-header a[href*="/category/ipad/"]::before,
#navi .menu-header a[href*="/category/tablet/"]::before {
    content: "\f3fa"; /* fa-tablet-alt */
}

/* 手ぶら (empty-handed) */
#navi .menu-header a[href*="/category/empty-handed/"]::before {
    content: "\f1b2"; /* fa-cube */
}

/* ROG Ally */
#navi .menu-header a[href*="/category/rog-ally/"]::before {
    content: "\f11b"; /* fa-gamepad */
}

/* Apple Watch */
#navi .menu-header a[href*="/category/apple-watch/"]::before {
    content: "\f017"; /* fa-clock */
    font-weight: 400; /* Regular版 */
}

/* デスク周り */
#navi .menu-header a[href*="/category/desk/"]::before {
    content: "\f108"; /* fa-desktop */
}

/* ガジェット */
#navi .menu-header a[href*="/category/gadget/"]::before {
    content: "\f025"; /* fa-headphones */
}

/* =========================================
   現在のカテゴリをハイライト
   ========================================= */
#navi .menu-header .current-menu-item > a,
#navi .menu-header .current-menu-parent > a,
#navi .menu-header .current-post-parent > a {
    color: #0071e3;
}

#navi .menu-header .current-menu-item > a::before,
#navi .menu-header .current-menu-parent > a::before,
#navi .menu-header .current-post-parent > a::before {
    color: #0071e3;
}

/* =========================================
   検索アイコン化
   ========================================= */
/* 検索フォームを非表示にしてアイコンのみに */
.header .search-box {
    position: relative;
}

/* 検索ボックスをアイコンボタン化 */
.header .search-box .search-edit {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    padding: 0;
    border: none;
    background: transparent;
    opacity: 0;
    transition: width 0.3s, opacity 0.3s, padding 0.3s;
}

.header .search-box:focus-within .search-edit,
.header .search-box.is-open .search-edit {
    width: 200px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
    opacity: 1;
    background: #fff;
}

/* 検索ボタンをアイコンに */
.header .search-box .search-submit {
    background: transparent;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 18px;
    color: #333;
}

.header .search-box .search-submit::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f002"; /* fa-search */
}

.header .search-box .search-submit:hover {
    opacity: 0.7;
}

/* 検索ボタンのテキストを非表示 */
.header .search-box .search-submit .fa::before,
.header .search-box .search-submit span {
    display: none;
}

/* =========================================
   アピールエリア（メインビジュアル）調整
   ========================================= */
/* 投稿ページではアピールエリアを非表示 */
.single .appeal {
    display: none;
}

/* =========================================
   レスポンシブ対応
   ========================================= */
@media (max-width: 1100px) {
    /* タブレット以下 - 縦並びに戻す（投稿ページ） */
    .single #header-container-in.hlt-center-logo {
        flex-direction: column;
        align-items: center;
        padding: 10px 15px;
        gap: 10px;
    }
    
    .single #header-container-in.hlt-center-logo #header {
        margin-bottom: 0;
    }
    
    .single #header-container-in.hlt-center-logo .logo-header {
        text-align: center;
    }
    
    .single #header-container-in.hlt-center-logo #navi {
        margin-left: 0;
        width: 100%;
    }
    
    .single #header-container-in.hlt-center-logo #navi-in {
        justify-content: center;
    }
    
    #navi .menu-header {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 834px) {
    /* モバイル - ナビアイコンを小さく */
    #navi .menu-header .menu-item > a {
        padding: 6px 8px;
        font-size: 12px;
    }
    
    #navi .menu-header .menu-item > a::before {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    /* スマホ - ナビをスクロール可能に */
    #navi .menu-header {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
        padding-bottom: 5px;
    }
    
    #navi .menu-header .menu-item {
        flex-shrink: 0;
    }
    
    #navi .menu-header .menu-item > a {
        padding: 6px;
        font-size: 11px;
    }
    
    /* スクロールバー非表示 */
    #navi .menu-header::-webkit-scrollbar {
        display: none;
    }
    
    #navi .menu-header {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
}