/* ------------------------------
   基本色（ここだけ変えれば全体のトーンを調整しやすい）
--------------------------------- */
:root {
  --color-primary: #2563eb;
  --color-primary-hover: #1d4ed8;
  --color-bg: #f3f4f6;
  --color-card-bg: #ffffff;
  --color-border: #e5e7eb;
  --color-text: #111827;
}

/* ------------------------------
   ベース
--------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

/* ------------------------------
   セクション全体
--------------------------------- */
.contact-form {
  max-width: 720px;
  margin: 40px auto;
  padding: 32px 24px;
  background-color: var(--color-card-bg);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.contact-form h1 {
  font-size: 1.6rem;
  margin: 0 0 0.5rem;
}

.contact-form > p {
  margin: 0;
  color: #4b5563;
  font-size: 0.95rem;
}

.contact-form form {
  margin-top: 1.8rem;
}

/* ------------------------------
   フォーム項目
--------------------------------- */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group:last-of-type {
  margin-bottom: 0;
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.required {
  color: #dc2626;
  font-size: 0.8rem;
  margin-left: 0.25rem;
}

/* テキスト系入力・セレクト・テキストエリア */
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 0.6rem;
  border: 1px solid var(--color-border);
  background-color: #f9fafb;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease,
    background-color 0.15s ease;
}

input::placeholder,
textarea::placeholder {
  color: #9ca3af;
}

/* フォーカス時 */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
  border-color: var(--color-primary);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* テキストエリア */
textarea {
  resize: vertical;
  min-height: 140px;
}

/* ------------------------------
   チェックボックス + 注意書き
--------------------------------- */
.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 400;
  cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  margin: 0;
}

.checkbox-group .note {
  margin-top: 0.3rem;
  font-size: 0.85rem;
  color: #6b7280;
}

/* リンク */
.contact-form a {
  color: var(--color-primary);
  text-decoration: none;
}

.contact-form a:hover {
  text-decoration: underline;
}

/* ------------------------------
   ボタン
--------------------------------- */
.form-actions {
  margin-top: 1.8rem;
  text-align: right;
}

.form-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.6rem;
  border-radius: 999px;
  border: none;
  background-color: var(--color-primary);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease,
    box-shadow 0.1s ease;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25);
}

.form-actions button:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.3);
}

.form-actions button:active {
  transform: translateY(0);
  box-shadow: 0 5px 12px rgba(37, 99, 235, 0.25);
}

/* ------------------------------
   レスポンシブ（スマホ）
--------------------------------- */
@media (max-width: 600px) {
  .contact-form {
    margin: 16px;
    padding: 20px 16px;
    border-radius: 12px;
  }

  .contact-form h1 {
    font-size: 1.4rem;
  }

  .form-actions {
    text-align: center;
  }

  .form-actions button {
    width: 100%;
  }
}