/**
 * SWELL86 Custom Styles (User Fixed Base)
 */

/* ============================================
   1. ベースレイアウト・余白設定（頂いたコードを維持）
============================================= */
.top #content {
    padding-top: 0;
}
.swell86-main {
    background: #0a0e27;
    color: #e0e0e0;
    overflow-x: hidden;
    
    /* 全幅表示の設定 */
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    
    /* 上下の余白設定 */
    margin-top: 0 !important;
    /* padding-bottom: 160px !important; */
    
    /* 背景装飾 */
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(74, 158, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(138, 43, 226, 0.05) 0%, transparent 50%);
}

.hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #0a0e27;
    margin-bottom: 80px; 
}

.hero-main {
    position: relative;
    width: 100%;
    z-index: 1;
}
.hero-main .swiper-slide { position: relative; width: 100%; }
.hero-main img { width: 100%; height: auto; display: block; }

/* サムネイルスライダー */
.hero-thumbs {
    position: relative;
    width: 90%;
    max-width: 800px;
    margin: -80px auto 0;
    z-index: 10;
}
.hero-thumbs .swiper-slide {
    width: 150px;
    height: 100px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
}
.hero-thumbs .swiper-slide-thumb-active {
    opacity: 1;
    border-color: #4a9eff;
}
.hero-thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================
   2. セクションデザイン（頂いたコードを維持）
============================================= */
:root {
    --c-bg-card: rgba(20, 25, 45, 0.7);
    --c-accent: #4a9eff;
    --c-border-glow: rgba(74, 158, 255, 0.3);
    --c-text-sub: #b0b0b0;
}

.swell86-main .l-container {
    max-width: 1200px;
    padding: 0 30px;
}

.c-section {
    margin-top: 160px;
    /* margin-bottom: 160px; */
    position: relative;
}

.c-section-header {
    text-align: center;
    margin-bottom: 60px;
}
.c-section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(74, 158, 255, 0.3);
}
.c-section-sub {
    font-size: 14px;
    color: var(--c-accent);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 25px;
}
.c-btn-border {
    display: inline-block;
    padding: 12px 35px;
    border: 1px solid var(--c-border-glow);
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    border-radius: 50px;
    transition: all 0.3s ease;
    background: rgba(0,0,0,0.2);
}
.c-btn-border:hover {
    background: var(--c-accent);
    border-color: var(--c-accent);
    box-shadow: 0 0 20px rgba(74, 158, 255, 0.5);
    transform: translateY(-2px);
}

.p-promo-grid { display: grid; gap: 40px; }
.p-promo-grid__half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.c-promo-card, .c-video-frame {
    display: block;
    position: relative;
    background: var(--c-bg-card);
    border: 1px solid var(--c-border-glow);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.c-promo-card:hover {
    transform: translateY(-5px);
    border-color: var(--c-accent);
    box-shadow: 0 10px 40px rgba(74, 158, 255, 0.2);
}
.c-promo-card__img img {
    width: 100%; height: auto;
    display: block;
    transition: transform 0.6s ease;
}
.c-promo-card:hover .c-promo-card__img img { transform: scale(1.05); }
.c-promo-card__overlay {
    position: absolute; inset: 0;
    background: rgba(10, 14, 39, 0.6);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s ease;
}
.c-promo-card__overlay span {
    border: 1px solid #fff; padding: 8px 20px;
    color: #fff; letter-spacing: 2px; font-size: 14px;
}
.c-promo-card:hover .c-promo-card__overlay { opacity: 1; }
.c-video-frame video { width: 100%; height: auto; display: block; }

.p-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}
.c-news-card {
    background: var(--c-bg-card);
    border: 1px solid var(--c-border-glow);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex; flex-direction: column;
}
.c-news-card:hover {
    transform: translateY(-5px);
    border-color: var(--c-accent);
    box-shadow: 0 10px 30px rgba(74, 158, 255, 0.2);
}
.c-news-card__link {
    text-decoration: none; color: inherit;
    display: flex; flex-direction: column; height: 100%;
}
.c-news-card__thumb {
    position: relative; aspect-ratio: 16 / 9;
    background: #fff; overflow: hidden;
}
.c-news-card__thumb img {
    width: 100%; height: 100%; object-fit: contain;
    padding: 10px; transition: transform 0.4s ease;
}
.c-news-card:hover .c-news-card__thumb img { transform: scale(1.08); }
.c-news-card__tag {
    position: absolute; top: 12px; left: 12px;
    background: var(--c-accent); color: #fff;
    padding: 4px 12px; font-size: 11px; font-weight: 700;
    border-radius: 3px;
}
.c-news-card__body {
    padding: 25px; flex: 1; display: flex; flex-direction: column;
}
.c-news-card__date {
    font-size: 12px; color: var(--c-text-sub); margin-bottom: 10px;
}
.c-news-card__title {
    font-size: 16px; font-weight: 700;
    margin-bottom: 15px; color: #fff; line-height: 1.5;
}
.c-news-card__desc {
    font-size: 13px; color: var(--c-text-sub); margin-bottom: 20px; flex-grow: 1;
}
.c-news-card__more {
    font-size: 12px; color: var(--c-accent); font-weight: bold;
}

