@charset "utf-8";

/**
 * Xserver メールフォーム用 CSS
 * 貼り付け先: 管理画面のフォームCSS / または script/mailform/contact/css/form.css
 *
 * 前提:
 * - サイト本体の /assets/css/style.css を HTML 側で先に読み込む
 * - ヘッダー・KV・フッターはサイトCSSに任せる
 * - ここではフォーム周りのみ整える（グローバルリセット禁止）
 */

/* ----------------------------------------------------------
    レイアウト（フォーム領域）
------------------------------------------------------------- */
#wrapper {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px 80px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

#main {
  padding: 0;
}

.section {
  margin-bottom: 0;
}

.section__ttl {
  margin: 0 0 24px;
  padding: 14px 20px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
  background: #082957;
  border-radius: 0;
}

.section__body {
  padding: 0;
}

#txt_explain {
  margin: 0 0 24px;
  color: #3f4b5a;
  font-size: 15px;
  line-height: 1.7;
}

#txt_explain p {
  margin: 0;
}

.red_txt {
  margin: 0 0 20px;
  color: #b42318;
  font-size: 14px;
  line-height: 1.6;
}

.red_txt:empty {
  display: none;
  margin: 0;
}

/* ----------------------------------------------------------
    テーブル（項目）
------------------------------------------------------------- */
.table {
  width: 100%;
  margin: 0 0 28px;
  border-collapse: collapse;
  border: 1px solid #dce5ee;
  border-radius: 0;
  overflow: hidden;
  background: #fff;
}

.table th,
.table td {
  padding: 16px 18px;
  border-right: 1px solid #dce5ee;
  border-bottom: 1px solid #dce5ee;
  font-size: 14px;
  line-height: 1.6;
  vertical-align: top;
  text-align: left;
}

.table tr:last-child th,
.table tr:last-child td {
  border-bottom: 0;
}

.table th {
  width: 32%;
  font-weight: 700;
  color: #082957;
  background: #eef2f7;
}

.table td {
  font-weight: 400;
  color: #111827;
  background: #fff;
}

/* ----------------------------------------------------------
    フォーム部品
------------------------------------------------------------- */
#wrapper input[type='text'],
#wrapper input[type='password'],
#wrapper input[type='email'],
#wrapper input[type='tel'],
#wrapper input[type='url'],
#wrapper textarea,
#wrapper select {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 12px 14px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #111827;
  background: #fff;
  border: 1px solid #dce5ee;
  border-radius: 0;
  box-shadow: none;
  vertical-align: middle;
}

#wrapper textarea {
  min-height: 160px;
  resize: vertical;
}

#wrapper input[type='text']:focus,
#wrapper input[type='password']:focus,
#wrapper input[type='email']:focus,
#wrapper input[type='tel']:focus,
#wrapper input[type='url']:focus,
#wrapper textarea:focus,
#wrapper select:focus {
  outline: none;
  border-color: #082957;
  box-shadow: 0 0 0 3px rgba(8, 41, 87, 0.08);
}

#wrapper input[type='checkbox'],
#wrapper input[type='radio'] {
  margin-right: 6px;
  vertical-align: middle;
  cursor: pointer;
}

#wrapper label {
  cursor: pointer;
}

/* ----------------------------------------------------------
    ボタン
------------------------------------------------------------- */
.button_box {
  clear: both;
  margin: 0 0 20px;
  padding: 0;
  text-align: center;
}

.button_box input[type='submit'],
.button_box input[type='button'] {
  display: inline-block;
  min-width: 200px;
  padding: 14px 28px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
  background: #082957;
  border: 1px solid #082957;
  border-radius: 0;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.button_box input[type='submit']:hover,
.button_box input[type='button']:hover {
  background: #0a3570;
  border-color: #0a3570;
}

.button_box a {
  color: #082957;
  font-size: 14px;
  text-decoration: underline;
}

.button_box a:hover {
  opacity: 0.8;
}

.button_box--confirm {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.button_box--confirm input[type='submit'] {
  margin: 0;
}

.button_box--confirm .button_back,
.button_box input[type='submit'][value='戻る'] {
  color: #082957;
  background: #fff;
  border: 1px solid #082957;
}

.button_box--confirm .button_back:hover,
.button_box input[type='submit'][value='戻る']:hover {
  background: #eef2f7;
  border-color: #082957;
  color: #082957;
}

/* ----------------------------------------------------------
    補足テキスト
------------------------------------------------------------- */
.mailform-security {
  margin: 8px 0 0;
  color: #6b7785;
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
}

.mailform-complete {
  margin-bottom: 32px;
  text-align: center;
}

.mailform-complete p {
  margin: 0 0 1em;
  color: #3f4b5a;
  font-size: 15px;
  line-height: 1.8;
}

.mailform-complete p:last-child {
  margin-bottom: 0;
}

.mailform-home-btn {
  display: inline-block;
  min-width: 200px;
  padding: 14px 28px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: #fff !important;
  background: #082957;
  border: 1px solid #082957;
  text-decoration: none !important;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.mailform-home-btn:hover {
  background: #0a3570;
  border-color: #0a3570;
  opacity: 1;
}

.left_txt {
  text-align: left;
}

/* Xserver既定の #header / #footer は使わない */
#header,
#footer {
  display: none;
}

/* ----------------------------------------------------------
    SP
------------------------------------------------------------- */
@media screen and (max-width: 767px) {
  #wrapper {
    padding: 24px 16px 64px;
  }

  .section__ttl {
    margin-bottom: 16px;
    padding: 12px 16px;
    font-size: 16px;
  }

  .table,
  .table tbody,
  .table tr,
  .table th,
  .table td {
    display: block;
    width: 100%;
  }

  .table {
    border: 0;
    overflow: visible;
  }

  .table th,
  .table td {
    border: 1px solid #dce5ee;
  }

  .table th {
    width: 100%;
    border-bottom: 0;
  }

  .table td {
    margin-bottom: 12px;
  }

  .table tr:last-child td {
    margin-bottom: 0;
  }

  .button_box input[type='submit'],
  .button_box input[type='button'] {
    width: 100%;
    min-width: 0;
  }

  .button_box--confirm {
    flex-direction: column;
  }

  .mailform-home-btn {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
}