@charset "utf-8";

/*--------------------
*  フォームレイアウト
--------------------*/

.mailform {
  text-align: left;
}

.mailform li {
  padding-bottom: 5px !important;
}

.mailform li:last-child {
  padding-bottom: 0px !important;
}

.mailform .asterisk {
  color: #FFF;
  font-size: 0.6rem;
  line-height: 1;
  letter-spacing: 0.2em;
  background: red;
  border-radius: 10px;
  padding: 2px 5px;
  margin-left: 10px;
  vertical-align: middle;
}

.mform-policy {
  margin-top: 20px;
}

.mform-list li {
  display: inline-block;
}

@media screen and (max-width: 767px) {
  .mform-policy {
    margin-bottom: 20px;
  }
}

@media screen and (min-width: 768px), print {
  .mform-policy {
    margin-bottom: 40px;
  }
}

/*---------------------------------------------
*  フォームパーツ
----------------------------------------------*/
.mform-add {
  width: 260px;
}

.mform-mail {
  width: 340px;
}

.mform-name {
  width: 140px;
}

.mform-text {
  width: 360px;
}

@media screen and (max-width: 320px) {
  .mform-add {
    width: 220px;
  }

  .mform-mail {
    width: 280px;
  }

  .mform-text {
    width: 300px;
  }
}

@media screen and (min-width: 600px), print {
  .mform-add {
    width: 400px;
  }

  .mform-text {
    width: 400px;
  }
}

/*---------------------------------------------
親から継承せず、システムデフォルトの体裁を使用してしまう事象の対策
（このタグを入れておけば、placeholderのフォントがbodyのフォントになり、
input::placeholderのフォント指定が不要になる）
----------------------------------------------*/
button, input, select, textarea {
  font-family : inherit;
  font-size : 100%;
}

/*---------------------------------------------
プレイスホルダー文字列
※ベンダーフレックスはまとめると何故か効かなくなるので注意
----------------------------------------------*/
::placeholder {
  color: #c1c1c1;
}
::-webkit-input-placeholder {
  color: #c1c1c1;
}
:-moz-placeholder {
  color: #c1c1c1;
}
::-moz-placeholder {
  color: #c1c1c1;
}
:-ms-input-placeholder {
  color: #c1c1c1;
}

/*---------------------------------------------
* select
----------------------------------------------*/
input[type="text"],
input[type="tel"],
input[type="email"],
textarea {
  padding: 5px;
}

select {
  /* styling */
  background-color: white;
  display: inline-block;
  font: inherit;
  padding: 0.5em 3.5em 0.5em 1em;

  /* reset */
  margin: 0;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* IE reset */
select::-ms-expand {
  display: none;
}

select.minimal {
  background-image:
    linear-gradient(45deg, transparent 50%, gray 50%),
    linear-gradient(135deg, gray 50%, transparent 50%),
    linear-gradient(to right, #ccc, #ccc);
  background-position:
    calc(100% - 20px) calc(1em + 2px),
    calc(100% - 15px) calc(1em + 2px),
    calc(100% - 2.5em) 0.5em;
  background-size:
    5px 5px,
    5px 5px,
    0px 1.5em;
  background-repeat: no-repeat;
}

/*---------------------------------------------
* checkbox

  mailformpro.cssの一部をコメントアウト
  このフォームのシステム上、labelのforの設定は不要

  チェック後のcss適用は通常、
  input[type="radio"]:checked + label::before
  のようにするところ、フォームで.mform-checkが書き出されるため、それを使用
  （ローカルでは作動しないので注意）
----------------------------------------------*/
input[type="checkbox"] {
  display: none;
}

form#mailformpro .mform-check label {
  position: relative;
  display: inline-block;
  padding: 3px 3px 3px 22px;
  cursor: pointer;
  -webkit-transition: all .2s;
  transition: all .2s;
}

form#mailformpro .mform-check label::before,
form#mailformpro .mform-check label::after {
  position: absolute;
  content: '';
  -webkit-transition: all .2s;
  transition: all .2s;
}

form#mailformpro .mform-check label::before {
  top: 50%;
  left: 0;
  width: 14px;
  height: 14px;
  margin-top: -8px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 0;
}

form#mailformpro .mform-check label::after {
  opacity: 0;
  top: 50%;
  left: 3px;
  width: 8px;
  height: 4px;
  margin-top: -4px;
  border-left: 2px solid #d0576b;
  border-bottom: 2px solid #d0576b;
  -webkit-transform: rotate(-45deg) scale(.5);
  transform: rotate(-45deg) scale(.5);
}

form#mailformpro .mform-check label:hover::before {
  background: #fff;
}

form#mailformpro .mform-check .mfp_checked::before {
  background: #fff;
  border: 1px solid #d0576b;
}

form#mailformpro .mform-check .mfp_checked::after {
  opacity: 1;
  -webkit-transform: rotate(-45deg) scale(1);
  transform: rotate(-45deg) scale(1);
}

/*---------------------------------------------
* radio

  mailformpro.cssの一部をコメントアウト
  このフォームのシステム上、labelのforの設定は不要

  チェック後のcss適用は通常、
  input[type="radio"]:checked + label::before
  のようにするところ、フォームで.mform-checkが書き出されるため、それを使用
  （ローカルでは作動しないので注意）
----------------------------------------------*/
input[type="radio"] {
  display: none;
}

form#mailformpro .mform-radio label {
  position: relative;
  display: inline-block;
  padding: 3px 3px 3px 20px;
  cursor: pointer;
}

form#mailformpro .mform-radio label::before {
  position: absolute;
  content: '';
  top: 50%;
  left: 0;
  width: 14px;
  height: 14px;
  margin-top: -8px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 100%;
}

form#mailformpro .mform-radio .mfp_checked::after {
  position: absolute;
  content: '';
  top: 50%;
  left: 4px;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  background: #d0576b;
  border-radius: 100%;
}