/* contact page styles */
.contact-section .contact-form {
  background: #ffffff;
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 8px 20px rgba(26, 58, 82, 0.04);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.contact-form .form-row {
  margin-bottom: 16px;
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #1a3a52;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #e6eef8;
  background: #fbfeff;
  box-sizing: border-box;
  font-size: 15px;
  color: #163b63;
}

.contact-form textarea { min-height: 160px; }

.form-errors,
.confirm-panel {
  background: #ffffff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 8px 20px rgba(26, 58, 82, 0.04);
  margin-bottom: 24px;
}

.error-list {
  margin: 0;
  padding: 16px 18px;
  list-style: none;
  background: #fef3f2;
  border: 1px solid #f9a8d4;
  border-radius: 12px;
  color: #b91c1c;
}

.error-list li {
  margin-bottom: 8px;
}

.confirm-table {
  display: grid;
  gap: 16px;
}

.confirm-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  align-items: start;
}

.confirm-row dt {
  font-weight: 600;
  color: #1a3a52;
}

.confirm-row dd {
  margin: 0;
  color: #334155;
  white-space: pre-wrap;
}

.confirm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  justify-content: center;
}

.contact-form .note {
  color: #6b7280;
  font-size: 14px;
  margin-bottom: 12px;
}

.contact-submit {
  background: #1f4f82;
  color: #ffffff;
  padding: 12px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

.contact-submit:hover { transform: translateY(-2px); }

@media (max-width: 700px) {
  .contact-form { padding: 18px; }
}

.contact-section h1,
.contact-section h2 {
  text-align: center;
}
/* タイトル中央寄せ */
.contact-section h1,
.contact-section h2,
.confirm-panel h1,
.confirm-panel h2,
.thanks-section h1,
.thanks-section h2 {
  text-align: center;
}

/* ボタン中央寄せ */
.confirm-actions,
.thanks-actions,
.contact-actions,
.form-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* thanksページのボタン */
.thanks-section .button,
.thanks-section .btn,
.thanks-section a {
  display: inline-flex;
  justify-content: center;
}

.contact-page-title {
  text-align: center;
}

.contact-page-title .section-underline {
  margin-left: auto;
  margin-right: auto;
}

.thanks-actions {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.thanks-panel {
  text-align: center;
}

/* フォーム送信ボタン中央 */
.contact-form .form-row:last-child {
  display: flex;
  justify-content: center;
}

/* 確認・完了画面ボタン中央 */
.confirm-actions,
.thanks-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* ボタン自体 */
.contact-button,
.contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}


/* 個人情報同意 */

.privacy-agreement-row {
  margin-top: 28px;
}

.privacy-scroll {
  height: 240px;
  overflow-y: auto;
  padding: 20px;
  background: #ffffff;
  border: 1px solid #dbe8f5;
  border-radius: 12px;
}

.privacy-scroll h3 {
  margin-top: 28px;
  margin-bottom: 8px;
  font-size: 18px;
}

.privacy-scroll p {
  margin: 0 0 14px;
}

.privacy-scroll-guide {
  margin-top: 8px;
  font-size: 14px;
  color: #6b7280;
}

.privacy-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-weight: 600;
}

.privacy-check input {
  width: auto;
  margin: 0;
}
