/**
 * エスコネ共通 — ヘッダー・会員バナー・フッター
 * トップページ（front-page.php）のデザインを正とする
 */

:root {
    --navy: #3d8fd4;
    --navy-dark: #2a7bc4;
    --navy-light: #5aaee0;
    --accent: #2b7de9;
    --accent-light: #ebf3ff;
    --white: #ffffff;
    --bg: #f5f7fa;
    --bg2: #eef1f6;
    --text: #1a2533;
    --text-sub: #5a6a7e;
    --text-light: #8a97a8;
    --border: #dce3ed;
}

/* ===== HEADER ===== */
.esconne-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    height: 68px;
    display: flex;
    align-items: center;
    padding: 0 40px;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.esconne-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.esconne-logo-img {
    height: 40px;
    width: auto;
    display: block;
}

.esconne-logo-text {
    line-height: 1.25;
}

.esconne-logo-main {
    font-family: 'Noto Serif JP', serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--navy);
    display: block;
    letter-spacing: 0.05em;
}

.esconne-logo-sub {
    font-size: 10px;
    color: var(--text-light);
    letter-spacing: 0.12em;
    display: block;
}

.esconne-nav {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.esconne-nav a {
    font-size: 13px;
    color: var(--text-sub);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    letter-spacing: 0.03em;
}

.esconne-nav a:hover {
    color: var(--navy);
}

.esconne-nav .nav-cta a {
    background: var(--navy);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 700;
    transition: background 0.2s;
}

.esconne-nav .nav-cta a:hover {
    background: var(--navy-dark);
}

/* ===== HAMBURGER / SP MENU ===== */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.sp-menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--white);
    z-index: 99;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-10px);
    opacity: 0;
    transition: all 0.25s ease;
    pointer-events: none;
}

.sp-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.sp-menu ul {
    list-style: none;
    padding: 16px 0;
}

.sp-menu ul li a {
    display: block;
    padding: 14px 24px;
    font-size: 15px;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid var(--bg);
    transition: background 0.15s;
}

.sp-menu ul li a:hover {
    background: var(--bg);
}

.sp-menu-cta a {
    margin: 16px 20px 8px;
    background: var(--navy) !important;
    color: var(--white) !important;
    border-radius: 4px;
    text-align: center;
    border-bottom: none !important;
    font-weight: 700 !important;
}

.sp-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 98;
}

.sp-overlay.open {
    display: block;
}

/* ===== MEMBER BANNERS ===== */
.members-bg {
    background: var(--bg);
    padding: 60px 40px;
}

.members-label {
    text-align: center;
    font-size: 12px;
    letter-spacing: 0.2em;
    color: var(--text-light);
    margin-bottom: 28px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 1100px;
    margin: 0 auto;
}

.member-banner {
    display: block;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.2s;
    background: var(--white);
}

.member-banner img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.2s;
}

.member-banner:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
    border-color: var(--navy);
}

/* ===== FOOTER ===== */
.esconne-footer {
    background: var(--navy-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 40px 32px;
}

.esconne-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 48px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    text-decoration: none;
}

.footer-logo-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 16px;
    color: var(--white);
}

.footer-logo-name {
    font-family: 'Noto Serif JP', serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--white);
}

.footer-desc {
    font-size: 12px;
    line-height: 2;
    color: rgba(255, 255, 255, 0.5);
}

.footer-nav-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
    letter-spacing: 0.1em;
}

.footer-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav-list a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-nav-list a:hover {
    color: var(--white);
}

.footer-info-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
    letter-spacing: 0.1em;
}

.footer-info-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 2;
}

.footer-bottom {
    max-width: 1100px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copy {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.08em;
}

.footer-partner-links {
    display: flex;
    gap: 20px;
}

.footer-partner-links a {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-partner-links a:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* ===== RESPONSIVE（共通のみ） ===== */
@media (max-width: 1024px) {
    .members-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .esconne-footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .esconne-header {
        padding: 0 20px;
        height: 60px;
    }

    .esconne-nav {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .sp-menu {
        display: block;
    }

    .members-bg {
        padding: 40px 20px;
    }

    .members-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .esconne-footer {
        padding: 40px 20px 24px;
    }

    .esconne-footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-bottom: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .footer-partner-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .members-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
