/* ============================================
   18 - Header Common (サブページ共通)
   ============================================
   04_header.css の完全ミラー。
   違い: サブページにはヒーローグラデがないため、
   初期状態から蒼ガラス rgba(0,102,255,.88) を表示。
   スクロール後は濃紺ガラスに切り替え（トップと同じ）。
   ============================================ */

/* ── ベース ── */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 背景レイヤー: 蒼→水色グラデ（ヒーローと同じ配色） */
.header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgb(0, 102, 255) 0%,
        rgb(0, 170, 255) 50%,
        rgb(0, 212, 255) 100%
    );
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow:
        0 1px 0 rgba(0, 212, 255, 0.2),
        0 4px 20px rgba(0, 102, 255, 0.15),
        0 8px 32px rgba(0, 0, 0, 0.12);
    transition:
        background 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.4s ease;
    pointer-events: none;
}

/* 下辺のシアンアクセントライン */
.header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0, 212, 255, 0.5) 20%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(0, 212, 255, 0.5) 80%,
        transparent 100%
    );
    z-index: 2;
    pointer-events: none;
}

/* スクロール後: 濃紺ガラス（トップページと一致） */
.header.scrolled::before {
    background: linear-gradient(135deg,
        rgb(3, 14, 54) 0%,
        rgb(4, 18, 64) 100%
    );
    box-shadow:
        0 1px 0 rgba(0, 212, 255, 0.12),
        0 8px 32px rgba(0, 0, 0, 0.28);
}
.header.scrolled::after {
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0, 212, 255, 0.25) 30%,
        rgba(0, 102, 255, 0.2) 50%,
        rgba(0, 212, 255, 0.25) 70%,
        transparent 100%
    );
}

/* スクロール後: CTAボタン — グラデーション */
.header.scrolled .nav-link-cta {
    background: linear-gradient(135deg, #0066FF, #00D4FF);
    border-color: transparent;
    color: white !important;
    font-weight: 700;
    backdrop-filter: none;
}
.header.scrolled .nav-link-cta:hover {
    background: linear-gradient(135deg, #0052CC, #00B8E6);
    transform: translateY(-2px);
    box-shadow:
        0 4px 16px rgba(0, 102, 255, 0.3),
        0 8px 24px rgba(0, 0, 0, 0.15);
}

/* ── コンテンツ行（04_header.css と同一） ── */
.header-content {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-width, 1280px);
    margin: 0 auto;
    padding: 0 40px;
    height: 72px;
    gap: 0;
}

/* ── ロゴ（04_header.css と同一） ── */
.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    text-decoration: none;
}
.logo-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 8px;
    transition: opacity 0.25s ease, transform 0.25s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.20);
}
.logo-link:hover .logo-img {
    opacity: 0.88;
    transform: scale(1.04);
}
.logo-text {
    display: none;
}

/* ── デスクトップ Nav（04_header.css と同一） ── */
.nav-desktop { display: flex; flex: 1; }
.nav-list {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 36px;
    margin-left: auto;
}
.nav-link {
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.82);
    position: relative;
    padding: 6px 0;
    transition: color 0.2s ease;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: linear-gradient(90deg, #fff, #00D4FF);
    border-radius: 1px;
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-link:hover { color: white; text-shadow: 0 0 12px rgba(0, 212, 255, 0.3); }
.nav-link:hover::after { width: 100%; }

/* CTA ボタン — 白グロー */
.nav-link-cta {
    background: rgba(255, 255, 255, 0.15);
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    color: white !important;
    padding: 9px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.875rem;
    backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.04em;
    position: relative;
    overflow: hidden;
}
.nav-link-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}
.nav-link-cta::after { display: none; }
.nav-link-cta:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: white;
    transform: translateY(-2px);
    box-shadow:
        0 4px 16px rgba(0, 212, 255, 0.2),
        0 8px 24px rgba(0, 0, 0, 0.15);
}
.nav-link-cta:hover::before { opacity: 1; }

