@charset "UTF-8";
/* お問い合わせ見出し */
.contact-hero  {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 450px;
  height: 264px;
  overflow: hidden;
  background: linear-gradient(165.5deg, #1782e5 40%, #03b9d8 101%);
  color: #fff;
}

.contact-heading  {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  align-content: center;
  column-gap: 20px;
  row-gap: 10px;
  padding: 0 40px 16px 74px;
}

.contact-heading > img  {
  align-self: center;
  height: auto;
}

.contact-heading h1  {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.4;
}

.contact-heading p  {
  grid-column: 2;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.6;
}

.contact-photo  {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* お問い合わせフォーム */
.contact-entry  {
  min-height: 1224px;
  padding: 108px 24px 126px;
}

.contact-lead  {
  margin-bottom: 78px;
  font-size: 22px;
  line-height: 40px;
  text-align: center;
}

.contact-form  {
  display: grid;
  justify-items: center;
  gap: 52px;
  max-width: 846px;
  margin: 0 auto;
  text-align: left;
}

.form-row  {
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
  align-items: start;
  gap: 38px;
  width: 100%;
}

.form-row label  {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 19px;
  padding-top: 7px;
  color: #b3b4b4;
  font-size: 18px;
  font-weight: 500;
  line-height: 32px;
  white-space: nowrap;
}

.required, .optional  {
  display: inline-block;
  flex: 0 0 45px;
  width: 45px;
  height: 28px;
  color: #fff;
  font-size: 15px;
  line-height: 28px;
  text-align: center;
}

.required  {
  background: #ff8b8b;
}

.optional  {
  background: #62cafa;
}

.form-row input, .form-row select, .form-row textarea  {
  width: 400px;
  max-width: 100%;
  min-width: 0;
  height: 46px;
  min-height: 0;
  padding: 6px 20px;
  border: 1px solid #000;
  border-radius: 10px;
  background: #fff;
  color: #000;
  font-size: 20px;
  line-height: 32px;
}

.form-row textarea  {
  width: 600px;
  height: 240px;
  resize: vertical;
}

.form-row select  {
  -webkit-appearance: none;
  appearance: none;
  height: 44px;
  padding-right: 46px;
}

.form-select  {
  position: relative;
}

.form-select::after  {
  content: "";
  position: absolute;
  top: 11px;
  left: 606px;
  width: 15px;
  height: 15px;
  border-right: 2px solid #000;
  border-bottom: 2px solid #000;
  transform: rotate(45deg);
  pointer-events: none;
}

.form-message + button  {
  margin-top: 20px;
}

.contact-form button:disabled  {
  cursor: not-allowed;
  opacity: 1;
}

.privacy-link  {
  color: var(--blue);
  font-size: 18px;
  line-height: 22px;
  text-align: center;
  text-decoration: none;
}

.form-trap  {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-errors  {
  max-width: 846px;
  margin: -38px auto 52px;
  padding: 20px 28px;
  border: 2px solid #ff8b8b;
  border-radius: 10px;
  color: #d64545;
  font-size: 18px;
  line-height: 1.7;
}

.form-errors ul  {
  list-style: none;
}

.contact-entry.is-sent  {
  min-height: 0;
}

.form-notice  {
  max-width: 846px;
  margin: 0 auto;
  padding: 48px 24px;
  border-radius: 20px;
  background: var(--pale);
  font-size: 20px;
  line-height: 36px;
  text-align: center;
}

.form-notice strong  {
  font-size: 24px;
}

/* 電話・LINE相談 */
.contact-channels  {
  display: flex;
  justify-content: center;
  gap: 128px;
  min-height: 448px;
  padding: 108px 24px 100px;
  background: var(--pale);
  color: #fff;
}

.contact-card  {
  display: grid;
  justify-items: center;
  align-content: start;
  width: 360px;
  max-width: 100%;
  height: 256px;
  padding: 32px 20px 24px;
  border-radius: 20px;
  background: linear-gradient(var(--blue), var(--cyan));
  text-align: center;
}

.contact-card h2  {
  position: relative;
  font-size: 24px;
  font-weight: 700;
  line-height: 34px;
  transform: translateX(22px);
}

.contact-card h2 img  {
  position: absolute;
  right: calc(100% + 10px);
  top: -3px;
  object-fit: contain;
}

.contact-phone  {
  margin-top: 23px;
  font-size: 36px;
  font-weight: 700;
  line-height: 44px;
  text-decoration: none;
  white-space: nowrap;
}

.contact-hours  {
  margin-top: 20px;
  font-size: 22px;
  font-weight: 700;
  line-height: 30px;
}

/* LINE：PCはQRコード、SPは友だち追加ボタン */
.line-qr  {
  width: 100px;
  height: 100px;
  margin-top: 12px;
  border-radius: 6px;
}

.line-friend  {
  display: none;
  width: 167px;
  margin-top: 27px;
}

.line-friend img  {
  width: 100%;
  height: auto;
}

.contact-always  {
  margin-top: 6px;
  font-size: 22px;
  font-weight: 700;
  line-height: 44px;
  white-space: nowrap;
}

.contact-always strong  {
  font-size: 36px;
}

/* 無料相談スタッフ */
.contact-staff  {
  min-height: 1316px;
  padding: 120px 24px 210px;
  color: var(--cyan);
  text-align: center;
}

.contact-staff h2  {
  font-size: 36px;
  font-weight: 700;
  line-height: 50px;
}

.contact-staff > img  {
  width: 774px;
  height: 840px;
  margin: 86px auto 0;
  object-fit: cover;
  object-position: center 11%;
  box-shadow: 14px 14px #e2f5f8;
}

@media (min-width: 1101px)  {
  .contact-heading p  {
    font-weight: 500;
  }
}

@media (min-width: 761px) and (max-width: 1100px)  {
  .contact-hero  {
    grid-template-columns: minmax(0, 1fr) 31.25%;
  }
  .contact-heading  {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 10px;
    padding: 0 22px;
  }
  .contact-heading h1  {
    font-size: 27px;
  }
  .contact-heading p  {
    font-size: 16px;
  }
  .contact-channels  {
    gap: 6vw;
  }
  .form-select::after  {
    left: min(606px, calc(100% - 22px));
  }
}

@media (max-width: 760px)  {
  .contact-hero  {
    display: block;
    height: auto;
  }
  /* 写真を除いた見出し部分だけに PC と同じグラデーションをかける（Figma SP） */
  .contact-heading  {
    background: linear-gradient(165.5deg, #1782e5 25%, #03b9d8 105%);
  }
  .contact-heading  {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 4px 10px;
    min-height: 121px;
    padding: 25px 28px 25px 20px;
  }
  .contact-heading > img  {
    width: 50px;
    height: auto;
  }
  .contact-heading h1  {
    font-size: 20px;
    line-height: 28px;
    white-space: nowrap;
  }
  .contact-heading p  {
    font-size: 12px;
    font-weight: 500;
    line-height: 18px;
  }
  /* SPの写真は Figma SP（393px）のときの縦横比を保つ（高さを固定すると、幅が広いほど横長に切り抜かれて上下が欠けるため） */
  .contact-photo  {
    width: 100%;
    height: auto;
    aspect-ratio: 393 / 230;
    object-position: center;
  }
  .contact-entry  {
    min-height: 592px;
    padding: 36px 24px 41px;
  }
  .contact-lead  {
    margin: 0 -14px 42px;
    font-size: 12px;
    line-height: 18px;
  }
  .contact-form  {
    gap: 26px;
    width: 327px;
    max-width: 100%;
    margin: 0 auto;
  }
  .form-row  {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 8px;
  }
  .form-row label  {
    gap: 7px;
    padding-top: 4px;
    font-size: 10px;
    line-height: 14px;
  }
  .required, .optional  {
    flex-basis: 20px;
    width: 20px;
    height: 12px;
    font-size: 9px;
    line-height: 12px;
  }
  .form-row input, .form-row select, .form-row textarea  {
    width: 171px;
    max-width: 100%;
    height: 22px;
    min-height: 0;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    line-height: 16px;
  }
  .form-row select  {
    padding-right: 24px;
  }
  .form-select::after  {
    top: 5px;
    left: min(278px, calc(100% - 16px));
    width: 9px;
    height: 9px;
  }
  .form-row textarea  {
    width: 200px;
    height: 94px;
    min-height: 94px;
  }
  .form-message + button  {
    width: 260px;
    max-width: 100%;
    min-width: 0;
    height: 44px;
    margin-top: 37px;
    font-size: 18px;
    font-weight: 500;
  }
  .privacy-link  {
    margin-top: 2px;
    font-size: 12px;
    line-height: 14px;
  }
  .form-errors  {
    margin: -20px 0 26px;
    padding: 12px 16px;
    font-size: 12px;
  }
  .form-notice  {
    padding: 28px 16px;
    font-size: 14px;
    line-height: 24px;
  }
  .form-notice strong  {
    font-size: 16px;
  }
  .contact-channels  {
    flex-direction: column;
    align-items: center;
    gap: 38px;
    min-height: 497px;
    padding: 48px 24px 51px;
  }
  .contact-card  {
    width: 280px;
    height: 180px;
    padding: 20px 15px;
    border-radius: 20px;
  }
  .contact-card h2  {
    font-size: 20px;
    line-height: 28px;
    transform: none;
  }
  /* 電話のピクトは、番号の数字の字面の上下の中心にそろえる */
  .contact-card h2 .card-phone  {
    top: 47px;
    right: calc(100% + 31px);
    width: 22px;
    height: 28px;
  }
  .contact-phone  {
    margin-top: 11px;
    padding-left: 24px;
    font-size: 30px;
    line-height: 40px;
  }
  .contact-hours  {
    margin-top: 9px;
    font-size: 18px;
    line-height: 26px;
  }
  /* スマホのピクトは友だち追加ボタンとの間を約10pxに（ピクトとボタンのまとまりがカードの中央に来る） */
  .contact-card h2 .card-mobile  {
    top: 44px;
    right: calc(100% - 41px);
    width: 32px;
    height: 43px;
  }
  .line-qr  {
    display: none;
  }
  .line-friend  {
    display: block;
    width: 127px;
    margin: 16px 0 0 42px;
  }
  .line-friend img  {
    border: 2px solid #fff;
    border-radius: 4px;
  }
  .contact-always  {
    margin-top: 12px;
    font-size: 18px;
    line-height: 36px;
  }
  .contact-always strong  {
    font-size: 30px;
  }
  .contact-staff  {
    min-height: 554px;
    padding: 48px 24px 64px;
  }
  .contact-staff h2  {
    font-size: 22px;
    line-height: 32px;
  }
  .contact-staff > img  {
    width: 317px;
    max-width: calc(100% - 16px);
    height: 344px;
    margin-top: 34px;
    box-shadow: 5px 5px #e2f5f8;
  }
}

@media (max-width: 380px)  {
  .contact-heading  {
    padding-right: 12px;
    padding-left: 12px;
    gap: 4px 7px;
    grid-template-columns: 40px minmax(0, 1fr);
  }
  .contact-heading h1  {
    font-size: 17px;
  }
  .contact-heading p  {
    font-size: 11px;
  }
  .form-row  {
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 6px;
  }
  .form-row label  {
    gap: 4px;
  }
}
