/* ===================================
   ヘッダー専用スタイル
   =================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    backdrop-filter: none;
    box-shadow: none;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.is-scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(62, 39, 35, 0.12);
}

/* ヘッダーが透明の時のロゴとボタンの色 */
.header:not(.is-scrolled) .header-logo,
.header:not(.is-scrolled) .header-nav-link {
    color: var(--color-white);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.header:not(.is-scrolled) .header-contact-phone {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--color-primary);
}

.header:not(.is-scrolled) .header-contact-line {
    background-color: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.header:not(.is-scrolled) .header-menu-btn span {
    background-color: var(--color-white);
}

.header-container {
    width: 100%;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ロゴ */
.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-text-main);
    text-decoration: none;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
}

.header-logo:hover {
    opacity: 0.8;
}

.header-logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 0 !important;
    border: none !important;
}

.header-logo-text {
    display: inline-block;
}

/* ナビゲーション */
.header-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background-color: var(--color-white);
    box-shadow: -5px 0 20px rgba(62, 39, 35, 0.1);
    transition: right 0.3s ease;
    padding: 100px 0 30px;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    overflow-y: auto;
}

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

.header-nav-list {
    display: flex;
    flex-direction: column;
    list-style: none;
    gap: 0;
    margin: 0;
    padding: 0;
    width: 100%;
}

.header-nav-item {
    width: 100%;
    border-bottom: 1px solid var(--color-border);
}

.header-nav-link {
    display: block;
    padding: 20px 30px;
    color: var(--color-text-main) !important;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    text-shadow: none !important;
}

.header-nav-link::after {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 30px;
    right: 30px;
    height: 2px;
    background-color: var(--color-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.header-nav-link:hover,
.header-nav-link.active {
    color: var(--color-primary);
    background-color: var(--color-bg-light);
}

.header-nav-link:hover::after,
.header-nav-link.active::after {
    transform: scaleX(1);
}

/* お問い合わせボタン */
.header-contact {
    display: flex;
    flex-direction: column;
    padding: 0 30px;
    margin-top: 20px;
    width: 100%;
    gap: 12px;
}

.header-contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    width: 100%;
}

.header-contact-phone {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.header-contact-phone:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(232, 180, 74, 0.3);
}

.header-contact-line {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.header-contact-line:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* ハンバーガーメニューボタン */
.header-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.header-menu-btn span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--color-text-main);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.header-menu-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.header-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.header-menu-btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* レスポンシブデザイン */

@media (max-width: 480px) {
    .header-container {
        padding: 12px 15px;
    }

    .header-logo {
        font-size: 1.1rem;
    }

    .header-logo-img {
        width: 40px;
        height: 40px;
    }

    .header-nav {
        width: 280px;
    }
}
