/* 
 * 新しいAdvantageセクション - シンプルで分かりやすいデザイン
 * kiseeeenの強みを明確に訴求
 */

/* メインセクション - z-index強化 */
.advantage-section {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
    z-index: 10;
}

/* セクション区切り線 - 他のセクションと統一 */
.advantage-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(0, 255, 255, 0.3) 20%, 
        rgba(0, 255, 255, 0.6) 50%, 
        rgba(0, 255, 255, 0.3) 80%, 
        transparent 100%
    );
}

.advantage-section .content {
    position: relative;
    z-index: 15;
}

/* セクションタイトル - グローバルスタイルを使用 */
.advantage-section h2 {
    /* 他のセクションと同じスタイルを継承 */
    position: relative;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* 3つの強みグリッド - リッチアニメーション */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 50px;
    max-width: 1400px;
    margin: 0 auto 80px;
    padding: 0 20px;
    perspective: 1000px;
}

.advantage-item {
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.3) 0%, 
        rgba(20, 20, 40, 0.3) 100%
    );
    border: 2px solid transparent;
    border-radius: 20px;
    padding: 50px 35px;
    text-align: center;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    cursor: pointer;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(0, 255, 255, 0.1);
}

/* シンプルな背景エフェクト */
.advantage-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(0, 255, 255, 0.03) 0%, 
        rgba(0, 255, 128, 0.02) 50%, 
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

.advantage-item:hover {
    transform: translateY(-15px) rotateX(5deg) rotateY(5deg) scale(1.02);
    box-shadow: 
        0 30px 60px rgba(0, 255, 255, 0.2),
        0 0 50px rgba(0, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 255, 255, 0.5);
}

.advantage-item:hover::before {
    opacity: 1;
}

/* カード内コンテンツのアニメーション - 控えめに */
.advantage-item:hover .advantage-icon {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.advantage-item:hover .advantage-title {
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
}

.advantage-item:hover .advantage-benefits li::before {
    color: #00ff80;
    transform: scale(1.1);
}

/* アイコンスタイル（横並び用） */
.advantage-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, 
        rgba(0, 255, 255, 0.1), 
        rgba(0, 255, 128, 0.1)
    );
    border: 2px solid rgba(0, 255, 255, 0.3);
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
}

.advantage-icon svg {
    width: 33px;
    height: 33px;
    color: #00ffff;
    transition: all 0.4s ease;
    z-index: 2;
}

/* アイコンとタイトルの横並びレイアウト */
.advantage-title-container {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.advantage-icon {
    width: 66px;
    height: 66px;
    margin-right: 20px;
    margin-bottom: 0;
    flex-shrink: 0;
    margin-top: 5px;
}

/* タイトル部分のコンテナ */
.advantage-title-text {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* 英語タイトル */
.advantage-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 5px;
    font-family: var(--orbitron);
    position: relative;
    z-index: 2;
    transition: all 0.6s ease;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    line-height: 1.2;
}

/* 日本語サブタイトル（英語タイトル直下） */
.advantage-subtitle {
    font-size: 0.85rem;
    color: rgba(0, 255, 255, 0.8);
    margin-bottom: 0;
    font-weight: 500;
    position: relative;
    z-index: 2;
    transition: all 0.6s ease;
}

/* 説明文のスタイル調整 */

.advantage-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
    transition: all 0.6s ease;
}

/* ホバー時のテキストアニメーション */
.advantage-item:hover .advantage-description {
    color: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
}

.advantage-item:hover .advantage-subtitle {
    color: #00ff80;
    transform: translateY(-2px);
}

/* 利点リスト - アニメーション強化 */
.advantage-benefits {
    list-style: none;
    text-align: left;
    margin: 25px 0;
    position: relative;
    z-index: 2;
    padding: 0;
}

.advantage-benefits li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.4s ease;
    transform: translateX(0);
}

