/* ============================================================
   SBIみらい年金　フォーム：シンプルライン
   ============================================================ */

/* 1. フォーム全体 */
.contact_form {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    background-color: #fff !important;
}

/* 2. 各セクション */
.form-section {
    padding: 12px 0 !important;
    border-bottom: 1px solid #ddd;
    margin: 0 !important;
}

/* 3. 項目ラベル */
.form-section > div:first-child {
    font-weight: bold;
    color: #242424;
    margin: 0 0 2px 0 !important;
    padding: 0 !important;
    font-size: 14.5px;
}

/* 必須マーク */
.fc-red {
    color: #CC0000 !important;
    font-size: 14px;
    margin-left: 5px;
    font-weight: bold;
}

/* 4. 通常の入力ボックス */
.contact_form .form-inpt {
    width: 100%;
    height: 40px !important;
    padding: 0 10px !important;
    border: 1px solid #ccc !important; /* 通常時は薄いグレー線 */
    border-radius: 4px !important;
    background-color: #fff !important;
    box-sizing: border-box !important;
    font-size: 15px !important;
    margin: 0 !important;
    display: block;
}

/* テキストエリアの調整 */
.contact_form textarea.form-inpt {
    height: 100px !important;
    padding: 10px !important;
}

/* 5. エラー時の赤枠（image_e4f21f.png の再現） */
/* ※重要：通常のスタイルより後に書き、!importantで確実に上書きします */
.contact_form .input-error {
    border: 1px solid #ff0000 !important; /* 細めの赤線 */
    background-color: #f2f2f2 !important; /* 画像のような薄いグレー背景 */
    outline: none !important;
}

/* 6. 下に入れるひっそりとしたエラーメッセージ */
.error-message {
    color: #ff0000;
    font-size: 0.8rem;
    margin-top: 4px;
    margin-bottom: 0;
    display: block;
    text-align: left;
    font-weight: normal; /* ひっそり感を出すため太字にしない */
}

/* 7. 入力中の強調（エラーでない時のみ適用） */
.contact_form .form-inpt:focus:not(.input-error) {
    outline: none !important;
    border: 1.5px solid #CC0000 !important;
}

/* 8. 同意事項（枠もエラー時に赤くする場合） */
.consent-group {
    border: 1px solid #ccc;
    padding: 20px;
    margin: 20px 0;
    background-color: #fff;
}
.consent-group.input-error {
    border: 1px solid #ff0000 !important;
    background-color: #f2f2f2 !important;
}

/* 以下、共通・ボタンパーツ（変更なし） */
.form-sbmt-inpt {
    background: #fff;
    color: #333;
    border: 1px solid #333;
    padding: 12px 60px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: block;
    margin: 30px auto !important;
    border-radius: 4px;
}
.form-sbmt-inpt:disabled {
    background-color: #e0e0e0 !important;
    color: #999 !important;
    border-color: #ccc !important;
    cursor: not-allowed;
    opacity: 0.6;
}
.consent-check-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
}
.consent-check-row input[type="checkbox"] {
    width: 24px;
    height: 24px;
}
/* 見出しH2 */
h2.obelt {
    background-color: #f9743e;
    color: #ffffff;
    padding: 12px 60px;
    margin: 20px auto 40px; 
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    display: block;
    border-radius: 4px;
}

/* スマホ時の調整も忘れずに（100pxだと画面からはみ出るため） */
@media screen and (max-width: 768px) {
    h2.obelt {
        margin: 15px 10px;
        padding: 10px 20px;
        font-size: 16px;
    }
}
/* 見出しH3 */
h3.form-sub-title {
    font-size: 18px; /* ラベルより一回り大きく */
    font-weight: bold;
    color: #333;
    border-left: 4px solid #f15a22;
    padding: 5px 0 5px 15px;
    margin: 40px 0 20px 0;
    background: #f9f9f9;
}


.contact_message {
    margin-top: 30px;    /* オレンジバーとの間隔 */
    margin-bottom: 40px; /* 下の入力エリア（企業名）との間隔 */
    line-height: 1.8;
    text-align: center;
}

/* エラー時の赤枠とグレー背景を強制適用 */
.contact_form input.form-inpt.input-error,
.contact_form textarea.form-inpt.input-error {
    border: 1px solid #d0021b !important;
    background-color: #f5f5f5 !important; /* 画像に近い薄いグレー */
    box-shadow: none !important;
}

/* エラーメッセージを赤字・小さく・ひっそり表示 */
.contact_form .error-message {
    color: #d0021b !important;
    font-size: 11px !important;
    margin-top: 4px !important;
    display: block !important;
    font-weight: normal !important;
}

/* プレースホルダーの色（薄くする） */
.contact_form .form-inpt::placeholder {
    color: #ccc;
    font-size: 14px;
}
/* index.phpの全体エラー表示用 */
.error-box-top {
    border: 2px solid #d0021b;
    background-color: #fff5f5;
    color: #d0021b;
    padding: 15px;
    margin-bottom: 20px;
    font-weight: bold;
    text-align: center;
    border-radius: 4px;
}

