/* ========================================
   ヘッダー・フッター
   ======================================== */

/* ===== HEADER ===== */
.header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 0 40px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo-img {
    height: 22px;
    width: auto;
    fill: currentColor;
    color: var(--black);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.header-nav a {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-600);
    transition: color 0.2s;
    white-space: nowrap;
}

.header-nav a:hover {
    color: var(--black);
}

/* 無料ではじめる（青ボタン） */
.btn-register {
    background: var(--blue) !important;
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    transition: opacity 0.2s !important;
    white-space: nowrap;
    text-decoration: none;
}

.btn-register:hover {
    opacity: 0.85 !important;
    color: var(--white) !important;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    background: none;
    color: var(--gray-600);
    border: 1px solid var(--border);
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    white-space: nowrap;
}

.btn-outline:hover {
    border-color: var(--black);
    color: var(--black);
}

/* スマホ右側（無料ではじめる＋ハンバーガー） */
.header-right-sp {
    display: none;
    align-items: center;
    gap: 8px;
}

/* ===== ハンバーガーボタン ===== */
.hamburger-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

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

/* ===== ハンバーガーメニュー（オーバーレイ） ===== */
.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: #1565C0;
    flex-direction: column;
    padding: 0 24px 40px;
}

.mobile-menu.is-open {
    display: flex;
}

/* メニューヘッダー */
.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 56px;
    flex-shrink: 0;
}

.mobile-menu-close {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    cursor: pointer;
}

.mobile-menu-close-icon {
    font-size: 20px;
    line-height: 1;
}

/* メニューリスト（中央寄せ） */
.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.mobile-menu-nav a,
.mobile-menu-nav button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    font-size: 16px;
    font-weight: 500;
    color: var(--white);
    background: none;
    text-align: left;
    cursor: pointer;
    text-decoration: none;
    width: 100%;
}

.mobile-menu-nav a:first-child,
.mobile-menu-nav button:first-child {
    border-top: 1px solid rgba(255,255,255,0.2);
}

.mobile-menu-nav a::after,
.mobile-menu-nav button::after {
    content: '\203A';
    font-size: 22px;
    opacity: 0.7;
    font-weight: 300;
}

/* 無料ではじめるボタン（モバイルメニュー内） */
.mobile-menu-cta {
    background: var(--white);
    color: #1565C0 !important;
    border: none;
    border-radius: 8px;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    display: block;
    width: 100%;
    margin-top: 32px;
    flex-shrink: 0;
}

/* ===== FOOTER ===== */
.footer {
    background: #1B2A4A;
    border-top: none;
    padding: 60px 40px 30px;
    color: var(--white);
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.footer-logo-kit {
    color: #5B9BF5;
}

.footer-logo-img {
    height: 22px;
    width: auto;
    fill: currentColor;
    color: var(--white);
}

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

.footer-col h4 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--white);
}

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

.footer-col ul li a {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: var(--white);
}

.footer-bottom {
    max-width: 1100px;
    margin: 24px auto 0;
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,0.35);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .header { padding: 0 24px; }
    .footer { padding: 48px 24px 24px; }
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

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

    /* PC ナビを非表示 */
    .header-nav { display: none; }

    /* スマホ右側を表示 */
    .header-right-sp { display: flex; }

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

@media (max-width: 480px) {
    .header-logo { font-size: 16px; }
    .btn-register { padding: 7px 14px; font-size: 12px; }
}