@charset "utf-8";

/* ==========================================================================
   大誠有限会社 — お問い合わせページ専用スタイル
   寸法はすべて rem（1rem = 10px @1300px）。共通部品は main.css / lower.css を参照。
   ========================================================================== */

/* 見出しは一文字ずつの出現で制御するため、共通のフェードアップからは除外する */
.title02.scr-anin {
  opacity: 1;
  translate: 0;
}

/* テキストリンク */
.link01 {
  color: var(--c-brand);
  text-decoration: underline;
  text-underline-offset: 0.3rem;
  transition: opacity 0.3s ease;
}
.link01:hover {
  opacity: 0.6;
}

.contact-lead {
  margin-top: 6rem;
}
@media screen and (max-width: 1023px) {
  .contact-lead {
    margin-top: 4rem;
  }
}

/* --------------------------------------------------------------------------
   電話番号
   -------------------------------------------------------------------------- */
.contact-tel {
  margin-top: 6rem;
  padding: 5rem 2rem;
  text-align: center;
  background-color: var(--c-bg-light);
}
.contact-tel__label {
  font-size: max(1.5rem, 10px);
  letter-spacing: 0.08em;
}
.contact-tel__num {
  display: inline-block;
  margin-top: 1.5rem;
  font-family: var(--f-en);
  font-weight: 700;
  font-size: max(4.6rem, 10px);
  line-height: 1.1;
  letter-spacing: 0.04em;
  transition: color 0.3s ease;
}
.contact-tel__num:hover {
  color: var(--c-brand);
}
.contact-tel__note {
  margin-top: 1.5rem;
  font-size: max(1.4rem, 10px);
  letter-spacing: 0.05em;
  color: var(--c-text-sub);
}
@media screen and (max-width: 1023px) {
  .contact-tel {
    margin-top: 4rem;
    padding: 4rem 1.5rem;
  }
  .contact-tel__num {
    font-size: max(3.4rem, 10px);
  }
}

/* --------------------------------------------------------------------------
   連絡先一覧
   -------------------------------------------------------------------------- */
.contact-table {
  margin-top: 6rem;
}
/* 免許有効期間などの補足 */
.contact-table__note {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: max(1.3rem, 10px);
  color: var(--c-text-sub);
}
@media screen and (max-width: 1023px) {
  .contact-table {
    margin-top: 4rem;
  }
}

/* --------------------------------------------------------------------------
   フォーム（外部サービス未接続のための案内ブロック）
   -------------------------------------------------------------------------- */
.contact-form-note {
  margin-top: 6rem;
  padding: 5rem;
  background-color: var(--c-white);
  border: 0.1rem solid var(--c-line);
}
.contact-form-note__ttl {
  font-size: max(2rem, 10px);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.05em;
}
.contact-form-note .txt01 {
  margin-top: 2rem;
}
.contact-form-note__btn {
  margin-top: 4rem;
  font-family: var(--f-en);
}
@media screen and (max-width: 1023px) {
  .contact-form-note {
    margin-top: 4rem;
    padding: 3rem 2rem;
  }
  .contact-form-note__ttl {
    font-size: max(1.7rem, 10px);
  }
  .contact-form-note__btn {
    margin-top: 3rem;
  }
}

/* --------------------------------------------------------------------------
   アクセス（地図）
   -------------------------------------------------------------------------- */
.contact-map {
  position: relative;
  margin-top: 6rem;
  aspect-ratio: 16/7;
  background-color: var(--c-bg-light);
}
.contact-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.contact-address {
  margin-top: 3rem;
}
.contact-map__link {
  margin-top: 3rem;
}
@media screen and (max-width: 1023px) {
  .contact-map {
    margin-top: 4rem;
    aspect-ratio: 4/3;
  }
  .contact-address {
    margin-top: 2.5rem;
  }
}

/* --------------------------------------------------------------------------
   フォーム準備中の導線（電話・メールの 2 ボタン）
   -------------------------------------------------------------------------- */
.contact-form-note__btns {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 4rem;
  margin-top: 3rem;
}
@media screen and (max-width: 1023px) {
  .contact-form-note__btns {
    flex-direction: column;
    gap: 1.5rem;
  }
}

/* アクセスの最寄駅 */
.contact-access__note {
  margin-top: 1.5rem;
  font-family: var(--f-body);
  font-size: max(1.4rem, 10px);
  line-height: 2;
  letter-spacing: 0.05em;
  color: var(--c-text-sub);
}

/* ==========================================================================
   お問い合わせフォーム
   ========================================================================== */
.cform {
  width: 76rem;
  margin-inline: auto;
  margin-top: 5rem;
}
@media screen and (max-width: 1023px) {
  .cform {
    width: 100%;
    margin-top: 4rem;
  }
}

.cform__row {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-wrap: wrap;
  padding-block: 2.6rem;
  border-bottom: 0.1rem solid var(--c-line);
}
@media screen and (max-width: 1023px) {
  .cform__row {
    display: block;
    padding-block: 2rem;
  }
}

