/* ===============================
   COMPONENTS STYLES - Buttons, Cards & Basic Animations
   コンポーネント - ボタン・カード・基本アニメーション
   =============================== */

/* ========== 基本アニメーション ========== */

/* 🔧🔧🔧 【基本浮遊アニメーション】他要素用 */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* 🚨🚨🚨 【feature-card専用】scaleを保持するfloat */
@keyframes floatCard {
    0%, 100% {
        transform: translateY(0) scale(1);  /* 🚨 scaleを維持 */
    }
    50% {
        transform: translateY(-10px) scale(1);  /* 🚨 scaleを維持 */
    }
}

/* 文字の弾けるアニメーション */
@keyframes bounceChar {
    0%, 100% {
        transform: scale(1) rotate(0deg) translateY(0);
    }
    10% {
        transform: scale(1.8) rotate(-8deg) translateY(-20px);
    }
    20% {
        transform: scale(1.5) rotate(5deg) translateY(-40px);
    }
    30% {
        transform: scale(1.9) rotate(-10deg) translateY(-60px);
    }
    40% {
        transform: scale(1.6) rotate(8deg) translateY(-80px);
    }
    50% {
        transform: scale(2.0) rotate(-12deg) translateY(-100px);
    }
    60% {
        transform: scale(1.7) rotate(6deg) translateY(-70px);
    }
    70% {
        transform: scale(1.4) rotate(-4deg) translateY(-40px);
    }
    80% {
        transform: scale(1.2) rotate(2deg) translateY(-20px);
    }
    90% {
        transform: scale(1.1) rotate(-1deg) translateY(-5px);
    }
}

/* フェードインアップアニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== ボタンコンポーネント ========== */

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    box-shadow: 0 4px 15px rgba(0,123,255,0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,123,255,0.6);
}

.btn-secondary {
    background: transparent;
    color: #007bff;
    border: 2px solid #007bff;
}

.btn-secondary:hover {
    background: #3498db;
    transform: translateY(-2px);
}

/* ========== カードコンポーネント ========== */

/* 🚨🚨🚨🚨🚨 【重要】カクつき解決済み設定 - 変更禁止！🚨🚨🚨🚨🚨 */
/* ⚠️ この設定はカクつき問題を解決した最終安定版です ⚠️ */
/* ⚠️ transition/transform/animationの競合を完全回避済み ⚠️ */
/* ⚠️ 修正時は必ずカクつきテストを実施してください ⚠️ */
.feature-card {
    display: flex;
    align-items: center;
    padding: 15px !important;          /* 🔧 レスポンシブ競合防止 */
    background: rgba(255, 255, 255, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    backdrop-filter: blur(5px);
    /* 🚨🚨🚨 【確定設定】opacity変化のみ - transformはfloatCardアニメーション専用 */
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    opacity: 0;
    /* 🚨🚨🚨 【確定設定】transform競合排除 - CSS側では位置制御しない */
    /* transform: 削除済み - floatCardアニメーションのみで制御 */
    /* will-change: 削除済み - 不要な最適化を排除 */
}

/* 🚨🚨🚨 【確定設定】visible状態 - シンプル構成でカクつき回避 */
.feature-card.visible {
    opacity: 1 !important;
    /* 🚨🚨🚨 【確定設定】transform削除 - floatCardアニメーションのみで位置制御 */
    /* transform: 削除済み - 競合完全回避 */
    /* animation: JavaScript側で動的設定（タイミング制御のため） */
}

/* 🚨🚨🚨 【慎重復活】hover効果 - floatアニメーション競合回避設定付き */
.feature-card:hover {
    /* 🚨 transform競合回避：アニメーションとは独立した軽微なeffect */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12) !important;
    border-color: rgba(78, 205, 196, 0.4) !important;
    /* 🚨 アニメーション制御：hover中はfloatアニメーションを一時停止 */
    animation-play-state: paused !important;
    /* 🚨 transform使用禁止：floatCardアニメーションと競合回避のため削除 */
    /* transform: translateY(-3px) - 削除済み（競合回避） */
}

.feature-icon {
    font-size: 2.2rem;      /* 🔧 2.5rem → 2.2rem アイコンサイズを縮小 */
    margin-right: 15px;     /* 🔧 20px → 15px 右マージンも縮小 */
    flex-shrink: 0;
}

/* 🚨🚨🚨 【高さ統一 + 縮小】全セクションのfeature-cardを低く統一 🚨🚨🚨 */
.feature-content h4 {
    font-size: 1.1rem;      /* 🔧 1.2rem → 1.1rem タイトル文字サイズを縮小 */
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 6px 0;      /* 🔧 8px → 6px 全セクション統一でさらに高さを低く */
    line-height: 1.2;
    /* ⚠️ このmargin値がfeature-cardの高さに影響します - 変更時は全セクション確認必須 ⚠️ */
}

.feature-content p {
    font-size: 1rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* コンサルテーションメソッドカード */
.consultation-method-card {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    padding: 25px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    overflow: hidden;
}

.consultation-method-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--method-color);
    border-radius: 20px 20px 0 0;
}

.consultation-method-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--method-color);
}

/* 各問い合わせ方法の色分け */
.consultation-method-card.email-contact {
    --method-color: linear-gradient(90deg, #3498db, #2980b9);
}

.consultation-method-card.meeting-contact {
    --method-color: linear-gradient(90deg, #9b59b6, #8e44ad);
}

.consultation-method-card .method-icon {
    font-size: 2.8rem;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.consultation-method-card .method-content {
    flex: 1;
}

.consultation-method-card .method-content h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 8px 0;
}

.consultation-method-card .method-content p {
    font-size: 0.9rem;
    color: #666;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.consultation-method-card .method-action {
    font-size: 1rem;
    font-weight: 600;
    color: #4ecdc4;
    background: rgba(78, 205, 196, 0.1);
    padding: 8px 15px;
    border-radius: 12px;
    display: inline-block;
    border: 1px solid rgba(78, 205, 196, 0.2);
}

.consultation-method-card .method-arrow {
    display: none;
}

.consultation-method-card:hover .method-arrow {
    display: none;
}

.consultation-method-card:hover .method-action {
    background: rgba(78, 205, 196, 0.2);
    border-color: rgba(78, 205, 196, 0.4);
} 