@charset "UTF-8";

/* ===================================================
   お問い合わせフォーム（contact/index.html, mail.php, thanks.html）
   専用統合スタイル
=================================================== */

.contact-page-main {
  background-color: var(--c-bg-sand);
}

/* フォームカードコンテナ */
.contact-card {
  background-color: #ffffff;
  border-radius: 30px;
  padding: 56px 64px;
  border: 1px solid rgba(195, 154, 88, 0.24);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.04);
}

/* ===================================================
   1. 入力画面（index.html）用スタイル
=================================================== */

/* 行グループ（テーブル風2カラム配置） */
.form-row-group {
  display: flex;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.form-row-group:first-child {
  padding-top: 0;
}

/* 項目ラベルカラム */
.form-label-col {
  width: 260px;
  flex-shrink: 0;
  padding-right: 24px;
}

.form-label-col.align-start {
  align-self: flex-start;
  padding-top: 8px;
}

.form-item-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 14.5px;
  font-weight: 600;
  color: #111111;
  letter-spacing: 0.06em;
  margin-bottom: 0;
}

/* 必須・任意バッジ */
.badge-required {
  background-color: var(--c-orange);
  color: #111111;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  line-height: 1.3;
}

.badge-optional {
  background-color: #e5e0d8;
  color: #666666;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  line-height: 1.3;
}

/* 入力エリアカラム */
.form-input-col {
  flex: 1;
}

/* テキスト入力・セレクト・テキストエリア共通 */
.form-custom-input,
.form-custom-select,
.form-custom-textarea {
  width: 100%;
  background-color: #faf8f5;
  border: 1px solid rgba(195, 154, 88, 0.35);
  border-radius: 8px;
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: #222222;
  transition: all 0.25s ease;
  outline: none;
}

.form-custom-input::placeholder,
.form-custom-textarea::placeholder {
  color: #a09d98;
  font-size: 13.5px;
}

.form-custom-input:focus,
.form-custom-select:focus,
.form-custom-textarea:focus {
  background-color: #ffffff;
  border-color: var(--c-gold);
  box-shadow: 0 0 0 3px rgba(195, 154, 88, 0.18);
}

/* エラー時の入力欄枠線アクセント */
.form-custom-input.has-error,
.form-custom-select.has-error,
.form-custom-textarea.has-error {
  border-color: #d9534f !important;
  background-color: #fff9f9 !important;
  box-shadow: 0 0 0 3px rgba(217, 83, 79, 0.15) !important;
}

/* セレクトボックスのカスタムアロー */
.select-wrapper {
  position: relative;
}

.select-wrapper::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--c-gold);
  border-bottom: 2px solid var(--c-gold);
  transform: translateY(-60%) rotate(45deg);
  pointer-events: none;
}

.form-custom-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  padding-right: 40px;
}

/* メールアドレス確認入力ブロック */
.email-input-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.email-confirm-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.confirm-label {
  font-size: 12px;
  color: #777777;
  letter-spacing: 0.03em;
}

.input-helper-text {
  display: block;
  font-size: 11.5px;
  color: #888888;
  margin-top: 6px;
  letter-spacing: 0.02em;
}

/* テキストエリア */
.form-custom-textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.7;
}

/* 送信ボタングループ */
.form-submit-group {
  margin-top: 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.form-privacy-note {
  font-size: 12.5px;
  color: #666666;
  margin-bottom: 24px;
}

.form-privacy-note a {
  color: #111111;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.2s ease;
}

.form-privacy-note a:hover {
  color: var(--c-gold);
}

.btn-form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-width: 280px;
  padding: 18px 48px;
  background-color: var(--c-orange);
  color: #111111;
  border: none;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(223, 156, 77, 0.35);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-form-submit .btn-arrow {
  font-size: 16px;
  transition: transform 0.3s ease;
}

.btn-form-submit:hover {
  background-color: var(--c-gold);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(195, 154, 88, 0.4);
  transform: translateY(-2px);
}

.btn-form-submit:hover .btn-arrow {
  transform: translateX(4px);
}


/* ===================================================
   カスタムモーダルアラート（ブランド調）
=================================================== */
.contact-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background-color: rgba(14, 15, 15, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.contact-modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.contact-modal-card {
  width: 100%;
  max-width: 480px;
  background-color: #ffffff;
  border-radius: 24px;
  padding: 36px 32px 32px;
  border: 1px solid rgba(195, 154, 88, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
  text-align: center;
  transform: scale(0.92) translateY(10px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-modal-backdrop.is-open .contact-modal-card {
  transform: scale(1) translateY(0);
}

.contact-modal-header {
  margin-bottom: 20px;
}

.contact-modal-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: #fcf4e8;
  color: var(--c-orange);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  border: 1.5px solid var(--c-orange);
}

.contact-modal-title {
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  color: #111111;
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-modal-sub-en {
  font-family: var(--font-serif);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--c-gold);
  text-transform: uppercase;
}

.contact-modal-lead {
  font-size: 13px;
  line-height: 1.75;
  color: #666666;
  margin-bottom: 16px;
}

.contact-modal-error-list {
  background-color: #faf7f2;
  border-radius: 14px;
  padding: 16px 20px;
  text-align: left;
  border-left: 3px solid var(--c-orange);
  margin-bottom: 24px;
}

.contact-modal-error-list li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #222222;
  line-height: 1.65;
  margin-bottom: 6px;
}

.contact-modal-error-list li:last-child {
  margin-bottom: 0;
}

.contact-modal-error-list .bullet-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--c-orange);
  flex-shrink: 0;
  transform: translateY(-2px);
}

.btn-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  padding: 14px 36px;
  background-color: #222222;
  color: #ffffff;
  border: none;
  border-radius: 50px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.btn-modal-close:hover {
  background-color: var(--c-gold);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(195, 154, 88, 0.35);
}


/* ===================================================
   2. 確認画面（mail.php）用スタイル
=================================================== */

.contact-confirm-dl {
  display: flex;
  flex-direction: column;
}

.confirm-row-group {
  display: flex;
  align-items: baseline;
  padding: 20px 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.confirm-row-group:first-child {
  padding-top: 4px;
}

.confirm-row-group:last-child {
  border-bottom: none;
}

.confirm-term {
  width: 240px;
  flex-shrink: 0;
  font-family: var(--font-serif);
  font-size: 14.5px;
  font-weight: 600;
  color: #111111;
  letter-spacing: 0.06em;
  position: relative;
  padding-left: 16px;
}

.confirm-term::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--c-gold);
}

