@charset "utf-8";

body {
}
*,
*:before,
*:after {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

.pc {
  display: inline-block;
  @media screen and (max-width: 736px) {
    display: none;
  }
}

.sp {
  display: none;
  @media screen and (max-width: 736px) {
    display: inline-block;
  }
}

/* form input */

input[type="submit"],
input[type="text"],
input[type="textbox"],
input[type="email"],
input[type="number"],
input[type="tel"],
textarea,
select {
  -webkit-appearance: none;
  appearance: none;
  padding: 0.15em 0.3em;
  outline: none;
  border: 1px solid #888;
  font-size: 16px;
  font-family: sans-serif !important;
  letter-spacing: 0.07rem;
  line-height: 1.6;
  cursor: pointer;
}

/* checkbox radio */
input[type="checkbox"],
input[type="radio"] {
  width: 0.67lh;
  height: 0.6lh;
  outline: 1px solid #777;
  border-radius: 3px;
  -webkit-appearance: none;
  appearance: none;
}

@media screen and (max-width: 767.9px) {
  input[type="checkbox"],
  input[type="radio"] {
    top: 0.29em;
  }
}

input[type="checkbox"]:checked,
input[type="radio"]:checked {
  background: rgba(0, 119, 255, 1);
  border: 1px solid #fff;
  filter: drop-shadow(0 0 0.4em rgba(0, 119, 255, 0.5));
}

input[type="checkbox"]:checked:before,
input[type="radio"]:checked:before {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0.5em;
  height: 0.5em;
  background: #fff;
  content: "";
}

input[type="radio"],
input[type="radio"]:checked:before {
  border-radius: 50%;
}

:focus {
  background: rgba(0, 119, 255, 0.05);
  border: 1px solid #636370;
  filter: drop-shadow(0 0 5px rgba(0, 119, 255, 0.4));
  outline: 0;
}

input:invalid {
  background-color: rgb(255, 196, 196);
  border: 1px solid #fff;
  filter: drop-shadow(0 0 5px #ffb3b3);
}

::placeholder {
  color: #9aa5b19a;
}

h2 {
  padding-top: 10rem;
  font-size: 30px;
  font-weight: 400;
  display: grid;
  grid-template-rows: 2fr 1fr;
  justify-items: center;
  @media screen and (max-width: 736px) {
    padding-top: 5rem;
    font-size: clamp(20.64px, 6.400008vw, 28.8px);
    grid-template-rows: 2fr auto;
    line-height: 1.5;
  }
  &::after {
    content: "";
    display: inline-block;
    width: 50px;
    height: 2px;
    background: #f60;
    position: relative;
    bottom: -10px;
    @media screen and (max-width: 736px) {
      width: 35px;
    }
  }
}
table {
  border: none;
  padding: 3rem 20px 5rem;
  margin-inline: auto;
  font-size: 16px;

  @media screen and (max-width: 736px) {
    padding: 1.2rem 20px 1.5rem;
    width: 100%;
  }
  & tr {
    display: grid;
    margin-bottom: 1.3em;
    grid-template-columns: auto auto;
    justify-content: start;
    align-items: center;
    @media screen and (max-width: 736px) {
      grid-template-columns: 1fr;
      grid-template-rows: auto auto;
    }
    & td {
      width: 100%;
      @media screen and (max-width: 736px) {
        text-align: left;
      }
      &:nth-child(odd) {
        width: 14em;
        @media screen and (max-width: 736px) {
          width: 100%;
          margin-bottom: 0.6em;
        }
      }
      &:nth-child(even) {
        width: 32em;
        @media screen and (max-width: 736px) {
          width: 100%;
        }
      }
      &[colspan="2"] {
        width: calc(14em + max(360px, 60vw));

        @media screen and (max-width: 736px) {
          margin: 0 auto;
          width: fit-content;
          display: grid;
          place-content: center;
          grid-template-rows: 1fr 0 auto;
          gap: 0;
        }
      }
    }
  }
  &:has(input[type="textbox"]) font[color="red"] {
    /* display: none; */
    content: "必須";
    background: #e80003;
    color: #ffffff;
    padding: 3px 5px;
    font-size: 12px;
    line-height: 1;
    margin-right: 0.5em;
  }
}

input[name="24"] {
  position: relative;
  top: 0.18em;
}

td:has(input[type="submit"]) {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;

  @media screen and (min-width: 736.1px) {
    width: fit-content !important;
    margin-left: 5.5em;
  }
  @media screen and (max-width: 736px) {
    display: block;
    text-align: center;
  }
}

input[type="submit"],
input[type="reset"] {
  font-size: 1.3rem;
  background-color: #549dd9;
  color: #fff;
  border: none;
  letter-spacing: 0.1em;
  font-weight: bold;
  cursor: pointer;
  padding: 1rem;
  width: 15em;
  border-radius: 5px;
  transition: 0.3s ease-in-out;
  height: 3.6em;
  &:hover {
    background-color: #f60;
  }
  @media screen and (max-width: 736px) {
    font-size: 1.2rem;
    margin-inline: auto;
    /* width: 100%; */
  }
}
input[type="reset"] {
  background-color: #aaa;
  color: #fff;
  @media screen and (min-width: 736.1px) {
    width: 8em;
  }
  @media screen and (max-width: 736px) {
    margin-top: 12px;
  }
}

td:has(textarea[name*="16"]) {
  width: 100%;
}

textarea[name*="16"] {
  width: 100%;
  border-radius: 5px;
  height: 7lh;
  @media screen and (max-width: 736px) {
    margin-bottom: 1em;
  }
}
input[type="textbox"][name="1"],
input[type="textbox"][name="10"] {
  width: 16em;
  border-radius: 5px;
  @media screen and (max-width: 736px) {
    width: 80%;
  }
}
input[type="textbox"][name="9"] {
  width: 11em;
  border-radius: 5px;
  @media screen and (max-width: 736px) {
    width: 80%;
  }
}

input[type="submit"] + table {
  padding: 0;
  width: 50% !important;
  margin-top: -2px;
  border-radius: 5px;
  margin-left: 2em;
  @media screen and (max-width: 736px) {
    width: 100% !important;
    margin-left: 0;
  }
}

input[type="submit"] + table td:has(input[type="submit"]) {
  flex-direction: row-reverse;
  margin-top: 0;
  margin-left: 0;
}

input[type="submit"] + table input[type="submit"] {
  background: #aaa;
  width: 9em;
  transition: 0.3s ease-in-out;
  &:hover {
    background-color: #f60;
  }
  @media screen and (max-width: 736px) {
    width: 100%;
    margin-top: 1rem;
  }
}
table:has(.input_error) {
  padding: 2em 20px 0;
  @media screen and (max-width: 736px) {
    width: 90vw;
  }
}
td:has(.input_error) {
  width: 980px !important;
  text-align: center;
  @media screen and (max-width: 736px) {
    width: 100% !important;
  }
}
.input_error {
  font-size: 1.1em;
  color: red;
}
h3 {
  font-size: 1.3rem;
  margin: 1rem auto;
  @media screen and (max-width: 736px) {
    margin: 2rem auto 1.1rem;
  }
}
/* form[name="MyForm"]::before {
  content: "\8CEA\554F\9805\76EE\306F\5168\3066\5FC5\9808\3067\3059";
  font-size: 1.1em;
} */
.thanks_mess {
  font-size: 1.2em;
  margin: 50px auto 100px;
  @media screen and (max-width: 736px) {
    margin: 40px auto 70px;
  }
}
.copy_mess {
  font-size: 1.2em;
}
table table tr {
  margin-bottom: 0;
}
td:has(input[type="radio"][name="24"])::after {
  display: block;
  content: "\203B\66F8\985E\9078\8003\3092\5E0C\671B\3055\308C\308B\65B9\306F\63A1\7528\62C5\5F53\5B9B\306B\3001\5C65\6B74\66F8\3092\90F5\9001\307E\305F\306F\30E1\30FC\30EB\3067\9001\4FE1\3057\3066\304F\3060\3055\3044\3002";
  font-size: 0.9em;
  opacity: 0.86;
  @media screen and (max-width: 736px) {
    margin-left: 1.39rem;
    line-height: 1.5;
  }
}

font[color="red"] b {
  font-size: 16px;
}

input[type="submit"].check_return_bt {
  margin-left: 0;
  background-color: #aaa;
  color: #fff;
}

body:has(.copy_mess) footer {
  @media screen and (max-width: 736px) {
    margin-top: 7em;
  }
}

table:has(.check_return_bt) {
  &[colspan="2"] {
    @media screen and (max-width: 736px) {
      margin-inline: calc(50% - 50cqi);
    }
  }
}
table:has(.check_return_bt) td {
  @media screen and (max-width: 736px) {
    margin-top: 0;
  }
}
table table {
  padding: 0;
  @media screen and (max-width: 736px) {
    padding: 0;
  }
  & td {
    margin: 0;
  }
}
.thx_mes + .thx_mes {
  margin-top: 0.7em;
}

.nw_btn {
  margin-top: 3.4em;
  & a {
    display: inline-block;
    padding: 8px 40px;
    color: #fff;
    background: rgba(41, 132, 207, 0.8);
    transition: 0.3s ease-in-out;
    &:hover {
      opacity: 0.7;
    }
  }
}
