/* フォーム全体コンテナ */
.content_page_small {
    max-width: 680px;
    margin: 150px auto 100px auto;
    padding: 30px;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    box-sizing: border-box;
}

/* 各項目ブロック */
.content_page_small form > div {
    margin-bottom: 24px;
}

/* ラベル表示 */
.content_page_small label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333333;
    font-size: 15px;
    text-align: left;
}
/* 確認画面のテキスト表示（pタグ） */
.content_page_small form > div p {
    margin: 0;
    padding: 12px 16px;
    width: 100%;
    min-height: 48px; /* 高さの崩れを防止 */
    background-color: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 15px;
    color: #2d3748;
    line-height: 1.6;
    text-align: left; /* 左詰めに固定 */
    box-sizing: border-box;
    word-break: break-word; /* 長い英数字の折り返し */
}

/* レスポンシブ対応（スマホ画面） */
@media (max-width: 768px) {
    .content_page_small form > div {
        margin-bottom: 18px;
    }

    .content_page_small form > div p {
        padding: 10px 14px;
        font-size: 14px;
        min-height: 44px;
    }
}

/* 入力フィールド共通（input, select, textarea） */
.content_page_small input[type="text"],
.content_page_small input[type="email"],
.content_page_small input[type="tel"],
.content_page_small select,
.content_page_small textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    color: #333333;
    background-color: #f9f9f9;
    border: 1px solid #cccccc;
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color 0.2s, background-color 0.2s;
}

/* フォーカス時の強調表示 */
.content_page_small input:focus,
.content_page_small select:focus,
.content_page_small textarea:focus {
    outline: none;
    border-color: #8c7355; /* 上品なブラウン（サイトイメージに合わせて調整可） */
    background-color: #ffffff;
}

/* テキストエリアの高さとリサイズ制限 */
.content_page_small textarea {
    resize: vertical;
    min-height: 120px;
}

