
/* ===================================================================
  contact.css
  お問い合わせページ専用

  メインビジュアルは common.css の共通スタイル
  （.lower-mv）を使用しています。

  画像配置先：images/contact/contact_mv.jpg
  推奨サイズ：横 1920px × 縦 960px 以上
  推奨アスペクト比：2:1
  元デザイン画像：横 1400px × 縦 700px（2:1）
=================================================================== */

/* メインビジュアル：お問い合わせページ用の表示位置 */
.contact-mv__image {
  object-position: center center;
}

/* サブタイトルがないため、メインタイトル単体で中央配置 */
.contact-mv__title {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .contact-mv__image {
    object-position: center center;
  }
}

/* ===================================================================
  お問い合わせ コンテンツ
=================================================================== */
.contact-content {
  padding: 80px 0 0;
}

.contact-content__inner {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.contact-content__intro {
  margin-bottom: 42px;
  font-size: 16px;
  line-height: 1.9;
}

.contact-content__block {
  margin-bottom: 46px;
}

.contact-content__block--form {
  margin-bottom: 0;
}

.contact-content__heading {
  position: relative;
  margin-bottom: 30px;
  padding-left: 32px;
  color: var(--color-main);
  font-size: 20px;
  font-weight: 700;
}

.contact-content__heading::before {
  content: "";
  position: absolute;
  top: .75em;
  left: 0;
  width: 20px;
  height: 1px;
  background: var(--color-main);
}

.contact-content__tel-row,
.contact-content__fax-row,
.contact-content__hours {
  margin: 0;
}

.contact-content__tel-row,
.contact-content__fax-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 8px;
}

.contact-content__tel-label,
.contact-content__fax-label {
  color: #0159A0;
  font-size: 16px;
  font-weight: 700;
}

.contact-content__tel-number {
  color: #0159A0;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .04em;
}

.contact-content__hours {
  margin: 0 0 6px 0;
  font-size: 14px;
}

.contact-content__fax-number {
  color: #0159A0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .03em;
}

.contact-content__fax-note {
  font-size: 14px;
}

.contact-form__list,
.contact-form__term,
.contact-form__description {
  margin: 0;
}

.contact-form__item {
  margin-bottom: 18px;
}

.contact-form__term {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 1.5;
}

