
/* ======================================================
   トップページ (front-page.php) のスタイル
   ====================================================== */
.home .site-header {
    background: transparent; /* 背景透過など（必要に応じて） */
    position: absolute;
    width: 100%;
    z-index: 999;
}
.header-sub-logo img{
    height: 35px;
}

/* ======================================================
   下層ページ (トップページ以外) のスタイル
   ====================================================== */
/* bodyが.homeクラスを持っていない時 = 下層ページ */
body:not(.home) .site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    padding: 0;
}


/* =============================================
   下層ページ ヘッダー（追従・コンパクト設定）
   ============================================= */
body:not(.home) .site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    
    /* 追従設定 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    
    /* ヘッダーの高さを画像のように小さく設定 */
    height: 60px; /* PC */
    display: flex;
    align-items: center;
}

/* ヘッダーの中のコンテナ（要素の配置） */
body:not(.home) .site-header .bc-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative; /* センターロゴの基準 */
    height: 100%;
}

.header-inner {
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.header-sub-nav a, .nav-login {
    color: var(--bc-white);
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
}


/* =============================================
   スマホ専用の調整 (Mobile)
   ============================================= */
@media (max-width: 850px) {
    body:not(.home) .site-header {
        height: 50px; /* スマホはさらに低く */
        display: block;
    }
    .header-responsive-inner{
        position: relative;
        padding: 10px 20px;
    }
    .sp_logo_center{
        text-align: center;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        top:10px;
    }

    /* ハンバーガーメニューを小さく */
    /* 実際のクラス名に合わせて .menu-icon や .drawer-hamburger 等に変更してください */
    .hamburger-icon, 
    .menu-toggle,
    .dashicons-menu {
        transform: scale(0.7); /* 全体的に70%のサイズに縮小 */
        transform-origin: left center;
    }

    body:not(.home) .header-sub-logo img {
        height: 28px; /* スマホでのロゴサイズ */
    }
}

/* 追従ヘッダーによるコンテンツの被り防止 */
body:not(.home) main {
    padding-top: 60px; /* ヘッダーの高さ分だけ余白を作る */
}

@media (max-width: 850px) {
    body:not(.home) main {
        padding-top: 50px;
    }
    .sp_logo_center img{
        text-align: center;
        height: 30px;
    }
    /* センターロゴ設定 */
body:not(.home) .header-sub-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0; /* 余計なマージンを解除 */
}

body:not(.home) .header-sub-logo img {
    height: 35px; /* 画像に近いバランス */
    width: auto;
    display: block;
}

}


