/**
 * FCプランニングオフィス - ヘッダー専用CSS
 * 
 * @package FCプランニングオフィス
 * @author 株式会社Hackusha - 大硲 神
 * @version 1.0.1
 */

/* ==========================================================================
   ヘッダー基本設定
   ========================================================================== */

.fcpo-header {
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.fcpo-header-inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 1rem 2%;
}

/* ==========================================================================
   ファーストビュー用ヘッダー（静的表示）
   ========================================================================== */

.fcpo-header-static {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
}

.fcpo-header-static .fcpo-header-inner { 
    padding: 1rem 2%;
}

/* ==========================================================================
   スクロール後ヘッダー（固定表示）- トップページ用
   ========================================================================== */

.fcpo-header-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    /* すりガラス効果の背景 */
    background: rgba(0, 0, 0, 0.2);  /* 白の半透明背景 */
    backdrop-filter: blur(20px) saturate(180%);  /* ぼかし + 彩度アップ */
    -webkit-backdrop-filter: blur(20px) saturate(180%);  /* Safari対応 */
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);  /* 薄い境界線効果 */
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.fcpo-header-fixed.is-visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.fcpo-header-fixed .fcpo-header-inner {
    padding: 0rem 2%;  /* 固定ヘッダーは少しコンパクトに */
}

/* 固定ヘッダー：ロゴありの適切なレイアウト */
.fcpo-header-fixed .fcpo-header-inner {
    justify-content: flex-start;  /* ロゴから開始 */
}

/* 固定ヘッダーのナビゲーションとアクションを右寄せ */
.fcpo-header-fixed .fcpo-main-navigation {
    margin-left: auto;  /* ナビゲーションを右に押し出し */
}

/* ==========================================================================
   下層ページ用ヘッダー（常時表示）
   ========================================================================== */

.fcpo-header-subpage {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    /* すりガラス効果の背景 */
    background: rgba(0, 0, 0, 0.2);  /* 白の半透明背景 */
    backdrop-filter: blur(20px) saturate(180%);  /* ぼかし + 彩度アップ */
    -webkit-backdrop-filter: blur(20px) saturate(180%);  /* Safari対応 */
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);  /* 薄い境界線効果 */
    /* 下層ページでは最初から表示 */
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.fcpo-header-subpage .fcpo-header-inner {
    padding: 1rem 2%;  /* 下層ページは通常のパディング */
    justify-content: flex-start;  /* ロゴから開始 */
}

/* 下層ページのナビゲーションとアクションを右寄せ */
.fcpo-header-subpage .fcpo-main-navigation {
    margin-left: auto;  /* ナビゲーションを右に押し出し */
}

/* ==========================================================================
   ロゴ
   ========================================================================== */

.fcpo-branding {
    flex-shrink: 0;
}

.fcpo-logo {
    display: inline-block;
    transition: opacity 0.3s ease;
}

.fcpo-logo:hover {
    opacity: 0.8;
}

.logo-image {
    height: 4rem;
    width: auto;
    transition: height 0.3s ease;
}

/* インラインSVGロゴのスタイル */
.logo-svg {
    height: 4rem;
    width: auto;
    transition: height 0.3s ease;
}

.logo-svg path {
    fill: currentColor; /* これによりcolorプロパティで色を制御可能に */
}

/* ロゴの色設定 */
.fcpo-header-static .logo-svg {
    color: var(--color-white);  /* ファーストビュー：白 */
}

.fcpo-header-fixed .logo-svg {
    color: var(--color-white);  /* 固定ヘッダー：白 */
}

/* ==========================================================================
   ナビゲーションメニュー
   ========================================================================== */

.fcpo-main-navigation {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2.5rem;
}

.menu-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--color-white);
    text-decoration: none;
    font-family: var(--font-navigation);
    font-weight: var(--font-weight-black);
    font-size: var(--font-size-base);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.nav-link:hover {
    color: var(--color-main);
    background: rgba(254, 123, 0, 0.1);
}

/* ファーストビュー時の文字色 */
.fcpo-header-static .nav-link {
    color: var(--color-white);
}

.fcpo-header-static .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* 固定ヘッダー時の文字色 */
.fcpo-header-fixed .nav-link {
    color: var(--color-white);
}

