﻿/* ============== Basic Reset & Font ============== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

body {
    font-family: "Arial",sans-serif;
    background: #000;
    color: #fff;
    line-height: 1.6
}

a {
    color: #00adee;
    text-decoration: none
}

    a:hover {
        text-decoration: underline
    }

/* ============== RTL Arabic helpers ============== */
.ar {
    direction: rtl;
    text-align: center
}

    .ar * {
        text-align: center
    }

/* ============== Hero ============================ */
.hero {
    position: relative;
    width: 100%;
    min-height: 80vh;
    overflow: hidden;
    background: #000
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover
}

.hero-mask {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.4);
    pointer-events: none;
    z-index: 1
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 80vh;
    padding: 20px
}

    .hero-content h1 {
        font-size: 2.2rem;
        margin-bottom: 10px
    }

    .hero-content p {
        font-size: 1.2rem;
        margin-bottom: 20px
    }

@media(max-width:600px) {
    .hero-content h1 {
        font-size: 1.8rem
    }

    .hero-content p {
        font-size: 1rem
    }
}

/* ============== Layout Helpers ================= */
.container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0
}

.section-default {
    padding: 40px 0;
    border-bottom: 1px solid #333
}

/* Language toggle */
.lang-toggle {
    text-align: right;
    margin: 10px 0
}

    .lang-toggle button {
        background: none;
        border: 1px solid #fff;
        color: #fff;
        padding: 5px 10px;
        cursor: pointer
    }

        .lang-toggle button:hover {
            background: #333
        }

/* ============== Gallery & Collage ============== */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(160px,1fr));
    gap: 16px
}

.gallery-item {
    text-align: center
}

.gallery img {
    width: 100%;
    aspect-ratio: 1/1.3;
    object-fit: cover;
    border-radius: 6px;
    filter: brightness(.5);
    transition: .3s
}

    .gallery img:hover {
        filter: brightness(1.1);
        cursor: pointer
    }

.gallery-name {
    margin-top: .4rem;
    font-size: .9rem;
    font-weight: 500
}

/* Collage grid */
.collage {
    display: grid;
    gap: 0;
    grid-template-columns: repeat(auto-fit,minmax(min(100%,200px),1fr))
}

    .collage a {
        position: relative;
        display: block;
        overflow: hidden;
        border-radius: 6px;
        aspect-ratio: 4/3;
        width: 100%;
        height: 100%;
        background: #000
    }

        .collage a img {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: cover
        }

    .collage .wide {
        grid-column: span 2
    }

    .collage .tall {
        grid-row: span 2
    }

    /* Japan Night 横長サムネ ＋ lightbox 対応 */
    .collage.cannes a {
        aspect-ratio: 16/9
    }

        .collage.cannes a img {
            position: static;
            width: 100%;
            height: auto;
            aspect-ratio: 16/9;
            object-fit: cover
        }

.cannes-thumb {
    cursor: pointer
}

/* ============== Character viewer (char page) ==== */
/* only key rules retained for brevity of CSS; rest identical to earlier */
/* If you maintain a separate char page, keep its original CSS here */

/* ============== News list ======================= */
ul.en, ul.jp, ul.ar {
    list-style: none;
    padding-left: 0;
    margin-left: 0
}

#news ul {
    margin: 0 0 1.5rem 1.2rem;
    list-style: disc
}

#news li {
    margin-bottom: .6rem;
    line-height: 1.45
}

.news-date {
    color: #777;
    font-weight: 400
}

/* ============== Trailer video =================== */
.trailer-video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16/9
}

/* ============== Multilingual default hidden ===== */
.en, .jp, .ar {
    display: none
}

/* ============== Lightbox ======================== */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.92);
    justify-content: center;
    align-items: center;
    z-index: 10000
}

    .lightbox.show {
        display: flex
    }

    .lightbox img {
        max-width: 90%;
        max-height: 90%
    }

    .lightbox .close {
        position: absolute;
        top: 20px;
        right: 30px;
        font-size: 40px;
        color: #fff;
        cursor: pointer
    }

body.no-scroll {
    overflow: hidden
}
