/* =====================================================
   お問い合わせページ - Figma完全再現
   ===================================================== */

/* 本番環境の他CSSによるinput上書きを打ち消し */
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form input[type="text"],
.contact-form input[type="url"],
.contact-form textarea {
  margin-bottom: 0 !important;
}

/* SP/PC表示切替 */
.sp-only {
  display: none;
}
.pc-only {
  display: inline;
}

/* タイトルセクション */
.contact-hero {
  background: var(--color-bg-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 320px;
  margin-top: clamp(60px, 5.56vw, 80px);
}

.contact-hero__title {
  font-family: 'FOT-TsukuAntiqueLMin Std', var(--font-mincho);
  font-weight: 300;
  font-size: 64px;
  line-height: 94px;
  color: #604d44;
  text-align: center;
}

/* フォームセクション */
.contact-form-section {
  background: var(--color-bg-cream);
  padding: 50px 105px 100px;
}

.contact-form-section__inner {
  max-width: 1230px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 100px;
}

/* ステップナビゲーション */
.contact-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.contact-steps__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: rgba(53, 35, 4, 0.4);
  padding-bottom: 10px;
}

.contact-steps__item--active {
  color: #352304;
}

.contact-steps__number {
  font-family: 'FOT-TsukuAntiqueLMin Std', var(--font-mincho);
  font-weight: 300;
  font-size: 32px;
  line-height: normal;
}

.contact-steps__label {
  font-family: var(--font-mincho);
  font-weight: 600;
  font-size: 28px;
  line-height: 54px;
}

.contact-steps__line {
  width: 50px;
  height: 2px;
  background: rgba(53, 35, 4, 0.4);
  flex-shrink: 0;
}

/* 説明文 */
.contact-desc {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  text-align: center;
  color: #352304;
  max-width: 747px;
}

.contact-desc__main {
  font-family: var(--font-gothic);
  font-weight: 500;
  font-size: 24px;
  line-height: 44px;
  letter-spacing: -1.2px;
}

.contact-desc__note {
  font-family: var(--font-gothic);
  font-weight: 400;
  font-size: 20px;
  line-height: 36px;
}

/* フォーム本体 */
.contact-form {
  background: #fff;
  width: 100%;
  max-width: 1230px;
  padding: 50px 100px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  filter: drop-shadow(0px 0px 1px rgba(0, 0, 0, 0.25));
}

/* フォーム行 */
.contact-form__row {
  display: flex;
  align-items: center;
  gap: 70px;
}

.contact-form__row--top {
  align-items: flex-start;
}

/* ラベルエリア */
.contact-form__label-area {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 350px;
  flex-shrink: 0;
}

.contact-form__label {
  font-family: var(--font-gothic) !important;
  font-weight: 500 !important;
  font-size: 22px !important;
  line-height: 44px !important;
  color: #352304 !important;
  white-space: nowrap;
}

.contact-form__required {
  font-family: var(--font-gothic);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.8px;
  color: #d67c3d;
  border: 1px solid #d67c3d;
  border-radius: 5px;
  padding: 0 15px;
  line-height: normal;
  white-space: nowrap;
}

/* 入力エリア */
.contact-form__input-area {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 96px;
}

.contact-form__input-area--name {
  gap: 80px;
}

