/* ===== ベース ===== */
body {
  margin: 0;
  padding: 24px 24px 50px 24px;
  background: linear-gradient(180deg, #f7f9fc, #eef2f7);
  font-family: "Noto Sans JP", system-ui, sans-serif;
  color: #333;
}

.contact-wrapper {
  max-width: 760px;
  margin: auto;
  background: #fff;
  border-radius: 16px;
  padding: 32px 28px 40px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* ===== ヘッダー ===== */
.contact-header {
  margin-bottom: 24px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 22px 28px;
  background: linear-gradient(135deg, #f3f6ff, #f9fbff);
  border-radius: 20px;
}

.contact-logo img {
  width: 110px;
  height: auto;
}

.header-tagline {
  font-size: 0.78rem;
  color: #9ca3af;
  letter-spacing: 0.18em;
  margin-bottom: 4px;
}

.header-text h1 {
  font-size: 1.45rem;
  line-height: 1.5;
  margin: 0 0 18px;
  position: relative;
}

.header-text h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 80px;
  height: 3px;
  background: #2563eb;
  border-radius: 999px;
}

.contact-lead {
  font-size: 0.9rem;
  color: #6b7280;
}

/* ===== フォーム ===== */
.form-group { margin-bottom: 20px; }
.form-label { font-weight: 600; display: block; margin-bottom: 6px; }
.form-group input,.form-group select,.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

.form-inline {
  display: flex;
  gap: 12px;
}
.form-inline > * {
  flex: 1;
}

.required-badge {
  background: #e63946;
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
}

/* ===== 注意・同意 ===== */
.form-notes {
  background: #f8fafc;
  padding: 14px;
  border-radius: 8px;
  font-size: 0.85rem;
}

.form-agreement {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

.agreement-text a { color: #2563eb; }
.agreement-attention { color: #e63946; font-weight: 600; }

/* ===== ボタン ===== */
.form-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 24px;
}

.btn-confirm {
  background: #d13c3c;
  color: #fff;
  padding: 12px 36px;
  border-radius: 6px;
  border: none;
  text-decoration: none;
}

.btn-reset {
  background: #fff;
  border: 1px solid #999;
  padding: 12px 24px;
  border-radius: 6px;
}

/* ===== モーダル ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.45);
  display: none;
  align-items: center;
  justify-content: center;
}

.modal-overlay:target { display: flex; }

.modal-content {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  max-width: 720px;
  max-height: 80vh;
  overflow: auto;
}

/* ===== プライバシーポリシー（モーダル内パーツ） ===== */
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e5e7eb;
}

.modal-header h2 {
  font-size: 1.1rem;
  margin: 0;
}

.modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 1.1rem;
  color: #9ca3af;
  border: 1px solid transparent;
}

.modal-close:hover {
  color: #111827;
  border-color: #d1d5db;
  background: #f9fafb;
}

.modal-body {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #4b5563;
}

.modal-body p {
  margin: 0 0 10px;
}

.modal-body h3 {
  font-size: 0.95rem;
  margin: 16px 0 6px;
  padding-left: 8px;
  border-left: 3px solid #7ac943; /* ロゴに寄せたグリーン */
  font-weight: 600;
}

.modal-body ul {
  padding-left: 1.4em;
  margin: 6px 0 12px;
}

.modal-body li {
  list-style: disc;
  margin-bottom: 4px;
}

.modal-footer {
  margin-top: 18px;
  padding-top: 10px;
  border-top: 1px solid #e5e7eb;
  text-align: right;
}

.modal-footer a {
  display: inline-block;
  font-size: 0.9rem;
  color: #2563eb;
  text-decoration: none;
  padding: 6px 18px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #fff;
}

.modal-footer a:hover {
  background: #eff6ff;
  border-color: #2563eb;
}

/* ===== SP ===== */
@media (max-width: 600px) {
  .header-inner {
    flex-direction: column;
    text-align: center;
    gap:0;
  }
  .header-text h1::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* ===== サンクスページ ===== */
.thanks-content {
  margin-top: 32px;
  text-align: center;
}

.thanks-text {
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.thanks-note {
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 8px;
}

.thanks-actions {
  margin-top: 32px;
}

/* PCのみ表示 */
.pc-only {
  display: block;
}
.sp-only {
  display: none;
}

/* モバイルのみ表示 */
@media (max-width: 768px) {
  .pc-only {
    display: none;
  }
  .sp-only {
    display: block;
  }
}