/**
 * Features Section Modern Styles
 *
 * TOPページの選ばれる理由セクションのプレミアムデザイン
 */

/* ==========================================================================
   選ばれる理由セクション - Premium Design
   ========================================================================== */
.features-section-modern {
    position: relative;
    padding: 120px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
    overflow: hidden;
}

/* Background Layers */
.features-bg-layers {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.bg-gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    animation: float-orb 25s ease-in-out infinite;
}

.orb-1 {
    top: -10%;
    right: 10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 134, 123, 0.4) 0%, transparent 70%);
    animation-delay: 0s;
}

.orb-2 {
    bottom: -10%;
    left: 10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.3) 0%, transparent 70%);
    animation-delay: 5s;
}

@keyframes float-orb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.1); }
    50% { transform: translate(-20px, 30px) scale(0.9); }
    75% { transform: translate(40px, -20px) scale(1.05); }
}

.bg-pattern-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(0, 134, 123, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 134, 123, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.5;
}

/* Section Header Premium */
.section-header-premium {
    position: relative;
    text-align: center;
    margin-bottom: 80px;
    z-index: 2;
}

.header-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background: linear-gradient(135deg, rgba(0, 134, 123, 0.1), rgba(16, 185, 129, 0.1));
    border: 1px solid rgba(0, 134, 123, 0.2);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #00867b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
    animation: fadeInDown 1s ease-out;
}

.header-badge i {
    font-size: 1rem;
    color: #fbbf24;
    animation: pulse-crown 2s ease-in-out infinite;
}

@keyframes pulse-crown {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.section-title-premium {
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.section-title-premium .title-main {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    color: #1f2937;
    line-height: 1.2;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-decorator {
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #00867b, #10b981, transparent);
    margin: 0 auto;
    border-radius: 2px;
    animation: shimmer-line 3s ease-in-out infinite;
}

@keyframes shimmer-line {
    0%, 100% { opacity: 0.5; transform: scaleX(1); }
    50% { opacity: 1; transform: scaleX(1.2); }
}

.section-description-premium {
    font-size: 1.2rem;
    color: #6b7280;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

/* Features Showcase Grid */
.features-showcase-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    z-index: 2;
}

/* Feature Card Premium */
.feature-card-premium {
    position: relative;
    padding: 50px 40px;
    background: white;
    border-radius: 24px;
    border: 2px solid transparent;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: fadeInUp 1s ease-out backwards;
}

.feature-card-premium[data-feature="1"] { animation-delay: 0.6s; }
.feature-card-premium[data-feature="2"] { animation-delay: 0.8s; }
.feature-card-premium[data-feature="3"] { animation-delay: 1s; }

.feature-card-premium:hover {
    border-color: #00867b;
    transform: translateY(-12px) scale(1.02);
    box-shadow:
        0 24px 48px rgba(0, 134, 123, 0.2),
        0 0 0 1px rgba(0, 134, 123, 0.1);
}

/* Card Backdrop */
.card-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 134, 123, 0.02) 0%, rgba(16, 185, 129, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.feature-card-premium:hover .card-backdrop {
    opacity: 1;
}

/* Card Glow */
.card-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 134, 123, 0.15) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.feature-card-premium:hover .card-glow {
    opacity: 1;
}

/* Feature Badge Number */
.feature-badge-number {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 134, 123, 0.08), rgba(16, 185, 129, 0.08));
    border: 2px solid rgba(0, 134, 123, 0.15);
    border-radius: 50%;
    font-size: 1.3rem;
    font-weight: 800;
    color: #00867b;
    transition: all 0.5s ease;
}

