@import url("https://fonts.googleapis.com/css2?family=Caveat&family=Oswald:wght@700&family=Roboto+Condensed:wght@700&display=swap");

.p-contact {
  padding-top: 50px;
  padding-bottom: 40px;
}

.p-contact-formWrap {
  background: var(--gra-horizon);
  padding: 4px;
  max-width: 335px;
  border-radius: 20px;
  margin: auto;
}

.p-contact-form {
  background-color: #fff;
  padding: 26px 20px 32px;
  border-radius: 16px;
  width: 100%;
  position: relative;
}

.p-contact-form:before {
  content: "1分で簡単登録";
  background: var(--gra-skew);
  border-radius: 4px;
  color: #fff;
  font-size: 14px;
  padding: 8px 20px;
  line-height: 1;
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
}

.p-contact__heading {
  color: var(--blue);
  font-weight: 700;
  font-size: 20px;
  text-align: center;
}

.p-contact__steps {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  font-family: "Roboto Condensed", sans-serif;
  font-weight: 700;
}

.p-contact__steps span {
  display: inline-block;
  width: 33.3333%;
  text-align: center;
  position: relative;
  color: var(--gray-text);
}

.p-contact__steps span:before {
  content: "";
  width: 100%;
  height: 1px;
  background: var(--gray-border);
  position: absolute;
  left: 0;
  bottom: -4px;
}

.p-contact__steps span.active {
  color: var(--black);
}
.p-contact__steps span.active:before {
  background: var(--black);
}

.p-contact__formIinner {
  margin-top: 20px;
}

.input-group {
  margin-bottom: 10px;
  flex: 1;
}

.input-group label {
  font-size: 14px;
}

label {
  display: block;
  margin-bottom: 4px;
}

legend {
  font-size: 14px;
  margin-bottom: 4px;
}

input[type="text"],
input[type="number"],
input[type="tel"],
input[type="email"] {
  line-height: 1;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--gray-border);
  border-radius: 6px;
  font-size: 14px;
}

select {
  line-height: 1.2;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--gray-border);
  border-radius: 6px;
  font-size: 14px;
  padding-right: 30px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='5'><path d='M0 0 L10 0 L5 5 z' fill='black'/></svg>")
    no-repeat;
  background-position: right 10px center;
  background-size: 10px 5px;
}

.radio-group {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: center;
}

.input-filled {
  background: rgba(66, 92, 239, 0.1);
}

input::placeholder {
  font-size: 14px;
  color: var(--gray-placeholder);
}

input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
}

input[type="text"]:focus,
input[type="radio"]:focus + label,
input[type="checkbox"]:focus + label {
  box-shadow: 0px 0px 3px var(--blue);
}

