/* ============================================================
   contact.css — お問い合わせフォームページ専用スタイル
============================================================ */

body { background: var(--bg); min-height: 100vh; }

/* ── ページヒーロー ── */
.page-hero {
  background: linear-gradient(135deg, var(--sky) 0%, #0284c7 100%);
  padding: 56px 48px 48px;
  text-align: center;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}
.page-hero h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 30px; font-weight: 700;
  color: #fff; letter-spacing: -0.01em;
  margin-bottom: 10px; position: relative;
}
.page-hero p { font-size: 14px; color: rgba(255,255,255,0.8); line-height: 1.8; position: relative; }

/* ── メインレイアウト ── */
.container { max-width: 820px; margin: 0 auto; padding: 48px 24px 80px; }

/* ── インフォバー ── */
.info-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 40px; }
.info-item {
  background: var(--white); border: 0.5px solid var(--border);
  border-radius: var(--radius); padding: 16px 20px;
  display: flex; align-items: center; gap: 12px;
}
.info-icon { width: 36px; height: 36px; border-radius: 8px; background: var(--blue-pale); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.info-icon svg { width: 18px; height: 18px; }
.info-label { font-size: 10px; color: var(--text-muted); margin-bottom: 2px; }
.info-value { font-size: 13px; font-weight: 500; color: var(--navy); }

/* ── フォームカード ── */
.form-card { background: var(--white); border: 0.5px solid var(--border); border-radius: var(--radius); padding: 40px 48px; }
.form-section-title {
  font-size: 11px; font-weight: 500;
  color: var(--blue); letter-spacing: 0.1em; text-transform: uppercase;
  margin: 32px 0 16px; padding-bottom: 8px;
  border-bottom: 0.5px solid var(--border);
}
.form-section-title:first-child { margin-top: 0; }

/* ── フォームフィールド ── */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group.full { grid-column: 1 / -1; }

label {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 500;
  color: var(--navy); margin-bottom: 6px;
}
.required { font-size: 10px; background: var(--blue); color: #fff; padding: 1px 6px; border-radius: 3px; font-weight: 400; }
.optional  { font-size: 10px; background: #e8eef5; color: var(--text-muted); padding: 1px 6px; border-radius: 3px; font-weight: 400; }

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%; padding: 10px 14px;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px; color: var(--text);
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none; outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(14,165,233,0.12);
}
input.error, select.error, textarea.error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(244,63,94,0.08);
}
.field-error { font-size: 11px; color: var(--error); margin-top: 4px; display: none; }
.field-error.show { display: block; }

select {
  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 d='M1 1l5 5 5-5' stroke='%235a6a7e' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px; cursor: pointer;
}
textarea { resize: vertical; min-height: 130px; line-height: 1.7; }
.hint { font-size: 11px; color: var(--text-muted); margin-top: 4px; line-height: 1.5; }

/* ── チェックボックス・ラジオ ── */
.check-group { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 2px; }
.check-item {
  display: flex; align-items: center; gap: 7px; cursor: pointer;
  font-size: 13px; color: var(--text);
  padding: 7px 14px;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s, background 0.15s;
  user-select: none;
}
.check-item:hover { border-color: var(--blue); background: #f0f7ff; }
.check-item input[type="checkbox"],
.check-item input[type="radio"] {
  width: 14px; height: 14px;
  accent-color: var(--blue); cursor: pointer; padding: 0;
}
.check-item.checked { border-color: var(--blue); background: var(--blue-pale); color: #0c447c; }

/* ── プライバシーポリシー ── */
.privacy-box {
  background: var(--bg); border: 0.5px solid var(--border);
  border-radius: var(--radius-sm); padding: 16px 20px; margin: 28px 0 24px;
}
.privacy-box p { font-size: 12px; color: var(--text-muted); line-height: 1.7; }
.privacy-check {
  display: flex; align-items: center; gap: 10px; margin-top: 12px;
  cursor: pointer; font-size: 13px; font-weight: 500; color: var(--navy);
}
.privacy-check input { width: 16px; height: 16px; accent-color: var(--blue); cursor: pointer; padding: 0; }

/* ── 送信ボタン ── */
.submit-btn {
  width: 100%; padding: 16px;
  background: var(--blue); color: #fff; border: none;
  border-radius: var(--radius-sm);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px; font-weight: 500; cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  letter-spacing: 0.05em;
}
.submit-btn:hover { background: #0284c7; }
.submit-btn:active { transform: scale(0.99); }
.submit-btn:disabled { background: #aaa; cursor: not-allowed; }
.submit-note { text-align: center; font-size: 11px; color: var(--text-muted); margin-top: 10px; }

/* ── サクセス画面 ── */
.success-screen { display: none; text-align: center; padding: 60px 40px; }
.success-screen.show { display: block; }
.form-card.sent .form-content { display: none; }
.success-icon {
  width: 56px; height: 56px; background: #e1f5ee; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 20px;
}
.success-icon svg { width: 28px; height: 28px; }
.success-screen h2 { font-size: 20px; font-weight: 500; color: var(--navy); margin-bottom: 10px; }
.success-screen p  { font-size: 13px; color: var(--text-muted); line-height: 1.8; }

/* ── フッター ── */
footer { background: var(--navy); text-align: center; padding: 24px; font-size: 12px; color: rgba(255,255,255,0.55); }

/* ── レスポンシブ ── */
@media (max-width: 640px) {
  .page-hero { padding: 36px 20px 32px; }
  .page-hero h1 { font-size: 22px; }
  .container { padding: 32px 16px 60px; }
  .info-bar { grid-template-columns: 1fr; }
  .form-card { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }
}
