@charset "utf-8";

/*****************************************
*
* フォーム
*
******************************************/

/* 必須 --------------------------------------*/
.asterisk {
  display: inline-block;
  color: white;
  font-size: 0.6em;
  line-height: 1;
  background: var(--color-red);
  border-radius: 10px;
  padding: 3px 5px;
  margin-left: 5px;
}

.asterisk-min {
  color: var(--color-red);
  margin-right: 0.2em;
}

.asterisk-min-none {
  width: 0.7em;
}


/* テキスト --------------------------------------*/
.sub-text {
  font-size: 0.8em;
}

.sub-text.margin {
  margin-bottom: 0.5em;
}

/* ポリシー --------------------------------*/
.mform-policy {
  display: inline-block;
  text-align: left;
  width: 300px;
  height: 200px;
  overflow-x: hidden;
  margin: 0 auto;
}

.mform-policy h4 {
  font-size: 1.1rem;
  font-weight: bold;
}

.mform-policy h5 {
  font-size: 1rem;
  font-weight: bold;
  margin-top: 20px;
}

@media screen and (min-width: 834px), print {
  .mform-policy {
    width: 700px;
  }
}

/* フォームレイアウト --------------------------------------*/
.mform-box {
  text-align: left;
  border-top: solid 1px var(--color-light-gray);
  padding-top: 20px;
  margin-top: 20px;
}

.mform-box.bordernon {
  border: 0;
}

.mform-box.aligncenter {
  text-align: center;
}

@media screen and (min-width: 768px), print {
  .mform-box {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    margin-left: 40px;
  }

  .mform-item {
    text-align: right;
    width: 14em;
    margin-right: 40px;
  }
}

/* 横並び --------------------------------------*/
.mformlirow {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
}

.mformlirow div {
  margin-right: 10px;
}

.mformlirow div.second {
  margin: 0;
}

/* 住所 --------------------------------------*/
.mformaddress li {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-top: 0.5em;
}

.mformaddress li p {
  width: 5em;
}

/* 電話番号 --------------------------------------*/
.mform-tel div {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-top: 0.5em;
}

.mform-tel div.second {
  margin: 0;
}

/* 電話番号 --------------------------------------*/
.mformtel .cont {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
}

.mformtel .cont.second {
  margin-top: 0.5em;
}

.mformtel .cont p {
  width: 7em;
}

.hyphen {
  padding: 0 0.5em;
}

/* 年月 --------------------------------------*/
.yearmonth p {
  margin-left: 0.5em;
}

/* 卒業高校 --------------------------------------*/
.highschool p {
  width: 6em;
  margin-right: 0.5em;
}

.highschool.margin {
  margin-top: 0.5em;
}

/* 送信ボタン --------------------------------------*/
.mform-btn {
  margin-top: 40px;
  margin-bottom: 40px;
}

/*確認画面 --------------------------------------*/
.submit-confirm {
  display: inline-block;
  width: 100%;
  text-align: center;
  margin-top: 40px;
}

