/* 共通スタイル: ヘッダー・フッター用 */

:root {
    --primary-green: #2d5a41;
    --secondary-green: #3a7055;
    --accent-green: #48a37a;
    --accent-green-light: #5cb88e;
    --text-dark: #2c2c2c;
    --text-medium: #4a4a4a;
    --text-light: #666;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-lighter: #fafbfc;
}

/* ===== ヘッダー ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    padding: 25px 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(72, 163, 122, 0.1);
    transition: all 0.3s ease;
}

.header.scrolled {
    padding: 15px 0;
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.12);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    letter-spacing: 0.08em;
    transition: all 0.3s ease;
}

.logo:hover {
    letter-spacing: 0.12em;
}

.nav-menu {
    display: flex;
    gap: 45px;
    list-style: none;
}

.nav-menu a {
    color: var(--text-medium);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-green), var(--accent-green-light));
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--accent-green);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* ===== フッター ===== */
.footer {
    background: linear-gradient(180deg, var(--primary-green) 0%, #1a3d2e 100%);
    color: #8a8a8a;
    padding: 80px 60px 50px;
    text-align: center;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-green), transparent);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-logo {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-green-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    margin-bottom: 40px;
    letter-spacing: 0.1em;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 45px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #9a9a9a;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-green);
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-green);
}

.footer-links a:hover::after {
    width: 100%;
}

.copyright {
    font-size: 0.85rem;
    padding-top: 35px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #6a6a6a;
}

/* ハンバーガーメニュー */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-green);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* レスポンシブ対応 */
@media (max-width: 968px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 80px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        gap: 0;
        padding: 30px 0;
        box-shadow: -4px 0 30px rgba(0, 0, 0, 0.1);
        transition: right 0.4s ease;
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(72, 163, 122, 0.1);
    }

    .nav-menu a {
        display: block;
        padding: 20px 30px;
        font-size: 1rem;
    }

    .nav-menu a::after {
        display: none;
    }

    .header-container {
        padding: 0 20px;
    }

    .logo {
        font-size: 1.4rem;
    }

    .footer {
        padding: 60px 30px 40px;
    }

    .footer-logo {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }

    .footer-links {
        gap: 25px;
        margin-bottom: 40px;
    }
}

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

    .header-container {
        padding: 0 15px;
    }

    .logo {
        font-size: 1.3rem;
    }

    .footer {
        padding: 50px 20px 30px;
    }

    .footer-logo {
        font-size: 1.4rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
        font-size: 0.9rem;
    }

    .copyright {
        font-size: 0.8rem;
        padding-top: 25px;
    }
}
