@charset "utf-8";

/* ========================================
   共通
======================================== */

#xserver-mailform {
  width: 100%;
  margin: 0;
  padding: 0;
  color: #333333;
  font-family: "メイリオ", meiryo, sans-serif;
}

#xserver-mailform *,
#xserver-mailform *::before,
#xserver-mailform *::after {
  box-sizing: border-box;
}

#xserver-mailform .section,
#xserver-mailform .section__body {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

#xserver-mailform .section__ttl {
  display: none;
}

/* ========================================
   案内文
======================================== */

#xserver-mailform .form-lead {
  margin: 0 0 28px;
  color: #333333;
  font-size: 15px;
  line-height: 1.8;
}

#xserver-mailform .form-required-note {
  color: #666666;
  font-size: 13px;
}

/* ========================================
   必須マーク
======================================== */

#xserver-mailform .red {
  margin-left: 3px;
  color: #c50000;
  font-weight: bold;
}

/* ========================================
   エラー表示
======================================== */

#xserver-mailform .red_txt {
  margin: 0 0 20px;
  color: #c50000;
  font-weight: bold;
  line-height: 1.7;
}

#xserver-mailform .red_txt:empty {
  display: none;
}

/* ========================================
   入力画面・確認画面の項目
======================================== */

#xserver-mailform table.table,
#xserver-mailform table.table tbody {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
}

#xserver-mailform table.table tr {
  display: block;
  width: 100%;
  margin: 0 0 26px;
  padding: 0 0 26px;
  border: 0;
  border-bottom: 1px solid #dddddd;
  background: transparent;
}

#xserver-mailform table.table th {
  display: block;
  width: 100%;
  margin: 0 0 9px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #333333;
  font-size: 15px;
  font-weight: bold;
  line-height: 1.6;
  text-align: left;
  vertical-align: top;
  white-space: normal;
}

#xserver-mailform table.table td {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #333333;
  font-size: 14px;
  font-weight: normal;
  line-height: 1.8;
  text-align: left;
  vertical-align: top;
}

/* ========================================
   入力欄
======================================== */

#xserver-mailform table.table input[type="text"],
#xserver-mailform table.table input[type="email"],
#xserver-mailform table.table input[type="tel"],
#xserver-mailform table.table input[type="password"] {
  display: inline-block;
  width: 100%;
  max-width: 700px;
  height: auto;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #999999;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
  color: #333333;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
  vertical-align: middle;
}

/* ========================================
   テキストエリア
   高さはXserverで設定したrowsに従う
======================================== */

#xserver-mailform table.table textarea {
  display: block;
  width: 100%;
  max-width: 700px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #999999;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
  color: #333333;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.6;
  resize: vertical;
}

/* ========================================
   セレクトボックス
======================================== */

#xserver-mailform table.table select {
  width: auto;
  max-width: 100%;
  min-width: 280px;
  padding: 8px 10px;
  border: 1px solid #999999;
  background: #ffffff;
  color: #333333;
  font-family: inherit;
  font-size: 16px;
}

/* ========================================
   入力欄のフォーカス
======================================== */

#xserver-mailform table.table input[type="text"]:focus,
#xserver-mailform table.table input[type="email"]:focus,
#xserver-mailform table.table input[type="tel"]:focus,
#xserver-mailform table.table input[type="password"]:focus,
#xserver-mailform table.table textarea:focus,
#xserver-mailform table.table select:focus {
  border-color: #0a2470;
  outline: 2px solid rgba(10, 36, 112, 0.15);
  outline-offset: 0;
}

/* ========================================
   チェックボックス・ラジオボタン
   20pxの高さで中央をそろえ、縦に並べる
======================================== */

#xserver-mailform table.table input[type="checkbox"],
#xserver-mailform table.table input[type="radio"] {
  display: inline-block;
  box-sizing: border-box;
  width: 20px !important;
  height: 20px !important;
  margin: 3px 7px 10px 0;
  padding: 0;
  vertical-align: top;
  cursor: pointer;
}

