*,
*::before,
*::after {
  box-sizing: border-box;
}
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}
/* Neutralize UA heading sizes so we control them explicitly */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}
ul[role="list"],
ol[role="list"] {
  list-style: none;
}
html:focus-within {
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
}
a:not([class]) {
  text-decoration-skip-ink: auto;
}
img,
picture {
  max-width: 100%;
  display: block;
}
input,
button,
textarea,
select {
  font: inherit;
}
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

:root {
  --primary-label: 64, 64, 64;
  --secondary-label: 153, 153, 153;
  --theme-red: 217, 52, 73;
  --gray: 142, 142, 147;
  --gray2: 174, 174, 178;
  --gray3: 199, 199, 204;
  --gray4: 209, 209, 214;
  --gray5: 229, 229, 234;
  --gray6: 242, 242, 247;
  --base-bg: 247, 246, 247;
}

body {
  font-family: "Avenir-Roman", "Arial", "游ゴシック体", "YuGothic",
    "游ゴシック Medium", "Yu Gothic Medium", "游ゴシック", "Yu Gothic",
    "sans-serif";
  margin: 0;
  padding: 0;
  text-align: left;
  background-size: 100% 600px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  font-size: 18px;
  line-height: 2;
  background: rgb(var(--base-bg));
  color: rgb(var(--primary-label));
}

h1 {
  font-size: 20px;
  margin-bottom: 32px;
}
p {
  font-size: 16px;
  line-height: 2;
  margin-top: 24px;
  margin-bottom: 0;
  font-weight: 400;
}

a {
  color: rgb(var(--theme-red));
  text-decoration: underline;
}

@media (min-width: 768px) {
  h1 {
    font-size: 28px;
    margin-bottom: 32px;
  }
}

@media (min-width: 1024px) {
  h1 {
    font-size: 32px;
    margin-bottom: 32px;
  }
  p {
    font-size: 18px;
  }
}

.wrapper {
  max-width: 896px;
  margin: 24px auto;
  padding: 24px;
}

.contact-form {
  width: 100%;
  max-width: 100%;
  margin-top: 32px;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border: none;
}

textarea {
  resize: none;
}

select {
  width: 100%;
}

input,
textarea,
select,
button {
  appearance: none;
  border-radius: 32px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background-color: white;
  font-size: inherit;
  margin: 8px 0 32px;
  padding: 12px 24px;
  width: 100%;
  min-height: 60px;
  color: #000000de;
  box-sizing: border-box;
  font-family: inherit;
}

select {
  padding-top: 16px;
  background-image: url('data:image/svg+xml;utf8, <svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="%23333" d="M6 8l-6-6h12z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
}

select:invalid {
  color: #00000080;
}

.button_box button {
  appearance: none;
  border: none;
  display: block;
  width: 200px;
  background-color: rgb(var(--primary-label));
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  margin: 32px auto 60px;
  transition: 0.3s;
  cursor: pointer;
  border-radius: 32px;
}

.button_box button:hover {
  background-color: #676767;
}

.button_box button[disabled] {
  background-color: #d0d0d0;
  color: #BABABA;
}

.hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.contact-form ul {
  margin: 0;
  list-style: none;
  padding: 0;
}

.red_txt {
  color: rgb(var(--theme-red));
}

.contact-form table {
  width: 100%;
  border-spacing: 0;
}

.contact-form table th {
  border-bottom: solid 1px #0003;
  padding: 20px;
  white-space: nowrap;
}

.contact-form table td {
  border-bottom: solid 1px #0003;
  padding: 20px;
  width: 100%;
  word-wrap: break-word;
}

#complete {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  text-align: center;
}

.back_button {
  text-align: center;
}