* {
  box-sizing: border-box;
}

html {
  background: #000;
  color-scheme: dark;
}

body {
  margin: 0;
  padding: 0;
  background: #000;
  color: #f2f2f2;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Helvetica Neue",
    "Hiragino Kaku Gothic ProN",
    "Hiragino Sans",
    "Yu Gothic",
    YuGothic,
    sans-serif;
  font-size: 15px;
  line-height: 1.8;
  -webkit-text-size-adjust: 100%;
}

#wrapper {
  width: 100%;
  padding: 64px 24px 80px;
}

#main {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
}

.section {
  width: 100%;
}

.section__ttl {
  margin: 0 0 24px;
  padding: 0 0 14px;
  border-bottom: 1px solid #333;
  background: transparent;
  color: #f5f5f5;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.section__body {
  width: 100%;
}

#ttl_explain {
  margin: 0 0 32px;
  color: #aaa;
  font-size: 14px;
  line-height: 1.9;
}

table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  border-spacing: 0;
  background: transparent;
}

th,
td {
  padding: 18px 20px;
  border: 1px solid #2d2d2d;
  vertical-align: top;
}

th {
  width: 230px;
  background: #0d0d0d;
  color: #e8e8e8;
  font-weight: 500;
  text-align: left;
}

td {
  background: #050505;
  color: #ddd;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
textarea,
select {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 13px 14px;
  border: 1px solid #3a3a3a;
  border-radius: 0;
  outline: none;
  background: #090909;
  color: #f3f3f3;
  font: inherit;
  line-height: 1.5;
  -webkit-appearance: none;
  appearance: none;
}

textarea {
  resize: vertical;
}

select {
  min-height: 48px;
}

option {
  background: #111;
  color: #fff;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
  border-color: #888;
  box-shadow: 0 0 0 1px #888;
}

input[type="checkbox"],
input[type="radio"] {
  margin-right: 8px;
  accent-color: #ddd;
}

input[type="submit"],
input[type="button"],
button {
  min-width: 160px;
  min-height: 48px;
  margin: 32px 8px 12px;
  padding: 12px 28px;
  border: 1px solid #aaa;
  border-radius: 0;
  background: transparent;
  color: #f5f5f5;
  font: inherit;
  letter-spacing: 0.08em;
  cursor: pointer;
}

input[type="submit"]:hover,
input[type="button"]:hover,
button:hover {
  background: #f2f2f2;
  color: #000;
}

a {
  color: #d5d5d5;
  text-decoration: underline;
  text-underline-offset: 4px;
}

a:hover {
  color: #fff;
}

.error,
.error_message,
.error-message {
  color: #ff6666;
}

form {
  width: 100%;
  margin: 0;
}

@media screen and (max-width: 700px) {
  #wrapper {
    padding: 40px 18px 64px;
  }

  .section__ttl {
    margin-bottom: 20px;
    font-size: 19px;
  }

  #ttl_explain {
    margin-bottom: 24px;
    font-size: 13px;
  }

  table,
  tbody,
  tr,
  th,
  td {
    display: block;
    width: 100%;
  }

  tr {
    margin: 0 0 18px;
  }

  th {
    padding: 10px 12px;
    border-bottom: 0;
    font-size: 13px;
  }

  td {
    padding: 12px;
  }

  input[type="text"],
  input[type="email"],
  input[type="url"],
  input[type="tel"],
  textarea,
  select {
    min-height: 48px;
    font-size: 16px;
  }

  textarea {
    min-height: 110px;
  }

  input[type="submit"],
  input[type="button"],
  button {
    width: 100%;
    margin: 24px 0 8px;
  }
}