#xserver-mailform table.table label {
  display: inline-block;
  box-sizing: border-box;
  width: calc(100% - 32px);
  min-height: 20px;
  margin: 0 0 10px;
  padding: 0;
  color: #333333;
  font-size: 15px;
  line-height: 26px;
  vertical-align: top;
  cursor: pointer;
}

#xserver-mailform table.table td label:last-of-type {
  margin-bottom: 0;
}

/*
  Xserverが出力するbrは使用しない。
  ラジオボタンとチェックボックスの並びを統一する。
*/

#xserver-mailform table.table td br {
  display: none;
}

/* ========================================
   個人情報の説明文
======================================== */

#xserver-mailform .privacy-block {
  width: 100%;
  margin: 32px 0 0;
  padding: 0;
}

#xserver-mailform .privacy-title {
  margin: 0 0 10px;
  color: #333333;
  font-size: 15px;
  font-weight: bold;
  line-height: 1.6;
}

#xserver-mailform .privacy-text {
  width: 100%;
  height: 260px;
  overflow-y: auto;
  margin: 0;
  padding: 16px;
  border: 1px solid #bbbbbb;
  background: #f7f7f7;
  color: #333333;
  font-size: 13px;
  line-height: 1.8;
}

#xserver-mailform .privacy-text p {
  margin: 0 0 18px;
}

#xserver-mailform .privacy-text p:last-child {
  margin-bottom: 0;
}

#xserver-mailform .privacy-text strong {
  display: block;
  margin: 0 0 5px;
  color: #333333;
  font-weight: bold;
}

#xserver-mailform .privacy-text a {
  color: #0a2470;
  text-decoration: underline;
}

#xserver-mailform .privacy-note {
  margin: 10px 0 16px;
  color: #555555;
  font-size: 13px;
  line-height: 1.7;
}

/* ========================================
   同意欄
======================================== */

#xserver-mailform #consent-area {
  width: 100%;
  margin: 0;
}

#xserver-mailform table.consent-table,
#xserver-mailform table.consent-table tbody {
  display: block;
  width: 100%;
  margin: 0;
}

#xserver-mailform table.consent-table tr {
  display: block;
  width: 100%;
  margin: 0 0 26px;
  padding: 16px;
  border: 1px solid #dddddd;
  background: #f7f7f7;
}

#xserver-mailform table.consent-table th {
  display: block;
  width: 100%;
  margin: 0 0 9px;
  padding: 0;
  border: 0;
  background: transparent;
}

#xserver-mailform table.consent-table td {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

/* ========================================
   確認画面
   入力済み欄と空欄の表示高を統一する
======================================== */

#xserver-mailform.confirm-screen table.confirm-table td {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #dddddd;
  background: #f7f7f7;
  color: #333333;
  line-height: 25px;
  white-space: pre-wrap;
  word-break: break-word;
}

#xserver-mailform.confirm-screen table.confirm-table th {
  margin-bottom: 8px;
}

#xserver-mailform.confirm-screen table.confirm-table tr {
  padding-bottom: 22px;
}

/* 確認画面では複数項目の改行を表示する */

#xserver-mailform.confirm-screen table.confirm-table td br {
  display: inline;
}

/* hidden項目は高さの計算に影響させない */

#xserver-mailform.confirm-screen table.confirm-table input[type="hidden"] {
  display: none;
}

/* ========================================
   ボタン配置
======================================== */

#xserver-mailform .button_box,
#xserver-mailform .jmr-buttons {
  clear: both;
  width: 100%;
  margin: 12px 0 0;
  padding: 0;
  text-align: center;
}

#xserver-mailform .confirm-buttons,
#xserver-mailform .jmr-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
}

/* ========================================
   確認画面へ・送信するボタン
======================================== */

