/*
Theme Name:MONAD child
Theme URI:https://tcd-theme.com/tcd110
Description:WordPressテーマ「MONAD」の子テーマ
Template:monad_tcd110
Author:TCD
Author URI:https://tcd-theme.com/
Version:1.0
*/

/*
  ここから下にCSSを追記してください。
*/
/* フォーム全体のコンテナ */
#wpcf7-f59-o1{background-color:#fffff8;}
/*送信メッセージ*/
#wpcf7-response-output{margin:0;font-size:1.3rem;font-weight:700;}

.form {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: #333;
}

/* 各入力行（定義リスト）のスタイル */
.form dl.cf {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid #eee;
    margin: 0;
/*     padding: 20px 0; */
}

.form dl.cf:last-of-type {
    border-bottom: none;
}

/* 左側：項目名（dt） */
.form dt {
    width: 30%;
    font-weight: bold;
    display: flex;
    align-items: center;
    padding-right: 15px;
    box-sizing: border-box;
}

/* 右側：入力フィールド（dd） */
.form dd {
    width: 70%;
    margin: 0;
    box-sizing: border-box;
}

/* 必須ラベル */
.form .need {
    background: #e53935;
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 8px;
    vertical-align: middle;
}

/* 注意書き（500文字以内など） */
.form .caution {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    font-weight: normal;
}

/* 入力要素の共通スタイル */
.form input[type="text"],
.form input[type="email"],
.form input[type="number"],
.form select,
.form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fafafa;
    box-sizing: border-box;
    font-size: 16px; /* iPhoneでズームされないためのサイズ */
}

/* フォーカス時の色変更 */
.form input:focus,
.form select:focus,
.form textarea:focus {
    outline: none;
    border-color: #00796b; /* メインカラー（お好みで） */
    box-shadow: 0 0 5px rgba(0, 121, 107, 0.2);
}

/* ラジオボタン（性別）の間隔 */
.form .wpcf7-radio .wpcf7-list-item {
    margin-right: 20px;
}

/* 同意チェックボックスのエリア */
.form .acceptance-box {
    margin: 30px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 5px;
}

/* 送信ボタンのボックス */
.form .btnbox {
    text-align: center;
    margin-top: 30px;
}

/* 送信ボタン本体 */
.form .submit {
    background: #00796b;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    padding: 15px 60px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-appearance: none;
}

.form .submit:hover {
    background: #004d40;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* --- レスポンシブ対応（スマホ表示） --- */
@media screen and (max-width: 640px) {
    .form dt, .form dd {
        width: 100%;
    }
    
    .form dt {
/*         padding-bottom: 10px; */
    }
    
    .form .submit {
        width: 100%;
        padding: 15px 0;
    }
}