/* index.css */

/* 全体の背景 */
body {
    background: linear-gradient(135deg, #f0f4f8, #d9e9f6);
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
}

/* メインコンテンツ */
main {
    padding: 20px 40px;
}

/* セクションスタイル */
section {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    text-align: center;
    opacity: 0; /* アニメーション開始時は非表示 */
    transform: translateY(50px); /* 下から出てくる効果 */
    transition: opacity 0.6s ease, transform 0.6s ease;
}

section.visible {
    opacity: 1; /* 表示状態 */
    transform: translateY(0); /* 元の位置に戻る */
}

/* セクション内の見出し */
section h2 {
    font-size: 26px;
    color: #0078d7;
    margin-bottom: 15px;
    font-weight: bold;
}

section p {
    font-size: 18px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

/* ボタンスタイル */
.start-btn {
    background: #0078d7;
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 30px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.start-btn:hover {
    background: #005bb5;
    transform: scale(1.05); /* 少し大きくなる */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* スクロール時のアニメーションを適用 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* JavaScriptでクラス付与する要素のアニメーションを定義 */
section.visible {
    animation: fadeInUp 0.6s ease;
}
