/* === Theatre Power — トップページ固有スタイル (index.css) === */
/* 更新: 2026-04-07 - ヒーローリンク機能・ホバーエフェクト追加 */
/* ルール: !important は Swiper のデフォルトCSS上書きのみ許可 */


/* ----------------------------------------
   1. ヒーロースライダー（Swiper）
   ---------------------------------------- */
.hero-slider-container {
    position: relative;
    width: 100%;
    padding: 0;
    background: #000;
    overflow: visible;
    margin-bottom: 60px;
}

.swiper {
    width: 100%;
    overflow: visible;
    margin-top: 0;
}

.swiper-slide {
    width: 75%;
    max-width: 1100px;
    position: relative;
    border-radius: 0;
    overflow: hidden; /* 画像のズームを枠内に収めるために必須 */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    aspect-ratio: 16 / 9;
    opacity: 0.4;
    transform: scale(0.95);
    cursor: pointer;
}

/* スライド画像の設定 */
.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease; /* ホバー時の拡大を滑らかにする */
    display: block;
}

.swiper-slide-active {
    opacity: 1;
    transform: scale(1);
    z-index: 10;
}

/* スライド全体をリンクにするラッパー */
.swiper-slide a {
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
    position: relative;
}

/* ホバー時の演出: アクティブなスライドの画像のみ拡大 */
.swiper-slide-active a:hover img {
    transform: scale(1.05);
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 120px 30px 40px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 100%);
    color: #fff;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 2;
}

.swiper-slide-active .slide-content {
    opacity: 1;
}

.slide-title {
    font-size: 1.6rem;
    font-weight: bold;
    letter-spacing: 0.05em;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.slide-text {
    font-size: 1rem;
    margin-top: 10px;
    opacity: 0.9;
    font-weight: normal;
}

/* --- Swiper矢印（Swiperデフォルトの上書きに !important 使用） --- */
.swiper-button-next,
.swiper-button-prev {
    width: 60px;
    height: 60px;
    background: none !important;
    box-shadow: none !important;
    color: #fff !important;
    z-index: 20;
    transition: opacity 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    opacity: 0.6;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 40px !important;
    font-weight: bold;
}

.swiper-button-prev {
    left: 5%;
}

.swiper-button-next {
    right: 5%;
}


/* ----------------------------------------
   2. ARTICLEセクション（トップ固有のラッパー）
   ---------------------------------------- */
.articles {
    padding: 80px 0;
    background-color: #f7f9fa;
}

.articles .section-subtitle {
    margin-bottom: 60px;
}


/* ----------------------------------------
   3. About Usセクション
   ---------------------------------------- */
.about {
    padding: 80px 0;
    background-color: #fff;
}

.about-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
}

.about-text {
    flex: 1;
}

.about-title-main {
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0 0 20px 0;
    line-height: 1.4;
}

.about-desc {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 30px;
}

.about-img {
    flex: 1;
    text-align: right;
}


/* ----------------------------------------
   4. レスポンシブ（トップ固有）
   ---------------------------------------- */
@media (max-width: 1024px) {

    /* --- ヒーロースライダー --- */
    .hero-slider-container {
        padding: 0 0 10px;
        margin-bottom: 40px;
    }

    .hero-slider-container,
    .hero-slider-container .swiper-wrapper {
        height: auto;
        min-height: 0;
        background: transparent;
        padding-bottom: 0;
    }

    .swiper-slide {
        width: 90%;
        max-width: none;
        opacity: 1;
        transform: scale(1);
        aspect-ratio: 4 / 3;
    }

    /* モバイルでもリンクを維持しつつ、ズーム無効化（誤操作防止） */
    .swiper-slide-active a:hover img {
        transform: none;
    }

    /* 画像を4:3でクロップ */
    .swiper-slide a {
        display: block;
        width: 100%;
        aspect-ratio: 4 / 3;
        position: relative;
        overflow: hidden;
        height: auto;
        text-decoration: none;
    }

    .swiper-slide a img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
        display: block;
    }

    .slide-content {
        text-align: left;
        padding: 40px 20px;
        bottom: 0;
        width: 100%;
        box-sizing: border-box;
        position: absolute;
        left: 0;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 20%, rgba(0, 0, 0, 0) 100%);
        opacity: 1; /* モバイルは最初から表示 */
    }

    .slide-title {
        font-size: 1.2rem;
        line-height: 1.4;
    }

    .slide-text {
        font-size: 0.8rem;
        margin-top: 5px;
    }

    /* Swiper矢印（Swiperデフォルトの上書きに !important 使用） */
    .swiper-button-prev {
        left: 0 !important;
        width: 40px !important;
    }
    .swiper-button-next {
        right: 0 !important;
        width: 40px !important;
    }
    .swiper-button-next::after,
    .swiper-button-prev::after {
        font-size: 32px !important;
    }

    /* --- About Us --- */
    .about-inner {
        flex-direction: column;
        gap: 40px;
    }
    .about-img {
        text-align: center;
    }
}