/*
Theme Name: Your Theme Name
Description: Your theme description
Author: Your Name
Version: 1.0
*/

/* ヘッダー全体のスタイル */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #39414b;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    z-index: 1000;
    height: 70px;
    display: flex;
    align-items: center;
}

.header-inner {
    margin: 0 auto;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: 100%;
}

.header-logo {
    height: 50px;
    padding-left: 2rem;
    transition: opacity 0.3s;
}

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

.header-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.header-right {
    display: flex;
    align-items: center;
    margin-left: auto;
    height: 100%;
}

.header-menu {
    height: 100%;
    display: flex;
    align-items: center;
}

.header-menu ul {
    height: 100%;
    display: flex;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.header-menu a {
    color: #ffffff;
    text-decoration: none;
    font-size: 12px;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s;
}

.header-menu a:hover {
    color: #00B2B8;
}

.header-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #00B2B8;
    transition: width 0.3s ease;
}

.header-menu a:hover::after {
    width: 100%;
}

.header-cta {
    margin-left: 2rem;
    height: 100%;
}

.contact-button {
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #00B2B8;
    color: white;
    padding: 0 2.5rem 0 1.2rem;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    min-width: 180px;
    text-align: center;
    line-height: 1.4;
    border-radius: 0;
}

.contact-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 178, 184, 0.2);
}

.campaign-label {
    display: block;
    font-size: 12px;
    font-weight: normal;
    margin-bottom: 4px;
    line-height: 1.2;
}

.contact-text {
    font-size: 18px;
    font-weight: bold;
    line-height: 1.2;
}

.arrow {
    position: absolute;
    right: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    font-weight: normal;
}

/* チェックボックスは非表示 */
.menu-toggle {
    display: none;
}

/* ハンバーガーメニューは通常は非表示 */
.hamburger {
    display: none;
}

/* メディアクエリでレスポンシブ対応 */
@media (max-width: 1024px) {
    .header-menu ul {
        gap: 1.5rem;
    }
    
    .header-menu a {
        font-size: 14px;
    }
}

/* SPサイズ（768px以下）のスタイル */
@media (max-width: 768px) {
    .site-header {
        height: 60px;
    }

    .header-inner {
        flex-direction: row;
        justify-content: space-between;
    }

    .header-logo {
        padding-left: 1rem;
    }

    /* ハンバーガーメニューの表示 */
    .hamburger {
        display: block;
        cursor: pointer;
        padding: 0;
        width: 30px;
        height: 20px;
        position: relative;
        margin-left: auto;
        margin-right: 1rem;
        z-index: 1001;
    }

    .hamburger span {
        display: block;
        width: 100%;
        height: 2px;
        background: #ffffff;
        position: absolute;
        transition: transform 0.3s, opacity 0.3s;
    }

    .hamburger span:nth-child(1) { top: 0; }
    .hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
    .hamburger span:nth-child(3) { bottom: 0; }

    /* チェックボックスがチェックされた時のハンバーガーメニュー */
    .menu-toggle:checked ~ .hamburger span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .menu-toggle:checked ~ .hamburger span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle:checked ~ .hamburger span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* SPメニューのスタイル */
    .header-right {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(57, 65, 75, 0.98);
        padding-top: 60px;
        transition: right 0.3s ease;
        z-index: 1000;
        margin-left: 0;
        flex-direction: column;
        display: flex;
    }

    /* チェックボックスがチェックされた時のメニュー表示 */
    .menu-toggle:checked ~ .header-right {
        right: 0;
    }

    /* チェックボックスがチェックされた時の背景固定 */
    .menu-toggle:checked ~ #page {
        position: fixed;
        width: 100%;
        height: 100%;
    }

    .header-menu {
        width: 100%;
        padding: 20px;
        height: auto;
    }

    .header-menu ul {
        flex-direction: column;
        gap: 0;
        height: auto;
        width: 100%;
    }

    .header-menu li {
        width: 100%;
        text-align: center;
        margin: 8px 0;
    }

    .header-menu a {
        display: block;
        font-size: 16px;
        padding: 10px;
        color: #ffffff;
    }

    .header-menu a::after {
        display: none;
    }

    .header-cta {
        margin: 20px auto;
        width: 90%;
        height: auto;
    }

    .contact-button {
        height: auto;
        padding: 15px;
        width: 100%;
        min-width: unset;
    }
}
