/* Common */
body{
  position: relative;
  background: #34495e;
  color: #fff;
  letter-spacing: .15em;
}
button{
  width: 100%;
  border: none;
  border-radius: 5px;
  padding: 10px;
  cursor: pointer;
  transition: .5s;
  box-sizing: border-box;
  color: #fff;
}
a{
  text-decoration: none;
  transition: .5s;
}
header,
footer{
  background: #2c3e50;
}
header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  padding: 0 25px;
}
header h1{
  height: 50px;
}
header h1 img{
  height: 100%;
  width: auto;
}
footer{
  text-align: center;
}
footer ul{
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
}
footer li:not(:first-child){
  margin-left: 15px;
  padding-left: 15px;
  border-left: #fff solid 1px;
}
footer li a{
  color: #f39c12;
}
footer li a:hover{
  color: #e74c3c;
}
address{
  display: block;
  font-size: .8em;
  height: 50px;
  line-height: 50px;
  background: rgba(0, 0, 0, .2);
}
main{
  min-height: calc(100vh - 170px);
}
h2{
  color: #f39c12;
  font-size: 1.4em;
}
.users_page section{
  padding-top: 100px;
}

/* Form Common */
.form_info h2{
  text-align: center;
}
.form_info p{
  text-align: center;
  font-size: 1.2em;
  margin-top: 40px;
}
form dl{
  display: flex;
  align-items: center;
}
form dl:not(:first-child){
  margin-top: 30px;
}
form dt,
form dd{
  height: 40px;
  box-sizing: border-box;
}
form dt{
  border-radius: 5px 0 0 5px;
  line-height: 40px;
  text-align: center;
  background: #f39c12;
}
form dd input:not([type="checkbox"]):not([type="radio"]){
  width: 100%;
  height: 40px;
  border-radius: 0 5px 5px 0;
  box-sizing: border-box;
  font-size: 1.2em;
  text-indent: .5em;
  border: none;
  outline: none;
  background: #fff;
  line-height: 40px;
}
form dd input:not([type="checkbox"]):not([type="radio"]):focus{
  background: #f8f8f8;
}
form dd input[type="file"]{
  cursor: pointer;
}

.checkbox label,
.radio label{
  cursor: pointer;
}
.checkbox label:not(:last-child),
.radio label:not(:last-child){
  margin-right: 20px;
}
.checkbox label input,
.radio label input{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.checkbox label span,
.radio label span{
  display: inline-block;
  padding: 5px 0 5px 30px;
  position: relative;
  font-size: 1.2em;
}
.checkbox label span::before,
.radio label span::before{
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  position: absolute;
  top: 50%;
  left: 4px;
  transform: translateY(-50%);
  border: #f39c12 solid 2px;
  box-sizing: border-box;
}
.checkbox label span::before{
  border-radius: 3px;
}
.radio label span::before{
  border-radius: 50%;
}
.checkbox label span::after,
.radio label span::after{
  content: "";
  display: block;
  position: absolute;
  transform: translateY(-50%);
  opacity: 0;
}
.checkbox label span::after{
  width: 20px;
  height: 10px;
  border-bottom: #f39c12 solid 4px;
  border-left: #f39c12 solid 4px;
  top: calc(50% - 13px);
  left: 3px;
  transform: rotate(-45deg);
}
.radio label span::after{
  width: 10px;
  height: 10px;
  border-radius: 50%;
  top: 50%;
  left: 9px;
  background: #f39c12;
}
@keyframes checkAnim{
  0%   {transform: rotate(0deg);}
  100% {transform: rotate(-45deg);}
}
@keyframes radioAnim{
  0%   {background: #f39c12;width: 20px;height: 20px;left: 4.5px;}
  30%  {background: #f39c12;width: 30px;height: 30px;left: 0;}
  100% {background: #f39c12;width: 10px;height: 10px;left: 9px;}
}
.checkbox label input:checked+span::after,
.radio label input:checked+span::after{
  opacity: 1;
}
.checkbox label input:checked+span::after{
  animation: checkAnim .3s;
}
.radio label input:checked+span::after{
  animation: radioAnim .3s;
}
.send_btn{
  margin-top: 30px;
}
.form_between{
  display: flex;
  justify-content: space-between;
}
.form_between > div{
  width: 48%;
}
.form_between > div:nth-child(n+3){
  margin-top: 20px;
}
#form_result_wrap{
  display: none;
}
#form_result_wrap.on{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, .7);
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
}
#form_result{
  width: 300px;
  background: #fff;
  color: #000;
  border-radius: 7px;
  padding: 30px 20px 20px;
  box-sizing: border-box;
  text-align: center;
  font-weight: 700;
}
#form_result p{
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2em;
}
#form_result p span{
  display: block;
  margin-right: 10px;
}
#form_result p span.send_icon{
  color: #3498db;
  animation: flyUpDown 1.5s ease-in-out infinite;
}
@keyframes flyUpDown{
  0%   {transform: translateY(0);}
  50%  {transform: translateY(-8px);}
  100% {transform: translateY(0);}
}
#result_btn{
  display: none;
}
#result_btn.on,
#complete_btn{
  display: inline-block;
  width: 150px;
  background: #e74c3c;
  color: #fff;
  margin-top: 30px;
}
#result_btn:hover,
#complete_btn:hover{
  background: #c0392b;
}
::placeholder{
  color: #2980b9;
  opacity: .5;
}