.contact-form__status {
  display: inline-block;
  padding: 6px 18px;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.contact-form__status--required {
  background: #025AA1;
  color: var(--color-white);
}

.contact-form__status--optional {
  border: 1px solid #025AA1;
  color: #025AA1;
}

.contact-form__input,
.contact-form__textarea {
  display: block;
  width: 100%;
  border: 1px solid #CCCCCC;
  border-radius: 0;
  padding: 15px;
  background: var(--color-white);
  color: var(--color-text);
  font: inherit;
  line-height: 1.5;
  transition: border-color .5s ease;
}

.contact-form__textarea {
  height: 200px;
  resize: vertical;
}

.contact-form__input::placeholder,
.contact-form__textarea::placeholder {
  color: #CCCCCC;
  opacity: 1;
}

.contact-form__input:focus,
.contact-form__textarea:focus {
  border-color: #666666;
  outline: none;
}

.contact-form__privacy {
  margin-top: 50px;
}

.contact-form__privacy-heading {
  margin-bottom: 14px;
  color: #0159A0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
}

.contact-form__privacy-box {
  height: 250px;
  padding: 20px;
  border: 1px solid #CCCCCC;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.7;
}

.contact-form__privacy-box p {
  margin-bottom: 18px;
}

.contact-form__privacy-list {
  margin: 0;
  padding-left: 1.5em;
  list-style: decimal;
}

.contact-form__privacy-list li {
  margin-bottom: 16px;
}

.contact-form__privacy-note {
  margin-top: 28px;
  font-size: 14px;
  line-height: 1.9;
}

.contact-form__submit {
  margin-top: 34px;
  text-align: center;
}

.contact-form__submit-btn {
  min-width: 280px;
  min-height: 56px;
  border: 1px solid var(--color-text);
}

.contact-form__submit--confirm {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.contact-form__back-btn::after {
  right: auto;
  left: 10px;
  transform: translateY(-50%) rotate(-135deg);
}

.contact-form__notice,
.contact-form__errors {
  margin: 24px 0;
  padding: 16px;
  border: 1px solid #025AA1;
  overflow-wrap: anywhere;
}
.contact-form__errors {
  border-color: #b00020;
  color: #b00020;
}
.contact-form__errors ul {
  padding-left: 1.5em;
  list-style: disc;
}
.contact-form__field-error {
  display: block;
  margin-top: 8px;
  color: #b00020;
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
}
.contact-form__field-error[hidden] {
  display: none;
}
.contact-form__input[aria-invalid="true"],
.contact-form__textarea[aria-invalid="true"] {
  border-color: #b00020;
}
.contact-form__value {
  padding: 15px;
  overflow-wrap: anywhere;
}
.contact-form__value--message {
  white-space: pre-wrap;
}
.contact-form__consent {
  margin-top: 24px;
  text-align: center;
}
.contact-form__consent label {
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}
.contact-form__consent input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  display: inline-grid;
  place-content: center;
  width: 1em;
  height: 1em;
  margin: 0 .4em 0 0;
  border: 1px solid #666;
  border-radius: 0;
  background: #fff;
  font: inherit;
  vertical-align: -.1em;
  cursor: pointer;
}
.contact-form__consent input[type="checkbox"]::after {
  content: "";
  width: .3em;
  height: .55em;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: translateY(-.08em) rotate(45deg);
  visibility: hidden;
}
.contact-form__consent input[type="checkbox"]:checked {
  border-color: #025AA1;
  background: #025AA1;
}
.contact-form__consent input[type="checkbox"]:checked::after {
  visibility: visible;
}
.contact-form__consent input[type="checkbox"]:focus-visible {
  outline: 2px solid #025AA1;
  outline-offset: 3px;
}
@media (forced-colors: active) {
  .contact-form__consent input[type="checkbox"]:checked {
    background: Highlight;
    border-color: Highlight;
    forced-color-adjust: none;
  }
  .contact-form__consent input[type="checkbox"]:checked::after {
    border-color: HighlightText;
  }
}
.contact-form__turnstile-note {
  margin: 12px 0 24px;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}
.contact-form__turnstile {
  width: 320px;
  margin: 24px auto 12px;
  max-width: 100%;
}
.contact-form__submit-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .contact-form__submit--confirm {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }
}

.contact-other__title {
  font-size: 30px;
  margin-bottom: 40px;
  text-align: center;
}

.contact-other__text {
  margin-bottom: 20px;
  text-align: center;
}

.contact-other__link-top {
  text-align: center;
  margin-top: 40px;
}
.contact-other__link-top a {
  text-decoration: underline;
}
.contact-other__link-top a:hover {
  text-decoration: none;
}

@media (min-width: 769px) {
  .contact-content__tel-number {
    pointer-events: none;
    cursor: default;
  }
}

@media (max-width: 768px) {
  .contact-content {
    padding: 60px 0 0;
  }

  .contact-content__intro {
    margin-bottom: 34px;
    line-height: 1.85;
  }

  .contact-content__block {
    margin-bottom: 40px;
  }

  .contact-content__heading {
    margin-bottom: 22px;
    font-size: 20px;
  }

  .contact-content__info {
    padding-left: 0;
  }

  .contact-content__tel-number {
    font-size: 26px;
  }


  .contact-form__privacy {
    margin-top: 42px;
  }

  .contact-form__privacy-heading {
    font-size: 18px;
  }

  .contact-form__privacy-box {
    height: 250px;
    padding: 16px;
    font-size: 13px;
  }

  .contact-form__privacy-note {
    font-size: 13px;
  }

  .contact-form__submit-btn {
    width: 100%;
    max-width: 280px;
    min-width: 0;
  }
}

