.contact-complete {
  box-sizing: border-box;
  margin: clamp(-52px, calc(-45.68px - 0.329vw), -50.42px) 0 0;
  padding: 0 clamp(16px, 1.3889vw, 20px)
    calc(100px - (46 / var(--design-pc) * 100cqw));
  color: #000;
  background-color: #fff;
  font-family: "Google Sans Flex", "Noto Sans JP", sans-serif;
}

.contact-complete *,
.contact-complete *::before,
.contact-complete *::after {
  box-sizing: border-box;
}

.contact-complete__container {
  width: min(912px, 100%);
  margin: 0 auto;
}

#page main.contact-complete .contact-complete__title {
  margin: 0;
  padding: 0;
  border: 0;
  color: #000;
  font-family: "Google Sans Flex", sans-serif;
  font-size: clamp(24px, 2.0833vw, 30px);
  font-style: normal;
  font-weight: 500;
  line-height: 27px;
  letter-spacing: 0;
  text-align: center;
}

#page main.contact-complete .contact-complete__title::before,
#page main.contact-complete .contact-complete__title::after {
  content: none;
}

.contact-complete__message {
  width: min(909px, 100%);
  margin-top: clamp(28px, 2.7778vw, 40px);
  margin-right: auto;
  margin-left: auto;
  color: #000;
  font-size: clamp(14px, 1.1111vw, 16px);
  font-weight: 400;
  line-height: 2;
  letter-spacing: 0;
}

.contact-complete__message p {
  margin: 0 0 clamp(24px, 2.2222vw, 32px);
  color: inherit;
  font: inherit;
}

.contact-complete__message p:last-child {
  margin-bottom: 0;
}

.contact-complete__phone {
  position: relative;
  display: grid;
  align-items: stretch;
  grid-template-columns: 352fr 558fr;
  width: min(912px, 100%);
  height: 155px;
  margin: clamp(48px, 4.2361vw, 61px) auto 0;
  border: 1px solid #e4e4e4;
}

.contact-complete__phone-label {
  display: flex;
  align-items: center;
  justify-content: center;
  place-self: stretch;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  color: #000;
  font-family: "Google Sans Flex", sans-serif;
  font-size: clamp(14px, 1.1111vw, 16px);
  font-style: normal;
  font-weight: 400;
  line-height: 16px;
  text-align: center;
  white-space: nowrap;
}

.contact-complete__phone-info {
  position: relative;
  display: flex;
  align-self: stretch;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  min-width: 0;
  padding: clamp(20px, 1.6667vw, 24px)
    clamp(24px, 2.7778vw, 40px)
    clamp(20px, 1.6667vw, 24px)
    clamp(32px, 5.4861vw, 79px);
  border-left: 0;
}

.contact-complete__phone-info::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 0;
  height: 90px;
  border-left: 2px solid #e4e4e4;
  content: "";
  pointer-events: none;
  transform: translateY(-50%);
}

.contact-complete__phone-number {
  display: flex;
  align-items: center;
  gap: clamp(6px, 0.5556vw, 8px);
  width: fit-content;
  height: 34px;
  color: #15b9f5;
  font-family: "Google Sans Flex", sans-serif;
  font-size: clamp(27px, 2.6389vw, 38px);
  font-style: normal;
  font-weight: 400;
  line-height: 32px;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
}

.contact-complete__phone-number span {
  flex: 0 0 51px;
  width: 51px;
  height: 31px;
  overflow: hidden;
  color: transparent;
  background: url("phone-mark.svg") center / 51px 31px no-repeat;
  font-size: 0;
  line-height: 0;
}

.contact-complete__phone-number:hover {
  color: #15b9f5;
  text-decoration: none;
}

.contact-complete__phone-number:focus-visible {
  color: #15b9f5;
  text-decoration: none;
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.contact-complete__phone-hours {
  width: 249px;
  height: 17px;
  margin: clamp(8px, 0.6944vw, 10px) 0 0;
  color: #000;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  line-height: 16px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

/* Contact見出しから本文までを約100pxにそろえる。 */
@media screen and (min-width: 1160px) and (max-width: 1439px) {
  .contact-complete {
    margin-top: calc(99.73px - 10.428vw);
  }
}

@media screen and (min-width: 1024px) and (max-width: 1159px) {
  .contact-complete {
    margin-top: calc(117.37px - 11.963vw);
  }
}

@media screen and (min-width: 821px) and (max-width: 1023px) {
  .contact-complete {
    margin-top: calc(128.26px - 13.034vw);
  }
}

@media screen and (min-width: 768px) and (max-width: 820px) {
  .contact-complete {
    margin-top: calc(316.42px - 36.4vw);
  }
}

@media screen and (max-width: 767px) {
  .contact-complete {
    margin-top: 0;
    padding: clamp(42px, calc(57.65px - 2.04vw), 50px) 0 0;
  }

  #page main.contact-complete .contact-complete__container {
    width: calc(100% - 40px);
    max-width: none;
    margin-right: auto;
    margin-left: auto;
    padding: 0;
  }

  #page main.contact-complete .contact-complete__title {
    font-size: 0;
    line-height: 0;
  }

  #page main.contact-complete .contact-complete__title::before {
    position: static;
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    color: #000;
    background: none;
    content: "お問い合わせ\Aありがとうございます。";
    font-family: "Google Sans Flex", sans-serif;
    font-size: clamp(22px, 6.4vw, 24px);
    font-style: normal;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
    transform: none;
    white-space: pre-line;
  }

  .contact-complete__message {
    margin-top: clamp(24px, 7.4667vw, 28px);
    font-size: 14px;
    line-height: 1.9;
  }

  .contact-complete__message p {
    margin-bottom: clamp(20px, 6.4vw, 24px);
  }

  .contact-complete__phone {
    grid-template-columns: 1fr;
    height: auto;
    margin-top: clamp(40px, 12.8vw, 48px);
  }

  .contact-complete__phone-info::before {
    content: none;
  }

  .contact-complete__phone-label {
    place-self: stretch;
    width: 100%;
    height: auto;
    min-height: 74px;
    padding: clamp(16px, 5.3333vw, 20px);
    font-size: clamp(14px, 4.2667vw, 16px);
  }

  .contact-complete__phone-info {
    align-items: center;
    height: auto;
    padding: clamp(20px, 6.4vw, 24px)
      clamp(14px, 4.2667vw, 16px);
    border-top: 1px solid #e4e4e4;
    border-left: 0;
  }

  .contact-complete__phone-number {
    max-width: 100%;
    font-size: clamp(27px, 8.5vw, 38px);
  }

  .contact-complete__phone-number span {
    flex-basis: 51px;
    width: 51px;
    height: 31px;
  }

  .contact-complete__phone-hours {
    text-align: center;
  }
}
