/* ================================
  contact
  UPD 20251126
================================ */


/* 電話お問合せ
-------------------------------- */
#tel-sec {
	position: relative;
  text-align: center;
}
#tel-sec .bg {
	position: absolute;
	top: -4rem;
	left: -6%;
	content: "";
	border-top: 1px solid #ccc;
	border-right: 1px solid #ccc;
	border-bottom: 1px solid #ccc;
	border-radius: 0 30px 30px 0;
	height: calc(100% + 8rem);
	margin: 0 calc(50% - 50vw);
	padding: 0 calc(50vw - 50% + 8px);
	width: 100vw;
	z-index: -5;
}


/* メールお問合せ
-------------------------------- */
#form {
  position: relative;
  text-align: center;
}
#form .bg {
	position: absolute;
	top: -4rem;
	left: 6%;
	content: "";
	background-color: #f5f5f2;
	border-radius: 30px 0 0 30px;
	height: calc(100% + 9rem);
	margin: 0 calc(50% - 50vw);
	padding: 0 calc(50vw - 50% + 8px);
	width: 100vw;
	z-index: -10;
}
#form .bg::after {
    position: absolute;
    top: 0;
    right: 0;
    content: "";
    width: 100%;
    height: 100%;
    background: url(/wp/img/common/mark.png) no-repeat 0 0;
    background-size: 40% auto;
    -webkit-filter: brightness(0) invert(1);
    filter: brightness(0) invert(1);
    opacity: 1;
    z-index: -5;
}
.fromInfo {
	text-align: center;
}
.fromInfo.line {
	border-top: 1px dotted #adacac;
	border-bottom: 1px dotted #adacac;
	margin-top: 1rem;
}
.fromInfo p {
	display: inline-block;
	text-align: left;
}

/* Step表示 */
#formStep {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  margin: 2.5rem auto 2rem;
  padding: 0;
  max-width: 480px;
}
#formStep::before {
  position: absolute;
  top: 50%;
  left: 14%;
  width: calc(100vw - 14%);
  height: 1px;
	border-top: 1px dotted #adacac;
  content: "";
  z-index: -2;
	margin: 0 calc(50% - 50vw);
	padding: 0 calc(50vw - 50% + 8px);
}
#formStep > li {
  display: block;
  padding: 0.5em 1em;
  width: 30.6%;
  background-color: #f5f5f2;
  border: 1px solid #ccc;
  border-radius: 100vh;
  font-size: min(3.4vw, 14px);
  line-height: 1;
  text-align: center;
  color: #332f2f;
}
#formStep > li:nth-of-type(n + 2) {
  margin: 0px 0px 0px 4%;
}
#formStep > li.current {
  color: #fff;
  background-color: #adacac;
}

/* 入力フォーム */
#formTbl {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  overflow: auto;
}
#formTbl th,
#formTbl td {
  font-size: 15px;
  white-space: normal;
  vertical-align: top;
}
#formTbl th {
  width: 11em;
	padding: 30px 0 10px;
  font-weight: normal;
}
#formTbl th b {
	display: inline-block;
	text-align: left;
}
#formTbl th .req {
	display: inline-block;
	background-color: #e6002f;
	color: #fff;
	font-size: 11px;
	line-height: 1;
	margin: 0 0 0 5px;
	padding: 3px 5px;
}
#formTbl td {
	padding: 10px 0 10px 15px;
	text-align: left;	
}
#formTbl td p {
	margin: 0 0 10px;
	line-height: 1.5;
}

#form input,
#form textarea,
#form select {
  -webkit-appearance: none;
  appearance: none;
  display: inline-block;
}
#form input,
#form textarea,
#form td label {
  font-size: 16px;
}

#form input[type="text"],
#form input[type="email"],
#form input[type="tel"],
#form textarea {
  margin: 10px 1% 10px;
  padding: 1em 0.5em;
  display: inline-block;
  background-color: #fff;
}
#form input,
#form textarea,
#form select,
#form td label {
  border: 1px solid #c3c3c3;
  border-radius: 6px;
	position: relative; /* validationEngine表示位置調整 */
}