.radio-label {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  width: 100%;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 6px;
  background: var(--gray-bg, #ebebeb);
  cursor: pointer;
  position: relative;
}

input[type="radio"]:checked + .radio-label {
  background-color: var(--blue, #1779cd);
  color: white;
}

/* 中央のインジケータ（白丸）のスタイル */
input[type="radio"] + .radio-label::before {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  background-color: #fff;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  opacity: 1;
}

.radio-label::after {
  content: "";
  position: absolute;
  display: inline-block;
  width: 12px;
  height: 12px;
  background-color: var(--blue, #1779cd);
  border-radius: 50%;
  transform: scale(0);
  top: 50%;
  left: 14px;
  transform: translateY(-50%) scale(0);
}

input[type="radio"]:checked + .radio-label::after {
  transform: translateY(-50%) scale(1);
}

.p-contact[data-pc] {
  position: fixed;
  width: 374px;
  height: 100vh;
  padding: 4px;
  transition: width 0.5s; /* アニメーションの追加 */
  z-index: 101;
}

@media screen and (max-width: 1024px) {
  .p-contact[data-pc] {
    display: none;
  }
}

.p-contact[data-pc].expand {
  width: 480px;
}

.p-contact[data-pc] {
  background: var(--gra-horizon);
}

.p-contact[data-pc] .p-contact-formWrap {
  background: #fff;
  max-width: 100%;
  border-radius: 0;
  height: 99.1vh;
  padding-top: 80px;
  overflow-y: auto;
}

.p-contact-formWrap__logo {
  max-width: 273px;
  margin: auto;
}

.p-contact[data-pc] .p-contact-form:before {
  top: 40px;
}

.p-contact[data-pc] .p-contact-form {
  max-width: 295px;
  margin: auto;
  padding: 0;
  padding-top: 80px;
}

.p-contact[data-pc] .radio-group {
  margin-bottom: 20px;
}

.p-contact[data-pc] legend {
  font-size: 14px;
}

.p-contact[data-pc] .p-contact__steps {
  margin-top: 40px;
}

/********************************************************
thanksページ
/********************************************************/
.l-header {
  width: 100%;
  padding: 20px;
}

.l-header img {
  width: 100%;
  max-width: 183px;
}

.p-thanks {
  text-align: center;
  padding: 0 20px 20px;
  max-width: 375px;
  margin: auto;
}

.p-thanks__text {
  font-size: 20px;
  font-weight: 700;
}

.p-thanks__textSub {
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  margin-top: 24px;
}

.p-thanks__button {
  margin-top: 50px;
}

.p-thanks-flow {
  padding: 40px 20px;
}

.p-thanks-flowInner {
  max-width: 375px;
  margin: auto;
}

.p-thanks-flow__heading {
  text-align: center;
  font-weight: 700;
  font-size: 20px;
}

.p-thanks-flow__lists {
  margin-top: 24px;
}

.p-thanks-flow__list {
}

.p-thanks-flow__list + * {
  margin-top: 16px;
}

.p-thanks-flowFlex {
  display: flex;
  gap: 20px;
}

.p-thanks-flow__listNumber {
  font-size: 14px;
  color: var(--blue);
  text-align: center;
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1.2;
  position: relative;
}

.p-thanks-flow__listNumber:after {
  content: "";
  height: 20px;
  width: 1px;
  background: var(--blue);
  display: inline-block;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.p-thanks-flow__listNumberLong:after {
  content: "";
  height: 165px;
  width: 1px;
  background: var(--blue);
  display: inline-block;
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
}

@media screen and (max-width: 1024px) {
  .p-thanks-flow__listNumberLong:after {
    content: "";
    height: 190px;
    width: 1px;
    background: var(--blue);
    display: inline-block;
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
  }
}

.p-thanks-flow__list:last-of-type .p-thanks-flow__listNumber:after {
  height: 40px;
  bottom: -20px;
}

.p-thanks-flow__listNumber .fz-lg {
  font-size: 30px;
}

.p-thanks-flow__listText h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--blue);
}

.p-thanks-flow__listText p {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 500;
}

.p-thanks-goal {
  background: var(--gra-skew);
  color: #fff;
  padding: 20px 47px;
  border-radius: 20px;
  margin-top: 16px;
  font-weight: 700;
  text-align: center;
  position: relative;
}

.p-thanks-goalHeading {
  font-size: 30px;
}

.p-thanks-goalText {
  font-size: 14px;
  margin-top: 20px;
  font-weight: 500;
}

@media screen and (min-width: 769px) {
  .l-header {
    padding-bottom: calc((5 / 1440) * 100vw);
    padding-top: calc((50 / 1440) * 100vw);
    padding-left: calc((50 / 1440) * 100vw);
  }

  .l-header img {
    max-width: 273px;
  }

  .p-thanks {
    max-width: 489px;
    padding-bottom: 24px;
  }

  .p-thanks__text {
    font-size: 30px;
  }

  .p-thanks__textSub {
    font-size: 16px;
    text-align: center;
  }

  .p-thanks-flow {
    margin: auto;
    max-width: 640px;
    margin-bottom: 40px;
    padding: 40px;
  }
  .p-thanks-flowInner {
    max-width: 100%;
  }
  .p-thanks-flow__list + * {
    margin-top: 33px;
  }

  .p-thanks-flow__listNumber:after {
    bottom: -17px;
  }
  .p-thanks-goal {
    margin-top: 37px;
  }

  .p-thanks-flow__list:last-of-type .p-thanks-flow__listNumber:after {
    bottom: -40px;
  }
}
