/**
 * SWELL86 Demo Page CSS
 * ダークテーマのモダンなデザイン
 */

/* ============================================
   共通設定
============================================= */
.swell86-main {
    background: #0a0e27;
    color: #e0e0e0;
    overflow-x: hidden;
    /* SWELLのコンテナ幅を無視して全幅表示 */
    width: 100vw;
    max-width: 100vw;
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    text-align: center;
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.section-lead {
    text-align: center;
    font-size: clamp(14px, 1.5vw, 16px);
    color: #b0b0b0;
    max-width: 800px;
    margin: 0 auto 60px;
    line-height: 1.8;
}

/* ============================================
   1. ファーストビュー（ヒーロー）
============================================= */
.hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #0a0e27;
}

/* メインスライダー */
.hero-main {
    position: relative;
    width: 100%;
    z-index: 1;
}

.hero-main .swiper-slide {
    position: relative;
    width: 100%;
}

/* 画像を暗くするオーバーレイを削除 */
/* .hero-main .swiper-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 39, 0.5);
    z-index: 2;
} */

.hero-main img {
    width: 100%;
    height: auto;
    display: block;
}

/* キャッチコピー */
.hero-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    width: 90%;
    max-width: 800px;
}

.hero-title {
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 2px 4px 10px rgba(0, 0, 0, 0.8);
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 22px);
    color: #e0e0e0;
    text-shadow: 1px 2px 8px rgba(0, 0, 0, 0.7);
    letter-spacing: 1px;
}

/* サムネイルスライダー */
.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. FEATURES（サービス紹介）
============================================= */
.features {
    padding: 100px 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(74, 158, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(138, 43, 226, 0.08) 0%, transparent 50%),
        #0a0e27;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    background: rgba(20, 25, 45, 0.6);
    border: 1px solid rgba(74, 158, 255, 0.2);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(74, 158, 255, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(74, 158, 255, 0.5);
    box-shadow: 0 10px 30px rgba(74, 158, 255, 0.2);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.2) 0%, rgba(138, 43, 226, 0.2) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.feature-icon svg {
    width: 40px;
    height: 40px;
    color: #4a9eff;
}

.feature-title {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.feature-desc {
    font-size: 14px;
    color: #b0b0b0;
    line-height: 1.6;
}

/* ============================================
   3. ACHIEVEMENT（実績）
============================================= */
.achieve {
    padding: 100px 0;
    background: linear-gradient(180deg, #0a0e27 0%, #0d1130 100%);
}

.kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.kpi-item {
    text-align: center;
}

.kpi-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.1) 0%, rgba(138, 43, 226, 0.1) 100%);
    border: 2px solid rgba(74, 158, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kpi-icon svg {
    width: 40px;
    height: 40px;
    color: #4a9eff;
}

.kpi-value {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

.kpi-label {
    font-size: 14px;
    color: #b0b0b0;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ============================================
   4. TEAM（チーム）
============================================= */
.team {
    padding: 100px 0;
    background:
        radial-gradient(circle at 30% 40%, rgba(138, 43, 226, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(74, 158, 255, 0.08) 0%, transparent 50%),
        #0a0e27;
}

.team-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.team-card {
    background: rgba(20, 25, 45, 0.6);
    border: 1px solid rgba(74, 158, 255, 0.2);
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(74, 158, 255, 0.2);
}

.team-photo {
    width: 100%;
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-role {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 20px;
    text-align: center;
    letter-spacing: 0.5px;
}

.team-skills {
    margin-bottom: 20px;
}

.skill-item {
    margin-bottom: 15px;
}

.skill-label {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #b0b0b0;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.skill-percent {
    color: #4a9eff;
    font-weight: 600;
}

.skill-bar {
    width: 100%;
    height: 6px;
    background: rgba(74, 158, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    width: var(--skill-width, 0%);
    background: linear-gradient(90deg, #4a9eff 0%, #8a2be2 100%);
    border-radius: 3px;
    transition: width 1s ease;
}

.team-desc {
    font-size: 14px;
    color: #b0b0b0;
    line-height: 1.6;
}

/* ============================================
   5. NEWS（ニュース）
============================================= */
.news {
    padding: 100px 0;
    background: linear-gradient(180deg, #0a0e27 0%, #0d1130 100%);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background: rgba(20, 25, 45, 0.6);
    border: 1px solid rgba(74, 158, 255, 0.2);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(74, 158, 255, 0.2);
}

.news-thumb {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-thumb img {
    transform: scale(1.05);
}

.news-cat {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(74, 158, 255, 0.9);
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-content {
    padding: 25px;
}

.news-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

.news-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: #4a9eff;
}

.news-excerpt {
    font-size: 14px;
    color: #b0b0b0;
    line-height: 1.6;
    margin-bottom: 15px;
}

.news-meta {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #808080;
}

.news-meta time {
    display: flex;
    align-items: center;
}

.news-more {
    text-align: center;
    margin-top: 50px;
}

.btn-more {
    display: inline-block;
    padding: 15px 50px;
    background: linear-gradient(135deg, #4a9eff 0%, #8a2be2 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(74, 158, 255, 0.4);
}

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

/* タブレット（1024px未満） */
@media (max-width: 1024px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .kpis {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-thumbs .swiper-slide {
        width: 120px;
        height: 80px;
    }
}

/* スマホ（768px未満） */
@media (max-width: 768px) {
    .section-title {
        font-size: 28px;
    }

    .section-lead {
        font-size: 14px;
    }

    .features,
    .achieve,
    .team,
    .news {
        padding: 60px 0;
    }

    .hero-thumbs {
        bottom: 20px;
        width: 95%;
    }

    .hero-thumbs .swiper-slide {
        width: 100px;
        height: 70px;
    }
}

/* スマホ（600px未満） */
@media (max-width: 600px) {
    .feature-grid,
    .kpis,
    .team-cards,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 500px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-thumbs {
        display: none; /* スマホではサムネイルを非表示 */
    }

    .feature-card {
        padding: 30px 15px;
    }

    .team-photo {
        height: 200px;
    }
}