.confirm-desc {
  flex: 1;
  margin-bottom: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  color: #333333;
  line-height: 1.8;
  word-break: break-word;
}

.btn-contact-modify {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 220px;
  padding: 17px 36px;
  background-color: transparent;
  color: #444444;
  border: 1px solid #c4b9af;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-contact-modify:hover {
  background-color: #f0ebe4;
  color: #111111;
  border-color: var(--c-gold);
}

.btn-contact-modify .btn-arrow {
  transition: transform 0.3s ease;
}

.btn-contact-modify:hover .btn-arrow {
  transform: translateX(-4px);
}

.error-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #fff1f0;
  color: #d9383a;
  font-size: 26px;
  font-weight: 700;
  border: 1px solid rgba(217, 56, 58, 0.3);
}

.error-title {
  font-size: 1.35rem;
  color: #d9383a;
}

.error-box {
  background-color: #fff8f8;
  border: 1px solid #ffdcdb;
  border-radius: 12px;
  padding: 20px 24px;
  display: inline-block;
  max-width: 560px;
}

.error-msg {
  color: #d9383a;
  font-size: 13.5px;
  margin-bottom: 6px;
  line-height: 1.6;
}

.error-msg:last-child {
  margin-bottom: 0;
}


/* ===================================================
   3. サンクスページ（thanks.html）用スタイル
=================================================== */

.thanks-card {
  padding: 64px 48px;
}

.thanks-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background-color: rgba(195, 154, 88, 0.12);
  border: 1px solid var(--c-gold);
}

.thanks-check-mark {
  color: var(--c-gold);
  font-size: 32px;
  line-height: 1;
  font-weight: 700;
}

.thanks-main-title {
  font-size: clamp(1.4rem, 1.8vw, 1.7rem);
  letter-spacing: 0.08em;
  color: #111111;
  font-weight: 600;
  margin-bottom: 24px;
}

.thanks-message {
  max-width: 600px;
  margin: 0 auto;
  font-size: 14px;
  line-height: 2.1;
  color: #4a4a4a;
}

.thanks-message p {
  margin-bottom: 14px;
}

.thanks-tel-info {
  margin-top: 40px;
  padding: 24px;
  background-color: #faf7f2;
  border-radius: 18px;
  border: 1px solid rgba(195, 154, 88, 0.28);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.thanks-tel-info .tel-label {
  font-size: 12px;
  color: #777777;
  letter-spacing: 0.08em;
}

.thanks-tel-info .tel-number {
  font-size: 1.8rem;
  letter-spacing: 0.12em;
  color: #111111;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.thanks-tel-info .tel-number:hover {
  color: var(--c-gold);
}

.thanks-tel-info .tel-hours {
  font-size: 11.5px;
  color: #888888;
}


/* ===================================================
   レスポンシブ対応
=================================================== */
@media (max-width: 991.98px) {
  .contact-card {
    padding: 44px 36px;
  }

  .form-label-col {
    width: 220px;
  }

  .confirm-term {
    width: 180px;
  }
}

@media (max-width: 767.98px) {
  .contact-card {
    border-radius: 22px;
    padding: 28px 20px;
  }

  .form-row-group {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 0;
    gap: 10px;
  }

  .form-label-col {
    width: 100%;
    padding-right: 0;
  }

  .form-input-col {
    width: 100%;
  }

  .form-custom-input,
  .form-custom-select,
  .form-custom-textarea {
    font-size: 13.5px;
    padding: 11px 14px;
  }

  .btn-form-submit,
  .btn-contact-modify {
    width: 100%;
    min-width: unset;
    padding: 16px 24px;
    font-size: 14px;
  }

  .confirm-row-group {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 4px;
    gap: 6px;
  }

  .confirm-term {
    width: 100%;
    font-size: 13.5px;
    padding-left: 12px;
  }

  .confirm-desc {
    width: 100%;
    padding-left: 12px;
    font-size: 13px;
  }

  .contact-modal-card {
    padding: 28px 20px 24px;
    border-radius: 20px;
  }

  .contact-modal-title {
    font-size: 1.18rem;
  }

  .btn-modal-close {
    width: 100%;
    padding: 13px 20px;
  }

  .thanks-card {
    padding: 36px 20px;
  }

  .thanks-tel-info {
    width: 100%;
  }

  .thanks-tel-info .tel-number {
    font-size: 1.5rem;
  }
}