.feature-card-premium:hover .feature-badge-number {
    transform: rotate(360deg) scale(1.15);
    background: linear-gradient(135deg, #00867b, #10b981);
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 24px rgba(0, 134, 123, 0.4);
}

/* Feature Icon Container */
.feature-icon-container {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 32px;
}

.icon-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #00867b, #10b981);
    border-radius: 24px;
    color: white;
    font-size: 2.5rem;
    z-index: 2;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-card-premium:hover .icon-wrapper {
    transform: rotate(-10deg) scale(1.1);
    border-radius: 50%;
    box-shadow: 0 12px 32px rgba(0, 134, 123, 0.4);
}

.icon-glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(0, 134, 123, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.5s ease;
}

.feature-card-premium:hover .icon-glow-effect {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.5);
}

/* Feature Content Modern */
.feature-content-modern {
    position: relative;
    z-index: 2;
    text-align: center;
}

.feature-title-premium {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.3;
    margin-bottom: 16px;
    transition: all 0.4s ease;
}

.feature-card-premium:hover .feature-title-premium {
    color: #00867b;
}

.feature-description-premium {
    font-size: 1.05rem;
    color: #6b7280;
    line-height: 1.8;
    margin-bottom: 24px;
    transition: color 0.4s ease;
}

.feature-card-premium:hover .feature-description-premium {
    color: #4b5563;
}

/* Feature Footer */
.feature-footer {
    position: relative;
    display: flex;
    justify-content: center;
    z-index: 2;
}

.feature-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(0, 134, 123, 0.08);
    color: #00867b;
    border-radius: 50%;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-card-premium:hover .feature-arrow {
    background: linear-gradient(135deg, #00867b, #10b981);
    color: white;
    transform: translateX(8px);
    box-shadow: 0 4px 16px rgba(0, 134, 123, 0.3);
}

/* Card Shimmer Effect */
.card-shimmer {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.5) 50%,
        transparent 70%
    );
    opacity: 0;
    transform: translateX(-100%);
    transition: all 0.8s ease;
}

.feature-card-premium:hover .card-shimmer {
    opacity: 1;
    transform: translateX(100%);
}

/* Fade In Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   レスポンシブデザイン
   ========================================================================== */
@media (max-width: 1024px) {
    .features-section-modern {
        padding: 100px 0;
    }

    .section-title-premium .title-main {
        font-size: 2.8rem;
    }

    .features-showcase-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        max-width: 600px;
        margin: 0 auto;
    }

    .feature-card-premium {
        padding: 40px 32px;
    }

    .feature-card-premium:hover {
        transform: translateY(-8px) scale(1);
    }
}

@media (max-width: 768px) {
    .features-section-modern {
        padding: 80px 0;
    }

    .section-header-premium {
        margin-bottom: 60px;
    }

    .header-badge {
        padding: 10px 24px;
        font-size: 0.85rem;
        gap: 8px;
    }

    .section-title-premium .title-main {
        font-size: 2.2rem;
    }

    .section-description-premium {
        font-size: 1.05rem;
    }

    .features-showcase-grid {
        gap: 24px;
    }

    .feature-card-premium {
        padding: 36px 28px;
    }

    .feature-badge-number {
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
        top: 20px;
        right: 20px;
    }

    .icon-wrapper {
        font-size: 2rem;
    }

    .feature-title-premium {
        font-size: 1.5rem;
    }

    .feature-description-premium {
        font-size: 1rem;
    }

    .feature-arrow {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }

    /* Mobile: アニメーションを簡略化 */
    .bg-gradient-orb {
        animation: none;
    }

    .orb-1 {
        width: 400px;
        height: 400px;
    }

    .orb-2 {
        width: 500px;
        height: 500px;
    }
}

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

    .section-title-premium .title-main {
        font-size: 1.8rem;
    }

    .title-decorator {
        width: 80px;
        height: 3px;
    }

    .section-description-premium {
        font-size: 1rem;
    }

    .feature-card-premium {
        padding: 32px 24px;
    }

    .feature-icon-container {
        width: 80px;
        height: 80px;
        margin-bottom: 24px;
    }

    .icon-wrapper {
        font-size: 1.75rem;
    }

    .feature-title-premium {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }

    .feature-description-premium {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }
}