body {
  font-family: "Noto Sans JP", sans-serif;
  background: #f9f5e9;
  margin: 0;
  color: #333;
}

.form-wrap {
  max-width: 720px;
  margin: 60px auto;
  padding: 30px 20px;
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 24px;
  border-bottom: 2px solid #37aed6;
  padding-bottom: 10px;
}

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

label {
  font-weight: bold;
  margin-bottom: 8px;
  display: block;
}

.choice-group {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.choice-group label {
  display: flex;
  align-items: center;
  font-weight: normal;
  cursor: pointer;
}

.choice-group input {
  margin-right: 6px;
  transform: scale(1.1);
}

input[type="text"], textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box; /* ←これ重要 */
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, textarea:focus {
  border-color: #37aed6;
  box-shadow: 0 0 0 2px rgba(107,182,182,0.2);
  outline: none;
}

.input-error {
  border-color: #e60000;
  background: #fff5f5;
}

.field-error {
  color: #e60000;
  font-size: 13px;
  margin-top: 5px;
}

textarea {
  height: 140px;
}

.required {
  color: #e60000;
  font-size: 12px;
  margin-left: 5px;
}

/* ★ここ修正 */
button,
.btn-main,
.btn-sub {
  display: block;
  width: 100%;
  padding: 16px;
  text-align: center;
  text-decoration: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.2s;

  box-sizing: border-box; /* ★これ追加で解決 */
}

/* メイン */
button,
.btn-main {
  background: #37aed6;
  color: #fff;
  border: none;
}

button:hover,
.btn-main:hover {
  background: #5aa5a5;
}

/* サブ */
.btn-sub {
  background: #ffffff;
  border: 1px solid #37aed6;
  color: #37aed6;
}

.btn-sub:hover {
  background: #f0fafa;
}

button:active,
.btn-main:active,
.btn-sub:active {
  transform: translateY(1px);
}

.confirm-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.confirm-table th,
.confirm-table td {
  border: 1px solid #ddd;
  padding: 10px;
}

.confirm-table th {
  width: 35%;
  background: #f7f7f7;
  text-align: left;
}

@media (max-width: 600px) {
  .form-wrap {
    padding: 20px 15px;
  }

  .choice-group {
    gap: 12px;
  }
}