/* ヘッダー全体のスタイル */
.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid #eeeeee;
    width: 100%;
}

/* ヘッダーの中身の配置（左右に分ける） */
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 15px 20px;
}

/* ロゴのスタイル */
.header-logo a {
    font-size: 1.4rem;
    font-weight: bold;
    color: #0f2541;
    text-decoration: none;
}

/* 横型メニューのスタイル */
.header-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 10px;
}

/* リンクとドロップダウンのラベル（サービス案内）の共通スタイル */
.header-nav a,
.header-nav .dropdown-label {
    color: #333333;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: bold;
    transition: color 0.3s;
    cursor: pointer; /* リンクでなくてもクリックできそうな指マークにする */
}

/* ホバー時の色変更 */
.header-nav a:hover,
.header-nav .dropdown:hover .dropdown-label {
    color: #4a7c8c;
}

/* お問い合わせボタンだけ目立たせる */
.header-nav .contact-btn {
    background-color: #4a7c8c;
    color: #ffffff;
    padding: 10px 25px;
    border-radius: 25px;
}

.header-nav .contact-btn:hover {
    background-color: #36606d;
    color: #ffffff;
}

/* --- ハンバーガーボタンの基本スタイル（PCでは非表示） --- */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 100;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #0f2541;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}
.hamburger span:last-child {
    margin-bottom: 0;
}

/* =========================================
   ドロップダウンメニューのスタイル（PC用）
========================================= */
.header-nav .dropdown {
    position: relative;
    padding: 10px 0; /* マウスが外れにくくするための余白 */
}

.header-nav .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 250px;
    background-color: #ffffff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-top: 3px solid #4a7c8c;
    border-radius: 0 0 5px 5px;
    
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 10px 0;
    z-index: 10;
}

.header-nav .dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-nav .dropdown-menu a {
    padding: 12px 20px;
    font-weight: normal;
    border-bottom: 1px solid #eeeeee;
    display: block;
}

.header-nav .dropdown-menu li:last-child a {
    border-bottom: none;
}

.header-nav .dropdown-menu a:hover {
    background-color: #f5f9fa;
    color: #4a7c8c;
}

/* =========================================
   レスポンシブ対応（スマホ表示：画面幅768px以下）
========================================= */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .header-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: #ffffff;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 99;
        padding-top: 80px;
    }

    .header-nav.active {
        right: 0; 
    }

    .header-nav ul {
        flex-direction: column;
        gap: 20px;
        padding: 0 30px;
        align-items: flex-start;
    }

    .header-phone {
        margin-top: 10px;
        padding-top: 20px;
        border-top: 1px solid #eeeeee;
        width: 100%;
        justify-content: flex-start;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* --- ドロップダウンメニューのスタイル（スマホ用） --- */
    .header-nav .dropdown {
        padding: 0;
    }
    
    .header-nav .dropdown-menu {
        position: static;
        box-shadow: none;
        border-top: none;
        width: 100%;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding: 15px 0 0 15px;
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .header-nav .dropdown-menu a {
        border-bottom: none;
        padding: 0;
        font-size: 0.9rem;
        color: #555555;
    }
    
    .header-nav .dropdown-menu a:before {
        content: "- ";
        color: #4a7c8c;
    }
}