.submit-confirm ul {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.submit-confirm ul li:not(:first-child) {
  margin-left: 20px;
}


/*---------------------------------------------
* フォーム
----------------------------------------------*/
.mform_school,
.mform_name,
.mform_zip,
.mform_address,
.mform_tel,
.mform_mail,
.mform_text,
.mform_date {
  padding: 2px;
}

.mform_name {
  width: 100px;
}

.mform_zip {
  width: 100px;
}

.mform_tel {
  width: 300px;
}

.mform_mail {
  width: 300px;
}

.mform_date {
  width: 160px;
}

.mform_number {
  width: 100px;
}

.mform_address {
  width: 300px;
}

.mform_school {
  width: 300px;
}

.mform_text {
  width: 300px;
  height: 100px;
}

@media screen and (min-width: 768px), print {
  .mform_name {
    width: 120px;
  }

  .mform_address {
    width: 400px;
  }

  .mform_school {
    width: 400px;
  }

  .mform_text {
    width: 500px;
    height: 200px;
  }
}

/* 入力切り替え（Chrome非対応） -----------------------------------*/
/*IMEオン*/
.mform_name,
.mform_address,
.mform_school,
.mform_text {
  ime-mode: active;
}

/*IMEオフ*/
.mform_date,
.mform_zip,
.mform_tel,
.mform_mail,
.mform_number {
  ime-mode: inactive;
}

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

/* 入力エリア ---------------------------------------------*/
textarea,
input[type="text"],
input[type="tel"],
input[type="email"],
input[type="date"],
input[type="number"] {
  outline: 0;
  padding: 3px 10px;
  border-radius: 3px;
  border: solid 1px #c9c9c9;
  background: transparent;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: rgba(52, 152, 219, 0);
}

input:focus,
select:focus,
textarea:focus {
  border: solid 1px #3498DB;
}

@media screen and (max-width: 767px) {

  /*iOSのズーム回避*/
  textarea,
  input[type="text"],
  input[type="tel"],
  input[type="email"],
  input[type="date"],
  input[type="number"] {
    font-size: 16px;
  }
}

/*上下の矢印消去*/
/* Chrome/Safari */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

/*上下の矢印消去*/
/* Firefox */
input[type="number"] {
  -moz-appearance: textfield;
}

/*---------------------------------------------
* select
----------------------------------------------*/
select {
  /* styling */
  background-color: white;
  display: inline-block;
  color: var(--color-text);
  font: inherit;
  padding: 0.3em 3.5em 0.3em 1em;
  border-radius: 3px;
  border: 1px solid #c9c9c9;
  /* reset */
  margin: 0;
  box-sizing: border-box;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: none;
}

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

select.minimal {
  border: 1px solid #c9c9c9;
  border-radius: 3px;
  background-image:
    linear-gradient(45deg, transparent 50%, gray 50%),
    linear-gradient(135deg, gray 50%, transparent 50%),
    linear-gradient(to right, var(--color-light-gray), var(--color-light-gray));
  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;
}

/*---------------------------------------------
* radio
同じnameでないと複数選択できてしまう。
----------------------------------------------*/
.mformradio input[type="radio"] {
  display: none;
}

.mformradio label {
  position: relative;
  display: inline-block;
  padding: 3px 3px 3px 20px;
  cursor: pointer;
}

.mformradio label::before {
  position: absolute;
  content: '';
  top: 50%;
  left: 0;
  width: 14px;
  height: 14px;
  margin-top: -8px;
  background: white;
  border: 1px solid #c9c9c9;
  border-radius: 100%;
}

.mformradio input[type="radio"]:checked+label::after {
  position: absolute;
  content: '';
  top: 50%;
  left: 4px;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  background: var(--color-neon-blue);
  border-radius: 100%;
}

/*---------------------------------------------
* checkbox
----------------------------------------------*/
.mformcheck input[type="checkbox"] {
  display: none;
}

.mformcheck label {
  position: relative;
  display: inline-block;
  padding: 3px 3px 3px 22px;
  cursor: pointer;
  transition: all .2s;
}

.mformcheck label::before,
.mformcheck label::after {
  position: absolute;
  content: '';
  transition: all .2s;
}

.mformcheck label::before {
  top: 50%;
  left: 0;
  width: 14px;
  height: 14px;
  margin-top: -8px;
  background: white;
  border: 1px solid #c9c9c9;
  border-radius: 3px;
}

.mformcheck label::after {
  opacity: 0;
  top: 50%;
  left: 3px;
  width: 8px;
  height: 4px;
  margin-top: -4px;
  border-left: 2px solid var(--color-neon-blue);
  border-bottom: 2px solid var(--color-neon-blue);
  transform: rotate(-45deg) scale(.5);
}

.mformcheck label:hover::before {
  background: white;
}

.mformcheck input[type="checkbox"]:checked+label::before {
  background: white;
  border: 1px solid var(--color-neon-blue);
}

.mformcheck input[type="checkbox"]:checked+label::after {
  opacity: 1;
  transform: rotate(-45deg) scale(1);
}


/*---------------------------------------------
* button
----------------------------------------------*/

/*buttonリセット*/
button {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: none;
  outline: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

/*---------------------------------------------
* submit
----------------------------------------------*/
input[type="submit"] {
  -webkit-appearance: none;
}

.btn-submit {
  cursor: pointer;
  border: solid 1px var(--color-neon-blue);
  border-radius: 30px;
  background: var(--color-neon-blue);
  color: white;
  font-size: 1.1em;
  font-weight: 500;
  padding: 10px 40px;
  transition: all .5s ease;
}

.btn-submit:hover {
  transform: scale(0.9);
}

.btn-back {
  cursor: pointer;
  border-radius: 30px;
  border: solid 1px #666666;
  background: #666666;
  color: white;
  font-size: 1.1em;
  font-weight: 500;
  padding: 10px 40px;
  transition: all .5s ease;
}

.btn-back:hover {
  transform: scale(0.95);
}