/* ==========================================================================
   ドロップダウンメニュー
   ========================================================================== */

.menu-item-has-children {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-icon {
    margin-left: 0.5rem;
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.menu-item-has-children:hover .dropdown-icon,
.menu-item-has-children.is-open .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    z-index: 1001;
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
}

.menu-item-has-children:hover .dropdown-menu,
.menu-item-has-children.is-open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu .menu-item {
    margin: 0;
}

.dropdown-menu .nav-link {  
    color: var(--color-black);
    padding: 0.75rem 1.5rem;
    border-radius: 0;
    font-weight: 900;
}

.dropdown-menu .nav-link:hover {
    color: var(--color-main);
    background: rgba(254, 123, 0, 0.1);
}

/* ==========================================================================
   ヘッダー右側エリア
   ========================================================================== */

.fcpo-header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: 10vw;  /* デスクトップ：ナビゲーションとの間隔 */
}

/* 言語スイッチャー */
.fcpo-header-language-switcher .language-switcher {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-bold);
    display: flex;  /* 横並び配置 */
    gap: 0;         /* 言語リンク同士の間隔を0に */
}

.fcpo-header-language-switcher .language-list {
    gap: 0;
}

.fcpo-header-language-switcher .language-link {
    margin-left: -1px;
}

.fcpo-header-language-switcher .language-link,
.fcpo-header-language-switcher .language-item.active {
    color: var(--color-white);
    padding: 0.25rem 1rem;
    border-radius: 0;
    background: transparent;
    transition: all 0.3s ease;
    border: 1px solid var(--color-white);
    display: inline-block;
    text-decoration: none;
}

/* ファーストビュー時の言語スイッチャー */
.fcpo-header-static .fcpo-header-language-switcher .language-link,
.fcpo-header-static .fcpo-header-language-switcher .language-item.active {
    color: var(--color-white);
    border-color: var(--color-white);
}

/* WordPress版：アクティブ言語の内側テキスト要素 */
.fcpo-header-language-switcher .language-item.active .language-text,
.fcpo-header-language-switcher .language-item.active .language-flag {
    pointer-events: none;
}

/* アクティブ言語のカーソル表示（クリック不可を示す） */
.fcpo-header-language-switcher .language-item.active,
.fcpo-header-language-switcher .language-link.current-language {
    cursor: default;
}

.fcpo-header-language-switcher .language-link:hover,
.fcpo-header-language-switcher .language-link.current-language,
.fcpo-header-language-switcher .language-item.active {
    background: var(--color-main);
    color: var(--color-white);
    border-color: var(--color-white);
}

/* Instagram */
.fcpo-header-social .social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    color: var(--color-white);
    background: transparent;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.fcpo-header-social .social-link svg {
    width: 50%;
    height: 50%;
    transition: inherit;
}

.fcpo-header-social .social-link:hover {
    color: #E4405F;
    background: rgba(228, 64, 95, 0.1);
    transform: translateY(-2px);
}

/* ファーストビュー時のSNSアイコン */
.fcpo-header-static .fcpo-header-social .social-link {
    color: var(--color-white);
}

.fcpo-header-static .fcpo-header-social .social-link:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 固定ヘッダー時のSNSアイコン */
.fcpo-header-fixed .fcpo-header-social .social-link {
    color: var(--color-white);
}

/* ==========================================================================
   モバイルメニュートグル
   ========================================================================== */

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1002;
    outline: none;
}

.mobile-menu-toggle:focus {
    outline: none;
}

.mobile-menu-toggle:active {
    outline: none;
}

/* ==========================================================================
   カスタムモバイルメニューボタン
   ========================================================================== */

.mobile-knob-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.mobile-knob-image {
    width: 40px;
    height: 40px;
    transition: opacity 0.3s ease;
}

.mobile-knob-default {
    opacity: 1;
}

.mobile-knob-active {
    position: absolute;
    opacity: 0;
}

.mobile-menu-toggle.is-active .mobile-knob-default {
    opacity: 0;
}

.mobile-menu-toggle.is-active .mobile-knob-active {
    opacity: 1;
}

