@charset "UTF-8";

/* =========================
   メールフォーム本体
========================= */
form#mailform {
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

form#mailform * {
  box-sizing: border-box;
}

/* hidden要素 */
div#mailform_hidden_object {
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* =========================
   テーブル全体
========================= */
table.mailform {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  table-layout: fixed;
}

table.mailform th,
table.mailform td {
  padding: 20px;
  border-bottom: 1px solid #d7d7d7;
  vertical-align: top;
  color: #333333;
  font-size: 1.6rem;
  vertical-align: middle;
}

table.mailform th {
  width: 40%;
  text-align: right;
  font-weight: normal;
}

table.mailform td {
  width: 60%;
  padding-left: 20px;
}

/* =========================
   入力欄
========================= */
table.mailform input[type="text"],
table.mailform textarea {
  width: 100%;
  max-width: 100%;
  padding: 12px 14px;
  border: 1px solid #cccccc;
  background: #ffffff;
  color: #333333;
  font-size: 1.6rem;
  line-height: 1.6;
  border-radius: 4px;
}

table.mailform textarea {
  min-height: 160px;
  resize: vertical;
}

/* class="mfp" がついている要素も確実に幅いっぱい */
table.mailform input.mfp,
table.mailform textarea.mfp {
  width: 100%;
  max-width: 100%;
}

/* フォーカス */
table.mailform input[type="text"]:focus,
table.mailform textarea:focus {
  outline: none;
  border-color: #999999;
}

/* チェックボックスは幅100%にしない */
table.mailform input[type="checkbox"] {
  width: auto;
  margin-right: 8px;
  vertical-align: middle;
}

/* 送信画像ボタン */
table.mailform input[type="image"] {
  display: inline-block;
  max-width: 100%;
  height: auto !important;
}

/* 補足文の折り返し */
table.mailform td {
  word-break: break-word;
}

input[type="email"].mfp {
  border: 1px solid #d7d7d7 !important;
  outline: none;
}

/* =========================
   ラベル
========================= */
form#mailform label {
  display: block;
  width: 100%;
  padding: 2px;
  margin-bottom: 1px;
  cursor: pointer;
  text-decoration: underline;
}

label.label_true {
  background-color: #ffffee;
  border: 1px solid #cccccc;
  text-decoration: none;
}

label.label_false {
  border: none;
  background: none;
  text-decoration: underline;
}

/* =========================
   エラー表示
========================= */
div.mfp_err {
  display: none;
  margin: 8px 0 0;
  padding: 3px 0 5px 17px;
  color: #ff0000;
  font-size: 1.6rem;
  line-height: 1.6;
  text-align: left;
  background: url(images/mfp_error.gif) no-repeat 0 3px;
}

/* =========================
   タブレット
========================= */
@media (max-width: 991px) {
  table.mailform th,
  table.mailform td {
    padding: 20px;
    font-size: 1.6rem;
  }

  table.mailform th {
    width: 34%;
  }

  table.mailform td {
    width: 66%;
    padding-left: 16px;
  }
}

/* =========================
   スマホ
========================= */
@media (max-width: 767px) {
  table.mailform,
  table.mailform tbody,
  table.mailform tr,
  table.mailform th,
  table.mailform td {
    display: block;
    width: 100%;
  }

  table.mailform tr {
    border-bottom: 1px solid #d7d7d7;
  }

  table.mailform th,
  table.mailform td {
    border-bottom: none;
    padding: 10px 12px;
  }

  table.mailform th {
    text-align: left;
    background: transparent;
    padding-bottom: 6px;
  }

  table.mailform td {
    padding-top: 0;
    padding-left: 12px;
    padding-bottom: 14px;
  }

  table.mailform input[type="text"],
  table.mailform textarea {
    font-size: 16px; /* iPhoneで拡大しにくくする */
  }

  table.mailform input[type="image"] {
    width: 97px;
    height: auto !important;
  }
}

/* =========================
   送信ボタン
========================= */

table.mailform td.submit-cell {
  padding-top: 20px;
  padding-bottom: 20px;
}

.mailform-btn {
  display: inline-block;
  min-width: 160px;
  padding: 12px 24px;
  border: 1px solid #222222;
  background: #222222;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  border-radius: 26px;
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  -webkit-appearance: none;
  appearance: none;
}

.mailform-btn:hover,
.mailform-btn:focus {
  background: #666666;
  border-color: #666666;
  color: #ffffff;
  outline: none;
}

.mailform-btn:active {
  transform: translateY(1px);
}

@media (max-width: 767px) {
  .mailform-btn {
    width: 100%;
    min-width: 0;
  }
}