/* Top */
#service_start form{
  width: 100%;
  max-width: 600px;
  margin: 80px auto 0;
}
#service_start dt{
  width: 150px;
}
#service_start dd{
  width: calc(100% - 150px);
}
#service_start .send_btn{
  text-align: right;
}
#service_start button{
  width: 180px;
  background: #3498db;
}
#service_start button:hover{
  background: #2980b9;
}
#agree_check{
  border: #fff dashed 1px;
  background: rgba(255, 255, 255, .2);
  margin-top: 20px;
  padding: 20px 0;
}
#agree_check label{
  display: flex;
  align-items: center;
  justify-content: center;
}
#agree_check a{
  color: #f39c12;
}
#agree_check a:hover{
  color: #e74c3c;
}

/* User Form */
#user_form_input h3{
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  font-size: 1.1em;
}
#user_form_input h3 span{
  margin-right: 10px;
  color: #f39c12;
}
#user_form_input form{
  width: 100%;
  max-width: 800px;
  margin: 80px auto;
}
#user_form_input dt{
  width: 180px;
}
#user_form_input dd{
  width: calc(100% - 180px);
}
#user_form_input dd.radio{
  display: flex;
  align-items: center;
  padding-left: 15px;
}
#user_form_input .send_btn{
  text-align: center;
}
#user_form_input button{
  width: 200px;
  background: #3498db;
}
#user_form_input button:hover{
  background: #2980b9;
}
#upload_license,
#upload_residence,
#upload_bank{
  display: none;
  margin-top: 30px;
}
#user_form_input div dl{
  margin-top: 0;
}
#user_form_input .upload_images{
  border: #fff;
  background: rgba(255, 255, 255, .4);
  margin-top: 10px;
}
#user_form_input .upload_images img{
  display: block;
  width: 100%;
  max-width: 400px;
  height: auto;
  margin: 0 auto;
}
#residence_list{
  flex-wrap: wrap;
}
#user_form_input .residence_controls{
  margin-top: 15px;
  display: flex;
}
#user_form_input .residence_controls button{
  width: 180px;
  display: flex;
  align-items: center;
  font-size: .9em;
}
#user_form_input .residence_controls .add_residence{
  background: #f39c12;
}
#user_form_input .residence_controls .delete_residence{
  display: none;
}
#user_form_input .residence_controls .delete_residence.on{
  display: flex;
  background: #e74c3c;
  margin-left: 20px;
}
#user_form_input .residence_controls .delete_residence.on:hover{
  background: #c0392b;
}
#user_form_input .residence_controls button span{
  margin-right: 10px;
}
#residence_notes{
  display: none;
}
#residence_notes.on{
  display: block;
  width: calc(100% - 200px);
  margin-left: 20px;
}

/* Error */
#error_info{
  width: 90%;
  max-width: 400px;
  margin: 60px auto 0;
  background: rgba(0, 0, 0, .4);
  border: #fff solid 2px;
  border-radius: 5px;
  padding: 20px;
  box-sizing: border-box;
}
#error_info dl{
  font-size: 1.2em;
}
#error_info dd{
  color: #e74c3c;
}
#error_code{
  display: flex;
  align-items: center;
}
#error_code dd{
  font-weight: 700;
  font-size: 1.4em;
  margin-left: 1em;
}
#error_message{
  margin-top: 30px;
}
#error_message dd{
  margin-top: 15px;
}