form > div.btn-area{
	margin: 0 auto 24px auto;
}
/* 確認画面へボタン */
.content_page_small button[type="submit"] {
    display: block;
    width: 100%;
    max-width: 280px;
    margin: 0;
    padding: 14px 20px;
    background-color: #333333;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

/* ボタンホバー時 */
.content_page_small button[type="submit"]:hover {
    background-color: #555555;
}

/*必須*/
.badge-required {
    display: inline-block;
    background-color: #e53e3e;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: middle;
    letter-spacing: 0.02em;
}

/* スマホ対応（レスポンシブ） */
@media (max-width: 768px) {
    .content_page_small {
        padding: 20px 16px;
        margin: 20px auto;
    }
}
/* =========================================
   確認画面 (front.contact.confirm) 用 CSS
   ========================================= */

/* 確認画面の全体コンテナ */
.content_page_small.confirm_page {
    max-width: 680px;
    margin: 40px auto;
    padding: 30px;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    box-sizing: border-box;
}

/* 各項目ブロック（label + input/p）の間隔調整 */
.content_page_small.confirm_page > div {
    margin-bottom: 20px; /* 上下項目との間隔。ここを調整 */
}

/* ラベル表示 */
.content_page_small.confirm_page label {
    display: block;
    margin-bottom: 6px; /* ラベルと入力欄・テキストの間隔 */
    font-weight: 600;
    color: #333333;
    font-size: 14px;
    line-height: 1.4;
}

/* 入力フィールドの高さ（共通） */
.content_page_small.confirm_page input[type="text"],
.content_page_small.confirm_page input[type="email"],
.content_page_small.confirm_page input[type="tel"],
.content_page_small.confirm_page select {
    display: block;
    width: 100%;
    height: 44px; /* 高さを固定（パディングを含む）。ここを調整 */
    padding: 0 14px; /* パディングで上下中央に配置 */
    font-size: 14px;
    line-height: 44px; /* テキストの垂直中央 */
    color: #333333;
    background-color: #f9f9f9;
    border: 1px solid #cccccc;
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color 0.2s, background-color 0.2s;
}

/* テキストエリアの高さとパディング調整 */
.content_page_small.confirm_page textarea {
    display: block;
    width: 100%;
    padding: 12px 14px; /* パディングで高さを出す */
    min-height: 150px; /* 最小の高さ。ここを調整 */
    font-size: 14px;
    color: #333333;
    background-color: #f9f9f9;
    border: 1px solid #cccccc;
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color 0.2s, background-color 0.2s;
}

/* 確認画面でのテキスト表示用 */
.content_page_small.confirm_page p {
    display: block;
    width: 100%;
    padding: 12px 14px; /* パディングで高さを出す */
    min-height: 44px; /* 最小の高さ。inputに合わせる */
    background-color: #f9f9f9;
    border: 1px solid #cccccc;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.4;
    color: #333333;
    box-sizing: border-box;
    margin: 0; /* マージンをリセット */
}

/* 送信・戻るボタン */
.content_page_small.confirm_page button[type="submit"],
.content_page_small.confirm_page input[type="submit"],
.content_page_small.confirm_page a.btn-back {
    display: block;
    width: 100%;
    max-width: 280px;
    margin: 32px auto 0; /* ボタンの上下余白 */
    height: 48px; /* ボタンの高さ。ここを調整 */
    line-height: 48px; /* テキストの垂直中央 */
    background-color: #333333;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.1s;
    box-sizing: border-box;
}

/* ボタンホバー時 */
.content_page_small.confirm_page button[type="submit"]:hover,
.content_page_small.confirm_page input[type="submit"]:hover,
.content_page_small.confirm_page a.btn-back:hover {
    background-color: #555555;
}

/* =========================================
   レスポンシブ対応
   ========================================= */

/* スマホ対応（レスポンシブ） */
@media (max-width: 768px) {
    .content_page_small.confirm_page {
        padding: 20px 16px;
        margin: 20px auto;
    }

    /* 各入力項目の高さ微調整 */
    .content_page_small.confirm_page input[type="text"],
    .content_page_small.confirm_page input[type="email"],
    .content_page_small.confirm_page input[type="tel"],
    .content_page_small.confirm_page select {
        height: 40px; /* 少し低くする */
        line-height: 40px;
    }

    /* 確認画面でのテキスト表示用 */
    .content_page_small.confirm_page p {
        padding: 10px 12px;
        min-height: 40px; /* 少し低くする */
    }

    /* ボタンサイズ微調整 */
    .content_page_small.confirm_page button[type="submit"],
    .content_page_small.confirm_page input[type="submit"],
    .content_page_small.confirm_page a.btn-back {
        max-width: 100%; /* スマホでは幅いっぱい */
        height: 44px;
        line-height: 44px;
    }
}

/* ボタンを囲むエリア */
.btn-area {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
}

/* 共通ボタン基本スタイル */
.btn-area .btn-submit,
.btn-area .btn-back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 200px;
    height: 48px;
    font-size: 15px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

/* 送信ボタン（黒/ダークグレー） */
.btn-area .btn-submit {
    background-color: #333333;
    color: #ffffff;
    border: none;
}

.btn-area .btn-submit:hover {
    background-color: #555555;
}

/* 戻るボタン（グレー枠線） */
.btn-area .btn-back {
    background-color: #ffffff;
    color: #666666;
    border: 1px solid #cccccc;
}

.btn-area .btn-back:hover {
    background-color: #f5f5f5;
    color: #333333;
}

/* スマホ対応（縦並びにする場合） */
@media (max-width: 768px) {
    .btn-area {
        flex-direction: column-reverse; /* 修正するボタンを下に配置したい場合は列を反転 */
        gap: 12px;
    }

    .btn-area .btn-submit,
    .btn-area .btn-back {
        max-width: 100%;
        height: 44px;
    }
}
