/* ======================================================
 * 親孝行体験談 投稿フォーム (form-style.css)
 * ====================================================== */

/* フォーム全体 */
.user-post-form {
    max-width: 600px;
    margin: 40px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
}

/* 見出し */
.user-post-form h2 {
    text-align: center;
    color: #333;
    margin-bottom: 25px;
    border-bottom: 2px solid #ccc;
    padding-bottom: 10px;
}

/* ラベル (必須マーク含む) */
.user-post-form label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}
/* 必須マークのスタイル */
.user-post-form label.required::after {
    content: " *";
    color: #cc3333;
    font-size: 1em;
    font-weight: bold;
    margin-left: 4px;
}

/* テキスト入力フィールドとテキストエリア */
.user-post-form input[type="text"],
.user-post-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* paddingを含めて幅を100%にする */
    font-size: 1em;
    transition: border-color 0.3s;
}
.user-post-form input[type="text"]:focus,
.user-post-form textarea:focus {
    border-color: #0073aa;
    outline: none;
}
.user-post-form textarea {
    min-height: 150px;
    resize: vertical;
}

/* チェックボックスとラジオボタンのグループ */
.checkbox-group,
.taxonomy-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    padding: 10px 0;
    border: 1px solid #eee;
    background-color: #fff;
    border-radius: 4px;
    padding: 15px;
}
.checkbox-group label,
.taxonomy-group label {
    display: inline-flex;
    align-items: center;
    font-weight: normal;
    margin: 0;
    cursor: pointer;
}
.checkbox-group input[type="checkbox"],
.taxonomy-group input[type="radio"] {
    margin-right: 5px;
    transform: scale(1.1);
}

/* 注意事項ボックス */
.notice-box {
    border: 2px solid #f0ad4e;
    background-color: #fff7e6;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 6px;
}
.notice-box h3 {
    margin-top: 0;
    color: #c08000;
}
.notice-box ul {
    list-style-type: '• ';
    padding-left: 25px;
    margin: 10px 0;
    font-size: 0.95em;
}

/* 送信ボタン */
.user-post-form button[type="submit"] {
    display: block;
    width: 100%;
    padding: 15px;
    margin-top: 30px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}
.user-post-form button[type="submit"]:hover {
    background-color: #005177;
}

/* ======================================================
 * サンクスページ スタイル (page-thanks.php のためのスタイル)
 * page-thanks.php の <style> タグ内の内容と統合されます
 * ====================================================== */

/* .thanks-container, .thanks-message のスタイルは、
   page-thanks.php 内の <style> タグに記述されています。
   通常は、テーマのCSSか、個別のCSSファイルに統合しますが、
   ここではわかりやすさのため、page-thanks.php のスタイルと
   競合しないことを確認してください。 */