.mobile-menu-text {
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--color-white);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ファーストビュー時のモバイルメニューテキスト */
.fcpo-header-static .mobile-menu-text {
    color: var(--color-white);
}

/* 固定ヘッダー時のモバイルメニューテキスト */
.fcpo-header-fixed .mobile-menu-text {
    color: var(--color-white);
}

/* ハンバーガーラインを非表示 */
.hamburger-line {
    display: none;
}

/* ==========================================================================
   モバイルメニューオーバーレイ
   ========================================================================== */

.fcpo-mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--color-white);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    overflow-y: auto;
}
/* グラデーション背景を実際のコンテンツサイズに追従 */
.fcpo-mobile-navigation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;  /* .fcpo-mobile-navigation の実際の高さに完全追従 */
    background: var(--gradient-overlay);
    pointer-events: none;
    z-index: 1;
}

.fcpo-mobile-menu-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

/* オーバーレイ内のCloseボタン */
.mobile-overlay-close {
    position: absolute;
    top: 0.75rem;
    right: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem; /* トグルボタンと同じサイズに統一 */
    transition: all 0.3s ease;
    z-index: 1002;  /* グラデーション背景・ナビゲーションコンテンツより前面 */
    outline: none; /* フォーカス時の青い枠線を削除 */
}

.mobile-overlay-close:hover {
    transform: scale(1.05);
}

.mobile-overlay-close:focus {
    outline: none; /* フォーカス時の青い枠線を削除 */
}

.mobile-overlay-close .mobile-knob-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.mobile-overlay-close .mobile-knob-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.mobile-overlay-close .mobile-knob-default {
    opacity: 0; /* 初期状態では非表示（アクティブ状態で表示） */
}

.mobile-overlay-close .mobile-knob-active {
    opacity: 1; /* 初期状態でアクティブ画像を表示 */
}

.mobile-overlay-close .mobile-menu-text {
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--color-black);
    text-align: center;
    white-space: nowrap;
}

.fcpo-mobile-navigation {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    position: relative;  /* ::before の基準点として必要 */
}

/* モバイルナビゲーション内のコンテンツを背景より前面に */
.mobile-nav-menu,
.mobile-language-switcher,
.mobile-social,
.mobile-company-info {
    position: relative;
    z-index: 2;  /* グラデーション背景より前面 */
}

.mobile-company-info > *{
    text-align: left;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.mobile-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
}

.mobile-menu-item {
    margin-bottom: 1.5rem;
}

.mobile-nav-link {
    display: block;
    color: var(--color-black);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 1rem;
    outline: none; /* フォーカス時の青い枠線を削除 */
}

.mobile-nav-link:focus {
    outline: none; /* フォーカス時の青い枠線を削除 */
    transition: color 0.3s ease;
}

.mobile-nav-link:hover {
    color: #667eea;
}

/* モバイル用サブメニュー（常時表示） */
.mobile-menu-item-has-children .mobile-dropdown-toggle {
    display: block;  /* ドロップダウン機能を無効化 */
    pointer-events: none;  /* クリック無効化 */
}

.mobile-dropdown-icon {
    display: none;  /* ドロップダウンアイコンを非表示 */
}

.mobile-sub-menu {
    list-style: none;
    margin: 0.5rem 0 0 0;
    padding: 0;
    /* 常に表示：max-height制限とoverflow:hiddenを削除 */
}

.mobile-sub-menu .mobile-nav-link {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--color-bg-base);
    padding: 0.75rem;
}

/* モバイル用言語スイッチャー */
.mobile-language-switcher {
    margin-top: 2rem;
}

.mobile-language-switcher .language-switcher {
    display: flex;
    gap: 0;
    justify-content: center;
}

.mobile-language-switcher .language-link {
    margin-left: -1px;
}

