@charset "utf-8";


/*-------------------------------------------------------------------------------------
フォーム用CSS__各パーツ
----------------------------------------------------------------------------------------*/
input,
button,
select,
textarea {
  border: 1px solid #ccc;
  padding: 8px;
  color: var(--text-color);
  font-size: 16px;
}
input:focus,
button:focus,
select:focus,
textarea:focus{
  outline: 0px solid var(--green-color);
  border: 1px solid var(--green-color);
}
input::placeholder,
button::placeholder,
select::placeholder,
textarea::placeholder{
  color: var(--text-color);
  font-size: 14px;
}


input[type='text'],
textarea{
  width: 100%;
}
textarea {
  min-height: 320px;
}

@media screen and (max-width:480px){
  input,
  button,
  select,
  textarea {
    font-size: 14px;
  }
  textarea {
    min-height: 240px;
  }
}


/*-------------------------------------------------------------------------------------
カスタム（ラジオボタン/チェックボックス/セレクトボタン/送信ボタン）
----------------------------------------------------------------------------------------*/
input[type="radio"],
input[type="checkbox"] {
    opacity: 0;
    padding: 0;
}
select::-ms-expand {
  display: none;
}

/*
カスタムラジオボタン(labelタグで囲う必要あり)
--------------------------------------------------------*/
input[type="radio"] + span {
  position: relative;
  padding-left: 20px;
  margin-right: 8px;
  white-space: nowrap;
}
input[type="radio"] + span::before {
  content: "";
  display: inline-block;
  position: absolute;
  border-radius: 50%;
  width: 15px;
  height: 15px;
  border:1px solid var(--main-color);
  background: var(--white-color);
  top: 50%;
  transform: translateY(-50%);
  left: 0;
}
input[type="radio"]:checked + span::after {
  content: "";
  display: inline-block;
  position: absolute;
  border-radius: 50%;
  width: 9px;
  height: 9px;
  background: var(--main-color);
  top: 50%;
  transform: translateY(-50%);
  left: 3px;
}

/*
カスタムチェックボックス(labelタグで囲う必要あり)
--------------------------------------------------------*/
input[type="checkbox"] + span{
  position: relative;
  padding-left: 20px;
  margin-right: 8px;
  white-space: nowrap;
}
input[type="checkbox"] + span::before{
  position: absolute;
  content: '';
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  width: 16px;
  height: 16px;
  border: 1px solid var(--main-color);
  vertical-align: -5px;
}
input[type="checkbox"]:checked + span::after {
  position: absolute;
  content: '';
  top: 40%;
  transform: rotate(50deg) translateY(-50%);
  left: 1px;
  width: 6px;
  height: 11px;
  border-right: 2px solid var(--main-color);
  border-bottom: 2px solid var(--main-color);
}

/*
カスタムセレクトボタン（selectタグには疑似要素をつけられないため、大枠の.selectにつける）
--------------------------------------------------------*/
.select {
  display: inline-block;
  position: relative;
  vertical-align: middle;
  width: 100%;
}
select {
  width: 100%;
  border: 1px solid #ccc;
  padding-right: 20px;
  outline: 0;
  background: var(--white-color);
  background-image: none;
  box-shadow: none;
  text-indent: 0.01px;
  text-overflow: ellipsis;
} 
.select::before {
  position: absolute;
  content: "";
  border-color: #777 transparent transparent transparent;
  top: 50%;
  transform: translateY(-50%);
  right: 9px;
  width: 0;
  height: 0;
  border-width: 5px 4px 0 4px;
  border-style: solid;
  pointer-events: none;
}

/*
カスタムボタン（submit／reset／image）
--------------------------------------------------------*/
#form .btnWrap{
  margin: 24px auto;
  text-align: center;
}
#form .btn{
  display: inline-block;
  width: min(100%,320px);
  padding: 16px 24px;
  line-height: 1;
  text-align: center;
  border: none;
  font-size: 16px;
}
input.submit-btn{
  background: var(--cv-mail-color);
  color: var(--white-color);
  font-size: 20px;
}
input.reset-btn{
  background: #999;
  color:var(--white-color);
}


@media screen and (max-width:480px){
  #form .btnWrap{
    margin: 0 auto;
  }
  #form .btn{
    padding: 16px 40px;
    font-size: 16px;
  }
}






/*-------------------------------------------------------------------------------------
フォームコンテンツ
----------------------------------------------------------------------------------------*/
/*
layout
--------------------------------------------------------*/

#formWrap {
	width:800px;
	margin:0 auto;
  font-size: 16px;
}

@media screen and (max-width:480px) {
  #formWrap {
    width:95%;
    margin:0 auto;
  }
}

/*
form-table
--------------------------------------------------------*/
table.formTable{
	width:100%;
	margin:0 auto;
	border-collapse:collapse;
}
table.formTable td,table.formTable th{
	padding: 8px;
}
table.formTable th{
	width:30%;
	font-weight:700;
	text-align:left;
  vertical-align: middle;
}

table.formTable .small{
  font-size: 14px;
  font-weight: 700;
}

/* 必須 */
.required{
  display: inline-block;
  margin-left: 4px;
  padding: 2px 4px;
  background: #F25D1E;
  line-height: 1;
  font-size: 12px;
  color: #fff;
}

@media screen and (max-width:499px) {
  table.formTable th, table.formTable td {
    width:100%;
    display:block;
  }
  table.formTable th {
    padding: 0 0 8px 0;
  }
  table.formTable td{
    padding: 0 0 16px 0;
  }
  form input[type="submit"], form input[type="reset"]{
    display:block;
    width:100%;
  }
}


/*幅調整  */
.p-postal-code{
  margin-left: 10px;
  width: 35% !important;
  min-width: 170px;
}
.date{
  width: 90px;
}
.date:nth-of-type(3){
  width: 120px;
}
@media screen and (max-width:750px){
  .date{
    width: 75px;
  }
  .date:nth-of-type(3){
    width: 95px;
  }
}

@media screen and (max-width:750px){
  td.way label{
    display: block;
  }
  td.type label{
    display: block;
  }
}