/* Terms */
#terms section{
  width: 90%;
  max-width: 960px;
  margin: 0 auto 100px;
}
#terms h2{
  margin-bottom: 40px;
}
#terms p,
#terms li{
  font-size: 1.15em;
  line-height: 1.8em;
}
#terms dt{
  font-size: 1.2em;
  font-weight: 700;
}
#terms a{
  color: #f39c12;
  text-decoration: underline;
  margin: 0 10px;
  padding-right: 20px;
  position: relative;
}
#terms a:hover{
  color: #e74c3c;
}
#terms a span{
  font-size: 16px;
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
}
#terms_lists,
#terms_company_info,
#terms_enactment_revision{
  margin: 60px 0 0;
}
#terms_lists dt{
  color: #f39c12;
  border-bottom: #f39c12 solid 1px;
  padding-bottom: 10px;
}
#terms_lists dd{
  padding: 25px 0 60px 1.2em;
}
#terms_lists ul{
  margin-top: 25px;
  padding-left: 1.2em;
}
#terms_lists ol{
  counter-reset:number;
}
#terms_lists li:not(:first-child){
  margin-top: 15px;
}
#terms_lists ul li:before{
  display: inline-block;
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f39c12;
  margin-right: 10px;
}
#terms_lists ol li{
  position: relative;
  padding-left: 2em;
}
#terms_lists ol li:before{
  counter-increment: number;
  content: counter(number)".";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  color: #f39c12;
  font-size: 1.2em;
}
.terms_info{
  border: #fff dashed 1px;
  background: rgba(255, 255, 255, .08);
  padding: 30px;
}
.terms_info dl{
  display: flex;
}
.terms_info dl:not(:first-child){
  margin-top: 20px;
}
.terms_info dt{
  white-space: nowrap;
  line-height: 1.6em;
}
.terms_info dt:after{
  content: ":";
  display: inline-block;
  color: #f39c12;
  font-size: 1.2em;
  margin: 0 5px;
}
.terms_info dd{
  font-size: 1.2em;
  line-height: 1.6em;
}
#terms_company_info h3{
  color: #f39c12;
  font-size: 1.4em;
}

/* CMS */
#cms section{
  width: 90%;
  max-width: 960px;
  margin: 0 auto 100px;
}
#cms h2{
  margin-bottom: 40px;
}
#cms dl{
  display: flex;
}
#cms dt,
#cms dd{
  padding: 20px;
  border: #fff solid 1px;
  box-sizing: border-box;
}
#cms dt{
  width: 250px;
  font-size: 1.2em;
  background: #2c3e50;
  color: #f39c12;
}
#cms dl:not(:first-child) dt,
#cms dl:not(:first-child) dd{
  border-top: none;
}
#cms dd{
  width: calc(100% - 250px);
  border-left: none;
  font-size: 1.1em;
}
#cms dd p{
  line-height: 1.8em;
}

/* ==========================================================
Responsive
========================================================== */
@media screen and (max-width: 840px){
  #user_form_input form{
    width: 90%;
  }
}
@media screen and (max-width: 767px){
  /* Common */
  h2{
    font-size: 1.3em;
  }
  footer ul{
    justify-content: space-between;
    padding: 0 10px;
  }
  footer li{
    font-size: .9em;
  }
  footer li:not(:first-child){
    margin-left: 0;
    padding-left: 0;
    border-left: none;
  }
  .users_page section{
    padding: 100px 0;
  }
  .form_info{
    width: 90%;
    margin: 0 auto;
  }
  .form_info h2{
    font-size: 1.3em;
  }
  .form_info p{
    font-size: 1em;
    margin-top: 20px;
  }

  /* Form */
  #service_start form{
    width: 90%;
    margin: 60px auto 0;
  }
  #service_start .send_btn{
    text-align: center;
  }
  #user_form_input form dl{
    display: block;
  }
  #user_form_input dt{
    width: 100%;
    border-radius: 5px 5px 0 0;
  }
  #user_form_input dd{
    width: 100%;
    height: auto;
  }
  #user_form_input dd input:not([type="checkbox"]):not([type="radio"]){
    width: 100%;
    border-radius: 0 0 5px 5px;
  }
  #user_form_input input[type="file"]{
    text-align: center;
  }
  #user_form_input dd.radio{
    padding: 0 0 30px;
    display: block;
  }
  .checkbox label,
  .radio label{
    display: block;
    margin-top: 10px;
  }
  .form_between{
    display: block;
  }
  .form_between > div{
    width: 100%;
  }
  #user_form_input .residence_controls{
    flex-wrap: wrap;
  }
  #user_form_input .residence_controls button{
    width: 48%;
  }
  #user_form_input .residence_controls .delete_residence.on{
    margin-left: 4%;
  }
  #residence_notes.on{
    margin: 15px 0 0;
    width: 100%;
  }
  #residence_notes.on br{
    display: none;
  }

  /* Terms */
  #terms p,
  #terms li{
    font-size: 1em;
  }
  #terms section{
    margin-bottom: 0;
  }
  #terms_lists,
  #terms_company_info,
  #terms_enactment_revision{
    margin: 40px 0 0;
  }
  #terms_company_info h3{
    font-size: 1.2em;
  }
  .terms_info{
    padding: 20px;
  }
  .terms_info dl{
    display: block;
  }
  #terms .terms_info dt{
    font-size: 1.1em;
    margin-bottom: 10px;
  }
  .terms_info dt:after{
    display: none;
  }
  .terms_info dd{
    font-size: 1em;
  }

  /* CMS */
  #cms dl{
    display: block;
  }
  #cms dt,
  #cms dd{
    width: 100%;
    border-left: #fff solid 1px;
  }
  #cms dl:first-child dd{
    border-top: none;
  }
}