.p-info-list {
    max-width: 900px; margin: 0 auto;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.c-info-item {
    display: flex; align-items: center;
    padding: 25px 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: #fff; text-decoration: none;
    transition: all 0.3s ease;
}
.c-info-item:hover {
    background: rgba(255, 255, 255, 0.03);
    padding-left: 25px;
}
.c-info-item__meta {
    min-width: 120px; font-size: 14px;
    color: var(--c-accent); font-family: monospace;
}
.c-info-item__cat { display: none; }
.c-info-item__title { flex: 1; font-size: 15px; }
.c-info-item__arrow {
    opacity: 0; color: var(--c-accent);
    transform: translateX(-10px); transition: all 0.3s ease;
}
.c-info-item:hover .c-info-item__arrow {
    opacity: 1; transform: translateX(0);
}

.movie-slider { padding-bottom: 50px; }
.c-movie-slide a {
    display: block; position: relative;
    border-radius: 8px; overflow: hidden;
    border: 1px solid var(--c-border-glow);
}
.c-movie-slide img {
    width: 100%; height: auto;
    transition: transform 0.5s ease; display: block;
}
.c-movie-play {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 50px; height: 50px;
    background: rgba(0,0,0,0.5);
    border: 1px solid #fff; border-radius: 50%;
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 16px; transition: all 0.3s;
}
.c-movie-slide:hover img { transform: scale(1.1); opacity: 0.8; }
.c-movie-slide:hover .c-movie-play {
    background: var(--c-accent); border-color: var(--c-accent);
    transform: translate(-50%, -50%) scale(1.2);
}
.swiper-pagination-bullet { background: #fff; opacity: 0.3; }
.swiper-pagination-bullet-active { background: var(--c-accent); opacity: 1; }

.p-contents-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.c-content-panel {
    display: block; position: relative;
    border-radius: 8px; overflow: hidden;
    aspect-ratio: 4/3; text-decoration: none;
    border: 1px solid var(--c-border-glow);
}
.c-content-panel img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s ease;
}
.c-content-panel__inner {
    position: absolute; inset: 0;
    background: rgba(10, 14, 39, 0.5);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    color: #fff; transition: background 0.3s ease; z-index: 2;
}
.c-content-panel h3 {
    font-size: 20px; font-weight: 900;
    margin: 0; letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}
.c-content-panel p {
    font-size: 12px; margin-top: 5px; opacity: 0.8;
}
.c-content-panel:hover img { transform: scale(1.1); }
.c-content-panel:hover .c-content-panel__inner {
    background: rgba(74, 158, 255, 0.6);
}

.js-fade-up {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.js-fade-up.is-visible { opacity: 1; transform: translateY(0); }


/* ============================================
   3. スマホ表示時のサイズ感調整 (ここから追記)
============================================= */
@media (max-width: 1024px) {
    .p-promo-grid__half, .p-contents-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* 【FV】サムネイルを非表示（邪魔になるため） */
    .c-section{
        margin-top: 0;
        margin-bottom: 40px;
    }
    .hero-thumbs { 
        display: none; 
    }

    /* 【FV】メイン画像が極端に小さくならないようにする */
    .hero-main .swiper-slide img {
        object-fit: cover; /* 画像の比率を保ちつつトリミング */
    }

    /* 【プロモーション画像】1列表示＆高さ調整 */
    .p-promo-grid__half {
        /* grid-template-columns: 1fr; */
        gap: 20px;
    }
    
    .c-promo-card__img img {
        /* カード画像も小さくなりすぎないよう調整 */
        /* min-height: 180px;  もし画像が見切れても良いなら有効化 */
        /* object-fit: cover; */
    }

    /* 【動画】動画エリアの調整 */
    .c-video-frame video {
        width: 100%;
        height: auto;
    }
    
    /* 【NEWS】1列表示 */
    .p-news-grid { 
        grid-template-columns: 1fr; 
    }

    /* 【Contents】スマホでは2列のままでOK */
}