@media screen and (min-width: 768px) {
  main.contact article section {
    padding: 64px 0 136px 0;
  }
  main.contact article section.form p.error,
  main.contact article section.form dl.form dd.error {
    padding-top: 5px;
    font-size: 14px;
    color: #A82F3A;
  }
  main.contact article section.form p.text {
    margin: 0 auto 64px auto;
    padding: 5px 0 10px 0;
    width: 992px;
    line-height: 32px;
    font-size: 16px;
  }
  main.contact article section.form .select_type {
    margin: 0 auto 64px auto;
    width: 1120px;
  }
  main.contact article section.form .select_type ul.type {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
  }
  main.contact article section.form .select_type ul.type li {
    width: 392px;
    height: 96px;
    position: relative;
  }
  main.contact article section.form .select_type ul.type li input {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
  }
  main.contact article section.form .select_type ul.type li input:checked + label {
    border-color: #333333;
    background: #F7F7F7;
  }
  main.contact article section.form .select_type ul.type li input:checked + label:before {
    border-color: #333333;
  }
  main.contact article section.form .select_type ul.type li input:checked + label:after {
    background: #333333;
  }
  main.contact article section.form .select_type ul.type li label {
    width: 100%;
    height: 100%;
    display: block;
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    box-sizing: border-box;
    cursor: pointer;
  }
  main.contact article section.form .select_type ul.type li label:before {
    content: "";
    width: 18px;
    height: 18px;
    display: block;
    box-sizing: border-box;
    border: 2px solid #666666;
    border-radius: 50%;
    background: #FFFFFF;
    position: absolute;
    top: calc(50% - 9px);
    left: 23px;
  }
  main.contact article section.form .select_type ul.type li label:after {
    content: "";
    width: 10px;
    height: 10px;
    display: block;
    box-sizing: border-box;
    background: transparent;
    border-radius: 50%;
    background: #FFFFFF;
    position: absolute;
    top: calc(50% - 5px);
    left: 27px;
  }
  main.contact article section.form .select_type ul.type li label p {
    padding: 30px 0 0 64px;
    line-height: 32px;
    font-size: 16px;
  }
  main.contact article section.form .select_type ul.type li label dl {
    padding: 16px 0 0 64px;
  }
  main.contact article section.form .select_type ul.type li label dl dt {
    line-height: 32px;
    font-size: 16px;
  }
  main.contact article section.form .select_type ul.type li label dl dd {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
  }
  main.contact article section.form .select_type ul.type li label dl dd span.icon {
    width: 40px;
  }
  main.contact article section.form .select_type ul.type li label dl dd span.title {
    line-height: 32px;
    font-size: 13px;
    color: #666666;
    letter-spacing: calc(40em / 1000);
  }
  main.contact article section.form .select_type p.error {
    padding-top: 14px;
    text-align: center;
  }
  main.contact article section.form dl.form {
    margin: 0 auto 16px auto;
    width: 992px;
    overflow: hidden;
  }
  main.contact article section.form dl.form dt {
    padding-top: 6px;
    padding-left: 56px;
    width: 352px;
    float: left;
    box-sizing: border-box;
    position: relative;
    line-height: 32px;
    font-size: 16px;
    font-weight: bold;
  }
  main.contact article section.form dl.form dt span {
    width: 40px;
    height: 18px;
    display: block;
    background: #A82F3A;
    border-radius: 2px;
    position: absolute;
    top: 14px;
    left: 0;
    text-align: center;
    line-height: 18px;
    font-size: 10px;
    font-weight: normal;
    color: #ffffff;
  }
  main.contact article section.form dl.form dd {
    margin-left: 352px;
    line-height: 32px;
    font-size: 18px;
  }
  main.contact article section.form dl.form dd ul.radio {
    padding: 6px 0;
    display: flex;
    gap: 64px;
  }
  main.contact article section.form dl.form dd ul.radio li {
    position: relative;
  }
  main.contact article section.form dl.form dd ul.radio li input {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
  }
  main.contact article section.form dl.form dd ul.radio li input:checked + label:before {
    border-color: #333333;
  }
  main.contact article section.form dl.form dd ul.radio li input:checked + label:after {
    background: #333333;
  }
  main.contact article section.form dl.form dd ul.radio li label {
    padding-left: 40px;
    width: 128px;
    height: 32px;
    display: block;
    background: #FFFFFF;
    box-sizing: border-box;
    line-height: 32px;
    font-size: 18px;
    cursor: pointer;
  }
  main.contact article section.form dl.form dd ul.radio li label:before {
    content: "";
    width: 18px;
    height: 18px;
    display: block;
    box-sizing: border-box;
    border: 2px solid #666666;
    border-radius: 50%;
    background: #FFFFFF;
    position: absolute;
    top: calc(50% - 9px);
    left: 7px;
  }
  main.contact article section.form dl.form dd ul.radio li label:after {
    content: "";
    width: 10px;
    height: 10px;
    display: block;
    box-sizing: border-box;
    background: transparent;
    border-radius: 50%;
    background: #FFFFFF;
    position: absolute;
    top: calc(50% - 5px);
    left: 11px;
  }
  main.contact article section.form dl.form dd input[type=text],
  main.contact article section.form dl.form dd input[type=tel],
  main.contact article section.form dl.form dd input[type=email],
  main.contact article section.form dl.form dd textarea {
    padding: 0 18px;
    width: 100%;
    border: 1px solid #AAAAAA;
    border-radius: 4px;
    box-sizing: border-box;
    line-height: 48px;
    font-size: 18px;
  }
  main.contact article section.form dl.form dd input[type=text],
  main.contact article section.form dl.form dd input[type=tel],
  main.contact article section.form dl.form dd input[type=email] {
    height: 48px;
  }
  main.contact article section.form dl.form dd textarea {
    height: 328px;
  }
  main.contact article section.form .btns {
    padding-top: 50px;
  }
  main.contact article section.form .btns p.submit.check, main.contact article section.form .btns p.submit.finish {
    margin: 0 auto;
    width: 288px;
    height: 96px;
    position: relative;
  }
  main.contact article section.form .btns p.submit.check:hover span.arrow, main.contact article section.form .btns p.submit.finish:hover span.arrow {
    transform: translateX(5px);
  }
  main.contact article section.form .btns p.submit.check span.arrow, main.contact article section.form .btns p.submit.finish span.arrow {
    position: absolute;
    top: calc(50% - 40px);
    left: 0;
    pointer-events: none;
    transform-style: preserve-3d;
    transition-property: transform;
    transition-duration: 200ms;
    transition-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1);
    transition-delay: 0ms;
  }
  main.contact article section.form .btns p.submit.check input, main.contact article section.form .btns p.submit.finish input {
    padding-left: 72px;
    width: 100%;
    height: 100%;
    display: block;
    text-align: left;
    font-size: 16px;
    font-weight: bold;
    font-family: "Noto Serif JP", serif;
    color: #A82F3A;
    cursor: pointer;
    letter-spacing: calc(40em / 1000);
  }
  main.contact article section.form .btns p.submit.back {
    margin-top: 36px;
    text-align: center;
  }
  main.contact article section.form .btns p.submit.back input {
    padding: 0 18px;
    display: inline-block;
    line-height: 64px;
    font-size: 16px;
    text-decoration: underline;
    font-weight: bold;
    font-family: "Noto Serif JP", serif;
    color: #666666;
    cursor: pointer;
    letter-spacing: calc(40em / 1000);
  }
  main.contact article section.form .btns p.submit.back input:hover {
    text-decoration: none;
  }
  main.contact article section.complete .msg {
    margin: 0 auto;
    width: 672px;
  }
  main.contact article section.complete .msg h2 {
    margin-bottom: 32px;
    padding: 10px 0 14px 0;
    line-height: 40px;
    font-size: 28px;
    font-family: "Noto Serif JP", serif;
  }
  main.contact article section.complete .msg p.text {
    margin-bottom: 68px;
    padding: 4px 0 8px 0;
    line-height: 32px;
    font-size: 18px;
  }
  main.contact article section.complete .msg p.gotop {
    text-align: center;
  }
  main.contact article section.complete .msg p.gotop a {
    padding: 0 18px;
    display: inline-block;
    line-height: 64px;
    font-size: 16px;
    text-decoration: underline;
    font-weight: bold;
    font-family: "Noto Serif JP", serif;
    color: #666666;
    cursor: pointer;
    letter-spacing: calc(40em / 1000);
  }
  main.contact article section.complete .msg p.gotop a:hover {
    text-decoration: none;
  }
}
@media screen and (max-width: 767px) {
  main.contact article section {
    padding: 50px 0 75px 0;
  }
  main.contact article section.form p.error,
  main.contact article section.form dl.form dd.error {
    padding-top: 5px;
    font-size: 14px;
    color: #A82F3A;
  }
  main.contact article section.form p.text {
    margin: 0 auto 50px auto;
    line-height: 25px;
    font-size: 16px;
  }
  main.contact article section.form .select_type {
    margin: 0 auto 50px auto;
  }
  main.contact article section.form .select_type ul.type li {
    margin-bottom: 5px;
    width: 100%;
    height: 95px;
    position: relative;
  }
  main.contact article section.form .select_type ul.type li input {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
  }
  main.contact article section.form .select_type ul.type li input:checked + label {
    border-color: #333333;
    background: #F7F7F7;
  }
  main.contact article section.form .select_type ul.type li input:checked + label:before {
    border-color: #333333;
  }
  main.contact article section.form .select_type ul.type li input:checked + label:after {
    background: #333333;
  }
  main.contact article section.form .select_type ul.type li label {
    width: 100%;
    height: 100%;
    display: block;
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    box-sizing: border-box;
    cursor: pointer;
  }
  main.contact article section.form .select_type ul.type li label:before {
    content: "";
    width: 18px;
    height: 18px;
    display: block;
    box-sizing: border-box;
    border: 2px solid #666666;
    border-radius: 50%;
    background: #FFFFFF;
    position: absolute;
    top: calc(50% - 9px);
    left: 23px;
  }
  main.contact article section.form .select_type ul.type li label:after {
    content: "";
    width: 10px;
    height: 10px;
    display: block;
    box-sizing: border-box;
    background: transparent;
    border-radius: 50%;
    background: #FFFFFF;
    position: absolute;
    top: calc(50% - 5px);
    left: 27px;
  }
  main.contact article section.form .select_type ul.type li label p {
    padding: 30px 0 0 64px;
    line-height: 32px;
    font-size: 16px;
  }
  main.contact article section.form .select_type ul.type li label dl {
    padding: 16px 0 0 64px;
  }
  main.contact article section.form .select_type ul.type li label dl dt {
    line-height: 32px;
    font-size: 16px;
  }
  main.contact article section.form .select_type ul.type li label dl dd {
    height: 25px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
  }
  main.contact article section.form .select_type ul.type li label dl dd span.icon {
    width: 40px;
  }
  main.contact article section.form .select_type ul.type li label dl dd span.title {
    line-height: 25px;
    font-size: 12px;
    color: #666666;
    letter-spacing: calc(40em / 1000);
  }
  main.contact article section.form .select_type p.error {
    padding-top: 14px;
  }
  main.contact article section.form dl.form {
    margin: 0 auto 14px auto;
    overflow: hidden;
  }
  main.contact article section.form dl.form.classification dt {
    width: 128px;
    float: left;
  }
  main.contact article section.form dl.form.classification dd {
    margin-left: 128px;
  }
  main.contact article section.form dl.form dt {
    box-sizing: border-box;
    display: flex;
    justify-content: left;
    align-items: center;
    flex-direction: row-reverse;
    gap: 10px;
    position: relative;
    line-height: 25px;
    font-size: 14px;
    font-weight: bold;
  }
  main.contact article section.form dl.form dt span {
    width: 30px;
    height: 17px;
    display: block;
    background: #A82F3A;
    border-radius: 2px;
    text-align: center;
    line-height: 17px;
    font-size: 10px;
    font-weight: normal;
    color: #ffffff;
  }
  main.contact article section.form dl.form dd {
    line-height: 32px;
    font-size: 18px;
  }
  main.contact article section.form dl.form dd ul.radio {
    display: flex;
  }
  main.contact article section.form dl.form dd ul.radio li {
    position: relative;
  }
  main.contact article section.form dl.form dd ul.radio li input {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
  }
  main.contact article section.form dl.form dd ul.radio li input:checked + label:before {
    border-color: #333333;
  }
  main.contact article section.form dl.form dd ul.radio li input:checked + label:after {
    background: #333333;
  }
  main.contact article section.form dl.form dd ul.radio li label {
    padding-left: 28px;
    width: 98px;
    height: 25px;
    display: block;
    background: #FFFFFF;
    box-sizing: border-box;
    line-height: 25px;
    font-size: 18px;
  }
  main.contact article section.form dl.form dd ul.radio li label:before {
    content: "";
    width: 18px;
    height: 18px;
    display: block;
    box-sizing: border-box;
    border: 2px solid #666666;
    border-radius: 50%;
    background: #FFFFFF;
    position: absolute;
    top: calc(50% - 9px);
    left: 1px;
  }
  main.contact article section.form dl.form dd ul.radio li label:after {
    content: "";
    width: 10px;
    height: 10px;
    display: block;
    box-sizing: border-box;
    background: transparent;
    border-radius: 50%;
    background: #FFFFFF;
    position: absolute;
    top: calc(50% - 5px);
    left: 5px;
  }
  main.contact article section.form dl.form dd input[type=text],
  main.contact article section.form dl.form dd input[type=tel],
  main.contact article section.form dl.form dd input[type=email],
  main.contact article section.form dl.form dd textarea {
    padding: 0 10px;
    width: 100%;
    border: 1px solid #AAAAAA;
    border-radius: 4px;
    box-sizing: border-box;
    line-height: 35px;
    font-size: 16px;
  }
  main.contact article section.form dl.form dd input[type=text],
  main.contact article section.form dl.form dd input[type=tel],
  main.contact article section.form dl.form dd input[type=email] {
    height: 35px;
  }
  main.contact article section.form dl.form dd textarea {
    height: 235px;
  }
  main.contact article section.form .btns {
    padding-top: 30px;
  }
  main.contact article section.form .btns p.submit.check, main.contact article section.form .btns p.submit.finish {
    margin: 0 auto;
    width: 188px;
    height: 55px;
    position: relative;
  }
  main.contact article section.form .btns p.submit.check span.arrow, main.contact article section.form .btns p.submit.finish span.arrow {
    position: absolute;
    top: calc(50% - 27.5px);
    left: 0;
    pointer-events: none;
  }
  main.contact article section.form .btns p.submit.check input, main.contact article section.form .btns p.submit.finish input {
    padding-left: 48px;
    width: 100%;
    height: 100%;
    display: block;
    text-align: left;
    font-size: 14px;
    font-weight: bold;
    font-family: "Noto Serif JP", serif;
    color: #A82F3A;
    cursor: pointer;
    letter-spacing: calc(40em / 1000);
  }
  main.contact article section.form .btns p.submit.back {
    margin-top: 35px;
    text-align: center;
  }
  main.contact article section.form .btns p.submit.back input {
    padding: 0 18px;
    display: inline-block;
    line-height: 25px;
    font-size: 14px;
    text-decoration: underline;
    font-weight: bold;
    font-family: "Noto Serif JP", serif;
    color: #666666;
    cursor: pointer;
    letter-spacing: calc(40em / 1000);
  }
  main.contact article section.form.confirm dl.form.classification dt {
    width: auto;
    float: none;
  }
  main.contact article section.form.confirm dl.form.classification dd {
    margin-left: 0;
  }
  main.contact article section.complete .msg {
    margin: 0 auto;
  }
  main.contact article section.complete .msg h2 {
    margin-bottom: 35px;
    line-height: 35px;
    font-size: 20px;
    font-family: "Noto Serif JP", serif;
  }
  main.contact article section.complete .msg p.text {
    margin-bottom: 25px;
    line-height: 25px;
    font-size: 16px;
  }
  main.contact article section.complete .msg p.gotop {
    text-align: center;
  }
  main.contact article section.complete .msg p.gotop a {
    padding: 0 18px;
    display: inline-block;
    line-height: 25px;
    font-size: 14px;
    text-decoration: underline;
    font-weight: bold;
    font-family: "Noto Serif JP", serif;
    color: #666666;
    letter-spacing: calc(40em / 1000);
  }
}