@charset "utf-8";
/* ===== Xserver メールフォーム 自作スキン用CSS =====
   サイト共通の style.css（枠・ヘッダー/フッター）に重ねて、
   Xserver既定テンプレートのclass（.table / .section__body / .button_box 等）を
   会社サイトのデザインに整えます。色は style.css の変数を継承します。 */

/* メールフォームの外側ラッパー（サイトの .wrap 内に収める） */
#wrapper, #main{ width:auto; margin:0; padding:0; }
.section{ margin:0; }
.section__ttl{ display:none; } /* タイトルはサイトのpage-headを使用 */

/* 白いボックス */
.section__body{ background:#fff; max-width:1000px; margin:0 auto; padding:40px 44px; }

/* 冒頭の説明文 */
#txt_explain{ text-align:center; margin:0 0 26px; }
#txt_explain p{ font-size:14px; line-height:1.9; color:var(--ink-soft,#444); margin:0 0 6px; }
#txt_explain .mf-note{ font-weight:700; color:var(--red,#e8513d); }

/* エラー表示 {$form_error} */
.red_txt{ color:var(--red,#e8513d); font-size:13px; text-align:center; line-height:1.8; }
.red_txt:empty{ display:none; }

/* 項目テーブル {$form_data} */
.table{ width:100%; border-collapse:collapse; margin:0 auto; }
.table th,.table td{ text-align:left; vertical-align:middle; padding:18px 16px; border-bottom:1px solid var(--line,#e3e3e3); font-size:14px; }
.table th{ width:200px; font-weight:500; color:var(--ink,#333); white-space:nowrap; }
.table td{ color:var(--ink-soft,#444); }
.table tr:first-child th,.table tr:first-child td{ border-top:1px solid var(--line,#e3e3e3); }

/* 入力欄 */
.table input[type="text"],.table input[type="email"],.table input[type="tel"],.table input:not([type]),.table select,.table textarea{
  width:100%; max-width:460px; box-sizing:border-box; padding:10px 12px;
  border:1px solid #c9c9c9; border-radius:2px; font-size:14px; font-family:inherit; color:var(--ink,#333); background:#fff;
}
.table textarea{ max-width:100%; min-height:170px; line-height:1.7; resize:vertical; }
.table input:focus,.table select:focus,.table textarea:focus{ outline:none; border-color:var(--accent,#0196e0); box-shadow:0 0 0 2px rgba(1,150,224,.15); }
.table input[type="radio"]{ width:auto; margin:0 6px 0 2px; }
.table label{ margin-right:22px; font-size:14px; cursor:pointer; }

/* 必須マーク（出力class名は要確認。代表的なものを一括指定） */
.table .hissu,.table .require,.table .required,.table .must,.table .req{
  display:inline-block; margin-left:6px; padding:1px 6px; border-radius:2px;
  background:var(--red,#e8513d); color:#fff; font-size:11px; font-weight:500; vertical-align:middle;
}
.table .error input,.table td.error input,.table .error textarea{ border-color:var(--red,#e8513d); background:#fff5f4; }

/* ボタン */
.button_box{ text-align:center; margin:34px 0 6px; }
.button_box input[type="submit"]{
  min-width:220px; padding:16px 48px; border:none; cursor:pointer;
  background:var(--accent,#0196e0); color:#fff; font-size:16px; font-weight:700; letter-spacing:.06em;
  border-radius:2px; transition:opacity .15s ease; font-family:inherit; margin:0 6px;
}
.button_box input[type="submit"]:hover{ opacity:.9; }
.button_box input[value="戻る"]{ background:#9aa0a6; } /* 戻る（確認画面）*/
.button_box a{ color:var(--accent,#0196e0); font-size:13px; text-decoration:underline; }

/* 完了画面 */
.mf-done-title{ text-align:center; font-size:20px; font-weight:700; color:var(--accent,#0196e0); margin:10px 0 18px; }
.mf-done-text{ text-align:center; font-size:14px; line-height:1.95; color:var(--ink-soft,#444); margin:0; }

/* スマホ */
@media (max-width:900px){
  .section__body{ padding:24px 18px; }
  .table tr{ display:block; border-bottom:1px solid var(--line,#e3e3e3); padding:12px 0; }
  .table th,.table td{ display:block; width:100%; padding:6px 0; border:none; }
  .table th{ white-space:normal; }
  .table tr:first-child{ border-top:1px solid var(--line,#e3e3e3); }
  .button_box input[type="submit"]{ width:100%; min-width:0; margin:6px 0; }
}