/* ヘッダーコンテナ - style.cssで上書きされる */

/* ヘッダー */
.header {
    background-color: transparent;
    box-shadow: none;
    z-index: 100;
    width: 100%;
    max-width: 100%;
    letter-spacing: 0;
}

@media (max-width: 980px) {
    .header {
        position: fixed;
    }
}

@media (min-width: 920px) {
    .header {
        width: 100%;
        left: 0;
        right: 0;
    }
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    margin-top: 0;
    margin-bottom: 0;
    width: 100%;
}

@media (min-width: 920px) {
    .header .container {
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (max-width: 980px) {
    .header .container {
        flex-direction: row;
        background-color: #fff;
    }
}

@media (min-width: 920px) {
    #header-container {
        width: 100vw;
        position: relative;
        left: 50%;
        margin-left: -50vw;
        margin-right: 0;
    }
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 980px) {
    .logo-area {
        flex: 1;
    }
}

.nav-header__logo span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.logo-icon {
    font-size: 2rem;
}

.logo-text {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #ccc;
    font-weight: 500;
}

@media (max-width: 980px) {
    .logo-text {
        font-size: 0.75rem;
    }
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 1rem;
    flex-wrap: nowrap;
    align-items: center;
}

@media (max-width: 980px) {
    .nav-list {
        display: none;
    }
}

.nav-list a {
    text-decoration: none;
    color: #4C9A2A;
    font-size: 13px;
    font-weight: 700;
    transition: color 0.3s;
    white-space: nowrap;
}

.nav-list a:hover {
    color: #3d7a22;
}

/* ハンバーガーメニュー */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: #4C9A2A;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    padding: 0;
    z-index: 102;
    gap: 5px;
}

@media (max-width: 980px) {
    .hamburger {
        display: flex;
    }
}

.hamburger span {
    width: 20px;
    height: 2px;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background-color: #fff;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    background-color: #fff;
}

/* モバイルメニューオーバーレイ */
.menu-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.menu-content {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: #4C9A2A;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transform: translateY(-100%);
    transition: transform 0.3s ease-out;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

@media (max-width: 980px) {
    .menu-content {
        top: 0;
        left: 0;
        right: 0;
        height: auto;
        max-height: none;
        border-radius: 0 0 20px 20px;
    }
}

.menu-overlay.active .menu-content {
    transform: translateY(0);
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem 1rem 0rem 1rem;
}

.menu-logo-area {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.menu-logo-icon {
    font-size: 1.5rem;
    color: #fff;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-logo-img {
    filter: brightness(0) invert(1);
}

.menu-close {
    width: 40px;
    height: 40px;
    background-color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background-color 0.3s;
}

.menu-close:hover {
    background-color: #f0f0f0;
}

.menu-close span {
    font-size: 24px;
    color: #4C9A2A;
    line-height: 1;
}

.menu-list {
    list-style: none;
    padding: 1rem 0;
    margin: 0;
}

@media (max-width: 980px) {
    .menu-list {
        padding-bottom: 40px;
    }
}

.menu-list li {
    margin: 0;
    padding: 0;
}

.menu-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background-color: #4C9A2A;
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid #fff;
    transition: background-color 0.3s;
}

.menu-list a:hover {
    background-color: #3d7a22;
}

.menu-list .menu-item-contact {
    background-color: #fff;
    color: #4C9A2A;
    font-weight: 600;
    border: 1px solid #fff;
}

.menu-list .menu-item-contact .menu-arrow::before,
.menu-list .menu-item-contact .menu-arrow::after {
    background-color: #4C9A2A;
}

.menu-arrow {
    display: inline-block;
    margin-left: auto;
    font-size: 0;
    line-height: 0;
    vertical-align: middle;
    position: relative;
    width: 10px;
    height: 10px;
}

.menu-arrow::before,
.menu-arrow::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 2px;
    width: 6px;
    height: 2px;
    background-color: #fff;
    transform-origin: right center;
}

.menu-arrow::before {
    transform: translateY(-50%) rotate(-45deg);
}

.menu-arrow::after {
    transform: translateY(-50%) rotate(45deg);
}