.mobile-language-switcher .language-link,
.mobile-language-switcher .language-item.active {
    color: var(--color-black) !important;
    background: transparent;
    border: 1px solid var(--color-black);
    padding: 0.5rem 1rem;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.mobile-language-switcher .language-link:hover,
.mobile-language-switcher .language-link.current-language,
.mobile-language-switcher .language-item.active {
    background: var(--color-main);
    color: var(--color-white) !important;
    border-color: var(--color-black);
}

/* モバイル用ソーシャル */
.mobile-social {
    margin-top: 2rem;
}

.mobile-social .social-link {
    width: 50px;
    height: 50px;
    color: var(--color-black) !important;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-social .social-link:hover {
    color: var(--color-main) !important;
    transform: translateY(-2px);
}

.mobile-social .social-link svg {
    width: 60%;
    height: 60%;
}

/* ==========================================================================
   モバイル・デスクトップレイアウト分け
   ========================================================================== */

.mobile-layout {
    display: none;
    align-items: center;
    justify-content: flex-end;  /* トグルボタンを右端に配置 */
    width: 100%;
    position: relative;  /* absolute配置された子要素の基準 */
}

.desktop-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* デスクトップサイズではモバイルメニューを非表示 */
@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none !important;
    }
}

/* ==========================================================================
   モバイル専用ロゴ
   ========================================================================== */

.mobile-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.mobile-logo .fcpo-logo {
    display: inline-block;
    transition: opacity 0.3s ease;
}

.mobile-logo .fcpo-logo:hover {
    opacity: 0.8;
}

.mobile-logo .logo-image {
    height: 50px;  /* モバイルロゴサイズを大きく */
    width: auto;
    transition: height 0.3s ease;
}

.mobile-logo .logo-svg {
    height: 50px;
    width: auto;
    color: var(--color-white);
}

/* ==========================================================================
   デスクトップ専用ロゴ
   ========================================================================== */

.desktop-logo {
    flex-shrink: 0;
    margin-right: 2rem;  /* ナビゲーションとの間隔 */
}

.desktop-logo .fcpo-logo {
    display: inline-block;
    transition: opacity 0.3s ease;
}

.desktop-logo .fcpo-logo:hover {
    opacity: 0.8;
}

.desktop-logo .logo-svg {
    height: 60px;  /* デスクトップロゴサイズ */
    width: auto;
    color: var(--color-white);
    margin-bottom: 10px;
}

/* ファーストビュー時のデスクトップロゴ */
.fcpo-header-static .desktop-logo .logo-svg {
    color: var(--color-white);
}

/* 固定ヘッダー時のデスクトップロゴ */
.fcpo-header-fixed .desktop-logo .logo-svg {
    color: var(--color-white);
}

.desktop-logo .logo-svg path {
    fill: currentColor !important;  /* fill属性を確実に上書き */
}

/* デスクトップサイズでモバイルロゴを非表示 */
@media (min-width: 769px) {
    .mobile-logo {
        display: none;
    }
}

/* モバイルサイズでデスクトップロゴを非表示 */
@media (max-width: 768px) {
    .desktop-logo {
        display: none;
    }
}

/* ==========================================================================
   会社情報（モバイルメニュー内）
   ========================================================================== */

.mobile-company-info {
    margin-top: 3rem;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.company-name {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--color-black);
}

.company-address {
    font-size: 0.9rem;
    color: var(--color-bg-base);
}

/* ==========================================================================
   レスポンシブ対応
   ========================================================================== */

@media (max-width: 1024px) {
    .nav-menu {
        gap: 2rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 0.6rem 0.8rem;
    }
    
    .fcpo-header-actions {
        gap: 1rem;
        margin-left: 2rem;  /* タブレット：適度な間隔 */
    }
    
    /* タブレット：Instagramアイコンサイズ調整 */
    .fcpo-header-social .social-link,
    .fcpo-header-fixed .fcpo-header-social .social-link {
        width: 3.5rem;   /* タブレットサイズ */
        height: 3.5rem;
    }
    
    /* タブレット：固定ヘッダーのナビゲーション間隔調整 */
    .fcpo-header-fixed .fcpo-header-actions {
        margin-left: 1rem;  /* タブレット：適度な間隔 */
    }
    
    /* タブレット：モバイルメニューボタンは非表示 */
    .mobile-menu-toggle {
        display: none;
    }
}

