/* エネクラ専用スタイル */

/* スムーズスクロール */
html {
    scroll-behavior: smooth;
}

/* カスタムアニメーション */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse-soft {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

@keyframes minecraft-glow {
    0%, 100% { box-shadow: 0 0 5px rgba(76, 175, 80, 0.3); }
    50% { box-shadow: 0 0 20px rgba(76, 175, 80, 0.6); }
}

/* Minecraftスタイルのブロック要素 */
.minecraft-block {
    position: relative;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    box-shadow: 
        inset 2px 2px 0 rgba(255,255,255,0.3),
        inset -2px -2px 0 rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.minecraft-block:hover {
    animation: minecraft-glow 2s infinite;
    transform: translateY(-2px);
}

/* ヒーローセクションのアニメーション */
#hero h1 {
    animation: float 3s ease-in-out infinite;
}

#hero p {
    animation: pulse-soft 2s ease-in-out infinite;
}

/* ボタンホバーエフェクト */
.btn-minecraft {
    position: relative;
    overflow: hidden;
    transform: perspective(1px) translateZ(0);
    transition: all 0.3s ease;
}

.btn-minecraft:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-minecraft:hover:before {
    left: 100%;
}

/* カードホバーエフェクト */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* 価格カードの特別効果 */
.pricing-card-recommended {
    position: relative;
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
    animation: pulse-soft 3s ease-in-out infinite;
}

.pricing-card-recommended:before {
    content: '✨';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    animation: float 2s ease-in-out infinite;
}

/* フォームスタイリング */
.form-input {
    transition: all 0.3s ease;
    border: 2px solid #e5e5e5;
}

.form-input:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
    transform: scale(1.02);
}

/* レスポンシブ対応の追加スタイル */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .feature-card {
        margin-bottom: 1rem;
    }
    
    .pricing-card {
        margin-bottom: 2rem;
    }
}

/* ローディングアニメーション */
.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4CAF50;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* スクロール時のナビゲーション効果 */
.nav-scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* アイコンアニメーション */
.icon-bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% { transform: translate3d(0,0,0); }
    40%, 43% { transform: translate3d(0,-15px,0); }
    70% { transform: translate3d(0,-7px,0); }
    90% { transform: translate3d(0,-2px,0); }
}

/* セクション間のスムーズトランジション */
section {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

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

/* 成功メッセージスタイル */
.success-message {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid;
    margin-bottom: 16px;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* モバイルメニュー */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 50;
}

.mobile-menu.active {
    display: block;
    animation: slideDown 0.3s ease;
}

/* ユーティリティクラス */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.gradient-text {
    background: linear-gradient(135deg, #4CAF50, #2196F3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 印刷スタイル */
@media print {
    .no-print {
        display: none !important;
    }
    
    * {
        color: black !important;
        background: white !important;
    }
}