@charset "utf-8";

/* =================================================================
    * ヘッダーナビゲーション専用スタイル
* ================================================================= */

/* スマホでメニュー表示時に背景をスクロールさせない */
body.is_menu_open {
    overflow: hidden;
}

#header_navigation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
    background-color: #fff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
/* スクロール時のスタイル */
#header_navigation.is_scrolled {
    background-color: white;
    border-bottom-color: #e9ecef;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.header_container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    width: 90%;
    max-width: 1000px;
    padding: 0;
}

.header_logo_link {
    display: flex;
    align-items: center;
    text-decoration: none!important;
}

.header_logo_link:hover .header_comp_name {
    opacity: .9;
}

.header_logo_placeholder {
    width: auto;
    height: 40px;
    background-color: #fff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bright-comp-color);
}

.header_logo_placeholder img {
    height: auto!important; 
    width: 150px!important;
}

.header_comp_name {
    color: var(--text-color);
    font-size: 22px;
    font-weight: bold;
    padding-left: 10px;
    width: 100%;
}

.header_container {
    position: relative;
}

.header_logo_comment {
    background: white;
    border: solid 2px #008275;
    border-radius: 8px;
    display: inline-block;
    font-size: 16px;
    font-weight: bold;
    line-height: 1.5;
    padding: 10px 15px;
    position: absolute;
    top: 18px;
    left: 420px;
    height: 45px;
    width: 200px;
}

.header_logo_comment a {
    color: var(--text-color);
    text-decoration: none;
}

.header_logo_comment a:hover {
    opacity: .8;
}

.header_nav {
    display: flex;
    align-items: center;
    gap: 32px;
}
.header_nav_list {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.header_nav_link {
    position: relative;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
    padding: 8px 0;
    transition: color 0.3s ease;
}
.header_nav_link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.header_nav_link:hover {
    opacity: .9;
}
.header_nav_link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.header_nav_link_cta {
    background: var(--accent-color) url(../../img/common/icon-mail.png) 15px 50% no-repeat;
    border-radius: 3px;
    color: var(--bs-white)!important;
    display: inline-block;
    font-weight: bold;
    height: 45px;
    line-height: 45px;
    padding: 0 2em 0 3.5em;
    text-decoration: none!important;
}
.header_nav_link_cta:hover {
    transform: translateY(-1px);
    opacity: .9;
}
.header_nav_link_cta::after {
    display: none; /* 下線アニメーションは不要 */
}

/* --- ハンバーガーメニュー (SP) --- */
.header_hamburger_button {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1002;
}
.header_hamburger_icon,
.header_hamburger_icon::before,
.header_hamburger_icon::after {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--comp-color);
    border-radius: 1px;
    transition: transform 0.3s ease, top 0.3s ease, opacity 0.3s ease;
    position: relative;
}
.header_hamburger_icon::before { top: -8px; }
.header_hamburger_icon::after { top: 8px; }

/* ハンバーガーメニュー OPEN時のスタイル */
#header_navigation.is_open .header_hamburger_icon { background-color: transparent; }
#header_navigation.is_open .header_hamburger_icon::before { top: 0; transform: rotate(45deg); }
#header_navigation.is_open .header_hamburger_icon::after { top: 0; transform: rotate(-45deg); }

.header_sp_nav {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: #fff;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    padding: 120px 40px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1001;
}
#header_navigation.is_open .header_sp_nav {
    transform: translateX(0);
}

.header_sp_nav_list { list-style: none; padding: 0; margin: 0; }
.header_sp_nav_item { margin-bottom: 24px; }
.header_sp_nav .header_nav_link { font-size: 1.25rem; }
.header_sp_nav .header_nav_link_cta { text-align: center; display: block; }
.header_sp_nav .header_nav_link:hover::after { transform: scaleX(0); } /* SPでは下線不要 */
.catalog-icon-img {
    width: 200px;
}

@media (max-width: 768px) {
    .header_container {
        padding: 0 10px;
        width: 100%;
    }
    .header_nav { display: none; }
    .header_hamburger_button, .header_sp_nav { display: block; }
    .header_hamburger_button {
        width: 32px;
    }
    .header_logo_placeholder {
        width: 300px;
        height: auto;
    }
    .header_logo_placeholder img {
        width: 100px!important;
    }
    .header_logo_placeholder p {
        font-size: 15px;
    }
    .header_logo_comment {
        display: none;
    }
    .header_sp_nav .header_nav_link {
        font-size: 15px;
    }
    .header_sp_nav_item .header_nav_link_cta {
        display: block;
        font-size: 15px;
        height: ;
        line-height: 1.3;
        padding-top: 10px;
        padding-bottom: 10px;
    }
}