/* ===== HEADER ===== */
.site-header {
    background: linear-gradient(135deg, #001a40 0%, #002060 40%, #003580 100%);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 0 var(--yellow), 0 6px 16px rgba(0, 0, 0, 0.35);
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 16px;
}

/* Logo */
.site-logo {
    font-size: 20px;
    font-weight: 900;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: 1.5px;
    flex-shrink: 0;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
}
.site-logo span {
    color: var(--yellow);
    font-size: 22px;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2);
}

/* Nav */
.header-nav { flex: 1; }
.header-nav ul {
    display: flex;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.header-nav a {
    display: block;
    padding: 8px 13px;
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s;
    white-space: nowrap;
    letter-spacing: 0.3px;
}
.header-nav a:hover {
    color: var(--yellow);
    background: rgba(255, 255, 255, 0.12);
}

/* Header search */
.header-search {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}
.header-search input {
    padding: 7px 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    font-size: 13px;
    outline: none;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-weight: 600;
    transition: all 0.2s;
}
.header-search input::placeholder { color: rgba(255, 255, 255, 0.5); }
.header-search input:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--yellow);
}
.header-search button {
    padding: 7px 16px;
    background: linear-gradient(135deg, var(--orange), var(--coral));
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.2);
    letter-spacing: 0.3px;
}
.header-search button:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.25);
}

/* SP menu button */
.sp-menu-btn {
    display: none;
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    flex-shrink: 0;
}
.sp-menu-btn span {
    display: block;
    width: 26px;
    height: 2.5px;
    background: #fff;
    margin: 5px 0;
    border-radius: 2px;
    transition: all 0.3s;
}

/* ===== FOOTER ===== */
.footer-wrap {
    background: linear-gradient(135deg, #000f2b 0%, #001a40 50%, #002060 100%);
    color: rgba(255, 255, 255, 0.72);
    padding: 40px 20px 28px;
    margin-top: 56px;
    border-top: 4px solid var(--yellow);
    /* ウェーブ風 上端 */
    clip-path: polygon(0 16px, 4% 8px, 8% 16px, 12% 8px, 16% 16px, 20% 8px, 24% 16px, 28% 8px, 32% 16px, 36% 8px, 40% 16px, 44% 8px, 48% 16px, 52% 8px, 56% 16px, 60% 8px, 64% 16px, 68% 8px, 72% 16px, 76% 8px, 80% 16px, 84% 8px, 88% 16px, 92% 8px, 96% 16px, 100% 8px, 100% 100%, 0 100%);
    padding-top: 48px;
}

.footer_bl {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer_bl ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer_bl li { border-right: 1px solid rgba(255, 255, 255, 0.2); }
.footer_bl li:last-child { border-right: none !important; }
.footer_bl a {
    display: block;
    padding: 7px 18px;
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.68);
    text-decoration: none;
    transition: color 0.2s;
    letter-spacing: 0.3px;
}
.footer_bl a:hover { color: var(--yellow); }

/* Page top button */
#pagetop a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--orange), var(--coral));
    border-radius: 50%;
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    text-decoration: none;
    transition: all 0.15s;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.25);
    line-height: 1;
}
#pagetop a:hover {
    transform: translate(-3px, -3px);
    box-shadow: 7px 7px 0 rgba(0, 0, 0, 0.3);
}
#pagetop a img { display: none; }
#pagetop a::after { content: '↑'; }

/* Copyright */
.footer-copy {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.38);
    text-align: center;
    letter-spacing: 0.5px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .header-nav,
    .header-search { display: none; }
    .sp-menu-btn { display: block; }
    .header-inner { height: 58px; }

    .header-nav.open {
        display: block;
        position: fixed;
        top: 58px;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #001a40, #003580);
        padding: 12px 16px 16px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
        z-index: 99;
        border-top: 3px solid var(--yellow);
    }
    .header-nav.open ul {
        flex-direction: column;
        gap: 4px;
    }
    .header-nav.open a {
        padding: 11px 16px;
        font-size: 15px;
        border-radius: 8px;
    }
}

@media (max-width: 767px) {
    .footer-wrap {
        clip-path: polygon(0 10px, 8% 4px, 16% 10px, 24% 4px, 32% 10px, 40% 4px, 48% 10px, 56% 4px, 64% 10px, 72% 4px, 80% 10px, 88% 4px, 96% 10px, 100% 4px, 100% 100%, 0 100%);
        padding-top: 36px;
    }
    .footer_bl ul { flex-direction: column; align-items: center; }
    .footer_bl li { border-right: none; border-bottom: 1px solid rgba(255, 255, 255, 0.15); width: 100%; text-align: center; }
    .footer_bl li:last-child { border-bottom: none; }
}
