/* ===== ヘッダー ===== */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

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

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-area img {
    height: 60px;
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

.logo {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #1e3b91;
    text-decoration: none;
    letter-spacing: 0.1em;
}

/* ナビゲーション */
nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

nav a {
    text-decoration: none;
    color: #1e3b91;
    font-weight: 400;
    font-size: 0.9rem;
    transition: opacity 0.3s ease;
    padding: 0.5rem 0;
    letter-spacing: 0.08em;
}

nav a:hover,
nav a.active {
    opacity: 0.7;
}

/* モバイルメニューボタン */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-icon {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--primary-color);
    position: relative;
    transition: all 0.3s ease;
}

.menu-icon::before,
.menu-icon::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 2px;
    background: inherit;
    transition: all 0.3s ease;
}

.menu-icon::before { top: -8px; }
.menu-icon::after { bottom: -8px; }

.mobile-menu-btn.active .menu-icon {
    background: transparent;
}

.mobile-menu-btn.active .menu-icon::before {
    top: 0;
    transform: rotate(45deg);
}

.mobile-menu-btn.active .menu-icon::after {
    bottom: 0;
    transform: rotate(-45deg);
}

/* ===== フッター ===== */
footer {
    background-color: #0f172a;
    color: white;
    position: relative;
}

.footer_button {
    background: var(--white);
    padding: 2rem 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.footer_button .wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer_button p {
    text-align: center;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.15rem;
    line-height: 1.6;
}

.footer_button_icon {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 2rem;
    list-style: none;
}

.footer_button_icon li {
    flex: 1;
    max-width: 300px;
    min-width: 250px;
}

.footer_button_icon .tel a,
.footer_button_icon .tel,
.footer_button_icon .email a,
.footer_button_icon .email,
.footer_button_icon .line a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.0rem 1.5rem;
    height: 100%;
    min-height: 70px;
    width: 100%;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    letter-spacing: 0.05em;
    gap: 0.3rem;
    box-sizing: border-box;
}

.footer_button_icon .tel a,
.footer_button_icon .tel,
.footer_button_icon .email a,
.footer_button_icon .email {
    background: var(--primary-color);
    color: white;
}

.footer_button_icon .line a {
    background: #00b900;
    color: white;
}

.footer_button_icon .tel b {
    font-size: 1.4rem;
    letter-spacing: 0.1em;
}

.footer_button_icon .line a span {
    display: block;
    font-size: 0.85rem;
    margin-top: 0.3rem;
}

.footer_button_icon li a:hover,
.footer_button_icon .tel:hover,
.footer_button_icon .email:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

address.copy {
    text-align: center;
    padding: 3rem 2rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    font-style: normal;
}

address.copy p {
    margin-bottom: 0.5rem;
}

.privacypolicy a {
    color: var(--accent-color);
    text-decoration: none;
}

.bengoshikai {
    color: rgba(255, 255, 255, 0.7);
}

/* 固定ボタン */
.floating-contact {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 999;
}

.floating-contact a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 1.2rem 2.5rem;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(30, 58, 138, 0.3);
    transition: all 0.3s ease;
    letter-spacing: 0.1em;
}

.floating-contact a:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 30px rgba(30, 58, 138, 0.4);
}

/* LINEバナー */
#line-banner-container {
    position: fixed;
    z-index: 1000;
}

.line-banner-link {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #00b900;
    color: #ffffff !important;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-weight: bold;
    text-decoration: none !important;
    text-align: center;
    transition: all 0.2s ease-in-out;
}

@media (min-width: 769px) {
    #line-banner-container {
        top: 50%;
        right: 0;
        transform: translateY(-50%);
        border-radius: 8px 0 0 8px;
        box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.2);
    }

    .line-banner-link {
        padding: 20px 15px;
        font-size: 16px;
        line-height: 1.5;
        writing-mode: vertical-rl;
    }

    #line-banner-container:hover {
        box-shadow: 4px 8px 16px rgba(0, 0, 0, 0.25);
        transform: translateY(-50%) translateX(-2px);
    }
}

/* ===== 共通セクションヘッダー ===== */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 600;
}

.section-label {
    font-family: 'Georgia', serif;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* ===== 共通ボタン ===== */
.view-more-btn {
    display: inline-block;
    margin-top: 2.5rem;
    padding: 1rem 2.5rem;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
}

.view-more-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* ===== レスポンシブ（共通） ===== */
@media (max-width: 768px) {
    .header-container {
        padding: 1rem 1.5rem;
    }

    .logo-area img {
        height: 40px;
    }

    .logo {
        font-size: 1.1rem;
    }

    nav {
        display: none;
    }

    nav.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    nav.active ul {
        flex-direction: column;
        padding: 1rem;
        gap: 0;
    }

    nav.active a {
        padding: 1rem;
        border-bottom: 1px solid #e8e8e8;
        display: block;
        color: var(--text-dark);
    }

    .mobile-menu-btn {
        display: block;
    }

    /* フッター */
    .footer_button {
        padding: 1.5rem 0;
    }

    .footer_button .wrap {
        padding: 0 1rem;
    }

    .footer_button p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .footer_button_icon {
        flex-direction: column;
        gap: 0.8rem;
    }

    .footer_button_icon li {
        width: 100%;
        max-width: 100%;
        min-width: auto;
    }

    .footer_button_icon .tel a,
    .footer_button_icon .tel,
    .footer_button_icon .email a,
    .footer_button_icon .email,
    .footer_button_icon .line a {
        width: 100%;
        padding: 1rem 1.5rem;
        min-height: 60px;
    }

    .footer_button_icon .tel b {
        font-size: 1.2rem;
    }

    .footer_button_icon .line a span {
        display: none;
    }

    address.copy {
        padding: 2rem 1rem;
        font-size: 0.8rem;
    }

    .floating-contact {
        bottom: 70px;
        right: 15px;
    }

    .floating-contact a {
        padding: 0.8rem 1.2rem;
        font-size: 0.85rem;
        border-radius: 30px;
    }

    #line-banner-container {
        bottom: 0;
        left: 0;
        width: 100%;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
        border-radius: 0;
    }
    
    .line-banner-link {
        padding: 12px 10px;
        font-size: 14px;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-label {
        font-size: 0.75rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .view-more-btn {
        margin-top: 2rem;
        padding: 0.8rem 2rem;
        font-size: 0.85rem;
    }
}