/*
 * Film Header Component Styles
 */
.film-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: none;
    padding: 0;
    pointer-events: none;
    transition: background 0.3s;
}
.film-header.scrolled {
    background: #000;
}

/* ヒーローセクションが表示されない場合は常に背景色を表示 */
.film-header--no-hero {
    background: #000 !important;
}
.film-header__container {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 40px;
    box-sizing: border-box;
    position: relative;
    pointer-events: auto;
}
.film-header__logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}
.film-header__logo-img {
    height: 48px;
    width: auto;
    display: block;
}
.film-header__logo-text,
.film-header__nav-link {
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.film-header__logo-text {
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.02em;
    margin-left: 2px;
    margin-top: 2px;
    display: block;
}
.film-header__nav {
    display: flex;
    align-items: center;
}
.film-header__nav-list {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.film-header__nav-item {
    display: flex;
    align-items: center;
}
.film-header__nav-link {
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: color 0.3s;
    padding: 4px 0;
    position: relative;
}
.film-header__nav-item.active .film-header__nav-link,
.film-header__nav-link:hover {
    color: #ffe066;
}
@media (max-width: 1024px) {
    .film-header__container {
        padding: 16px 12px 0 12px;
    }
    .film-header__nav-list {
        gap: 18px;
    }
    .film-header__nav-link {
        font-size: 15px;
    }
    .film-header__logo-img {
        height: 32px;
    }
    .film-header__logo-text {
        font-size: 12px;
    }
}
/* ハンバーガーメニューボタン */
.film-header__hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 100001; /* 他の全ての要素より上に表示 */
}

.film-header__hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    margin: 3px 0;
    transition: all 0.3s ease;
    transform-origin: center;
}

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

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

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

/* モバイルメニュー */
.film-header__mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 100000; /* 最高の優先度 */
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none; /* 非アクティブ時はクリック無効 */
}

.film-header__mobile-menu.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto; /* アクティブ時はクリック有効 */
}

.film-header__mobile-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    cursor: pointer; /* クリック可能であることを示す */
}

.film-header__mobile-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 300px;
    height: 100%;
    background: #000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
}

.film-header__mobile-menu.active .film-header__mobile-content {
    transform: translateX(0);
}

.film-header__mobile-nav {
    padding: 80px 20px 20px;
}

.film-header__mobile-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.film-header__mobile-nav li {
    margin-bottom: 15px;
}

.film-header__mobile-nav a {
    color: #fff;
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: color 0.3s ease;
}

.film-header__mobile-nav a:hover,
.film-header__mobile-nav li.active a {
    color: #ffe066;
}

/* ボディのスクロール制御 */
body.mobile-menu-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .film-header__nav--desktop {
        display: none;
    }
    
    .film-header__hamburger {
        display: flex;
    }
    
    .film-header__container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 10px 20px;
    }
}

@media (max-width: 600px) {
    .film-header__container {
        padding: 8px 16px;
    }
    .film-header__logo-img {
        height: 32px;
    }
    .film-header__logo-text {
        font-size: 14px;
    }
    
    .film-header__mobile-content {
        width: 90%;
    }
}

/* ==========================================================================
   Film Header Language Switcher Styles
   ========================================================================== */

/* Desktop Film Header Language Switcher - Modern Dropdown */
.film-header__lang-wrapper {
    margin-left: 30px;
}

/* New unified language switcher styles */
.film-header-lang-switch {
    position: relative;
    display: inline-block;
}

.film-header-lang-switch__toggle {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 10px 14px;
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    min-width: 90px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.25);
    letter-spacing: 0.02em;
}

.film-header-lang-switch__toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

