/*
 Theme Name:   Hello Elementor Child
 Template:     hello-elementor
 Version:      1.0.0
*/

/* --- 1. ヘッダー全体（全幅固定） --- */
#custom-header.site-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important; 
    margin: 0 !important;
    z-index: 9999;
    background: transparent !important;
    transition: background 0.3s ease;
}

#custom-header.site-header .header-container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 15px 30px !important; 
    box-sizing: border-box !important;
    width: 100% !important;
}

/* ロゴサイズ調整 */
#custom-header .site-logo img {
    height: 55px !important;
    width: auto !important;
    display: block !important;
}

/* スマホ用ヘッダー微調整 */
@media (max-width: 767px) {
    #custom-header.site-header .header-container {
        padding: 10px 20px !important;
    }
    #custom-header .site-logo img {
        height: 45px !important; /* スマホではロゴを少し小さく */
    }
    body {
        margin-top: 70px !important; /* ヘッダーが低くなる分、余白も詰める */
    }
}

/* --- 2. バーガーボタン --- */
#custom-header .menu-toggle {
    z-index: 10000 !important;
    width: 54px !important;
    height: 54px !important;
    background-color: #003656 !important;
    border-radius: 50% !important;
    border: none !important;
    cursor: pointer !important;
    outline: none !important;
    position: relative;
    margin-left: auto !important;

    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    padding: 0 0 0 15px !important;
    gap: 5px !important;
}

/* --- 3. 三本線のアニメーション --- */
.menu-toggle span {
    display: block !important;
    width: 24px !important;
    height: 2px !important;
    background-color: #ffffff !important;
    border-radius: 2px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    transform-origin: center center !important;
    margin: 0 !important;
}

.menu-toggle span:nth-child(3) {
    width: 14px !important; /* 3本目だけ短い */
}

/* ×印への変形 (Open時) */
.menu-toggle.open {
    align-items: center !important;
    padding-left: 0 !important;
}
.menu-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg) !important;
}
.menu-toggle.open span:nth-child(2) {
    opacity: 0 !important;
}
.menu-toggle.open span:nth-child(3) {
    width: 24px !important;
    transform: translateY(-7px) rotate(-45deg) !important;
}

/* --- 4. サイドメニュー（レスポンシブ対応） --- */
#side-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px; /* PCでの幅 */
    max-width: 85%; /* スマホで画面を塞ぎきらないように */
    height: 100vh;
    background-color: #002b45;
    z-index: 9998;
    transition: right 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0);
    padding: 100px 40px 40px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    box-shadow: -10px 0 20px rgba(0,0,0,0.2);
}

#side-menu.active {
    right: 0;
}

#side-menu a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.05rem;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

#side-menu a:hover,
#side-menu a.current {
    color: #ff9900 !important;
    padding-left: 5px;
}

/* コンテンツの押し下げ（基本設定） */
body {
    margin-top: 85px !important;
}