.scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar::-webkit-scrollbar {
  display: none;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #9e9898;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.container {
  width: 80%;
  margin: 0 auto;
  background: white;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  padding: 40px;
}
.container h2,p {
  text-align: center;
}
h1 {
  color: #333;
  margin-bottom: 10px;
  font-size: 28px;
}

.description {
  color: #666;
  margin-bottom: 30px;
  line-height: 1.6;
}

.form-group {
  margin-bottom: 25px;
}

label {
  display: block;
  color: #333;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 15px;
}

.required {
  color: #e74c3c;
  margin-left: 4px;
}

input[type="text"],
input[type="tel"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 5px;
  font-size: 16px;
  transition: border-color 0.3s;
  font-family: inherit;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #667eea;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

.radio-group,
.checkbox-group {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  top: 0;
  bottom: 0;
  margin: auto;
  left: 0;
}

.radio-item,
.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

input[type="radio"],
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.submit-btn {
  background: #667eea;
  color: white;
  border: none;
  padding: 15px 40px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 5px;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  width: 100%;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.submit-btn:active {
  transform: translateY(0);
}

.note {
  background: #f8f9fa;
  padding: 15px;
  border-left: 4px solid #667eea;
  margin-bottom: 20px;
  border-radius: 4px;
  font-size: 14px;
  color: #555;
}

/* 確認ダイアログのスタイル */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal-overlay.show {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 10px;
  padding: 30px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.modal-title {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
  text-align: center;
}

.yoroshiku-title {
  font-size: 17px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
  text-align: center;
}

.confirm-item {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e0e0e0;
}

.confirm-item:last-child {
  border-bottom: none;
}

.confirm-label {
  font-size: 13px;
  color: #666;
  margin-bottom: 5px;
}

.confirm-value {
  font-size: 16px;
  color: #333;
  font-weight: 500;
}

.modal-buttons {
  display: flex;
  gap: 10px;
  margin-top: 25px;
}

.modal-btn {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 5px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.modal-btn-cancel {
  background: #e0e0e0;
  color: #333;
}

.modal-btn-cancel:hover {
  background: #d0d0d0;
}

.modal-btn-submit {
  background: #667eea;
  color: white;
}

.modal-btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.name-desktop-container {
  display: flex;
  gap: 10px;
}

.name-desktop-input {
  flex: 1;
}

.name-mobile-input {
  display: none;
}

@media (max-width: 768px) {
  .container {
    padding: 24px;
    width: 100%;
  }

  .name-desktop-container {
    display: none;
  }

  .name-mobile-input {
    display: block;
  }
}
