body {
  font-family: Arial, "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  background-color: #f6f4fb;
  margin: 0;
  padding: 0;
}

/* ===== フォーム本体 ===== */
#contact-form {
  --accent: #7c3aed;
  --accent-dark: #6d28d9;
  --error: #dc2626;
  box-sizing: border-box;
  background: #fff;
  max-width: 640px;
  margin: 40px auto;
  padding: 28px 24px 32px;
  border-radius: 12px;
  border-top: 4px solid var(--accent);
  box-shadow: 0 4px 18px rgba(60, 20, 120, 0.08);
  color: #222;
}

#contact-form h1 {
  text-align: center;
  font-size: 1.5em;
  margin: 0 0 12px;
}

.contact-lead {
  text-align: center;
  line-height: 1.8;
  margin: 0 0 18px;
  font-size: 15px;
}

.contact-notes {
  background: #f5f0ff;
  border-radius: 8px;
  padding: 12px 16px 12px 32px;
  margin: 0 0 24px;
  font-size: 13.5px;
  line-height: 1.7;
  color: #444;
}

#contact-form .field {
  margin-bottom: 18px;
}

#contact-form label {
  display: block;
  font-weight: bold;
  font-size: 14.5px;
  margin-bottom: 6px;
}

.req,
.opt {
  display: inline-block;
  font-size: 11px;
  font-weight: bold;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: 1px;
}
.req {
  background: var(--accent);
  color: #fff;
}
.opt {
  background: #e5e7eb;
  color: #555;
}

#contact-form input[type="text"],
#contact-form input[type="email"],
#contact-form input[type="url"],
#contact-form select,
#contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 12px;
  border: 1px solid #cfcbe0;
  border-radius: 6px;
  font-size: 16px; /* iOS のズーム防止 */
  font-family: inherit;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

#contact-form textarea {
  height: 180px;
  resize: vertical;
}

#contact-form input:focus,
#contact-form select:focus,
#contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

#contact-form .invalid {
  border-color: var(--error) !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12) !important;
}

.hint {
  font-size: 12.5px;
  color: #777;
  margin: 5px 0 0;
}
.counter {
  text-align: right;
}

.urgent label {
  font-weight: normal !important;
  display: flex !important;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.urgent input {
  width: 18px;
  height: 18px;
  accent-color: var(--error);
}
.urgent .hint {
  margin-left: 26px;
}

.agree label {
  font-weight: normal !important;
  display: flex !important;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.agree input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}
.agree input.invalid {
  outline: 2px solid var(--error);
}
.agree a {
  color: var(--accent);
}

/* ボット用の隠し欄 */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

#submitBtn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.15s;
}
#submitBtn:hover {
  background: var(--accent-dark);
}
#submitBtn:disabled {
  background: #a78bfa;
  cursor: wait;
}

#statusMessage {
  text-align: center;
  font-size: 14px;
  min-height: 1em;
  margin: 0 0 12px;
}
#statusMessage.error {
  color: var(--error);
}

/* 送信完了 */
#thanks {
  text-align: center;
  line-height: 1.8;
  padding: 20px 0 4px;
}
.thanks-title {
  font-size: 1.25em;
  font-weight: bold;
  color: var(--accent);
}
.btn-back {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 24px;
  border-radius: 8px;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-weight: bold;
  text-decoration: none;
}

@media (max-width: 600px) {
  #contact-form {
    margin: 20px 12px;
    padding: 22px 16px 26px;
  }
}

/* ===== 横棒 ===== */
#scroll-bar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #333;
  color: white;
  text-align: center;
  padding: 10px;
  display: none;
  z-index: 1000;
}
#scroll-bar a {
  color: white;
  margin: 0 15px;
  text-decoration: none;
  font-weight: bold;
}
#scroll-bar a:hover {
  text-decoration: underline;
}
