/* 共通ヘッダー（2段構え） */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    background-color: white;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10000;
    height: 190px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
}

.logo img {
    height: 170px;
    width: auto;
    display: block;
}

nav {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.nav-top {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px 22px;
    width: 100%;
}

/* nav-bottom は中間幅で入りきらない時に折り返し、ロゴと重ならないようにする */
.nav-bottom {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px 16px;
    width: 100%;
    border-top: 1px solid #ececec;
    padding-top: 10px;
}

.nav-label {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.2s;
}

.nav-label:hover {
    color: var(--accent-color);
}

.nav-group {
    position: relative;
    padding: 8px 0;
}

.nav-child {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    min-width: 270px;
    padding: 10px 0;
    z-index: 10001;
}

.nav-group:hover .nav-child {
    display: block;
}

.nav-child a {
    display: block;
    padding: 11px 18px;
    font-size: 0.92rem;
    color: var(--text-color);
    text-decoration: none;
    white-space: nowrap;
}

.nav-child a:hover {
    background-color: #f8f9fa;
    color: var(--accent-color);
}

.nav-top .btn-shop {
    background: var(--primary-color);
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
    display: inline-block;
    line-height: 1.2;
}

.page-header {
    margin-top: 190px;
}

/* 共通フッター */
footer {
    background-color: #2c3e50 !important;
    color: #ffffff !important;
    text-align: center;
    padding: 60px 20px !important;
}

.footer-logo {
    font-family: 'Noto Serif JP', serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 24px;
    display: inline-block;
    color: #ffffff !important;
    text-decoration: none;
}

.footer-nav {
    max-width: 1200px;
    margin: 0 auto 24px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 28px;
}

.footer-nav a {
    color: #ffffff !important;
    text-decoration: none;
    font-size: 0.95rem;
    opacity: 0.88;
}

.footer-nav a:hover {
    opacity: 1;
    text-decoration: underline;
}

.copyright {
    font-size: 0.85rem;
    opacity: 0.65;
    margin-top: 16px;
}

@media (max-width: 950px) {
    header {
        height: auto;
        flex-direction: column;
        padding: 15px;
        position: static;
    }

    .logo img {
        height: 100px;
        margin-bottom: 10px;
    }

    nav {
        width: 100%;
        align-items: center;
        gap: 10px;
    }

    .nav-top,
    .nav-bottom {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px 14px;
    }

    .nav-bottom {
        border-top: none;
        padding-top: 0;
    }

    .nav-group {
        padding: 0;
    }

    .nav-child {
        left: 50%;
        transform: translateX(-50%);
        min-width: 240px;
    }

    .page-header {
        margin-top: 0;
        padding-top: 50px;
    }

    .footer-nav {
        gap: 12px 20px;
    }
}
