* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  color: #333;
  background: #f1f1f1;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 15px;
  line-height: 1.8;
}

a {
  color: #555;
}

#wrapper {
  width: min(100% - 24px, 840px);
  margin: 0 auto;
  padding: 32px 0;
}

#main {
  background: #fff;
  border: 1px solid #ddd;
}

.section__ttl {
  margin: 0;
  padding: 15px 18px;
  color: #fff;
  background: #4d4d4d;
  font-size: 20px;
  font-weight: 600;
}

.section__body {
  padding: 22px 20px 28px;
}

#txt_explain {
  margin-bottom: 20px;
}

#txt_explain p {
  margin: 0;
}

.red_txt {
  margin: 0 0 18px;
  color: #b3261e;
}

.table {
  width: 100%;
  border-top: 1px solid #d8d8d8;
  border-left: 1px solid #d8d8d8;
  border-collapse: collapse;
}

.table th,
.table td {
  border-right: 1px solid #d8d8d8;
  border-bottom: 1px solid #d8d8d8;
  padding: 13px 14px;
  vertical-align: top;
}

.table th {
  width: 30%;
  background: #f7f7f7;
  text-align: left;
  font-weight: 600;
}

.required {
  color: #c0392b;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  max-width: 100%;
  border: 1px solid #bbb;
  border-radius: 2px;
  padding: 9px 10px;
  color: #333;
  background: #fff;
  font: inherit;
}

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

input:focus,
textarea:focus {
  border-color: #777;
  outline: 2px solid #e2e2e2;
}

.choice_list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.choice_list label {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  width: auto;
  max-width: 100%;
  margin: 0;
  white-space: nowrap;
  line-height: 1.5;
}

.choice_list input[type="checkbox"] {
  width: auto;
  min-width: 0;
  margin: 0;
  flex: 0 0 auto;
}

.button_box {
  margin: 24px 0 0;
  text-align: center;
}

.button_box input,
.button_box button,
.button_link {
  min-width: 110px;
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  padding: 10px 30px;
  color: #fff;
  background: #b32835;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button_box button,
.button_link {
  background: #b8b2a8;
}

.button_box input:hover {
  background: #9d202c;
}

.button_box button:hover,
.button_link:hover {
  background: #a8a196;
}

.hp_field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 640px) {
  #wrapper {
    width: 100%;
    padding: 0;
  }

  #main {
    border-right: 0;
    border-left: 0;
  }

  .section__ttl {
    font-size: 18px;
  }

  .section__body {
    padding: 18px 12px 24px;
  }

  .table,
  .table tbody,
  .table tr,
  .table th,
  .table td {
    display: block;
    width: 100%;
  }

  .table th {
    border-bottom: 0;
  }
}
