body {
  font-family: "Noto Sans JP", sans-serif;
  background: #f8f9fa;
  padding: 2rem;
  margin: 0;
}

.zendesk-form-container {
  max-width: 700px;
  margin: auto;
  padding: 2rem;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.05);
}

h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: #333;
  font-size: 1.8rem;
  font-weight: 700;
  border-bottom: 2px solid #7eb8d6ff;
  padding-bottom: 0.5rem;
  margin-top: 0;
}

/* ラベルと補助文 */
form label {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  font-weight: bold;
  display: block;
  color: #333;
}

.form-hint {
  font-size: 0.85rem;
  color: #888;
  margin: 0.3rem 0 0.8rem;
  display: block;
}

.required {
  color: #dc3545;
  font-size: 0.85rem;
  margin-left: 0.3rem;
}

/* 入力項目 */
input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 0.7rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  margin-bottom: 1.8rem;
  box-sizing: border-box;
}

textarea {
  resize: vertical;
}

/* 横並びグループ */
.name-group,
.furigana-group {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.3rem;
}

.name-group input,
.furigana-group input {
  flex: 1;
}

/* 添付ファイル */
.attachment-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.file-input-wrapper {
  flex: 1 1 30%;
  min-width: 100px;
}

.thumb-preview {
  position: relative;
  margin-top: 0.5rem;
}

.thumb-preview img {
  max-width: 100%;
  height: auto;
  border: 1px solid #ccc;
  border-radius: 4px;
  display: block;
}

.remove-btn {
  position: absolute;
  top: -8px;
  right: -8px;
  background: white;
  border: 1px solid #ccc;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 1rem;
  color: gray;
  cursor: pointer;
  z-index: 10;
}

.remove-btn:hover {
  color: darkgray;
}

/* 注意・導入・締め文言 */
.form-intro,
.form-closing,
.upload-note {
  font-size: 0.9rem;
  color: #444;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.upload-note {
  background: #fff9e5;
  border-left: 4px solid #f0ad4e;
  padding: 1rem;
  color: #555;
}

/* 同意 */
.privacy-consent {
  display: block;
  font-size: 0.9rem;
  font-weight: bold;
  margin-bottom: 2rem;
  margin-top: 1rem;
  color: #dc3545;
}

/* 送信ボタン */
button[type="submit"] {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: bold;
  background: linear-gradient(to right, #7eb8d6ff, #275e7aff);
  border: none;
  color: white;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

button[type="submit"]:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.thanks-message {
  display: none;
  text-align: center;
  padding: 2rem;
  background: #e6f7e9;
  border: 1px solid #b2e0b6;
  border-radius: 1rem;
  margin-top: 2rem;
  color: #1e4620;
}

.spinner {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #7eb8d6ff;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  animation: spin 1s linear infinite;
  margin-right: 1rem;
}

#loadingOverlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.85);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .name-group,
  .furigana-group {
    flex-direction: column;
  }

  .file-input-wrapper {
    flex: 1 1 100%;
  }

  input[type="text"],
  input[type="email"],
  select,
  textarea {
    font-size: 1rem;
  }

  .form-intro,
  .form-closing,
  .upload-note,
  .form-hint {
    font-size: 0.9rem;
  }
}
