/* ===== contact.css — contact.html 専用スタイル ===== */

/* ---- ヒーロー ---- */
.contact-hero {
  padding: clamp(64px, 10vw, 120px) 0 clamp(48px, 8vw, 96px);
}

.contact-hero-inner {
  max-width: 640px;
}

.contact-h1 {
  font-size: clamp(2rem, 5.5vw, 3.2rem);
  font-weight: 600;
  line-height: 1.07;
  margin-top: 16px;
  letter-spacing: -0.5px;
  color: var(--text-light);
}

/* ---- レイアウト ---- */
.contact-form-section {
  padding: clamp(60px, 10vw, 120px) 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 64px;
  align-items: start;
}

/* ---- フォーム全体 ---- */
.contact-form-wrap {
  background: #ffffff;
  border-radius: 16px;
  padding: clamp(28px, 5vw, 52px);
  box-shadow: var(--shadow-card);
}

/* ---- フォーム注意書き ---- */
.form-notice {
  margin: 0 0 24px;
  padding: 12px 16px;
  background: #fff8e1;
  border-left: 4px solid #f59e0b;
  border-radius: var(--radius-std);
  font-size: 14px;
  font-weight: 600;
  color: #92400e;
  line-height: 1.5;
}

@media (max-width: 480px) {
  .form-notice {
    font-size: 13px;
    padding: 10px 14px;
  }
}

/* ---- フィールド ---- */
.field-group {
  margin-bottom: 24px;
}

.field-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.12px;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.required {
  display: inline-block;
  margin-left: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #ffffff;
  background: var(--blue);
  border-radius: 4px;
  padding: 1px 6px;
  vertical-align: middle;
}

.optional {
  margin-left: 6px;
  font-size: 11px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.4);
}

.field-input {
  display: block;
  width: 100%;
  padding: 11px 14px;
  font-size: 16px;
  font-family: inherit;
  color: var(--text-dark);
  background: var(--bg-light);
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: var(--radius-std);
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

.field-input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.22);
}

.field-input.is-invalid {
  border-color: #d93025;
  box-shadow: 0 0 0 3px rgba(217, 48, 37, 0.18);
}

.field-textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.5;
}

/* select 矢印 */
select.field-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23555' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

/* ---- エラーメッセージ ---- */
.field-error {
  margin: 6px 0 0;
  font-size: 13px;
  color: #d93025;
  min-height: 18px;
}

/* ---- チェックボックス ---- */
.field-check-group {
  margin-bottom: 28px;
}

.check-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  cursor: pointer;
  line-height: 1.5;
}

.check-label input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--blue);
  cursor: pointer;
}

.form-link {
  color: var(--link-light);
  text-decoration: underline;
}

/* ---- 送信ボタン ---- */
.submit-btn {
  width: 100%;
  min-height: 50px;
  font-size: 17px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: filter 0.2s, opacity 0.2s;
}

.submit-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: none;
}

/* ---- ステータスメッセージ ---- */
.form-status {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: var(--radius-std);
  font-size: 15px;
  line-height: 1.5;
  display: none;
}

.form-status:not(:empty) {
  display: block;
}

.form-status.is-success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

.form-status.is-error {
  background: #fce4e4;
  color: #c62828;
  border: 1px solid #ef9a9a;
}

/* ---- サイドinfo ---- */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.info-block {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding-top: 24px;
}

.info-heading {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.45);
  margin-bottom: 10px;
}

.info-block p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-dark);
}

.info-link {
  font-size: 17px;
  color: var(--link-light);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.info-link:hover {
  border-bottom-color: var(--link-light);
}

.info-address {
  font-style: normal;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-dark);
}

.info-tel {
  color: var(--link-light);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.info-tel:hover {
  border-bottom-color: var(--link-light);
}

/* ---- レスポンシブ ---- */
@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact-info {
    order: -1; /* サイドinfoを上に */
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0;
  }

  .info-block {
    flex: 1 1 160px;
    border-top: none;
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0 24px 0 16px;
  }

  .info-block:first-child {
    border-left: none;
    padding-left: 0;
  }
}

@media (max-width: 480px) {
  .contact-info {
    flex-direction: column;
  }

  .info-block {
    border-left: none;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 20px 0 0;
  }
}
