/* ===========================================================
   CRJ WEB — contact.css
   お問い合わせページ専用: 2カラム(案内 + フォーム)
   =========================================================== */

/* ===========================================================
   TimeRex 予約誘導ブロック (ページ上部)
   =========================================================== */
.contact-cta-top {
  max-width: 680px;
  margin: 24px auto 48px;
  padding: 40px 32px 36px;
  background: #fafaf7;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 6px 20px -12px rgba(17, 17, 17, 0.08);
}

.contact-cta-top .cta-label {
  font-size: 14px;
  color: #666;
  letter-spacing: 0.05em;
  font-weight: 500;
  margin-bottom: 16px;
}

.contact-cta-top .btn-primary {
  width: 100%;
  justify-content: center;
  padding: 18px 28px;
  font-size: 15px;
}

.contact-cta-top .cta-note {
  font-size: 12px;
  color: #888;
  margin-top: 16px;
  letter-spacing: 0.02em;
}

/* フォーム見出し */
.contact-form-heading {
  max-width: 720px;
  margin: 0 auto 40px;
  padding: 0 24px;
  text-align: center;
  border-top: 1px solid var(--line);
  padding-top: 48px;
}

.contact-form-heading h2 {
  font-size: 20px;
  font-weight: 500;
  color: var(--fg);
  letter-spacing: -0.005em;
  margin-bottom: 10px;
}

.contact-form-heading p {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.75;
}

@media (max-width: 768px) {
  .contact-cta-top {
    margin: 16px 20px 32px;
    padding: 28px 22px 26px;
  }

  .contact-cta-top .cta-label {
    font-size: 13px;
  }

  .contact-cta-top .btn-primary {
    padding: 16px 20px;
    font-size: 14px;
  }

  .contact-form-heading {
    padding: 32px 20px 0;
    margin-bottom: 28px;
  }

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

.contact-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 40px 120px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.3fr;
  gap: 80px;
  align-items: start;
}

/* ===========================================================
   左カラム: 案内
   =========================================================== */
.contact-aside {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.aside-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.aside-item:last-child {
  border-bottom: none;
}

.aside-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--fg-subtle);
  font-weight: 600;
}

.aside-value {
  font-size: 17px;
  font-weight: 500;
  color: var(--fg);
  letter-spacing: -0.01em;
  line-height: 1.5;
}

.aside-note {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.75;
}

.aside-link {
  color: var(--fg);
  border-bottom: 1px solid var(--line);
  transition: color 0.2s ease, border-color 0.2s ease;
  width: max-content;
}

.aside-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ===========================================================
   右カラム: フォーム
   =========================================================== */
.contact-form {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 48px 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* 非表示フィールド(honeypot等)は領域確保しない */
.form-hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
}

.form-label {
  font-size: 12px;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-required {
  font-size: 10px;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid rgba(224, 74, 48, 0.4);
  border-radius: 2px;
  padding: 2px 6px;
  letter-spacing: 0.12em;
}

.form-optional {
  font-size: 10px;
  color: var(--fg-subtle);
  letter-spacing: 0.15em;
  font-weight: 500;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  color: var(--fg);
  line-height: 1.6;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
  border-color: var(--fg-muted);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-textarea {
  min-height: 160px;
  resize: vertical;
}

/* Select の右側シェブロン */
.form-select-wrap {
  position: relative;
}

.form-select-wrap::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--fg-muted);
  border-bottom: 1.5px solid var(--fg-muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.form-select {
  padding-right: 40px;
  cursor: pointer;
}

/* Radio グループ */
.form-radios {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.form-radio {
  flex: 1 1 auto;
  min-width: 140px;
  position: relative;
  cursor: pointer;
}

.form-radio input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.form-radio-label {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font-size: 14px;
  color: var(--fg);
  text-align: center;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.form-radio:hover .form-radio-label {
  border-color: var(--fg-muted);
}

.form-radio input:checked + .form-radio-label {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.form-radio input:focus-visible + .form-radio-label {
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* Checkbox (プライバシーポリシー同意) */
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.7;
  cursor: pointer;
}

.form-checkbox input {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.form-checkbox input:hover {
  border-color: var(--fg-muted);
}

.form-checkbox input:checked {
  background: var(--accent);
  border-color: var(--accent);
}

.form-checkbox input:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}

.form-checkbox input:focus-visible {
  box-shadow: 0 0 0 3px var(--accent-soft);
  outline: none;
}

.form-checkbox a {
  color: var(--fg);
  border-bottom: 1px solid var(--line);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.form-checkbox a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* 送信ボタン */
.form-submit {
  width: 100%;
  justify-content: center;
  margin-top: 12px;
  padding: 18px 24px;
  font-size: 15px;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.form-disclaimer {
  font-size: 11px;
  color: var(--fg-subtle);
  line-height: 1.7;
  letter-spacing: 0.03em;
  margin-top: -4px;
}

/* ===========================================================
   Thanks ページ専用
   =========================================================== */
.thanks-section {
  max-width: 820px;
  margin: 0 auto;
  padding: 140px 40px 160px;
  text-align: center;
}

.thanks-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
  color: var(--accent);
}

.thanks-icon svg {
  width: 28px;
  height: 28px;
}

.thanks-title {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 28px;
}

.thanks-sub {
  font-size: 16px;
  color: var(--fg-muted);
  line-height: 1.9;
  margin-bottom: 56px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.thanks-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 900px) {
  .contact-section {
    padding: 40px 24px 80px;
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .contact-aside {
    position: static;
  }

  .contact-form {
    padding: 32px 24px;
    gap: 20px;
  }

  .form-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .form-radio {
    flex: 1 1 100%;
  }

  .thanks-section {
    padding: 100px 24px 120px;
  }
}