.film-header-lang-switch__current {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.film-header-lang-switch__current-code {
    font-weight: 600;
    color: #ffe066;
}

.film-header-lang-switch__current-name {
    font-size: 12px;
    opacity: 0.9;
    display: none; /* Hide full name on desktop for space */
}

.film-header-lang-switch__arrow {
    width: 18px;
    height: 18px;
    fill: currentColor;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.film-header-lang-switch.active .film-header-lang-switch__arrow {
    transform: rotate(180deg);
}

.film-header-lang-switch__dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-top: 6px;
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 9999;
    list-style: none;
    padding: 0;
    margin: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.film-header-lang-switch.active .film-header-lang-switch__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.film-header-lang-switch__item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.film-header-lang-switch__item:last-child {
    border-bottom: none;
}

.film-header-lang-switch__link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    color: #fff;
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    transition: all 0.3s ease;
    text-shadow: none;
}

.film-header-lang-switch__link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffe066;
}

.film-header-lang-switch__link-code {
    font-weight: 600;
}

.film-header-lang-switch__link-name {
    font-size: 12px;
    opacity: 0.9;
}

/* 古い重複する定義を削除 */

/* Mobile Film Header Language Switcher */
/* Mobile Film Header Actions */
.film-header__mobile-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.film-header__mobile-lang-wrapper {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile Film Header Language Switcher - New unified styles */
.film-header-mobile-lang-switch {
    position: relative;
    display: inline-block;
    width: 100%;
}

.film-header-mobile-lang-switch__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 14px 18px;
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    width: 100%;
    text-shadow: 0 2px 8px rgba(0,0,0,0.25);
    letter-spacing: 0.02em;
}

.film-header-mobile-lang-switch__toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.film-header-mobile-lang-switch__current {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.film-header-mobile-lang-switch__current-code {
    font-weight: 600;
    color: #ffe066;
}

.film-header-mobile-lang-switch__current-name {
    font-size: 14px;
    opacity: 0.9;
}

.film-header-mobile-lang-switch__arrow {
    width: 18px;
    height: 18px;
    fill: currentColor;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.film-header-mobile-lang-switch.active .film-header-mobile-lang-switch__arrow {
    transform: rotate(180deg);
}

.film-header-mobile-lang-switch__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-top: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 9999;
    list-style: none;
    padding: 0;
    margin: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.film-header-mobile-lang-switch.active .film-header-mobile-lang-switch__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.film-header-mobile-lang-switch__item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.film-header-mobile-lang-switch__item:last-child {
    border-bottom: none;
}

.film-header-mobile-lang-switch__link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 18px;
    color: #fff;
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    transition: all 0.3s ease;
    text-shadow: none;
}

.film-header-mobile-lang-switch__link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffe066;
}

.film-header-mobile-lang-switch__link-code {
    font-weight: 600;
}

.film-header-mobile-lang-switch__link-name {
    font-size: 14px;
    opacity: 0.9;
}

/* 重複するモバイル版定義を削除 */

/* Responsive adjustments for film header */
@media (max-width: 1200px) {
    .film-header__lang-wrapper {
        margin-left: 20px;
    }
    
    .film-header-lang-switch__toggle {
        padding: 8px 12px;
        font-size: 15px;
        min-width: 80px;
    }
    
    .film-header-lang-switch__current-name {
        display: none;
    }
}

@media (max-width: 1024px) {
    .film-header__lang-wrapper {
        margin-left: 15px;
    }
    
    .film-header-lang-switch__toggle {
        padding: 6px 10px;
        font-size: 14px;
        min-width: 70px;
    }
}

@media (max-width: 768px) {
    /* デスクトップナビゲーションを非表示 */
    .film-header__nav--desktop {
        display: none;
    }
    
    /* ハンバーガーメニューボタンを表示 */
    .film-header__hamburger {
        display: flex;
    }
    
    .film-header__lang-wrapper {
        display: none;
    }
    
    .film-header-mobile-lang-switch__toggle {
        font-size: 15px;
        padding: 12px 16px;
    }
    
    .film-header-mobile-lang-switch__current-name {
        font-size: 13px;
    }
    
    .film-header-mobile-lang-switch__link {
        font-size: 15px;
        padding: 12px 16px;
    }
    
    .film-header-mobile-lang-switch__link-name {
        font-size: 13px;
    }
} 