#form input[type="text"].wL,
#form input[type="email"],
#form textarea {
  width: 98%;
}

/* checkbox */
#form td label {
  display: inline-block;
  background-color: #fff;
  margin: 10px 1% 10px;
  padding: 0.5em;
  box-sizing: border-box;
}
#form input[type="checkbox"] {
  opacity: 0;
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
}
#form label:has(input[type="checkbox"])::before {
  display: inline-block;
  content: "";
  width: 1rem;
  height: 1rem;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 100vh;
  margin-right: 0.5rem;
}
#form label:has(input[type="checkbox"]:checked )::before {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpolyline fill='none' stroke='%23e6002f' stroke-width='3' points='2,7.3 7.3,12.7 18,2 '/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 0 2px;
}

/* 記入例 */
#form ::placeholder {
  color: #ccc;
}

/* 選択時枠線追加 */
#form input:focus,
#form textarea:focus,
#form td label:has(input:checked) {
  border: 1px solid #332f2f;
}

/* ボタン */
#inputBtnBox {
	display: flex;
	justify-content: center;
	margin: 2rem auto 0;
}
#inputBtnBox input {
  background-color: transparent;
	border: 1px solid #332f2f;
  color: #332f2f;
  padding: 14px 30px;
  text-decoration: none;
  font-size: 1rem;
	letter-spacing: 0.05em;
	line-height: 1;
  outline-offset: 0;
  display: inline-block;
  transition: 0.3s;
	margin: 0 10px;
}
#inputBtnBox input[type="submit"] {
	background-color: #332f2f;
	border: 0;
	color: #fff;
	outline: 1px solid;
  outline-color: #332f2f;
}

@media (hover: hover) {
	#inputBtnBox input:hover {
		cursor: pointer;
	}
	#inputBtnBox input[type="reset"]:hover {
		color: #e6002f;
		border-color: currentColor;
	}
	#inputBtnBox input[type="submit"]:hover {
		background-color: #e6002f;
		outline-color: #e6002f;
		animation: light 0.8s infinite;
	}
}

@keyframes light {
  100% { 
    outline-color: transparent;
    outline-offset: 10px;
  }
}	


@media screen and (max-width: 479px) {
  #form input[type="text"]:not(.p-postal-code),
  #form input[type="email"],
  #form input[type="tel"],
  #form td label {
    width: 98%;
  }
}

@media screen and (max-width: 767px) {
	#tel-sec.sideSp {
		width: 88%;
		padding-right: 5%;
	}
	#form {
		padding-top: 1rem;
		padding-left: 5%;
	}
  #formTbl th,
  #formTbl td {
    display: block;
    width: 100%;
    text-align: left;
		padding-top: 0; 
		padding-left: 0;
  }
	#formTbl th {
		padding-top: 10px;
	}
}

@media screen and (min-width: 768px) {
	#formTbl th {
		display: flex;
		justify-content: space-between;
		align-items: center;
	}
	#formTbl th b {
		width: 8em;
	}
}

@media screen and (min-width: 960px) {
  #tel-sec {
    position: sticky;
    bottom: 0;
  }
    
}


/* --------------------------------
	送信完了
-------------------------------- */
#form.secBox.thanksBox {/*調整*/
	padding-top: 0;
}
#form.thanksBox .bg {/*調整*/
	height: calc(100% + 7rem);
}

/* 電話連絡先 */
#thanksTel {
	position: relative;
	margin: 3rem auto 0;
	padding: 3rem 0 0;
}
#thanksTel::before {
	position: absolute;
	top: 0;
	left: calc(50% - 3rem);
	content: "";
	width: 6rem;
	height: 1px;
	border-top: 1px dotted #adacac;
}
#thanksTel h3 {
	margin: 0 auto 1em;
font-size: min(4.5vw, 18px);
}
#thanksTel .notes {
	font-size: min(3.5vw, 14px);
}

@media screen and (max-width: 767px) {
	#thanksText p {
		text-align: left;
	}
}



