/* お問い合わせページ専用スタイル */

.contact-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  padding: 40px;
  background: var(--color-bg-secondary);
  border-bottom: 1px solid var(--color-border);
}

.contact-banner .phone-block {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-banner .phone-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 20px;
  background: var(--color-accent-soft);
  flex-shrink: 0;
}

.contact-banner .phone-icon img {
  width: 18px;
  height: 18px;
}

.contact-banner .phone-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-banner .phone-text .label {
  color: var(--color-muted);
  font-size: 12px;
}

.contact-banner .phone-text .number {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 24px;
  color: var(--color-accent);
}

.contact-banner .divider {
  width: 1px;
  height: 40px;
  background: var(--color-border);
}

.contact-banner .note {
  color: var(--color-muted);
  font-size: 15px;
}

.contact-container {
  display: flex;
  align-items: flex-start;
  gap: 48px;
  padding: 80px 80px 100px;
}

.contact-form {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-error {
  display: none;
  padding: 16px;
  border: 1px solid #ef4444;
  border-radius: var(--radius);
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444;
  font-size: 14px;
  font-weight: 700;
}

.form-error.show {
  display: block;
}

.form-fields {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-row {
  display: flex;
  gap: 24px;
}

.form-row .form-field {
  flex: 1 1 0;
  min-width: 0;
}

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

.form-field label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 15px;
}

.req-badge {
  padding: 2px 6px;
  border-radius: 2px;
  background: var(--color-accent);
  color: var(--color-bg);
  font-weight: 800;
  font-size: 10px;
}

.opt-badge {
  padding: 2px 6px;
  border-radius: 2px;
  background: var(--color-muted);
  color: var(--color-bg);
  font-weight: 800;
  font-size: 10px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 16px;
  background: #f4f5f7;
  border: 1px solid #cfd3da;
  border-radius: var(--radius);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 14px;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--color-muted);
}

.form-field select {
  appearance: none;
  background-image: url("../assets/icons/chevron-down.svg");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 14px;
}

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

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.privacy-check {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-top: 16px;
}

.privacy-check input[type="checkbox"] {
  appearance: none;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background: #f4f5f7;
  border: 2px solid var(--color-accent);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}

.privacy-check input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: var(--color-accent);
  border-radius: 1px;
}

.privacy-check label {
  font-size: 14px;
}

.submit-btn {
  width: 100%;
  padding: 18px 48px;
}

.submit-btn img {
  width: 16px;
  height: 16px;
}

.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 460px;
  flex-shrink: 0;
}

.company-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.company-card h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 800;
}

.company-card h2::before {
  content: "";
  display: block;
  width: 3px;
  height: 16px;
  background: var(--color-accent);
}

.company-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.company-info .info-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.company-info .info-label {
  color: var(--color-muted);
  font-size: 12px;
}

.company-info .info-value {
  font-size: 14px;
}

.company-card hr {
  width: 100%;
  border: none;
  border-top: 1px solid var(--color-border);
}

.emergency-note {
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.5;
}

.emergency-phone {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 16px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.emergency-phone img {
  width: 20px;
  height: 20px;
}

.emergency-phone .phone-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.emergency-phone .label {
  color: var(--color-muted);
  font-size: 11px;
}

.emergency-phone .number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: var(--color-accent);
}

.map-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.map-card h3 {
  font-size: 14px;
  font-weight: 800;
}

.map-embed {
  height: 240px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.privacy-check label a {
  color: var(--color-accent);
  text-decoration: underline;
}

.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 60px 32px;
  text-align: center;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.form-success.show {
  display: flex;
}

.form-success h2 {
  font-size: 24px;
  font-weight: 800;
}

.form-success p {
  color: var(--color-muted);
  font-size: 15px;
  line-height: 1.6;
}

.form-note {
  margin: 16px 0 24px;
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

.contact-form.is-submitted .form-fields,
.contact-form.is-submitted .privacy-check,
.contact-form.is-submitted .form-note,
.contact-form.is-submitted .submit-btn {
  display: none;
}

@media (max-width: 1100px) {
  .contact-container {
    flex-direction: column;
    padding: 60px 40px;
  }

  .contact-form,
  .contact-sidebar {
    width: 100%;
  }

  .form-row {
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .contact-container {
    padding: 48px 24px;
  }

  .contact-banner {
    padding: 24px;
    flex-direction: column;
    text-align: center;
  }
}
