/*------------------------------------
  お問い合わせフォーム
-------------------------------------*/
#CONTACT .secInner {
  background: var(--lightPink);
  border-radius: 1rem;
}

.wpcf7 {
  width: 80%;
  margin: 0 auto;
  padding: 2rem;
}

#contactForm {
  width: 100%;
  margin-bottom: 2rem;
  height: fit-content;
  border-collapse: separate;
  border-spacing: 0 2.5rem;
}

#contactForm span {
  white-space: nowrap;
}

#contactForm tbody tr {
  display: flex;
  flex-direction: column;
  margin-top: 2rem;
}

#contactForm tbody tr th {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
	text-align: left;
}

#contactForm tbody tr th small {
  position: relative;
  top: 4px;
  padding: 3px 6px;
  margin-right: 0.5rem;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid var(--Pink);
  border-radius: 4px;
}
#contactForm tbody tr th small.required {
  color: var(--White);
  background: var(--Pink);
}
#contactForm tbody tr th small.option {
  color: var(--Pink);
  background: var(--White);
}

#contactForm tbody tr th span.wpcf7-form-control-wrap {
  height: 100%;
  width: 100%;
  display: block;
}

#contactForm tbody tr td {
  position: relative;
  margin-top: 0.5rem;
  margin-left: 1rem;
}
#contactForm tbody tr:not(:first-of-type) td {
  padding: 0.5rem;
  background: var(--White);
  border: 1px solid var(--Pink);
  border-radius: 6px;
}

#contactForm tbody tr td .your-contents,
#contactForm tbody tr td .wpcf7-form-control {
  width: 100%;
  white-space: initial;
}

#contactForm tbody tr td .wpcf7-form-control .wpcf7-list-item.first {
  margin-left: 0;
}

#contactForm tbody tr td input[type="radio"] {
  display: none;
}

#contactForm tbody tr td .wpcf7-list-item-label {
  position: relative;
  padding-left: 1.2rem;
}

#contactForm tbody tr td .wpcf7-list-item-label::before,
#contactForm tbody tr td .wpcf7-list-item-label::after {
  content: "";
  position: absolute;
  display: inline-block;
  border-radius: 50%;
}
#contactForm tbody tr td .wpcf7-list-item-label::before {
  top: 0.4rem;
  left: 0;
  width: 0.75rem;
  height: 0.75rem;
  background: var(--White);
  border: 1px solid var(--Pink);
}
#contactForm tbody tr td .wpcf7-list-item-label::after {
  top: 0.55em;
  left: 0.2em;
  width: 0.5em;
  height: 0.5em;
  background: var(--Pink);
  opacity: 0;
}

#contactForm tbody tr:not(:first-of-type):not(:last-of-type) td span {
	width: 100%;
}

#contactForm tbody tr td input[type="radio"]:checked ~ .wpcf7-list-item-label::after {
  opacity: 1;
}

#contactForm tbody tr td span.wpcf7-form-control-wrap textarea {
  height: 100%;
  width: 100%;
  font-size: 1rem;
  display: block;
  resize: none;
}
  #contactForm tbody tr td span input:focus,
  #contactForm tbody tr td span textarea:focus {
    outline: none;
  }
  input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px white inset;
}

#praivacypolicy {
  padding: 1rem 0.5rem;
}

#praivacypolicy p.bolder {
  font-weight: 500;
}

#praivacypolicyBox {
  padding: 0.5rem;
  height: 200px;
  border: 1px solid var(--lightGray);
	counter-reset: item 0;
}

#praivacypolicyBox li.ppBox::before {
	counter-increment: item 1;
	content: "第" counter(item) "条"; 
	margin-right: 0.5rem;
	font-size: 1rem;
	font-weight: bold;
}
.ppBox + .ppBox {
	margin-top: 1.5rem;
}

.ppBox h6 {
	display: inline;
	font-size: 1rem;
}

.ppBox > * {
	font-size: 0.9rem;
}

.ppBox a {
	border-bottom: 1px solid var(--lightGray);
}

.ppBox div {
	margin: 1rem auto 0 5%;
}

.ppBox ol {
	counter-reset: num 0;
}
.ppBox ol.ten,
.ppBox ul li {
	padding-left: 1.5rem;
}
.ppBox ol.kakko {
	padding-left: 2rem;
}

