/* ==========================================================================
   1. サイト全体の基本設定（スクロール復旧）
   ========================================================================== */
html, body {
    margin: 0;
    padding: 0;
    height: auto !important;
    overflow-y: visible !important; /* スクロールを確実に許可 */
    font-family: "M PLUS 1", sans-serif;
    color: #424242;
    background-color: #ffffff;
}

.form-outer-container {
    max-width: 800px;
    margin: 100px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.form-main-title {
    text-align: center;
    font-size: 28px;
    font-weight: normal;
    margin-bottom: 10px;
}

.form-sub-title {
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    color: #ec407a;
    margin-bottom: 10px;
    padding-bottom: 20px;
    position: relative;
}

/* ラベルと入力欄の隙間 */
.form-label {
    display: block;
	line-height: 0.2em;
}
/* エラーメッセージの隙間 */
span.wpcf7-not-valid-tip {
    margin-top: 2px !important; /* 上の隙間をほぼゼロに */
    line-height: 0.2em;
	color: #ec407a;
}
/* 各項目のカタマリの間隔 */
.wpcf7-form-control-wrap {
    display: block;
    margin-bottom: 50px !important; /* ここを大きくして項目間をゆったりさせる */
}

/* 条件分岐のグループ全体の余白も調整 */
.wpcf7cf-active-group {
    margin-bottom: 40px;
}

/* ==========================================================================
   2. 入力項目の可愛くする設定（サンプルサイト流用）
   ========================================================================== */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form select,
.wpcf7-form textarea {
    width: 100% !important;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    background-color: #fdfdfd;
    font-size: 16px;
    box-sizing: border-box;
    margin-bottom: 20px;
}

.required-badge {
    color: #ec407a;
    font-size: 0.8em;
    margin-left: 10px;
    font-weight: bold;
}

.info-box {
    background-color: #fff9fb;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.info-title { 
	color: #ec407a; 
	margin-bottom: 10px;
	font-size: 1.2em;
}

/* ==========================================================================
   3. 送信ボタンの制御（サンプルサイトのロジック）
   ========================================================================== */
/* デフォルト状態（ピンク） */
.wpcf7-submit {
    background-color: #ec407a !important; /* あなたのサイトのピンク */
    color: white !important;
    border: none !important;
    padding: 15px 40px !important;
    border-radius: 30px !important;
    cursor: pointer !important;
    transition: 0.3s !important;
    font-size: 1.0em !important;
    width: 280px !important;
    margin: 0 auto !important;
    display: block !important;
}

/* ★サンプルサイトの核：無効（disabled）な時はグレーにする★ */
.wpcf7-submit:disabled,
.wpcf7-submit[disabled] {
    background-color: #ccc !important; /* サンプルと同じグレー */
    cursor: not-allowed !important;
    opacity: 0.6 !important;
}

/* Hover設定（サンプルサイト同様の変化なし） */
.wpcf7-submit:hover {
    background-color: #ec407a !important;
    opacity: 1 !important;
}

/* ==========================================================================
   4. チェックボックスのデザイン（サンプルサイト完全移植）
   ========================================================================== */
.custom-acceptance {
    text-align: center;
    margin: 40px 0;
}

.wpcf7-acceptance input[type="checkbox"] {
    display: none; /* 本物を消して */
}

.wpcf7-acceptance .wpcf7-list-item-label {
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    display: inline-block;
    line-height: 24px;
}

/* 緑をあなたのピンク(#ec407a)に変更 */
.wpcf7-acceptance .wpcf7-list-item-label:before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border: 2px solid #ec407a; 
    border-radius: 6px;
    transition: all 0.2s;
}

.wpcf7-acceptance .wpcf7-list-item-label:after {
    content: "";
    position: absolute;
    left: 7px;
    top: 50%;
    transform: translateY(-65%) rotate(45deg);
    width: 6px;
    height: 12px;
    border-right: 3px solid #fff;
    border-bottom: 3px solid #fff;
    opacity: 0;
    transition: all 0.2s;
}

.wpcf7-acceptance input[type="checkbox"]:checked + .wpcf7-list-item-label:before {
    background: #ec407a;
    border-color: #ec407a;
}

.wpcf7-acceptance input[type="checkbox"]:checked + .wpcf7-list-item-label:after {
    opacity: 1;
}

/* ==========================================================================
   5. ナビゲーション・レスポンシブ（既存のものを維持）
   ========================================================================== */
@media (max-width: 600px) {
    .floating-nav-container { position: absolute;}
}