/* ── ハンバーガー（04_header.css と同一） ── */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.2s;
}
.hamburger:hover {
    background: rgba(255, 255, 255, 0.10);
}
.hamburger-line {
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
    display: block;
}
.hamburger-line:nth-child(2) {
    width: 18px;
    margin-left: auto;
}
.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ── モバイルメニュー（04_header.css と同一） ── */
.nav-mobile {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: rgba(3, 14, 54, 0.97);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border-top: 1px solid rgba(0, 212, 255, 0.15);
    padding: 20px 28px 32px;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition:
        opacity 0.28s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
}
.nav-mobile.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}
.nav-mobile-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.nav-mobile-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 500;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.78);
    padding: 16px 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.22s ease;
    letter-spacing: 0.02em;
    text-decoration: none;
}
.nav-mobile-link::after {
    content: '→';
    font-size: 0.875rem;
    color: #00D4FF;
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.22s ease;
}
.nav-mobile-link:hover {
    color: white;
    padding-left: 12px;
}
.nav-mobile-link:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* モバイル CTA リンク */
.nav-mobile-list li:last-child {
    margin-top: 16px;
}
.nav-mobile-list li:last-child .nav-mobile-link {
    border-bottom: none;
    background: white;
    color: var(--primary-blue-dark, #0052CC);
    border-radius: 6px;
    padding: 15px 20px;
    font-weight: 700;
    justify-content: center;
    font-size: 0.9375rem;
}
.nav-mobile-list li:last-child .nav-mobile-link::after { display: none; }
.nav-mobile-list li:last-child .nav-mobile-link:hover {
    background: #E8F0FF;
    padding-left: 20px;
    transform: none;
}

/* ============================================
   テーマ: ダーク (.header-dark)
   → influencer.html
   ============================================ */
.header-dark::before {
    background: rgb(10, 10, 10);
    box-shadow: 0 1px 0 rgba(212, 168, 83, 0.12), 0 8px 32px rgba(0, 0, 0, 0.3);
}
.header-dark.scrolled::before {
    background: rgb(10, 10, 10);
    box-shadow: 0 1px 0 rgba(212, 168, 83, 0.15), 0 8px 32px rgba(0, 0, 0, 0.4);
}
.header-dark .nav-link::after { background: #D4A853; }
.header-dark .nav-link:hover { color: #D4A853; }
.header-dark .nav-link-cta { background: rgba(212, 168, 83, 0.15); border-color: rgba(212, 168, 83, 0.5); }
.header-dark .nav-link-cta:hover { background: rgba(212, 168, 83, 0.25); border-color: #D4A853; }
.header-dark.scrolled .nav-link-cta { background: #D4A853; border-color: #D4A853; color: #0a0a0a !important; }
.header-dark.scrolled .nav-link-cta:hover { background: #F0D78C; border-color: #F0D78C; color: #0a0a0a !important; }
.header-dark .nav-mobile {
    background: rgba(10, 10, 10, 0.97);
    border-top-color: rgba(212, 168, 83, 0.12);
}
.header-dark .nav-mobile-link { color: rgba(255, 255, 255, 0.7); }
.header-dark .nav-mobile-link::after { color: #D4A853; }
.header-dark .nav-mobile-link:hover { color: #D4A853; }
.header-dark .nav-mobile-list li:last-child .nav-mobile-link { background: #D4A853; color: #0a0a0a; }
.header-dark .nav-mobile-list li:last-child .nav-mobile-link:hover { background: #F0D78C; }

/* ============================================
   テーマ: Influencer (.header-influencer)
   → influencer.html（白ベース・ミニマル・高級感）
   ============================================ */
.header-influencer::before {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(24px);
    box-shadow: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.header-influencer::after {
    display: none;
}
.header-influencer.scrolled::before {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}
.header-influencer .logo-text { color: #1a1a1a; }
.header-influencer .nav-link {
    color: #666;
    font-weight: 400;
}
.header-influencer .nav-link::after {
    background: #1a1a1a;
    height: 1px;
}
.header-influencer .nav-link:hover {
    color: #1a1a1a;
    text-shadow: none;
}
.header-influencer .nav-link-cta {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #fff !important;
    backdrop-filter: none;
    font-weight: 400;
    letter-spacing: 0.06em;
    border-radius: 0;
}
.header-influencer .nav-link-cta::before { display: none; }
.header-influencer .nav-link-cta::after { display: none; }
.header-influencer .nav-link-cta:hover {
    background: #333;
    border-color: #333;
    box-shadow: none;
    transform: none;
}
.header-influencer.scrolled .nav-link-cta {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #fff !important;
}
.header-influencer.scrolled .nav-link-cta:hover {
    background: #333;
    border-color: #333;
}
.header-influencer .hamburger-line { background: #1a1a1a; }
.header-influencer .hamburger:hover { background: rgba(0, 0, 0, 0.04); }
.header-influencer .nav-mobile {
    background: rgba(255, 255, 255, 0.98);
    border-top-color: rgba(0, 0, 0, 0.06);
}
.header-influencer .nav-mobile-link {
    color: #555;
    border-bottom-color: rgba(0, 0, 0, 0.04);
}
.header-influencer .nav-mobile-link::after { color: #1a1a1a; }
.header-influencer .nav-mobile-link:hover { color: #1a1a1a; }
.header-influencer .nav-mobile-list li:last-child .nav-mobile-link {
    background: #1a1a1a;
    color: #fff;
    border-radius: 0;
}
.header-influencer .nav-mobile-list li:last-child .nav-mobile-link:hover {
    background: #333;
}

/* ============================================
   テーマ: TikTok (.header-tiktok)
   → tiktok.html（白ベース + ピンクアクセント）
   ============================================ */
.header-tiktok::before {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 1px 0 rgba(254, 44, 85, 0.1), 0 4px 20px rgba(0, 0, 0, 0.06);
}
.header-tiktok::after {
    background: linear-gradient(90deg, transparent, rgba(254, 44, 85, 0.15), rgba(37, 244, 238, 0.1), transparent);
}
.header-tiktok.scrolled::before {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 1px 0 rgba(254, 44, 85, 0.12), 0 4px 20px rgba(0, 0, 0, 0.08);
}
.header-tiktok .logo-text { color: #0F172A; }
.header-tiktok .nav-link { color: #64748B; }
.header-tiktok .nav-link::after { background: linear-gradient(90deg, #FE2C55, #25F4EE); }
.header-tiktok .nav-link:hover { color: #FE2C55; text-shadow: none; }
.header-tiktok .nav-link-cta { background: #FE2C55; border-color: #FE2C55; color: #fff !important; backdrop-filter: none; }
.header-tiktok .nav-link-cta::before { display: none; }
.header-tiktok .nav-link-cta:hover { background: #e0264c; border-color: #e0264c; box-shadow: 0 8px 20px rgba(254, 44, 85, 0.2); }
.header-tiktok.scrolled .nav-link-cta { background: #FE2C55; border-color: #FE2C55; color: #fff !important; }
.header-tiktok.scrolled .nav-link-cta:hover { background: #e0264c; border-color: #e0264c; }
.header-tiktok .hamburger-line { background: #0F172A; }
.header-tiktok .hamburger:hover { background: rgba(254, 44, 85, 0.06); }
.header-tiktok .nav-mobile { background: rgba(255, 255, 255, 0.98); border-top-color: rgba(254, 44, 85, 0.1); }
.header-tiktok .nav-mobile-link { color: #334155; border-bottom-color: rgba(254, 44, 85, 0.06); }
.header-tiktok .nav-mobile-link::after { color: #FE2C55; }
.header-tiktok .nav-mobile-link:hover { color: #FE2C55; }
.header-tiktok .nav-mobile-list li:last-child .nav-mobile-link { background: #FE2C55; color: #fff; }
.header-tiktok .nav-mobile-list li:last-child .nav-mobile-link:hover { background: #e0264c; }

/* ============================================
   テーマ: DX (.header-dx)
   → dx.html（薄い水色ベース + ブルーアクセント）
   ============================================ */
.header-dx::before {
    background: rgba(235, 245, 255, 1);
    box-shadow: 0 1px 0 rgba(0, 180, 255, 0.12), 0 4px 20px rgba(0, 102, 255, 0.06);
}
.header-dx::after {
    background: linear-gradient(90deg, transparent, rgba(0, 102, 255, 0.1), rgba(0, 212, 255, 0.08), transparent);
}
.header-dx.scrolled::before {
    background: rgba(235, 245, 255, 1);
    box-shadow: 0 1px 0 rgba(0, 180, 255, 0.15), 0 4px 20px rgba(0, 102, 255, 0.08);
}
.header-dx .logo-text { color: #0F172A; }
.header-dx .nav-link { color: #64748B; }
.header-dx .nav-link::after { background: linear-gradient(90deg, #0066FF, #00D4FF); }
.header-dx .nav-link:hover { color: #0066FF; text-shadow: none; }
.header-dx .nav-link-cta { background: linear-gradient(135deg, #0066FF, #00D4FF); border-color: transparent; color: #fff !important; backdrop-filter: none; }
.header-dx .nav-link-cta::before { display: none; }
.header-dx .nav-link-cta:hover { box-shadow: 0 8px 20px rgba(0, 102, 255, 0.25); }
.header-dx.scrolled .nav-link-cta { background: linear-gradient(135deg, #0066FF, #00D4FF); border-color: transparent; color: #fff !important; }
.header-dx .hamburger-line { background: #0F172A; }
.header-dx .hamburger:hover { background: rgba(0, 102, 255, 0.06); }
.header-dx .nav-mobile { background: rgba(235, 245, 255, 0.98); border-top-color: rgba(0, 180, 255, 0.1); }
.header-dx .nav-mobile-link { color: #334155; border-bottom-color: rgba(0, 102, 255, 0.06); }
.header-dx .nav-mobile-link::after { color: #0066FF; }
.header-dx .nav-mobile-link:hover { color: #0066FF; }
.header-dx .nav-mobile-list li:last-child .nav-mobile-link { background: linear-gradient(135deg, #0066FF, #00D4FF); color: #fff; }
.header-dx .nav-mobile-list li:last-child .nav-mobile-link:hover { background: linear-gradient(135deg, #0052CC, #00B8E6); }

/* ── Responsive（04_header.css と同一） ── */
@media (max-width: 960px) {
    .nav-desktop    { display: none; }
    .hamburger      { display: flex; }
    .header-content { padding: 0; }
    .header .container { padding: 0 20px; }
}
