/*
 * lp-common.css
 * LP固定ページ共通スタイル
 * 対象: page-swimming.php / page-afterschool.php / page-taiiku.php
 * --------------------------------------------------------
 * このファイルには以下の共通スタイルが含まれます:
 *  - Snow Monkey Forms ボタン配置・戻るボタン
 *  - フォーム送信中ローディングオーバーレイ
 *  - GSAP用 .fade-in クラス
 */

/* =========================================
   Snow Monkey Forms: ボタン並び順・間隔
   ========================================= */
.smf-action {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.smf-action .smf-button-control {
    margin: 0;
}

/* 戻るボタンをグレーに */
.smf-button-control__control[data-action="back"] {
    background: #6c757d;
    color: white;
}

.smf-button-control__control[data-action="back"]:hover {
    background: #5a6268;
}

/* =========================================
   フォーム送信中ローディングオーバーレイ
   ========================================= */
.form-loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.form-loading-overlay.active {
    display: flex;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #ffc107; /* ページ個別色はPHP側で上書き可 */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-content p {
    margin-top: 20px;
    font-size: 1.2rem;
    font-weight: bold;
}

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

/* =========================================
   GSAP スクロールアニメーション用
   ========================================= */
.fade-in {
    opacity: 1;
}
