/*
======================================
「お問い合わせ」css
======================================
*/
.consultation__title .orange {
  color: var(--color-main);
  font-size: var(--font-size-5xl);
}

.consultation__title {
  color: var(--color-text);
  font-size: var(--font-size-3xl);
  font-weight: bold;
  margin-bottom: 32px;
  text-align: center;
}

.consultation__text {
  margin-bottom: 48px;
  text-align: center;
}

.consultation__text p {
  text-align: center;
}

.consultation-tel > div {
  align-items: center;
  background-color: white;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1000px;
  padding: 32px 64px;
}

.consultation-tel__title {
  font-size: var(--font-size-xl);
  font-weight: bold;
  margin-bottom: 16px;
}


.consultation-tel__item {
  max-width: 352px;
}

/* 電話番号ボタン */
.consultation-tel-button {
  background-color: var(--color-main);
  border: solid 1px var(--color-main);
  border-radius: 16px;
  color: white;
  cursor: pointer;
  max-width: 416px;
  padding: 8px 40px;
  text-align: center;
  transition: all .3s 0s ease;
  width: 100%;
}

.consultation-tel-button:hover {
  background-color: white;
  color: var(--color-main);
}

.consultation-tel-button:hover p{
  color: var(--color-main);
}

.consultation-tel-button__checbox {
  display: none;
}

.consultation-tel-button__tel {
  color: white;
  font-size: var(--font-size-5xl);
  font-weight: bold;
  text-align: center;
}

.consultation-tel-button__tel::before {
  content: '\f095';
  font-family: var(--icon-font-family);
  font-size: var(--font-size-3xl);
  font-weight: 600;
  margin-right: 16px;
  vertical-align: text-bottom;
}

.consultation-tel-button__time {
  color: white;
  font-size: var(--font-size-sm);
  text-align: center;
}

@media screen and (max-width: 1024px) {
  .consultation-tel > div {
    flex-direction: column;
    gap: 24px;
    padding: 32px 24px;
  }
  .consultation-tel__item {
    max-width: none;
    text-align: center;
  }
  .consultation-tel-button {
    max-width: none;
  }
  .consultation__text p {
    text-align: justify;
  }
}

@media screen and (max-width: 599px) {
  .consultation-tel-button__tel {
    font-size: var(--font-size-xxl);
  }
  .consultation-tel-button {
    padding: 8px 24px;
  }
  .consultation-tel-button__tel::before {
    vertical-align: baseline;
  }
  .consultation-tel-button__time {
    font-size: 12px;
  }
}


/* タイトル */
.contact__title {
  color: var(--color-main);
  font-size: var(--font-size-3xl);
  font-weight: bold;
  margin-bottom: 40px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap:8px;
}

.contact__title::before {
  content: '\f0e0';
  font-family: var(--icon-font-family);
  font-weight: 600;
  font-size: 40px;
  line-height: 1;
}

.contact-form-thanks {
  padding: 32px 16px;
  background-color: white;
  border-radius: 8px;
}

.contact-form-thanks__title {
  font-size: 24px;
  margin-bottom: 24px;
}

@media screen and (max-width: 599px) {
  .contact__title {
    font-size: var(--font-size-xxl);
  }
  .consultation__title {
    font-size: var(--font-size-xl);
  }
  .consultation__title .orange {
    font-size: var(--font-size-xxl);
  }
  .consultation__text {
    text-align: justify;
  }
}

/* フォーム全体の設定 */
.contact-form {
  margin: 0 auto;
  max-width: 1000px;
}

/* フォーム（各項目） */
.smf-form--business .smf-item {
  border: none;
}

/* フォーム（項目名） */
.contact-form__item .smf-item__col--label {
  align-items: center;
  background-color: var(--color-form-bg);
  border: none;
  color: var(--color-text);
  display: flex;
  flex: 0 0 40%;
  font-weight: bold;
  max-width: 400px;
  padding: 24px;
  position: relative;
}

.contact-form__item .smf-item__col.smf-item__col--controls {
  background-color: white;
  padding: 24px 36px;
}

/* テキストフィールド */
.smf-text-control__control.contact-form__input,
.smf-form .smf-text-control__control.contact-form__textarea,
.smf-form .smf-text-control__control.contact-form__address {
  border: 1px solid var(--color-form-border);
  padding: 8px;
  width: 100%;
}

/* 郵便番号 */
.smf-form .smf-text-control__control.contact-form__address {
  max-width: 240px;
}

.smf-form .smf-textarea-control__control {
  resize: none;
}

/* プライバシーポリシー */
.smf-placeholder[data-name='privacy-agreement'] {
  margin: 32px 0 48px;
  text-align: center;
}

.smf-checkboxes-control {
  color: var(--color-text);
  font-weight: bold;
}

.smf-form .smf-checkbox-control__control {
  border: solid 2px var(--color-text);
  height: 18px;
  margin-top: 0;
  width: 18px;
}

/* ボタン */
.smf-action .smf-button-control__control {
  background-color: var(--color-main);
  background-image: none;
  border: 1px solid var(--color-main);
  border-radius: 8px;
  color: white;
  cursor: pointer;
  font-weight: bold;
  max-width: 384px;
  padding: 16px 40px;
  position: relative;
  transition: all .3s 0s ease;
  width: 100%;
}

.smf-action .smf-button-control__control:before {
  color: white;
  content: '\f105';
  font-family: var(--icon-font-family);
  font-size: 24px;
  font-weight: 600;
  position: absolute;
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: all .3s 0s ease;
}

