/*
Theme Name: KURUMU SERVICE
Theme URI: https://kurumuservice.com
Description: 大阪・東大阪の物流・配送会社KURUMU SERVICEの公式WordPressテーマ
Author: KURUMU SERVICE
Version: 1.0
License: GPL-2.0-or-later
Text Domain: kurumu-service
*/

/* honeypot anti-spam */
.krs-field-wrap { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; pointer-events: none; }

/* ============================================
   Contact Form 7 Styling
   ============================================ */
.wpcf7-form {
  max-width: 100%;
}

/* Remove <br> tags within CF7 form for clean spacing */
.wpcf7-form br {
  display: none;
}

.wpcf7-form p {
  margin-bottom: 0;
}

/* Labels */
.wpcf7-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0d4a8a;
  margin-bottom: 0.5rem;
  margin-top: 1.25rem;
}

.wpcf7-form label:first-child,
.wpcf7-form > label:first-of-type {
  margin-top: 0;
}

/* Control wraps */
.wpcf7-form .wpcf7-form-control-wrap {
  display: block;
  margin-bottom: 0;
}

/* Text / Email / Tel / Date / URL inputs */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="date"],
.wpcf7-form input[type="url"],
.wpcf7-form select {
  width: 100%;
  height: 48px;
  padding: 0 1rem;
  background: #ffffff;
  border: 1.5px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: #374151;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder {
  color: #9ca3af;
}

.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
  border-color: #1565c0;
  box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.15);
}

/* Textarea */
.wpcf7-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #ffffff;
  border: 1.5px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: #374151;
  outline: none;
  min-height: 140px;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
}

/* Submit button */
.wpcf7-form .wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0 2.5rem;
  height: 3rem;
  background: #1565c0;
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: background-color 0.2s;
  white-space: nowrap;
  margin-top: 1.5rem;
}
.wpcf7-form .wpcf7-submit:hover {
  background: #0d4a8a;
}

/* Checkbox items */
.wpcf7-form .wpcf7-list-item {
  margin: 0 0.75rem 0 0;
}
.wpcf7-form .wpcf7-list-item-label {
  font-size: 0.875rem;
  color: #374151;
}
.wpcf7-form .wpcf7-checkbox .wpcf7-list-item {
  display: inline-block;
  margin-right: 1rem;
}

/* Acceptance (privacy) */
.wpcf7-form .wpcf7-acceptance {
  display: block;
  margin-top: 1.25rem;
}
.wpcf7-form .wpcf7-acceptance .wpcf7-list-item {
  margin: 0;
}
.wpcf7-form .wpcf7-acceptance .wpcf7-list-item-label {
  font-size: 0.8125rem;
  color: #4b5563;
  line-height: 1.5;
}

/* Validation */
.wpcf7-form .wpcf7-not-valid-tip {
  font-size: 0.75rem;
  color: #ef4444;
  margin-top: 0.25rem;
}
.wpcf7-form .wpcf7-not-valid {
  border-color: #fca5a5 !important;
}

/* Response messages */
.wpcf7-form .wpcf7-response-output {
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  text-align: center;
  border: none;
}
.wpcf7 form.sent .wpcf7-response-output {
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #166534;
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}
.wpcf7-form .wpcf7-spinner {
  display: none;
}

/* Required asterisk */
.wpcf7-form .required {
  color: #f97316;
}

/* Two-column grid for recruit form fields */
.wpcf7-form .cf7-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 640px) {
  .wpcf7-form .cf7-row {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}

/* Larger screens */
@media (min-width: 768px) {
  .wpcf7-form input[type="text"],
  .wpcf7-form input[type="email"],
  .wpcf7-form input[type="tel"],
  .wpcf7-form input[type="date"],
  .wpcf7-form input[type="url"],
  .wpcf7-form select {
    height: 52px;
    font-size: 1rem;
  }
  .wpcf7-form textarea {
    font-size: 1rem;
  }
  .wpcf7-form .wpcf7-submit {
    height: 3.5rem;
    padding: 0 3rem;
    font-size: 1rem;
  }
  .wpcf7-form label {
    font-size: 1rem;
  }
}