#xserver-mailform button.bt_kakunin,
#xserver-mailform .button_box button.bt_kakunin,
#xserver-mailform .jmr-buttons button.bt_kakunin {
  display: block;
  box-sizing: border-box;
  width: 300px;
  max-width: 100%;
  height: auto;
  margin: 1em auto;
  padding: 10px;
  border: 1px solid #cccccc;
  border-radius: 30px;
  background-color: #0a2470;
  background-image: none;
  box-shadow: none;
  color: #ffffff;
  font-family: inherit;
  font-size: 16px;
  font-weight: normal;
  line-height: normal;
  text-align: center;
  text-decoration: none;
  opacity: 1;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: opacity 0.5s;
}

#xserver-mailform button.bt_kakunin:hover,
#xserver-mailform .button_box button.bt_kakunin:hover,
#xserver-mailform .jmr-buttons button.bt_kakunin:hover {
  border: 1px solid #cccccc;
  background-color: #0a2470;
  background-image: none;
  box-shadow: none;
  color: #ffffff;
  opacity: 0.5;
  transform: none;
}

#xserver-mailform button.bt_kakunin:active,
#xserver-mailform .button_box button.bt_kakunin:active,
#xserver-mailform .jmr-buttons button.bt_kakunin:active {
  border: 1px solid #cccccc;
  background-color: #0a2470;
  box-shadow: none;
  color: #ffffff;
  opacity: 0.5;
  transform: none;
}

#xserver-mailform button.bt_kakunin:focus-visible,
#xserver-mailform .button_box button.bt_kakunin:focus-visible,
#xserver-mailform .jmr-buttons button.bt_kakunin:focus-visible {
  outline: 3px solid rgba(10, 36, 112, 0.2);
  outline-offset: 3px;
}

/* ========================================
   戻るボタン
======================================== */

#xserver-mailform button.bt_back,
#xserver-mailform .button_box button.bt_back,
#xserver-mailform .jmr-buttons button.bt_back {
  display: block;
  box-sizing: border-box;
  width: 300px;
  max-width: 100%;
  height: auto;
  margin: 0 auto 1em;
  padding: 10px;
  border: 1px solid #cccccc;
  border-radius: 30px;
  background-color: #ffffff;
  background-image: none;
  box-shadow: none;
  color: #0a2470;
  font-family: inherit;
  font-size: 16px;
  font-weight: normal;
  line-height: normal;
  text-align: center;
  text-decoration: none;
  opacity: 1;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: opacity 0.5s;
}

#xserver-mailform button.bt_back:hover,
#xserver-mailform .button_box button.bt_back:hover,
#xserver-mailform .jmr-buttons button.bt_back:hover {
  border: 1px solid #cccccc;
  background-color: #ffffff;
  background-image: none;
  box-shadow: none;
  color: #0a2470;
  opacity: 0.5;
  transform: none;
}

#xserver-mailform button.bt_back:active,
#xserver-mailform .button_box button.bt_back:active,
#xserver-mailform .jmr-buttons button.bt_back:active {
  border: 1px solid #cccccc;
  background-color: #ffffff;
  box-shadow: none;
  color: #0a2470;
  opacity: 0.5;
  transform: none;
}

#xserver-mailform button.bt_back:focus-visible,
#xserver-mailform .button_box button.bt_back:focus-visible,
#xserver-mailform .jmr-buttons button.bt_back:focus-visible {
  outline: 3px solid rgba(10, 36, 112, 0.15);
  outline-offset: 3px;
}

/* ========================================
   スマートフォン
======================================== */

@media screen and (max-width: 640px) {
  #xserver-mailform .form-lead {
    margin-bottom: 22px;
  }

  #xserver-mailform table.table tr {
    margin-bottom: 20px;
    padding-bottom: 20px;
  }

  #xserver-mailform table.table input[type="text"],
  #xserver-mailform table.table input[type="email"],
  #xserver-mailform table.table input[type="tel"],
  #xserver-mailform table.table input[type="password"],
  #xserver-mailform table.table textarea,
  #xserver-mailform table.table select {
    width: 100%;
    max-width: 100%;
  }

  #xserver-mailform .privacy-text {
    height: 240px;
    padding: 13px;
    font-size: 12px;
  }

  #xserver-mailform button.bt_kakunin,
  #xserver-mailform button.bt_back {
    width: 300px;
    max-width: 100%;
  }
}