.smf-action .smf-button-control__control:hover {
  background-color: white;
  color: var(--color-main);
}

.smf-action .smf-button-control__control:hover:before {
  color: var(--color-main);
}


/* 戻るボタン */
.smf-action .smf-button-control__control[data-action="back"]{
  background-color: white;
  color: var(--color-text);
  border: solid 1px var(--color-text);
}

.smf-action .smf-button-control__control[data-action="back"]:before{
  color: var(--color-text);
}

.smf-action .smf-button-control__control[data-action="back"]:hover{
  opacity: 0.7;
}

.smf-action .smf-button-control__control[data-action="back"]:hover:before{
  opacity: 0.7;
}


/* 確認画面のボタン */
form[data-screen='confirm'] .smf-action{
  display: flex;
  gap: 24px;
  justify-content: center;
  max-width: 1000px;
  margin: 24px auto 0;
}

.smf-action .smf-button-control{
  width: 100%;
}

.smf-action .smf-button-control+.smf-button-control{
  margin-left: 0;
}


/* 必須マーク */
.contact-form__item.contact-form__item--required .smf-item__col.smf-item__col--label::after {
  background: var(--color-form-required);
  color: #fff;
  content: '必須';
  display: grid;
  font-size: 12px;
  height: 24px;
  place-items: center;
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 64px;
}

/* 確認画面の際に、必須マーク、プライバシーポリシー、お問い合わせ内容を非表示にする */
form[data-screen='confirm'] .contact-form__item.contact-form__item--required .smf-item__col.smf-item__col--label::after,
form[data-screen='confirm'] .smf-placeholder[data-name='privacy-agreement'],
form[data-screen='confirm'] .smf-item__controls > p {
  display: none;
}



@media screen and (max-width: 640px) {
  .contact-form__item .smf-item__col--label {
    max-width: none;
    padding: 16px 8px;
  }
  .contact-form__item .smf-item__col.smf-item__col--controls {
    padding: 16px 8px;
  }
  .contact-form__item.contact-form__item--required .smf-item__col.smf-item__col--label::after {
    right: 8px;
  }
  form[data-screen='confirm'] .smf-action{
    flex-direction: column;
  }
  .smf-action .smf-button-control__control{
    max-width: none;
  }
}

/* プライバシーポリシーポップアップオーバーレイ */
.privacy-popup-overlay {
  background-color: rgba(0, 0, 0, .7);
  display: none;
  height: 100%;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.privacy-popup-overlay.privacy-popup-overlay--open {
  display: block;
}

/* プライバシーポリシーポップアップ */
.privacy-popup {
  background-color: white;
  border-radius: 16px;
  display: none;
  left: 50%;
  max-height: 80vh;
  max-width: 1000px;
  padding: 48px;
  position: fixed;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  z-index: 1010;
}

.privacy-popup.privacy-popup--open {
  display: block;
}

/* プライバシーポリシーポップアップタイトル */
.privacy-popup__title {
  color: var(--color-text);
  font-size: var(--font-size-xl);
  font-weight: bold;
  margin-bottom: 32px;
  text-align: center;
}

/* プライバシーポリシーポップアップテキスト */
.privacy-popup__text {
  max-height: 364px;
  overflow-y: auto;
  padding: 32px;
  word-break: break-word;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.privacy-popup__text ul {
  list-style: disc;
  padding-left: 24px;
}

.privacy-popup__text ol {
  list-style: decimal;
  padding-left: 24px;
}

.privacy-popup__text li {
  color: var(--color-text);
  font-family: var(--font-family-base);
  line-height: 1.6;
}

/* プライバシーポリシーポップアップボタン */
.privacy-popup-button {
  color: #0056b3;
  cursor: pointer;
  font-weight: bold;
  text-decoration: underline;
}

.privacy-popup-close {
  background-color: #ED7626;
  border-radius: 100%;
  cursor: pointer;
  height: 48px;
  padding: 14px 7.5px;
  position: fixed;
  right: 40px;
  top: 24px;
  width: 48px;
  z-index: 999;
}

.privacy-popup-close span {
  background-color: #fff;
  border-radius: 2px;
  position: absolute;
  top: 50%;
  width: 70%;
  height: 3px;
  transform-origin: center;
  transition: transform 0.3s ease;
}

.privacy-popup-close span:first-child {
  transform: rotate(30deg);
}

.privacy-popup-close span:last-child {
  transform: rotate(-30deg);
}

@media screen and (max-width: 599px) {
  .privacy-popup {
    padding: 40px 24px;
    width: calc(100% - 20px);
  }
  .privacy-popup-close {
    background-color: #ED7626;
    border-radius: 100%;
    cursor: pointer;
    height: 32px;
    padding: 4px 6.5px;
    position: fixed;
    right: 20px;
    top: 16px;
    width: 32px;
    z-index: 1000;
  }

  .privacy-popup-close span {
    background-color: #fff;
    border-radius: 2px;
    position: absolute;
    top: 50%;
    width: 60%;
    height: 2px;
    transform-origin: center;
    transition: transform 0.3s ease;
  }

  .privacy-popup-close span:first-child {
    transform: rotate(45deg);
  }

  .privacy-popup-close span:last-child {
    transform: rotate(-45deg);
  }
}

/*
======================================
お問い合わせページのみfooter-topを非表示にする
======================================
*/
.footer-top {
  display: none;
}