.cform__label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  width: 22rem;
  padding-top: 1rem;
  font-size: max(1.5rem, 10px);
  font-weight: 700;
  letter-spacing: 0.05em;
}
@media screen and (max-width: 1023px) {
  .cform__label {
    width: 100%;
    padding-top: 0;
    margin-bottom: 1rem;
    font-size: max(1.4rem, 10px);
  }
}

.cform__req {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0.2rem 0.8rem;
  font-family: var(--f-body);
  font-size: max(1.1rem, 10px);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--c-white);
  background-color: var(--c-brand);
  border-radius: 100vmax;
}

.cform__field {
  flex: 1;
  min-width: 0;
}

.cform__input {
  width: 100%;
  padding: 1.4rem 1.6rem;
  font-family: var(--f-body);
  font-size: max(1.5rem, 16px); /* iOS の自動ズーム防止のため 16px を下限にする */
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--c-text);
  /* フォームは淡色セクションの中に置くため、入力欄は白地＋枠線にする。
     背景と同じ淡色にすると入力欄の輪郭が消えてしまう。 */
  background-color: var(--c-white);
  border: 0.1rem solid #dcdcdc;
  border-radius: 0.2rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  appearance: none;
}
.cform__input::placeholder {
  color: #b4b4b4;
}
.cform__input:focus {
  outline: none;
  border-color: var(--c-brand);
  box-shadow: 0 0 0 0.3rem rgba(0, 153, 217, 0.12);
}
.cform__input.is-invalid {
  border-color: #d9534f;
  background-color: #fdf4f4;
}

.cform__textarea {
  resize: vertical;
  min-height: 16rem;
}

/* select は矢印を自前で描く */
.cform__select {
  position: relative;
}
.cform__select::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 1.6rem;
  width: 0.8rem;
  height: 0.8rem;
  margin: auto;
  border-bottom: 0.1rem solid var(--c-text);
  border-right: 0.1rem solid var(--c-text);
  rotate: 45deg;
  pointer-events: none;
}
.cform__select .cform__input {
  padding-right: 4rem;
  cursor: pointer;
}

.cform__error {
  margin-top: 0.8rem;
  font-family: var(--f-body);
  font-size: max(1.3rem, 10px);
  line-height: 1.6;
  color: #d9534f;
}
.cform__error:empty {
  display: none;
}

/* 個人情報の同意 */
.cform__privacy {
  margin-top: 3rem;
  text-align: center;
}
.cform__check {
  display: inline-flex;
  justify-content: center;
  align-items: flex-start;
  gap: 1.2rem;
  text-align: left;
  cursor: pointer;
}
.cform__check input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.cform__check-box {
  flex: none;
  position: relative;
  width: 2rem;
  height: 2rem;
  margin-top: 0.3rem;
  background-color: var(--c-white);
  border: 0.1rem solid #c8c8c8;
  border-radius: 0.2rem;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}
.cform__check-box::after {
  content: "";
  position: absolute;
  top: 0.35rem;
  left: 0.65rem;
  width: 0.5rem;
  height: 1rem;
  border-bottom: 0.2rem solid var(--c-white);
  border-right: 0.2rem solid var(--c-white);
  rotate: 45deg;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.cform__check input:checked + .cform__check-box {
  background-color: var(--c-brand);
  border-color: var(--c-brand);
}
.cform__check input:checked + .cform__check-box::after {
  opacity: 1;
}
.cform__check input:focus-visible + .cform__check-box {
  outline: 0.2rem solid var(--c-brand);
  outline-offset: 0.2rem;
}
.cform__check-txt {
  font-family: var(--f-body);
  font-size: max(1.4rem, 10px);
  line-height: 1.9;
  letter-spacing: 0.04em;
}

/* 送信ボタン */
.cform__submit {
  margin-top: 4rem;
  text-align: center;
}
.cform__btn {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 32rem;
  max-width: 100%;
  height: 6rem;
  font-family: var(--f-en);
  font-weight: 500;
  font-size: max(1.5rem, 10px);
  letter-spacing: 0.1em;
  color: var(--c-white);
  background-color: var(--c-text);
  border-radius: 100vmax;
  transition: background-color 0.3s ease, opacity 0.3s ease;
}
.cform__btn:hover {
  background-color: var(--c-brand);
}
.cform__btn:disabled,
.cform__btn.is-sending {
  opacity: 0.6;
  cursor: not-allowed;
}

/* 送信結果 */
.cform__status {
  margin-top: 2.5rem;
  font-family: var(--f-body);
  font-size: max(1.4rem, 10px);
  line-height: 1.9;
  text-align: center;
}
.cform__status:empty {
  display: none;
}
.cform__status--info {
  color: var(--c-text-sub);
}
.cform__status--done {
  padding: 2rem;
  color: var(--c-brand);
  background-color: #eef8fd;
}
.cform__status--error {
  padding: 2rem;
  color: #d9534f;
  background-color: #fdf4f4;
}
