@charset "UTF-8";

.maintitle{
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  margin: 60px 0 70px;
}
.content{
  width: 50vw;
  margin-bottom: 115px;
}
.title{
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 3px;
}
.title2{
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
}
.box{
  width: 50vw;
  height: 40px;
  background-color: rgba(216, 212, 212, .4);
  border-radius: 4px;
  border: none;
  margin-bottom: 45px;
  /* box-sizing: border-box;記入欄はいくらかpadding入っているので100％にしても少し飛び出てしまう
  入れないとsp版の時マージン右にいれても端までいってしまう  */
}
.messagebox{
  width: 50vw;
  height: 350px;
  background-color: rgba(216, 212, 212, .4);
  border-radius: 4px;
  border: none;
  margin-bottom: 45px;
  resize: none;
}
.area{
  margin-bottom: 45px;
}

/* ラジオチェックボタンのデザイン変更 */
input[type="radio"],input[type="checkbox"]{
  display: none;
}
.check label{
  font-size: 20px;
  margin: 0 55px 10px 0;
  display: inline-block;
  position: relative;
  padding-left: 25px;
  cursor: pointer;/* マウスポインターの表示を変える(指に) */
}
.check label::before, input:checked+label::after{
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}
.check label::before{
  width: 16px;
  height: 16px;
  border: 1px solid #333;
  border-radius: 4px;
}
input:checked +label::after{
  width: 16px;
  height: 16px;
  border: 1px solid #333;
  border-radius: 4px;
  background-color: #333;
}

/* select fileボタン見た目 */
.file .up_file{
  display: inline-block;
  position: relative;
  font-size: 20px;
  letter-spacing: 2px;
  border: 1px solid #9e9c9c;
  width: 150px;
  height: 43px;
  line-height: 43px;
  text-align: center;
  margin: 0 15px 10px 0;
  cursor: pointer;/* マウスポインターの表示を変える(指に) */
}
/* 本来のinputタグをpositionで浮かせてopacityで透明にしておきます。
そうすることでlabelタグをinputの代わりに装飾できるため見た目をカスタマイズすることができる。 */
.file input[type="file"]{
  position: absolute;
  left:0;
  top:0;
  opacity: 0;/* labelの特性を利用してinputを見えなくしててもファイルが添付できるようにする */
  width: 150px;
  height: 43px;
}
.file .info{
  margin-bottom: 10px;
}
.file .info span{
  font-weight: bold;
  margin-right: 5px;
}
/* ボタンの親要素にしかきかない */
.submit_btn{
  width: 175px;
  height: 80px;
  margin: 0 auto;
  cursor: pointer;/* マウスポインターの表示を変える(指に) */
}
.submit_btn .button{
  color: #333;
  font-size: 24px;
  font-weight: bold;
  letter-spacing: 2px;
  width: 175px;
  height: 80px;
  line-height: 80px;
  text-indent: -.5em;
  border: 1px solid #333;
  background-color: #fff;
  cursor: pointer;/* マウスポインターの表示を変える(指に) */
}
.submit_btn .button:hover{
  background-color: rgba(158, 156, 156, 0.2);
  border: 1px solid rgba(158, 156, 156, 0.8);
  width: 175px;
}
/*inputに疑似要素効かないのでbuttonにしている*/
.submit_btn .button::after{
  content: "》";
  font-size: 19px;
  font-weight: bold;
  display: inline-block;
  position: relative;
  top: -1px;
  left: 26px;
}
.alert{
  color: #ff0000;
  margin: 3px 0 0 10px;
}
main .flex{
  justify-content: flex-start;
}
.btn .alert{
  margin-top: 10px;
}
footer p{
  margin-top: 0;
}

/*php thanksページ*/
.content2{
  text-align: center;
}
.text{
  margin-bottom: 6px;
}
.text:nth-of-type(2){
  margin-bottom: 27px;
}
.text:last-child{
  margin-bottom: 0;
}
.btn{
  width: 100px;
  margin: 50px auto;
}
.btn a,.btn a:hover{
  width: 100px;
}

@media screen and (max-width: 768px) {
  .content,.box,.messagebox{
    width: auto;
  }
  .content{
    margin: 0 15px 100px;
  }
  .box,.messagebox{
    width: 100%;
  }
  .title2{
    margin-bottom: 3px;
  }
  .alert{
    margin: 0 0 4px;
  }
  .submit_btn{
    width: 150px;
    height: 70px;
  }
  .submit_btn .button{
    width: 150px;
    height: 70px;
    line-height: 70px;
    letter-spacing: 1px;
  }
  .submit_btn .button:hover{
    width: 150px;
  }
  .submit_btn .button::after{
    top: -1px;
    left: 24px;
  }
  .submit_btn .alert{
    margin: 5px;
  }
  footer p{
    margin:0 15px 10px;
  }
  /*php thanksページ*/
  .text{
    margin-bottom: 4px;
  }
}