.p-contact{
  padding-block: 16px 46px;
  padding-inline: var(--padding-inline);
  overflow: hidden;
  @media(min-width:768px){
    padding-block: 30px 120px;
  }
}
.p-contact__heading{
  color: var(--main);
  padding-top: 4px;
}
.p-contact__text{
  margin-top: 12px;
}
.p-contact__body{
  margin-top: 24px;
  padding-block: 46px 40px;
  position: relative;
  @media(min-width:768px){
    padding-block: 56px;
    max-width: 813px;
    margin-inline: auto;
    margin-top: 40px;
  }
  &::before{
    content: "";
    background-color: #F6F7F7;
    display: block;
    width: 100vw;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    translate: -50%;
    z-index: -1;
  }
}
.smf-form{
  display: flex;
  flex-direction: column;
  gap: 31px;
  letter-spacing: 0.05em;
  line-height: calc(24/16);
  @media(min-width:768px){
    gap: 40px;
  }
}
.smf-item{
  display: flex;
  flex-direction: column;
  gap: 16px;
  @media(min-width:768px){
    display: grid;
    grid-template-columns: 193px 1fr;
    gap:  calc(100%* 40 / 813);
    align-items: center;
  }
}
.smf-item__label{
  @media(min-width:768px){
    padding-left: 58px;
  }
}
.smf-item__col--controls{
  @media(min-width:768px){
    width: 374px;
  }
}
.smf-item__col:has(input[type="tel"]){
    @media(min-width:768px){
    width: 310px;
  }
}
.smf-item__col:has(textarea){
  width: 100%;
}
.required .smf-item__label{
  padding-left: 58px;
  position: relative;
  &::before{
    content: "必須";
    width: 47px;
    height: 22px;
    color: var(--base);
    background-color: var(--main);
    text-align: center;
    align-content: center;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.05em;
    display: block;
    position: absolute;
    top: 50%;
    left: 1px;
    translate: 0 -50%;
  }
}
input[type="text"]{
  width: 100%;
  border: 1px solid #4B4B4B;
  border-radius: 5px;
}
input[type="email"]{
  width: 100%;
  border: 1px solid #4B4B4B;
  border-radius: 5px;
}
input[type="tel"]{
  width: 100%;
  border: 1px solid #4B4B4B;
  border-radius: 5px;
}
.smf-checkboxes-control__control{
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.smf-form .smf-checkbox-control__control{
  width: 20px;
  height: 20px;
  margin-top: 0;
}
.smf-form .smf-checkbox-control{
  display: flex;
  gap: 21px;
  align-items: center;
}
.smf-form .smf-checkbox-control__control:checked {
  background-color: var(--base);
  border-color: var(--main);
}
.smf-form .smf-checkbox-control__control:before {
  border-color: var(--main);
}
.smf-item__label__text{
  font-weight: 700;
}
.smf-checkboxes-control__label{
  font-weight: 600;
}
.smf-checkbox-control__label{
  cursor: pointer;
  transition: var(--transition);
  @media (hover: hover) and (pointer: fine) {
    &:hover{
      color: var(--cta);
    }
  }
}
input[name="policy[]"]{
  margin-top: 0;
  width: fit-content;
  margin-inline: auto;
}
.smf-checkboxes-control__control:has(input[name="policy[]"]){
  margin-top: 0;
  width: fit-content;
  margin-inline: auto;
}
.smf-action .smf-button-control__control{
  margin-top: 47px;
  width: 317px;
  aspect-ratio: 317/60;
  margin-inline: auto;
  color: var(--base);
  letter-spacing: 0.05em;
  font-weight: 700;
  text-align: center;
  align-content: center;
  background-image: linear-gradient(90deg, var(--main), #4559BF);
  transition: var(--transition);
  @media (hover: hover) and (pointer: fine) {
    &:hover{
      transform: scale(1.1);
    }
  }
  @media(max-width:374px){
    width: 274px;
  }
}
.smf-action{
  width: fit-content;
  margin-inline: auto;
}
.smf-error-messages{
  color: #CB0101;
  line-height: calc(24/16);
  letter-spacing: 0.05em;
}
.smf-placeholder[data-name="policy"]{
  text-align: center;
}
.smf-complete-content p:first-child{
  font-size: 32px;
  letter-spacing: 0.05em;
  line-height: calc(46/32);
}
.smf-complete-content p:nth-child(2){
  margin-top: 24px;
  letter-spacing: 0.05em;
  line-height: calc(24/16);
}

.wp-block-button__link {
  color: var(--main);
  text-align: left!important;
  border-radius: 0!important;
  width: 263px!important;
  background-color: unset!important;
  aspect-ratio: 263 / 58;
  margin-inline: auto;
  margin-top: 49px;
  padding-left: 56.8px;
  font-size: 14px;
  font-family: var(--gill);
  line-height: calc(19/14);
  letter-spacing: 0.05em;
  background-image: url(../images/common/btn-top.webp);
  background-size: contain;
  background-repeat: no-repeat;
  position: relative;
  &::before{
    content: "";
    display: block;
    background-image: url(../images/common/btn-back.webp);
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    top: 7px;
    left: -8px;
    bottom: -7px;
    right: 8px;
    z-index: -1;
    transition: 0.5s;
  }
  &::after{
    content: "";
    display: block;
    width: 17px;
    aspect-ratio: 17 / 9;
    background-image: url(../images/common/arrow.svg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: absolute;
    top: 50%;
    translate: 0 -50%;
  }
  &::after{
    right: 63.8px;
  }
}
@media (hover: hover) and (pointer: fine) {
    .wp-block-button__link:hover{
      opacity: 1;

    }
    .wp-block-button__link:hover::before{
      z-index: -1;
      opacity: 0.4;
    }
  }
.wp-block-buttons{
  justify-content: center;
}
.smf-textarea-control__control{
  min-height: 240px;
}