/* ===== お問い合わせページ ===== */
/* style.css を読み込んだ前提で、追加分だけ定義 */
body:has(.contact-wrap) { overflow-y: auto; }

.contact-wrap {
  display: flex;
  flex-direction: column;
}

/* ヘッダー */
.contact-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-sub);
}
.logo-link { text-decoration: none; }
.back-home {
  font-size: 13px;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background .15s, color .15s;
}
.back-home:hover {
  background: rgba(0,0,0,.05);
  color: var(--ink);
}

/* メインカード */
.contact-main {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 20px 60px;
}
.contact-card {
  width: 100%;
  max-width: 640px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 36px 40px;
  box-shadow: 0 8px 28px rgba(43, 38, 32, .06);
}

/* 上部見出し */
.contact-head {
  text-align: center;
  margin-bottom: 28px;
}
.symbol-small {
  font-size: 44px;
  line-height: 1;
  margin-bottom: 10px;
  filter: drop-shadow(0 4px 12px color-mix(in srgb, var(--accent) 25%, transparent));
  animation: float 4s ease-in-out infinite;
}
.contact-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(26px, 4vw, 32px);
  letter-spacing: .02em;
  margin-bottom: 12px;
}
.contact-desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-top: 16px;
}

/* フォーム */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.required {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: .04em;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  background: var(--card);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-mute);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent);
}
.field textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.7;
  font-family: var(--sans);
}

/* セレクト */
.select-wrap {
  position: relative;
}
.select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px;
  cursor: pointer;
}
.select-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-mute);
  pointer-events: none;
}

/* 補助テキスト */
.field-note {
  font-size: 12px;
  color: var(--ink-mute);
  margin-top: 2px;
}
.field-error {
  font-size: 12px;
  color: #c8442a;
  margin-top: 2px;
}
.field input.invalid,
.field textarea.invalid {
  border-color: #d8423a;
}

/* 全体エラー */
.form-error {
  background: #ffe6e0;
  color: #c8442a;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px;
}

/* 送信ボタン */
.submit-btn {
  margin-top: 8px;
  padding: 14px 24px;
  border: none;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform .15s, background .15s, box-shadow .15s;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 30%, transparent);
}
.submit-btn:hover:not(:disabled) {
  background: color-mix(in srgb, var(--accent) 85%, #000 15%);
  transform: translateY(-1px);
}
.submit-btn:disabled {
  background: var(--ink-mute);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.submit-btn.loading .btn-label::after {
  content: '...';
}

/* 送信完了画面 */
.contact-thanks {
  text-align: center;
  padding: 20px 0;
}
.contact-thanks h2 {
  font-family: var(--display);
  font-size: 24px;
  margin: 6px 0 4px;
}
.contact-thanks p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.8;
  margin: 10px 0;
}
.back-btn {
  display: inline-block;
  margin-top: 18px;
  padding: 12px 28px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: background .15s, transform .15s;
}
.back-btn:hover {
  background: color-mix(in srgb, var(--accent) 85%, #000 15%);
  transform: translateY(-1px);
}

/* ===== モバイル ===== */
@media (max-width: 640px) {
  .contact-header {
    padding: 12px 16px;
  }
  .contact-main {
    padding: 20px 12px 40px;
  }
  .contact-card {
    padding: 24px 20px;
    border-radius: 18px;
  }
  .symbol-small { font-size: 38px; }
}
