/* ===== Contact Page ===== */

main {
  background-color: #fff;
}

/* ===== contact section ===== */
#contact {
  position: relative;
  z-index: 100;
  padding: 120px 0;
  background: #fff;
  border-top: 1px solid #e5e5e5;
}

#contact h2 {
  color: #1a1a1a;
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}

.contact-lead {
  text-align: center;
  margin-bottom: 60px;
}

.contact-lead p {
  color: #888;
  font-weight: 400;
  line-height: 2.2;
  letter-spacing: 0.04em;
}

/* ===== フォーム ===== */
.contact-form {
  max-width: 680px;
  margin: 0 auto;
}

.form-fieldset {
  border: none;
  padding: 0;
  margin: 0 0 48px;
}

.form-legend {
  font-family: "Roboto", "Zen Kaku Gothic New", sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: #aaa;
  text-transform: uppercase;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e5e5;
  width: 100%;
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 28px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.form-required {
  display: inline-block;
  font-size: 11px;
  font-weight: 400;
  color: #244268;
  background: rgba(36, 66, 104, 0.08);
  padding: 2px 8px;
  border-radius: 2px;
  margin-left: 8px;
  letter-spacing: 0.06em;
}

.form-optional {
  display: inline-block;
  font-size: 11px;
  font-weight: 400;
  color: #aaa;
  background: #f5f5f5;
  padding: 2px 8px;
  border-radius: 2px;
  margin-left: 8px;
  letter-spacing: 0.06em;
}

.form-hint {
  font-size: 12px;
  color: #aaa;
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-top: 6px;
  margin-bottom: 6px;
  line-height: 1.6;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form input[type="url"],
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: "Zen Kaku Gothic New", "Roboto", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #1a1a1a;
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 0;
  outline: none;
  transition: border-color 0.3s, background 0.3s;
  box-sizing: border-box;
  letter-spacing: 0.04em;
  line-height: 1.6;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #ccc;
  font-weight: 300;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #244268;
  background: #fff;
}

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

/* チェックボックス・ラジオ */
.form-checkbox-group,
.form-radio-group {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.form-checkbox,
.form-radio {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #f5f5f5;
  cursor: pointer;
  transition: background 0.2s;
}

.form-checkbox:last-child,
.form-radio:last-child {
  border-bottom: none;
}

.form-checkbox input,
.form-radio input {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid #ddd;
  border-radius: 3px;
  background: #fff;
  flex-shrink: 0;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
}

.form-radio input {
  border-radius: 50%;
}

.form-checkbox input:checked,
.form-radio input:checked {
  border-color: #244268;
  background: #244268;
}

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

.form-radio input:checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
}

.form-checkbox span,
.form-radio span {
  font-size: 14px;
  color: #444;
  font-weight: 400;
  letter-spacing: 0.04em;
}

/* CF7 チェックボックス・ラジオ（CF7が生成するマークアップ対応） */
.wpcf7-checkbox,
.wpcf7-radio {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.wpcf7-checkbox .wpcf7-list-item,
.wpcf7-radio .wpcf7-list-item {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid #f5f5f5;
  margin-left: 0 !important;
}

.wpcf7-checkbox .wpcf7-list-item:last-child,
.wpcf7-radio .wpcf7-list-item:last-child {
  border-bottom: none;
}

.wpcf7-checkbox .wpcf7-list-item label,
.wpcf7-radio .wpcf7-list-item label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.wpcf7-checkbox .wpcf7-list-item-label,
.wpcf7-radio .wpcf7-list-item-label {
  font-size: 14px;
  color: #444;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.wpcf7-checkbox input[type="checkbox"],
.wpcf7-radio input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 1.5px solid #ddd;
  border-radius: 3px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
  margin: 0;
}

.wpcf7-radio input[type="radio"] {
  border-radius: 50%;
}

.wpcf7-checkbox input[type="checkbox"]:checked,
.wpcf7-radio input[type="radio"]:checked {
  border-color: #244268;
  background: #244268;
}

.wpcf7-checkbox input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.wpcf7-radio input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
}

/* 送信エリア */
.form-submit-area {
  text-align: center;
  padding-top: 24px;
}

.form-reassurance {
  font-size: 13px;
  color: #aaa;
  font-weight: 400;
  line-height: 2;
  letter-spacing: 0.04em;
  margin-bottom: 2rem;
}

.form-submit-btn {
  display: inline-block;
  background: #244268;
  border: none;
  color: #fff;
  padding: 16px 6rem;
  font-family: "Zen Kaku Gothic New", "Roboto", sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.3s, box-shadow 0.3s;
}

.form-submit-btn:hover {
  background: #c06540;
  box-shadow: 0 4px 20px rgba(36, 66, 104, 0.25);
}

/* CF7 送信メッセージ */
.wpcf7 form .wpcf7-response-output {
  color: #444;
  border-color: #244268;
}

/* ===== レスポンシブ ===== */
@media screen and (max-width: 768px) {
  #contact {
    padding: 80px 0;
  }

  .contact-form {
    padding: 0 0.5rem;
  }

  .form-submit-btn {
    width: 100%;
    padding: 16px 2rem;
  }
}