.contact-form__input-area--column {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

/* 名前グループ */
.contact-form__name-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-form__name-label {
  font-family: var(--font-gothic) !important;
  font-weight: 500 !important;
  font-size: 20px !important;
  line-height: 44px !important;
  color: #352304 !important;
  white-space: nowrap;
}

/* インプット */
.contact-form__input {
  height: 40px;
  border: 0.5px solid #352304;
  background: transparent;
  font-family: var(--font-gothic);
  font-size: 16px;
  color: #352304;
  padding: 0 10px;
  outline: none;
}

.contact-form__input--name {
  width: 231px !important;
}

.contact-form__input--full {
  width: 610px !important;
}

/* テキストエリア */
.contact-form__textarea {
  width: 610px !important;
  height: 350px !important;
  border: 0.5px solid #352304;
  background: transparent;
  font-family: var(--font-gothic);
  font-size: 16px;
  color: #352304;
  padding: 10px;
  outline: none;
  resize: vertical;
}

/* ヒント */
.contact-form__hint {
  font-family: var(--font-gothic);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.8px;
  color: #352304;
}

/* 区切り線 */
.contact-form__divider {
  width: 1030px;
  height: 1px;
  background: #352304;
  opacity: 0.15;
  align-self: center;
}

/* チェックボックス */
.contact-form__checkbox {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  cursor: pointer;
}

.contact-form__checkbox input[type="checkbox"] {
  display: none;
}

.contact-form__checkbox-box {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 1px solid #352304;
  flex-shrink: 0;
  position: relative;
  margin: 0 !important;
  vertical-align: middle;
}

.contact-form__checkbox input[type="checkbox"]:checked + .contact-form__checkbox-box {
  background: #352304;
}

.contact-form__checkbox input[type="checkbox"]:checked + .contact-form__checkbox-box::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 8px;
  height: 12px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.contact-form__checkbox-text {
  font-family: var(--font-gothic) !important;
  font-weight: 500 !important;
  font-size: 20px !important;
  line-height: 44px !important;
  color: #352304 !important;
  white-space: nowrap;
}

/* 希望の連絡先のgap調整 */
.contact-form__row:nth-child(15) .contact-form__input-area {
  gap: 68px;
}

/* プライバシーポリシー */
.contact-form__privacy {
  display: flex;
  justify-content: center;
  padding-top: 10px;
}

.contact-form__privacy-label {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  cursor: pointer;
}

.contact-form__privacy-label input[type="checkbox"] {
  display: none;
}

.contact-form__privacy-box {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 1px solid #352304;
  border-radius: 4px;
  flex-shrink: 0;
  position: relative;
  margin: 0 !important;
  vertical-align: middle;
}

.contact-form__privacy-label input[type="checkbox"]:checked + .contact-form__privacy-box {
  background: #352304;
}

.contact-form__privacy-label input[type="checkbox"]:checked + .contact-form__privacy-box::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 8px;
  height: 12px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.contact-form__privacy-text {
  font-family: var(--font-gothic) !important;
  font-weight: 500 !important;
  font-size: 20px !important;
  line-height: 44px !important;
  color: #352304 !important;
  white-space: nowrap;
}

/* 確認画面へボタン */
.contact-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #352304;
  border: none;
  cursor: pointer;
  padding: 18px 64px;
  height: 73px;
  transition: opacity 0.3s;
}

.contact-submit:hover {
  opacity: 0.85;
}

.contact-submit__icon {
  width: 23px;
  height: 23px;
  flex-shrink: 0;
}

.contact-submit__text {
  font-family: var(--font-gothic);
  font-weight: 700;
  font-size: 18px;
  line-height: 36px;
  color: white;
  text-align: center;
  width: 214px;
}

/* =====================================================
   完了ページ
   ===================================================== */
.contact-complete {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
}

.contact-complete__title {
  font-family: var(--font-mincho);
  font-weight: 600;
  font-size: 36px;
  line-height: 52px;
  color: #352304;
  text-align: center;
}

.contact-complete__message {
  font-family: var(--font-gothic);
  font-weight: 500;
  font-size: 24px;
  line-height: 44px;
  letter-spacing: -1.2px;
  color: #352304;
  text-align: center;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* =====================================================
   確認ページ
   ===================================================== */
.contact-confirm {
  background: #fff;
  width: 100%;
  max-width: 1230px;
  padding: 50px 100px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  filter: drop-shadow(0px 0px 1px rgba(0, 0, 0, 0.25));
}

.contact-confirm__row {
  display: flex;
  align-items: center;
  gap: 70px;
}

.contact-confirm__row--top {
  align-items: flex-start;
}

.contact-confirm__label-area {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 350px;
  flex-shrink: 0;
}

.contact-confirm__label {
  font-family: var(--font-gothic);
  font-weight: 500;
  font-size: 22px;
  line-height: 44px;
  color: #352304;
  white-space: nowrap;
}

.contact-confirm__required {
  font-family: var(--font-gothic);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.8px;
  color: #d67c3d;
  border: 1px solid #d67c3d;
  border-radius: 5px;
  padding: 0 15px;
  line-height: normal;
  white-space: nowrap;
}

.contact-confirm__value {
  font-family: var(--font-gothic);
  font-weight: 500;
  font-size: 20px;
  line-height: 44px;
  color: #352304;
  width: 610px;
}

.contact-confirm__divider {
  width: 1030px;
  height: 1px;
  background: #352304;
  opacity: 0.15;
  align-self: center;
}

.contact-confirm__privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-top: 10px;
}

.contact-confirm__privacy-icon {
  flex-shrink: 0;
}

.contact-confirm__privacy-text {
  font-family: var(--font-gothic);
  font-weight: 500;
  font-size: 20px;
  line-height: 44px;
  color: #352304;
  white-space: nowrap;
}

/* =====================================================
   レスポンシブ
   ===================================================== */
