/* ============================================
   お問い合わせページ
   ============================================ */

.section-contact {
  padding: 40px 0 80px;
  background: var(--color-bg, #FAFAF7);
  min-height: 60vh;
}
.contact-wrapper {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 20px;
}

.contact-header {
  text-align: center;
  margin-bottom: 36px;
}
.contact-page-title {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  margin: 0 0 10px;
}
.contact-page-desc {
  font-size: 14px;
  color: #888;
  margin: 0;
  line-height: 1.7;
}

/* ---- 電話・LINE ---- */
.contact-quick {
  display: flex;
  gap: 16px;
  margin-bottom: 36px;
}
.contact-quick--single {
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}
.contact-quick--single .contact-quick-item {
  flex: none;
  width: 100%;
}
.contact-quick-item {
  flex: 1;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 8px rgba(0,0,0,0.05);
  padding: 20px;
  text-align: center;
}
.contact-quick-label {
  font-size: 12px;
  font-weight: 600;
  color: #999;
  margin: 0 0 10px;
}
.contact-quick-phone {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary, #F28B30);
  text-decoration: none;
  margin-bottom: 6px;
  transition: color 0.2s;
}
.contact-quick-phone:hover {
  color: var(--color-primary-dark, #D97706);
}
.contact-quick-hours {
  font-size: 12px;
  color: #aaa;
  margin: 0;
}
.contact-quick-line-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: #06C755;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s;
  margin-bottom: 6px;
}
.contact-quick-line-btn:hover {
  background: #05b34c;
}

/* ---- フォーム ---- */
.contact-form-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 36px 32px 40px;
}
.contact-form-heading {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin: 0 0 24px;
  text-align: center;
}

.cf-field-hint {
  font-size: 12px;
  color: #888;
  margin: 8px 0 0;
  line-height: 1.6;
}
.cf-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.cf-field {
  margin-bottom: 20px;
}
.cf-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #444;
  margin-bottom: 6px;
}
.cf-req {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: #EF4444;
  border-radius: 4px;
  padding: 1px 6px;
  margin-left: 6px;
  vertical-align: middle;
}
.cf-input,
.cf-select,
.cf-textarea {
  display: block;
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  color: #333;
  background: #FAFAF7;
  border: 1.5px solid #E0E0E0;
  border-radius: 10px;
  transition: border-color 0.2s;
  outline: none;
  box-sizing: border-box;
  font-family: inherit;
}
.cf-input:focus,
.cf-select:focus,
.cf-textarea:focus {
  border-color: var(--color-primary, #F28B30);
}
.cf-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.cf-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.7;
}

.cf-agree-area {
  margin: 24px 0 20px;
}
.cf-agree-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 14px 16px;
  border: 1.5px solid #d0d0d0;
  border-radius: 10px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cf-agree-row:hover {
  border-color: #a8a8a8;
}
.cf-agree-row:focus-within {
  border-color: var(--color-primary, #F28B30);
  box-shadow: 0 0 0 3px rgba(242, 139, 48, 0.2);
}
.cf-agree-row .cf-checkbox-ui {
  margin-top: 2px;
}
.cf-checkbox {
  display: none;
}
.cf-checkbox-ui {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 2px solid #ccc;
  border-radius: 6px;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.cf-checkbox:checked + .cf-checkbox-ui {
  background: var(--color-cta, #1E8449);
  border-color: var(--color-cta, #1E8449);
}
.cf-checkbox:checked + .cf-checkbox-ui::after {
  content: '';
  display: block;
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
  margin-bottom: 2px;
}
.cf-agree-row a {
  color: var(--color-primary, #F28B30);
  text-decoration: underline;
}

.cf-submit-btn {
  display: block;
  width: 100%;
  padding: 16px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: var(--color-cta, #1E8449);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  letter-spacing: 0.04em;
}
.cf-submit-btn:hover {
  background: var(--color-cta-dark, #176437);
}
.cf-submit-btn:active {
  transform: scale(0.98);
}
.cf-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---- 完了 ---- */
.cf-done {
  text-align: center;
  padding: 24px 0 8px;
}
.cf-done-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-cta, #1E8449);
  margin-bottom: 20px;
}
.cf-done-heading {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin: 0 0 12px;
}
.cf-done-text {
  font-size: 14px;
  color: #666;
  line-height: 1.8;
  margin: 0 0 24px;
}
.cf-done-note {
  font-size: 13px;
  color: #888;
  line-height: 1.75;
  margin: -12px 0 24px;
}
.cf-done-back {
  display: inline-block;
  padding: 14px 40px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--color-primary, #F28B30);
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s;
}
.cf-done-back:hover {
  background: var(--color-primary-dark, #D97706);
}

/* ---- PP リンク ---- */
.cf-pp-link {
  text-align: center;
  margin-top: 14px;
}
.cf-pp-link a {
  font-size: 13px;
  color: #999;
  text-decoration: underline;
  transition: color 0.2s;
}
.cf-pp-link a:hover {
  color: var(--color-primary, #F28B30);
}
.cf-pp-open {
  color: var(--color-primary, #F28B30);
  text-decoration: underline;
}

/* ---- 振り分けゲート ---- */
.contact-gate {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 640px;
  margin: 0 auto;
}
.contact-gate-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border: 2px solid #E8E8E8;
  border-radius: 16px;
  padding: 36px 20px 32px;
  text-decoration: none;
  color: #333;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  text-align: center;
}
.contact-gate-card:hover {
  border-color: var(--color-primary, #F28B30);
  box-shadow: 0 4px 20px rgba(242, 139, 48, 0.12);
  transform: translateY(-2px);
}
.contact-gate-card--biz:hover {
  border-color: #4A90D9;
  box-shadow: 0 4px 20px rgba(74, 144, 217, 0.12);
}
.contact-gate-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #FFF5ED;
  color: var(--color-primary, #F28B30);
  margin-bottom: 16px;
}
.contact-gate-card--biz .contact-gate-icon {
  background: #EDF3FC;
  color: #4A90D9;
}
.contact-gate-title {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #333;
}
.contact-gate-desc {
  font-size: 13px;
  color: #888;
  margin: 0 0 12px;
  line-height: 1.7;
}
.contact-gate-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #F5F5F5;
  color: #aaa;
  transition: background 0.2s, color 0.2s;
}
.contact-gate-card:hover .contact-gate-arrow {
  background: var(--color-primary, #F28B30);
  color: #fff;
}
.contact-gate-card--biz:hover .contact-gate-arrow {
  background: #4A90D9;
  color: #fff;
}

/* ---- レスポンシブ ---- */
@media (max-width: 600px) {
  .section-contact { padding: 24px 0 60px; }
  .contact-page-title { font-size: 20px; }
  .contact-quick { flex-direction: column; gap: 12px; }
  .contact-form-card { padding: 28px 20px 32px; border-radius: 12px; }
  .contact-form-heading { font-size: 16px; }
  .contact-gate { grid-template-columns: 1fr; gap: 14px; }
  .contact-gate-card { padding: 28px 16px 24px; border-radius: 14px; }
  .contact-gate-title { font-size: 16px; }
}
