/* --- 全体レイアウト --- */
.container {
  max-width: 640px;
  margin: 3rem auto;
  padding: 2.5rem 1rem 3rem 1rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(45,140,255,0.07);
}

.contact-section h2 {
  font-size: 1.6rem;
  color: #2D8CFF;
  text-align: center;
  font-weight: 600;
  margin-bottom: 2rem;
  letter-spacing: 0.04em;
  position: relative;
}
.contact-section h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: #2D8CFF;
  margin: 0.5rem auto 0;
  border-radius: 1px;
}

/* --- フォーム --- */
.contact-form {
  background: #f8fbff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(45,140,255,0.04);
  padding: 2rem 1.2rem 1.5rem 1.2rem;
}

.form-group {
  margin-bottom: 1.3rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #2D8CFF;
  font-size: 1.08rem;
  letter-spacing: 0.03em;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1.3px solid #b7dbff;
  border-radius: 7px;
  padding: 0.7rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  color: #1A1A1A;
  background: #fff;
  transition: border 0.2s;
  box-sizing: border-box;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #2D8CFF;
  outline: none;
}
.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

/* --- 送信ボタン --- */
.form-submit {
  text-align: center;
  margin-top: 2.1rem;
}
.contact-form button[type="submit"] {
  background: #2D8CFF;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: 7px;
  padding: 0.95rem 2.5rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(45,140,255,0.09);
  letter-spacing: 0.04em;
  transition: background 0.17s;
}
.contact-form button[type="submit"]:hover {
  background: #1765b8;
}

/* --- モーダル --- */
.modal-overlay {
  display: none;
  position: fixed; left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.36); z-index: 9999;
  align-items: center; justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal-content {
  background: #fff; border-radius: 13px; box-shadow: 0 4px 28px rgba(0,0,0,0.15);
  max-width: 400px; width: 95%; padding: 2rem 1.5rem 1.5rem 1.5rem;
  text-align: left; animation: fadein 0.15s;
}
.modal-content h3 {
  color: #2D8CFF; font-size: 1.15rem; margin-bottom: 1.1em; text-align: center; font-weight: 700;
}
.modal-body p { margin: 0 0 0.3em 0; font-size: 1em; font-weight: 600; }
#confMessage {
  white-space: pre-line; border: none; padding: 1em;
  background: #f7faff; border-radius: 7px; font-size: 1em;
  margin-bottom: 1em; margin-left: 0.2em;
}
.modal-actions { text-align: center; margin-top: 1.6em; }
.button {
  background: #2D8CFF; color: #fff; font-weight: 700; font-size: 1rem;
  border: none; border-radius: 7px; padding: 0.7em 2em;
  cursor: pointer; margin: 0 0.7em 0 0; transition: background 0.15s;
}
.button:last-child { margin-right: 0; }
.button:hover { background: #1765b8; }
@keyframes fadein { from { opacity:0; transform:translateY(30px);} to { opacity:1; transform:none;} }

