/**
 * Features Page Carousel Styles
 * 機能一覧ページのカルーセル用スタイル
 */

.features-carousel-section {
    position: relative;
    overflow: visible;
}

.features-carousel {
    max-width: 1200px;
    margin: 10px auto 0;
    position: relative;
    z-index: 5;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.carousel-slide {
    display: none;
    animation: fadeIn 0.5s ease;
}

.carousel-slide.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.carousel-content {
    display: flex;
    align-items: flex-start;
    gap: 60px;
    padding: 40px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    min-height: 450px;
}

.carousel-image {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.carousel-image img {
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.carousel-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.feature-number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #C0432F;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(192, 67, 47, 0.3);
}

.feature-title-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.feature-badge {
    font-size: 150px;
    font-weight: bold;
    color: #444;
    margin-top: -100px
}


.feature-number-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: -20px;
}

.feature-labels {
    margin-top: 10px;
}

.feature-label {
    font-size: 20px;
    color: #C0432F;
    font-weight: 700;
    margin: 0;
    letter-spacing: 1px;
}

.feature-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0;
    line-height: 1.2;
}

.feature-description {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin: 0;
    flex: 1;
}

/* ナビゲーション */
.carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    position: relative;
    z-index: 10;
}

.carousel-prev,
.carousel-next {
    width: 50px;
    height: 50px;
    border: 2px solid #f0ad4e;
    background: #ffffff;
    color: #f0ad4e;
    font-size: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    position: relative;
    z-index: 11;
    pointer-events: auto;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: #f0ad4e;
    color: #ffffff;
    transform: scale(1.1);
}

.carousel-prev:active,
.carousel-next:active {
    transform: scale(0.95);
}

.carousel-dots {
    display: flex;
    gap: 12px;
    align-items: center;
    position: relative;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #999;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #666;
    position: relative;
    z-index: 11;
    pointer-events: auto;
}

.dot:hover {
    background: #666;
    border-color: #333;
}

.dot.active {
    width: 40px;
    border-radius: 6px;
    background: #f0ad4e;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .carousel-content {
        flex-direction: column;
        gap: 30px;
        padding: 30px 20px;
    }

    .carousel-image {
        order: 2;
    }

    .carousel-text {
        order: 1;
        text-align: center;
    }

    .feature-header {
        justify-content: center;
        margin-bottom: 20px;
        gap: 15px;
    }

    .feature-number {
        width: 60px;
        height: 60px;
        font-size: 36px;
    }

    .feature-label {
        font-size: 18px;
    }

    .feature-title {
        font-size: 24px;
    }

    .feature-icon-badge {
        width: 60px;
        height: 60px;
        margin: 0 auto 15px;
    }

    .feature-description {
        font-size: 14px;
        line-height: 1.6;
    }

    .carousel-nav {
        gap: 20px;
        margin-top: 30px;
    }

    .carousel-prev,
    .carousel-next {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }

    .dot.active {
        width: 30px;
    }
}

@media (max-width: 480px) {
    .features-carousel-section {
        padding: 40px 0;
    }

    .carousel-content {
        padding: 20px 15px;
    }

    .feature-header {
        gap: 12px;
        margin-bottom: 15px;
    }

    .feature-number {
        width: 50px;
        height: 50px;
        font-size: 30px;
    }

    .feature-label {
        font-size: 16px;
    }

    .feature-title {
        font-size: 20px;
    }

    .feature-description {
        font-size: 13px;
    }

    .carousel-prev,
    .carousel-next {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
}