@media (max-width: 768px) {
    /* デスクトップレイアウトを非表示 */
    .desktop-layout {
        display: none;
    }
    
    /* モバイルレイアウトを表示 */
    .mobile-layout {
        display: flex;
    }
    
    .fcpo-header-inner {
        padding: 0 0 1rem 0;  /* 上の余白削除、下のみ保持 */
    }
    
    .fcpo-header-static .fcpo-header-inner {
        padding: 0 0 1.5rem 0;  /* 上の余白削除、下のみ保持 */
    }
    
    .fcpo-header-fixed .fcpo-header-inner {
        padding: 0 0 1rem 0;  /* 固定ヘッダーも上の余白削除 */
    }
    
    /* モバイルメニューボタンの位置調整 */
    .mobile-menu-toggle {
        display: flex;  /* モバイルサイズで表示 */
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
        z-index: 1002;
    }
    
    /* モバイル：ナビゲーション間隔リセット */
    .fcpo-header-actions {
        margin-left: 0;
    }
    
    /* モバイル：Instagramアイコンサイズ調整 */
    .fcpo-header-social .social-link,
    .fcpo-header-fixed .fcpo-header-social .social-link {
        width: 3rem;   /* モバイルでは少し小さく */
        height: 3rem;
    }
    
    /* モバイル：固定ヘッダーのナビゲーション間隔調整 */
    .fcpo-header-fixed .fcpo-header-actions {
        margin-left: 0.5rem;  /* モバイル：最小限の間隔 */
    }
    
    /* モバイル：固定ヘッダーのレイアウト設定を明示的に適用 */
    .fcpo-header-fixed .mobile-layout {
        display: flex;
        justify-content: flex-end;  /* トグルボタンを右端に */
        position: relative;
    }
    
    .fcpo-header-fixed .mobile-logo .logo-image {
        height: 50px;  /* ファーストビューと同じサイズ */
    }
    
    .fcpo-header-fixed .mobile-logo .logo-svg {
        height: 50px;
    }
    
    .fcpo-header-fixed .mobile-menu-text {
        font-size: 0.6rem;  /* ファーストビューと同じサイズ */
    }
    .fcpo-header-subpage .fcpo-header-inner {
        padding: 0;  /* 下層ページは通常のパディング */
    }
}

@media (max-width: 480px) {
    .mobile-nav-link {
        font-size: 1.3rem;
    }
    
    .mobile-sub-menu .mobile-nav-link {
        font-size: 1.1rem;
    }
    
    /* 480px以下：固定ヘッダーでも同じモバイル設定を適用 */
    .fcpo-header-fixed .fcpo-header-inner {
        padding: 0;
    }
    
    .fcpo-header-fixed .mobile-logo .logo-image {
        height: 50px;  /* ロゴサイズ統一 */
    }
}
@media (min-width: 769px) and (max-height: 800px) {
    .nav-menu {
        gap: 2rem;
    }
    .fcpo-header-actions {
        margin-left: 7vw;
    }
}
/* ==========================================================================
   アニメーション効果
   ========================================================================== */

/* ページロード時のアニメーション */
.fcpo-header-static {
    animation: headerFadeIn 0.8s ease-out;
}

@keyframes headerFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ホバー時のマイクロインタラクション */
.nav-link,
.social-link,
.language-link {
    position: relative;
    overflow: hidden;
}

.nav-link::before,
.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.nav-link:hover::before,
.social-link:hover::before {
    left: 100%;
}

/* ==========================================================================
   アクセシビリティ対応
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .site-header,
    .dropdown-menu,
    .fcpo-mobile-menu-overlay,
    .nav-link,
    .social-link {
        transition: none;
    }
    
    .fcpo-header-static {
        animation: none;
    }
}

/* フォーカス状態の強化 */
.nav-link:focus,
.social-link:focus,
.mobile-menu-toggle:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* ハイコントラストモード対応 */
@media (prefers-contrast: high) {
    .fcpo-header-static .nav-link,
    .fcpo-header-static .hamburger-line {
        color: #fff;
        background: #fff;
    }
    
    .nav-link:hover,
    .nav-link:focus {
        background: #000;
        color: #fff;
    }
}

/* ==========================================================================
   モバイルメニュー用スクロール制御
   ========================================================================== */

/* モバイルメニュー開放時のスクロール制御（確実な方法） */
body.mobile-menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
} 