.ppBox ol > li::before {
	counter-increment: num 1;
	display: inline-block;
	text-align: center;
}
.ppBox ol.ten > li::before {
  content: counter(num)'.';
	width: 1.5rem;
	margin-left: -1.5rem;
}
.ppBox ol.kakko > li::before {
	 content: '('counter(num)')';
	width: 2rem;
	margin-left: -2rem;
}

.ppBox ul > li {
	position: relative;
}

.ppBox ul > li::before {
	content: "" !important;
	position: absolute;
	display: block;
	top: calc((1.6em 
 - 3px) / 2);
	left: 0.75rem;
	width: 3px;
	height: 3px;
	background: var(--darkGray);
	border-radius: 50%;
}

#accept  {
  margin-top: 1.2rem;
  text-align: center;
}

#accept input[type="checkbox"] {
  display: none;
}

#accept span.wpcf7-list-item-label {
  position: relative;
  line-height: 1;
  white-space: initial;
}

#accept input[type="checkbox"] + span.wpcf7-list-item-label::before,
#accept input[type="checkbox"] + span.wpcf7-list-item-label::after {
  content: "";
  position: absolute;
  display: block;
  border: 1px solid var(--Pink);
  border-radius: 4px;
}
#accept input[type="checkbox"] + span.wpcf7-list-item-label::before {
  top: calc(40% - 0.4rem);
  width: 0.8rem;
  height: 0.8rem;
}
#accept input[type="checkbox"] + span.wpcf7-list-item-label::after {
  width: 10px;
  height: 6px;
  box-sizing: border-box;
  border-bottom: 2px solid #fff;
  border-left: 2px solid #fff;
  top: 40%;
  left: 5px;
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg) translateY(-50%);
  opacity: 0;
}

#accept input[type="checkbox"]:checked + span.wpcf7-list-item-label::before {
  background: var(--Pink);
}
#accept input[type="checkbox"]:checked + span.wpcf7-list-item-label::after {
  opacity: 1;
}

#accept .wpcf7-list-item {
  margin-left: 0;
}

#submitBtn {
  margin-bottom: 1rem;
  text-align: center;
}

#submitBtn input {
  padding: 4px 1rem;
  color: var(--White);
	line-height: 2;
  border-radius: 4px;
  transition: opacity 0.3s ease-in-out; 
}
#submitBtn input:disabled {
  background: var(--lightGray);
}
#submitBtn input:not(:disabled) {
  background: var(--darkGray);
  cursor: pointer;
  opacity: 1;
}
#submitBtn input:not(:disabled):hover {
  opacity: 0.6;
}

#submitBtn .wpcf7-spinner {
  position: absolute;
}

#submitBtn .wpcf7-spinner::before {
  width: 8px;
  height: 8px;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output,
.wpcf7 form.sent .wpcf7-response-output {
  color: var(--Black);
	text-align: center;
  background: var(--White);
  border: none;
}


@media screen and (max-width: 799px) {
  .wpcf7 {
    width: calc(90% - 2rem);
    padding: 1rem;
  }

  #contactForm tbody tr td .your-contents .wpcf7-radio  {
    display: grid;
    grid-template-rows: repeat(2, 1fr);
    grid-template-columns: repeat(2, 1fr);
  }

  #contactForm tbody tr td .your-contents .wpcf7-radio > span.wpcf7-list-item:nth-of-type(odd) {
    margin-left: 0;
  }
}


@media screen and (max-width: 599px) {
  .wpcf7 {
    width: calc(100% - 1rem);
    padding: 0.5rem;
  }

  #contactForm {
    padding: 0 1rem;
    font-size: 14px;
    border-spacing: 0;
  }
}

@media screen and (max-width: 399px) {
  #contactForm {
    padding: 0;
  }

  #contactForm tbody tr td {
    margin-left: 0.5rem;
  }

  #contactForm tbody tr td .your-contents .wpcf7-radio  {
    display: grid;
    grid-template-rows: repeat(4, 1fr);
    grid-template-columns: 1fr;
  }
  #contactForm tbody tr td .your-contents .wpcf7-radio > span.wpcf7-list-item {
    margin-left: 0;
  }
}




