article {margin-bottom: 3em}
#mailform {margin-top: 2em;}
#mailform * {
  font-size: 16px;
  line-height: 1.5;
  box-sizing: border-box;
}
#mailform dt + dd {margin-top: 0}
#mailform form > dl {display: flex}
#mailform form > dl:nth-of-type(2n+1) {
  background: #FF990030;
  border-radius: 0.5em;
}
#mailform form > dl > dt,
#mailform form > dl > dd {
  padding: 1em;
}
#mailform form > dl > dt {
  width: 12em;
  display: flex;
  align-items: center;
  justify-content: center;
}
#mailform form > dl > dd {  
  width: calc(100% - 12em);
}


#mailform .img_ex {
  border: solid 1px #999;
  background: rgba(255,255,255,0.5);
  border-radius: 5px ;overflow: hidden;
  padding: 0 10px;  margin: 5px 0;
}
#mailform .img_ex .ex_title {
  display: block;text-align: center;
  background: #999;color: #FFF;
  font-weight: bold;margin: 0 -10px 5px;
}
#mailform .img_ex .img_list {
  display: flex;flex-wrap: wrap;
  justify-content: space-between;
  
}
#mailform .img_ex .img_list .img {width: calc((100% - 10px)/ 2);margin: 5px 0;text-align: center;}
#mailform .img_ex .img_list .img img {margin: 0;border: solid 1px #999}
#mailform .img_ex .img_list .img figcaption {font-size: 0.85em;}

#mailform .temp {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
    margin-top: 0.5em;
}
#mailform .temp br {display: none}
#mailform .temp span {line-height: 1.5;}


#mailform dl.zip {
  display: flex;
  align-items: center;
  margin-bottom: 0.5em;
}
#mailform dl.zip input {margin-left: 5px;}
#mailform #hantei {
  padding-left: 0.5em;
  color: #cc0000;
  font-weight: bold;
}

#mailform .tyuui {
  color:#980002;
  font-size: 1rem;
}
#mailform .tyuui a {
  color:#980002;
  text-decoration: underline;
  font-weight: bold;
  font-size: 1rem;
}


#mailform .privacy_box{
  background: #f0f0f0;
  border-radius: 0.5em;
  padding: 1em 1.5em;
  margin: 1em 0;
}
#mailform .privacy_box p {text-align:center;}
#mailform .privacy_box label {justify-content: center}
#mailform .privacy_box a {
  font-weight:bold;
  text-decoration: underline;
  color:blue;
}

#mailform .privacy_box .iframe {
  width: 100%;
  border: solid 1px #999;
  background: #FFFFFF;
  height: 10em;
  padding: 0.5em;
  margin: 0;
}


/*********PCサイズ 幅431以上の時*********/
@media screen and (min-width: 431px) {
#mailform .temp input {width: 280px}
}

/*********スマホサイズ 幅430未満の時*********/
@media screen and (max-width: 430px) {
  #mailform form > dl {flex-direction: column}
  #mailform form > dl > dt,#mailform form > dl > dd {width: 100%}
  #mailform form > dl > dt {
    font-weight: bold;
    padding-bottom: 0;
  }
  #mailform .temp {
    flex-direction: column-reverse;
    align-items: flex-start;
  }
}





/*　ここからフォームアイテム
**************************************************/
#mailform label {
  display: flex;
  align-items: center;
  line-height: 2;
}
#mailform label input[type="checkbox"] {
	width:			16px;
	height:			16px;
	-moz-transform:		scale(1.1);
	-webkit-transform:	scale(1.1);
	transform:		scale(1.1);
  margin-right: 5px;
}
#mailform label input[type="radio"],
#mailform label input[type="checkbox"] {
  box-shadow: none;
  border: 5px solid #ccc;
}

#mailform input[type="text"] {
  border: solid 1px #999;
  background: #FFF;
  padding: 0.5em;
  width: 100%;
}

#mailform textarea {
  border: solid 1px #999;
  width: 100%;
  height: 120px;
  background: #FFF;
  resize: vertical;
  padding: 0.5em;
  margin-top: 0.5em;
}

#mailform input[type="text"]:focus,
#mailform textarea:focus {
  background: #D8FEFF;
}


#mailform input[id="郵便番号"] {width: 6em}




input[type=submit],input[type=button] {
  font-family: inherit;
  background: none;
  border-radius: 8px;
  border: none;
  color: #fff;
  cursor: pointer;
  display: block;
  width: 8em;
  text-align: center;
  padding: 0.75em 0;
  margin: 0 auto;
}
input[type=submit] { background-color:#5d3fff; }
input[type=button] { background-color:#888888; }
input[type=submit]:hover {
  opacity: 0.5;
}



.submit_area {
  display: flex;
  text-align: center;
  margin: 2rem 0;
}

/*
**********************************************/
#confirmation .confirmation {
  color: #FF0000;
  margin-bottom: 1em;
}
#confirmation form > dl {
  display: flex;
  align-items: center;
  border-bottom: dotted 1px #666;
  border-radius: 0!important;
}
#confirmation form > dl:first-of-type {border-top: dotted 1px #666;}
#confirmation form > dl dt {
  width: 15em;
}
#confirmation form > dl dt,
#confirmation form > dl dd {padding: 0.5em}

#confirmation .err {color: #FF0000;}
#confirmation .submit_area {
  display: flex;
  justify-content: space-around;
  margin: 2em 0 1em;
}
/*********スマホサイズ 幅430未満の時*********/
@media screen and (max-width: 430px) {
  #confirmation form > dl {flex-direction: column}
  #confirmation form > dl dt,
  #confirmation form > dl dd {width: 100%;}
  #confirmation form > dl dt {
    font-weight: bold;
    padding-bottom: 0;
    text-align: center;
  }
  #confirmation form > dl p {text-align: center}
}
