body {
  font-family: Arial, sans-serif;
  /* padding: 10px; */
}

.form-container {
  /* max-width: 1000px; */
  margin: 0 auto;
  /* padding: 20px; */
  /* border: 1px solid #ccc; */
  border-radius: 10px;
  /* box-shadow: 0 0 10px rgba(0,0,0,0.1); */
}

label {
  display: block;
  margin: 40px 0 4px;
  font-weight: bold;
}
label.agree-label {
  margin-top: 10px;
}

label.required::after {
  content: "（必須）";
  color: red;
  font-weight: normal;
  font-size: 0.75rem;
  margin-left: 4px;
}

label.optional::after {
  content: "（任意）";
  color: #666;
  font-weight: normal;
  font-size: 0.75rem;
  margin-left: 4px;
}

input, select, button {
  width: 100%;
  padding: 20px;
  /* margin-bottom: 10px; */
  box-sizing: border-box;
  border-radius: 5px;
  border: 1px solid #ccc;
  background-color: #efefef;
}

button {
  background-color: #007BFF;
  color: #fff;
  border: none;
  cursor: pointer;
  margin-top: 40px;

  transition:
    background-color 0.3s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

button:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}


.flex-input {
  display: flex;
  gap: 10px;
}

.flex-input input {
  flex: 1;
}

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

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.6;
}

.form-textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  line-height: 1.6;
  border: 1px solid #ccc;
  background-color: #efefef;
  border-radius: 4px;
  resize: vertical;
  box-sizing: border-box;
}

.form-textarea:focus {
  outline: none;
  border-color: #333;
}

.form-note {
  margin-top: 6px;
  font-size: 0.85em;
  line-height: 1.2rem;
  color: #666;
}

.agree-label {
  /* width: 100%; */
  display: flex;
  align-items: center; 
}
.agree-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-right: 6px;
  vertical-align: middle;
  margin-top: 2px;
}
.agree-label input[type="radio"] {
  width: 16px;
  height: 16px;
  margin-right: 6px;
}
.radio-inline {
  display: flex;
  gap: 24px;
}

.form-smallText{
  font-size: 0.9rem;
  line-height: 1.35rem;
  margin-top: 30px;
  text-indent: -1em;
  padding-left: 1em;
}

/* スマホ対応 */
@media (max-width: 480px) {
  .flex-input {
    flex-direction: column;
  }
  input, select, button {
  padding: 20px;
  margin-bottom: 5px;
  }
  label {
  margin: 25px 0 5px;
}
}

/* -----------------------------------------
   ▼ エラー時のデザイン
----------------------------------------- */

/* エラー枠 + 背景 */
input.error,
select.error,
textarea.error {
  border: 1px solid #e53935 !important;
  background-color: #ffe5e5 !important;
}

/* エラーメッセージ */
.error-message {
  font-size: 12px;
  color: #e53935;
  margin-top: 0px;
  margin-bottom: 10px;
  display: none; /* JSで表示制御 */
}

/* エラー表示時に visible にするClass */
.error-message.active {
  display: block;
}
.form-container .active {
  background-color: #fff;
}

/* スマホ対応 */
@media (max-width: 480px) {
  .error-message {
    font-size: 12px;
    margin-bottom: 15px;
    margin-top: -5px;
  }
}


/* -----------------------------------------
   ▼ confirm.php のデザイン
----------------------------------------- */

.confirm-container {
  margin-top: 40px;
}

.form-title {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.form-lead {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 30px;
}

.confirm-list {
  border-top: 1px solid #ccc;
}

.confirm-item {
  display: flex;
  padding: 16px 0;
  border-bottom: 1px solid #ccc;
  gap: 20px;
}

.confirm-label {
  width: 180px;
  font-weight: 600;
}

.confirm-value {
  flex: 1;
  line-height: 1.6;
}

.confirm-file {
  margin: 0;
  padding-left: 18px;
}

/* スマホ */
@media (max-width: 480px) {
  .confirm-item {
    flex-direction: column;
    gap: 6px;
  }

  .confirm-label {
    width: auto;
    font-size: 0.9rem;
    color: #666;
  }
}