@media (max-width: 768px) {
  .sp-only {
    display: inline;
  }
  .pc-only {
    display: none !important;
  }

  .contact-hero {
    height: auto;
    padding: 50px 40px;
  }

  .contact-hero__title {
    font-size: 36px;
    line-height: 55px;
  }

  .contact-form-section {
    padding: 10px 0 50px;
  }

  .contact-form-section__inner {
    gap: 50px;
  }

  /* ステップナビ */
  .contact-steps {
    gap: 15px;
    align-items: flex-start;
    width: 326px;
  }

  .contact-steps__item {
    padding-bottom: 5px;
  }

  .contact-steps__number {
    font-size: 24px;
  }

  .contact-steps__label {
    font-size: 18px;
    line-height: 25px;
  }

  .contact-steps__line {
    width: 25px;
    margin-top: 42px;
  }

  /* 説明文 */
  .contact-desc {
    width: 320px;
    gap: 15px;
  }

  .contact-desc__main {
    font-size: 16px;
    line-height: 35px;
    letter-spacing: 0;
  }

  .contact-desc__note {
    font-size: 14px;
    line-height: 36px;
  }

  /* フォーム */
  .contact-form {
    width: 350px;
    padding: 50px 20px;
    gap: 20px;
  }

  .contact-form__row {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .contact-form__row--top {
    align-items: flex-start;
  }

  .contact-form__label-area {
    width: 100%;
    gap: 20px;
  }

  .contact-form__label {
    font-size: 16px !important;
    line-height: 30px !important;
  }

  .contact-form__required {
    font-size: 12px;
    padding: 2px 10px;
  }

  .contact-form__input-area {
    width: 100%;
    flex-wrap: wrap;
    gap: 30px;
  }

  .contact-form__input-area--name {
    gap: 10px;
  }

  .contact-form__input-area--column {
    gap: 4px;
  }

  .contact-form__input {
    height: 30px;
  }

  .contact-form__input--name {
    width: 130px !important;
  }

  .contact-form__input--full {
    width: 310px !important;
  }

  .contact-form__textarea {
    width: 310px !important;
    height: 150px !important;
  }

  .contact-form__name-group {
    flex: none;
    gap: 4px;
  }

  .contact-form__name-label {
    font-size: 16px !important;
    line-height: 30px !important;
  }

  .contact-form__divider {
    width: 310px;
  }

  .contact-form__hint {
    font-size: 12px;
  }

  .contact-form__checkbox-box {
    width: 15px;
    height: 15px;
  }

  .contact-form__checkbox input[type="checkbox"]:checked + .contact-form__checkbox-box::after {
    left: 3px;
    top: 0px;
    width: 7px;
    height: 10px;
  }

  .contact-form__checkbox-text {
    font-size: 16px !important;
    line-height: 30px !important;
  }

  /* 希望の連絡先のgap調整リセット */
  .contact-form__row:nth-child(15) .contact-form__input-area {
    gap: 30px;
  }

  .contact-form__privacy-box {
    width: 20px;
    height: 20px;
  }

  .contact-form__privacy-text {
    font-size: 16px !important;
    line-height: 30px !important;
  }

  /* ボタン */
  .contact-submit {
    width: 310px;
    max-width: none;
    padding: 18px 64px 18px 40px;
    gap: 30px;
  }

  .contact-submit__text {
    font-size: 18px;
    letter-spacing: -0.9px;
    width: auto;
  }

  /* 完了ページ レスポンシブ */
  .contact-complete {
    gap: 30px;
  }

  .contact-complete__title {
    font-size: 24px;
    line-height: 40px;
  }

  .contact-complete__message {
    font-size: 16px;
    line-height: 35px;
    letter-spacing: 0;
    gap: 16px;
  }

  /* 確認ページ レスポンシブ */
  .contact-confirm {
    width: 350px;
    padding: 50px 20px;
    gap: 20px;
  }

  .contact-confirm__row {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .contact-confirm__label-area {
    width: 100%;
    gap: 20px;
  }

  .contact-confirm__label {
    font-size: 16px;
    line-height: 30px;
  }

  .contact-confirm__required {
    font-size: 12px;
    padding: 2px 10px;
  }

  .contact-confirm__value {
    width: 310px;
    font-size: 16px;
    line-height: 30px;
  }

  .contact-confirm__divider {
    width: 310px;
  }

  .contact-confirm__privacy-text {
    font-size: 16px;
  }

  /* CTA Section SP */
  .cta-new {
    padding: 50px 0;
    gap: 10px;
  }

  .cta-new__buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    align-items: stretch;
  }

  .cta-new__btn {
    width: 100%;
    max-width: none;
    height: 120px;
    font-size: 24px;
    line-height: 54px;
  }

  .cta-new__download {
    width: 100%;
    max-width: none;
    height: 148px;
    padding: 18px 30px;
  }

  .cta-new__download-label {
    font-size: 20px;
    line-height: 30px;
  }

  .cta-new__download-link {
    font-size: 24px;
    line-height: 54px;
    white-space: nowrap;
  }
}
