.site-header {
    background-color: #ffffff;
    margin: 0;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.site-header,
.header-top,
.header-nav,
.menu-panel {
    box-sizing: border-box;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px 14px;
    gap: 24px;
    position: relative;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

.logo-block {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 72px;
}

.logo-icon {
    position: relative;
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.logo-icon img,
.logo-icon svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.line-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    background-color: #52b85a;
    color: #ffffff;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    font-size: 17px;
    letter-spacing: 0.2px;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.05);
    text-align: center;
}

.line-button:hover {
    background-color: #45a44e;
}

.menu-button {
    width: 88px;
    height: 88px;
    background-color: #d9f0d8;
    border: none;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    color: #2d7c35;
    font-weight: 700;
    font-size: 14px;
}

.menu-button .menu-lines {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 36px;
}

.menu-button .menu-lines span {
    display: block;
    height: 4px;
    background-color: #2d7c35;
    border-radius: 4px;
}

.menu-button:focus-visible {
    outline: 2px solid #2d7c35;
    outline-offset: 4px;
}

.menu-wrapper {
    position: relative;
    display: inline-flex;
}

.menu-panel {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 10px;
    background-color: #ffffff;
    border: 1px solid #d0d0d0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    min-width: 280px;
    padding: 12px 0;
    z-index: 10;
    max-height: calc(100vh - 20px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.menu-close-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 10px 4px;
}

.menu-panel-title {
    font-weight: 700;
    color: #1d7c31;
    font-size: 15px;
    letter-spacing: 0.2px;
}

.menu-close-button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #d0d0d0;
    background-color: #f6f6f6;
    color: #1d7c31;
    font-weight: 800;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

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

.menu-close-button:focus-visible {
    outline: 2px solid #2d7c35;
    outline-offset: 2px;
}

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

.menu-list li:nth-child(6) {
    border-bottom: 1px solid #e6e6e6;
}

.menu-list li a {
    display: block;
    padding: 12px 18px;
    color: #1d7c31;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.2px;
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.menu-list li a:hover {
    background-color: #f1f8f2;
    color: #0f6325;
}

.menu-list li a.is-active,
.menu-list li a[aria-current="page"] {
    background-color: #eef6ef;
    color: #0f6325;
    font-weight: 800;
    box-shadow: inset 4px 0 0 #52b85a;
}

.header-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 72px;
    padding: 0 32px 20px;
    background-color: #ffffff;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

.header-nav a {
    color: #1d7c31;
    font-weight: 700;
    font-size: 22px;
    text-decoration: none;
    letter-spacing: 0.4px;
    white-space: nowrap;
    position: relative;
    transition: color 0.2s ease;
}

.header-nav a:hover {
    color: #0f6325;
}

.header-nav a.is-active,
.header-nav a[aria-current="page"] {
    color: #0f6325;
}

.header-nav a.is-active::after,
.header-nav a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: -6px;
    right: -6px;
    bottom: -10px;
    height: 4px;
    background-color: #2d7c35;
    border-radius: 999px;
}

@media (max-width: 960px) {
    .header-top {
        justify-content: center;
        text-align: center;
        justify-content: space-between;
    }

    .header-actions {
        justify-content: center;
    }

    .header-nav {
        display: none;
    }

    .menu-wrapper {
        position: static;
    }

    .menu-panel {
        position: fixed;
        top: calc(120px + env(safe-area-inset-top, 0px));
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: min(420px, calc(100vw - 24px));
        max-height: calc(100vh - 200px - env(safe-area-inset-bottom, 0px) - 32px);
        margin-top: 0;
        padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 24px);
    }
}
