/* カスタムCSS */

/* アニメーション定義 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* アニメーションクラス */
.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-fade-in-delay {
    animation: fadeInDelay 1s ease-out 0.3s both;
}

.animate-fade-in-delay-2 {
    animation: fadeInDelay2 1s ease-out 0.6s both;
}

/* ヒーローセクションの波形背景 */
.wave-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='%23ffffff'%3E%3C/path%3E%3C/svg%3E") no-repeat;
    background-size: cover;
}

/* 問題アイコンのスタイル */
.problem-icon {
    font-size: 3rem;
    line-height: 1;
}

/* 特徴カードのホバー効果 */
.feature-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-card:hover {
    border-color: #7CB342;
    transform: translateY(-5px);
}

/* 特徴アイコンのスタイル */
.feature-icon {
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon svg {
    transform: scale(1.1);
}

/* ベネフィットアイコンサークル */
.benefit-icon-circle {
    min-width: 48px;
    min-height: 48px;
}

/* ベネフィットイラストレーション */
.benefit-illustration {
    box-shadow: 0 20px 40px rgba(124, 179, 66, 0.3);
}

/* お客様の声カード */
.testimonial-card {
    transition: all 0.3s ease;
    border-left: 4px solid #7CB342;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* お客様の声アバター */
.testimonial-avatar {
    min-width: 48px;
    min-height: 48px;
}

/* フォームスタイル */
#contact-form input:focus,
#contact-form select:focus,
#contact-form textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(124, 179, 66, 0.1);
}

/* ボタンホバー効果 */
button, .btn {
    transition: all 0.3s ease;
}

button:hover, .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

#mobile-menu-btn, #mobile-menu-btn:focus {
    transform: initial;
    box-shadow: initial;
}


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

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section p {
        font-size: 1.125rem;
    }
    
    .wave-bottom {
        height: 40px;
    }
    
    .problem-icon {
        font-size: 2.5rem;
    }
    
    .benefit-item {
        flex-direction: column;
        text-align: center;
    }
    
    .benefit-item .benefit-icon-circle {
        margin: 0 auto 1rem auto;
    }
}

/* ローディングアニメーション */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 成功メッセージ */
.success-message {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
}

/* エラーメッセージ */
.error-message {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
}

/* ナビゲーションのアクティブ状態 */
nav a.active {
    color: #7CB342;
    font-weight: 600;
}

/* セクション間のスペーシング調整 */
section {
    scroll-margin-top: 80px;
}

/* カードの影効果 */
.card-shadow {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card-shadow:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* グラデーション背景のバリエーション */
.gradient-green {
    background: linear-gradient(135deg, #7CB342 0%, #8BC34A 100%);
}

.gradient-green-light {
    background: linear-gradient(135deg, #8BC34A 0%, #AED581 100%);
}

/* アクセシビリティ対応 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* フォーカス表示の改善 */
button:focus,
input:focus,
select:focus,
textarea:focus,
a:focus {
    outline: 2px solid #7CB342;
    outline-offset: 2px;
}

/* 印刷スタイル */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
    
    .hero-section {
        background: none !important;
        color: black !important;
    }
}