/* 問い合わせフォーム（出演依頼・研修生オーディション）。サイト共通の rstyle.css の上に重ねる */
#table_schedule { line-height: 1.6; color: #333; }

.contact-lead { margin: 0 0 16px; font-size: 13px; }
.contact-lead .required { margin: 0 2px 0 0; }

/* 表 */
.contact-table { width: 100%; margin: 0 0 24px; border-collapse: collapse; border-top: 2px solid #B30000; font-size: 13px; }
.contact-table th,
.contact-table td { padding: 14px 16px; border-bottom: 1px solid #ddd; text-align: left; vertical-align: middle; }
.contact-table th { width: 220px; background: #f7f7f5; font-weight: bold; white-space: nowrap; }
.contact-table th label { font-weight: bold; }
.contact-table td.contact-section { padding: 10px 16px; background: #efefeb; font-weight: bold; color: #555; }
.contact-confirm-table td { word-break: break-all; }

/* 必須の印 */
.required { display: inline-block; margin-left: 8px; padding: 1px 6px; border-radius: 3px; background: #B30000; color: #fff; font-size: 11px; font-weight: bold; line-height: 1.5; vertical-align: 1px; }

/* 入力欄 */
.contact-input,
.contact-table select,
.contact-table textarea { box-sizing: border-box; height: 36px; padding: 6px 10px; border: 1px solid #b5b5b5; border-radius: 4px; background: #fff; color: #222; font-family: inherit; font-size: 14px; }
.contact-input { width: 240px; }
.contact-input-wide { width: 100%; max-width: 440px; }
.contact-input-short { width: 160px; }
.contact-table select { width: 200px; }
.contact-table textarea { width: 100%; height: auto; min-height: 180px; line-height: 1.6; resize: vertical; }
.contact-input::placeholder,
.contact-table textarea::placeholder { color: #aaa; }
.contact-input:focus,
.contact-table select:focus,
.contact-table textarea:focus { border-color: #B30000; outline: 2px solid rgba(179, 0, 0, .2); outline-offset: 0; }
.contact-table [aria-invalid="true"] { border-color: #c00; background: #fff6f6; }
.contact-suffix { margin-left: 6px; }

/* 姓・名と電話の横並び */
.tablecontainer { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.tablecell { display: flex; gap: 8px; align-items: center; }
.tablecell label { min-width: 2em; }
.tablecell .contact-input { width: 150px; }
.contact-tel { gap: 0; }
.tablecell_tel { display: flex; align-items: center; }
.tablecell_tel .contact-input { width: 76px; text-align: center; }
.contact-sep { margin: 0 8px; color: #555; }
.tablecontainer + .error { margin-top: 6px; }

/* 選択肢 */
.contact-choices { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.contact-choice { display: inline-flex; gap: 4px; align-items: center; cursor: pointer; }
.contact-choices .contact-input { width: 200px; }

/* エラー */
.error { margin: 6px 0 0; color: #c00; font-size: 12px; }
form > .error { margin: 0 0 16px; padding: 10px 14px; border: 1px solid #e3b3b3; border-radius: 4px; background: #fff6f6; }

/* ボタン */
.contact-actions { display: flex; gap: 16px; justify-content: center; margin: 8px 0 40px; }
.contact-actions-confirm { flex-direction: row-reverse; }
.contact-actions-confirm form { margin: 0; }
.contact-button { min-width: 180px; padding: 12px 32px; border: 1px solid #999; border-radius: 4px; background: #fff; color: #333; font-family: inherit; font-size: 14px; font-weight: bold; cursor: pointer; }
.contact-button:hover { background: #f2f2f2; }
.contact-button-primary { border-color: #B30000; background: #B30000; color: #fff; }
.contact-button-primary:hover { border-color: #8f0000; background: #8f0000; }
.contact-button:focus-visible { outline: 3px solid rgba(179, 0, 0, .35); outline-offset: 2px; }

/* 迷惑送信よけの欄（画面に出さない） */
.contact-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