.advantage-benefits li::before {
    content: '✓';
    color: #00ffff;
    font-weight: bold;
    margin-right: 12px;
    font-size: 1.2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.advantage-item:hover .advantage-benefits li {
    color: rgba(255, 255, 255, 0.95);
    transform: translateX(5px);
}

.advantage-item:hover .advantage-benefits li::before {
    background: rgba(0, 255, 128, 0.2);
    border-color: #00ff80;
    box-shadow: 0 0 15px rgba(0, 255, 128, 0.3);
}

/* 段階的な遅延アニメーション */
.advantage-benefits li:nth-child(1) { transition-delay: 0.1s; }
.advantage-benefits li:nth-child(2) { transition-delay: 0.2s; }
.advantage-benefits li:nth-child(3) { transition-delay: 0.3s; }

/* スクロール時の出現アニメーション */
.advantage-item {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    animation: cardEntrance 0.8s ease-out forwards;
}

.advantage-item:nth-child(1) { animation-delay: 0.2s; }
.advantage-item:nth-child(2) { animation-delay: 0.4s; }
.advantage-item:nth-child(3) { animation-delay: 0.6s; }

@keyframes cardEntrance {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 追加のリッチエフェクト */
.advantage-item:nth-child(1):hover {
    transform: translateY(-15px) rotateX(5deg) rotateY(-5deg) scale(1.02);
}

.advantage-item:nth-child(2):hover {
    transform: translateY(-15px) rotateX(-2deg) rotateY(2deg) scale(1.02);
}

.advantage-item:nth-child(3):hover {
    transform: translateY(-15px) rotateX(5deg) rotateY(5deg) scale(1.02);
}

/* 比較セクション */
.comparison-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.comparison-section h3 {
    text-align: center;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* 比較テーブル */
.comparison-table {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

/* PC表示時はmobile-comparison-tableを非表示 */
.mobile-comparison-table {
    display: none;
}

/* PC専用セル表示 */
.pc-only {
    display: flex;
}

.comparison-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.comparison-row:last-child {
    border-bottom: none;
}

.comparison-header {
    background: rgba(0, 255, 255, 0.1);
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.comparison-cell {
    padding: 20px 15px;
    text-align: center;
    border-right: 1px solid rgba(0, 255, 255, 0.2);
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
}

.comparison-cell:last-child {
    border-right: none;
}

.comparison-header .comparison-cell {
    font-weight: 600;
    color: #00ffff;
    font-size: 1.1rem;
}

.kiseeeen-cell {
    background: rgba(0, 255, 255, 0.05);
    color: #ffffff;
    font-weight: 500;
}

.other-cell {
    color: rgba(255, 255, 255, 0.7);
}

.comparison-cell .icon {
    font-size: 1.2rem;
    margin-right: 5px;
}

/* 項目名列のスタイリング */
.item-cell {
    background: rgba(0, 255, 255, 0.05);
    color: #00ffff;
    font-weight: 600;
    border-right: 2px solid rgba(0, 255, 255, 0.3);
}

/* kiseeeen ブランド名スタイリング - メインビジュアルと統一 */
.kiseeeen-brand {
    font-family: 'century gothic', sans-serif;
    font-weight: normal;
    letter-spacing: normal;
    text-transform: lowercase;
    color: #ffffff;
    font-size: 1.8em;
}

/* モバイル時のkiseeeenブランドスタイル */
@media (max-width: 768px) {
    .kiseeeen-brand,
    .kiseeeen-brand-mobile {
        font-family: 'century gothic', sans-serif !important;
        font-weight: normal !important;
        letter-spacing: normal !important;
        text-transform: lowercase !important;
        color: #ffffff !important;
        font-size: 1.2em !important;
    }
}

.good { color: #00ff80; }
.bad { color: #ff4757; }
.okay { color: #ffa502; }

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .advantage-section {
        padding: 40px 0;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 60px;
        max-width: 100%;
        padding: 0 10px;
    }
    
    .advantage-item {
        padding: 35px 25px;
        margin: 0 auto;
        max-width: 350px;
        border-radius: 15px;
        background: linear-gradient(135deg, 
            rgba(0, 0, 0, 0.7) 0%, 
            rgba(0, 20, 40, 0.6) 100%
        );
        box-shadow: 
            0 8px 32px rgba(0, 0, 0, 0.4),
            0 0 0 1px rgba(0, 255, 255, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(20px);
    }
    
    .advantage-item:hover {
        transform: translateY(-8px) scale(1.02);
        box-shadow: 
            0 16px 48px rgba(0, 255, 255, 0.25),
            0 0 0 1px rgba(0, 255, 255, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    
    /* アイコンとタイトルを横並びに配置 - モバイル版 */
    .advantage-title-container {
        display: flex;
        align-items: flex-start;
        margin-bottom: 15px;
    }
    
    .advantage-icon {
        width: 48px;
        height: 48px;
        margin-right: 15px;
        margin-bottom: 0;
        margin-top: 3px;
        flex-shrink: 0;
    }
    
    .advantage-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .advantage-title-text {
        display: flex;
        flex-direction: column;
        flex: 1;
    }
    
    .advantage-title {
        font-size: 1rem;
        margin-bottom: 3px;
        letter-spacing: 0.3px;
        line-height: 1.2;
    }
    
    .advantage-subtitle {
        font-size: 0.75rem;
        margin-bottom: 18px;
        opacity: 0.9;
    }
    
    .advantage-description {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 20px;
        opacity: 0.85;
    }
    
    .advantage-benefits {
        margin-top: 20px;
    }
    
    .advantage-benefits li {
        font-size: 0.85rem;
        margin-bottom: 8px;
        line-height: 1.5;
    }
    
    .advantage-benefits li::before {
        width: 16px;
        height: 16px;
        font-size: 0.9rem;
        margin-right: 8px;
        border-radius: 50%;
        background: linear-gradient(135deg, rgba(0, 255, 255, 0.2), rgba(0, 255, 128, 0.15));
        backdrop-filter: blur(5px);
    }
    
    /* モバイル専用のマイクロインタラクション */
    .advantage-item:nth-child(1) {
        animation-delay: 0.1s;
    }
    
    .advantage-item:nth-child(2) {
        animation-delay: 0.3s;
    }
    
    .advantage-item:nth-child(3) {
        animation-delay: 0.5s;
    }
    
    /* カード内テキストの階層的フェードイン */
    .advantage-item .advantage-title,
    .advantage-item .advantage-subtitle,
    .advantage-item .advantage-description,
    .advantage-item .advantage-benefits {
        opacity: 0;
        transform: translateY(10px);
        animation: mobileTextReveal 0.8s ease-out forwards;
    }
    
    .advantage-item .advantage-title { animation-delay: 0.2s; }
    .advantage-item .advantage-subtitle { animation-delay: 0.4s; }
    .advantage-item .advantage-description { animation-delay: 0.6s; }
    .advantage-item .advantage-benefits { animation-delay: 0.8s; }
    
    @keyframes mobileTextReveal {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    /* プルトップ効果のための境界線 */
    .advantage-item::after {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 3px;
        background: linear-gradient(90deg, 
            transparent 0%, 
            rgba(0, 255, 255, 0.6) 20%, 
            rgba(0, 255, 255, 0.8) 50%, 
            rgba(0, 255, 255, 0.6) 80%, 
            transparent 100%);
        border-radius: 0 0 3px 3px;
        opacity: 0.7;
    }
    
    .comparison-section h3 {
        font-size: 1.2rem;
        padding: 0 15px;
    }
    
    /* モバイル用テーブルレイアウト - 各項目ごとに個別テーブル表示 */
    .comparison-table {
        display: block;
        max-width: 100%;
        margin: 0 15px;
        background: none;
        border: none;
    }
    
    .comparison-header {
        display: none;
    }
    
    .comparison-row {
        display: block;
        margin-bottom: 25px;
        background: rgba(0, 0, 0, 0.9);
        border-radius: 10px;
        border: 1px solid rgba(0, 255, 255, 0.3);
        overflow: hidden;
    }
    
    /* 項目名ヘッダー */
    .comparison-row .comparison-cell:first-child {
        display: block;
        background: rgba(0, 255, 255, 0.1);
        padding: 15px 20px;
        font-weight: 600;
        color: #00ffff;
        text-align: center;
        border-bottom: 1px solid rgba(0, 255, 255, 0.3);
        margin: 0;
        border-right: none;
    }
    
    /* テーブル形式の比較部分 */
    .mobile-comparison-table {
        display: grid;
        grid-template-columns: 1fr 1fr;
        border-collapse: collapse;
    }
    
    .mobile-comparison-table .comparison-cell {
        padding: 20px 15px;
        border-right: 1px solid rgba(0, 255, 255, 0.2);
        text-align: center;
        min-height: 80px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    .mobile-comparison-table .comparison-cell:last-child {
        border-right: none;
    }
    
    /* PC専用セルを非表示 */
    .pc-only {
        display: none !important;
    }
    
    /* モバイル表示時のA社スタイル */
    .mobile-comparison-table .comparison-cell:last-child div:first-child {
        font-weight: 400;
        color: rgba(255, 255, 255, 0.9);
        margin-bottom: 5px;
    }
    
    .mobile-kiseeeen {
        font-family: 'century gothic', sans-serif;
        font-weight: normal;
        text-transform: lowercase;
        color: #ffffff;
    }
    
    .mobile-kiseeeen .e1 { color: #32CD32; }
    .mobile-kiseeeen .e2 { color: #00BFFF; }
    .mobile-kiseeeen .e3 { color: #800080; }
    .mobile-kiseeeen .e4 { color: #FF0000; }
    
    .comparison-cell:nth-child(3)::before {
        content: "他社: ";
        font-weight: 600;
        color: #00ffff;
        display: inline-block;
        min-width: 60px;
    }
    
}

@media (max-width: 480px) {
    .advantage-item {
        padding: 25px 20px;
    }
    
    .advantage-item h4 {
        font-size: 1.4rem;
    }
    
    .comparison-cell {
        padding: 15px 12px;
    }
}

/* アニメーション - 修正版 */
.advantage-item {
    opacity: 1;
    transform: translateY(0);
}

.comparison-table {
    opacity: 1;
    transform: translateY(0);
}

/* スクロールベースアニメーション（オプション） */
.scroll-animate.advantage-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.scroll-animate.advantage-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.scroll-animate.comparison-table {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.scroll-animate.comparison-table.animate {
    opacity: 1;
    transform: translateY(0);
}