/* 囲みは白背景でスッキリと */
.thanks-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 60px 20px;
    text-align: center;
    background: #fff;
}

/* タイトル：下線なども引かず、文字の強さだけで表現 */
.thanks-header h2 {
    font-size: 26px;
    color: #333;
    margin-bottom: 40px;
    position: relative;
}

/* 文章：行間をしっかり空けて読みやすく */
.thanks-body {
    font-size: 16px;
    line-height: 2;
    color: #444;
    margin-bottom: 60px;
}

/* 電話エリア：飾りを無くし、情報の重要度で強弱をつける */
.thanks-contact {
    margin-bottom: 60px;
}

.contact-sub {
    font-size: 14px;
    color: #f36f21; /* ここにロゴのオレンジを少しだけ使用 */
    font-weight: bold;
    margin-bottom: 10px;
}

.contact-tel {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
}
.contact-desc {
    font-size: 14px;
    color: #666;
}

/* スマホ対応：電話番号をタップ可能にするための色調整 */
@media screen and (max-width: 768px) {
    .contact-tel {
        color: #005bac;
        text-decoration: underline;
    }
}

/*同意画面内容インデント*/
.agreement-content dt {
    font-weight: bold;
    margin-top: 1.5em;
    margin-bottom: 0.3em;
}
.agreement-content dd {
    margin-left: 1.5em; /* ここでインデント（字下げ） */
    line-height: 1.6;
}
.agreement-notes {
    margin-top: 2em;
    padding-top: 1em;
    border-top: 1px dashed #ccc; /* 補足説明との区切り線 */
    font-size: 0.95em;
}

/* 同意画面内容--- PC時の設定 --- */
.agreement-tel {
    font-size: 18px;
    color: #333;
    text-decoration: none; /* 下線を消す */
    cursor: default;      /* カーソルを指マークにしない */
    pointer-events: none; /* クリック（タップ）を無効化する */
    display: inline-block; /* 改行させないためにinline系に */
}

/* 同意画面内容--- スマホ時の設定（画面幅 768px 以下の時） --- */
@media screen and (max-width: 768px) {
    .agreement-tel {
        color: #005bac;       /* スマホ時はリンクらしく色を変える（任意） */
        text-decoration: underline; /* スマホ時のみ下線を出す（任意） */
        pointer-events: auto; /* クリック（タップ）を有効化 */
        cursor: pointer;      /* カーソルを指マークに */
        display: inline;
        margin-top: 5px;
    }
}

/* --- PC・共通設定 --- */
.obelt {
    background-color: #f9743e;
    color: #ffffff;
    padding: 12px 20px; /* 左右のパディングは少し抑えめが安全 */
    margin: 10px auto;  /* 左右100px固定をやめ、中央配置に */
    max-width: 1000px;  /* 伸びすぎ防止（フォームの幅に合わせる） */
    width: auto;
    font-size: 18px;    /* 少し大きくすると視認性が上がります */
    font-weight: bold;
    text-align: center;
    border-radius: 4px; /* ほんの少し角を丸めると今風になります */
}

.contact_message {
    margin-top: 30px;
    margin-bottom: 40px;
    line-height: 1.8;
    text-align: center;
}

/* --- スマホ設定（768px以下） --- */
@media screen and (max-width: 768px) {
    .obelt {
        margin: 0;           /* スマホ時は左右の余白をなくして画面幅いっぱいにする */
        padding: 15px 10px;  /* 上下を少し厚くしてタップしやすく */
        font-size: 15px;     /* 文字を少し小さくして一行に収まりやすく */
        border-radius: 0;    /* 画面いっぱいの場合は角丸なしが綺麗 */
        line-height: 1.4;
    }
    
    .contact_message {
        padding: 0 15px;     /* スマホで文字が画面端にくっつかないように */
        font-size: 14px;
        margin-top: 20px;
        margin-bottom: 30px;
    }
}
/* ---------------------------------------- */
/* このページ専用のボタンスタイル同意が押されないと先に進めない */
.this-page-btn.boxbtn-link {
	display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: auto !important;
    min-width: 300px;      /* 画像の比率に合わせて少し長めに */
    padding: 15px 30px;
    border-radius: 4px !important;
    border: 1px solid #ccc;
    background: #f5f5f5;
    color: #999;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s;
}

/* 同意後の青枠スタイル */
.this-page-btn.boxbtn-link.blue {
    color: #4668E6 !important;
    background: #eef2ff !important; /* 薄い青背景 */
    border: 1px solid #4668E6 !important;
}

/* 矢印アイコンの出し分け */
.this-page-btn.boxbtn-link::after {
    background: no-repeat center url("/common/images/icon_arrow-right_g.svg");
}
.this-page-btn.boxbtn-link.blue::after {
    background: no-repeat center url("/common/images/icon_arrow-right.svg") !important;
}
