.input-checkbox,
.input-radio {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 10px;
  margin: 0;
  cursor: pointer;
}

.input-checkbox input,
.input-radio input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media screen and (max-width: 1024px) {
  .input-radio {
    gap: 8px;
  }
}

.input-checkbox-figure,
.input-radio-figure {
  position: relative;
  box-sizing: border-box;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 0;
  padding: 0;
  font-size: 0;
  line-height: 0;
  background-color: #FBFBFB;
  border: 1px solid #D5D5D5;
}

.input-checkbox-figure {
  border-radius: 4px;
}

.input-checkbox-figure::after {
  content: "";
  position: absolute;
  top: 45%;
  left: 50%;
  width: 5px;
  height: 9px;
  border-right: 2px solid #DCD7D8;
  border-bottom: 2px solid #DCD7D8;
  transform: translate(-50%, -65%) rotate(45deg);
}

input[type="checkbox"]:checked + .input-checkbox-figure {
  background-color: #E50046;
  border-color: #E50046;
}

input[type="checkbox"]:checked + .input-checkbox-figure::after {
  border-color: #fff;
}

input[type="checkbox"]:focus-visible + .input-checkbox-figure,
input[type="radio"]:focus-visible + .input-radio-figure {
  outline: 2px solid #E50046;
  outline-offset: 2px;
}

.input-radio-figure {
  border-radius: 50%;
}

.input-radio-figure::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #DCD7D8;
  transform: translate(-50%, -50%);
}

input[type="radio"]:checked + .input-radio-figure::after {
  background-color: #E50046;
}

.input-checkbox-label,
.input-radio-label {
  margin: 0;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.input-checkbox.is-agree {
  gap: 8px;
}

.input-checkbox.is-agree .input-checkbox-figure {
  width: 24px;
  height: 24px;
  border-width: 2px;
  border-radius: 2px;
  background-color: #fff;
}

.input-checkbox.is-agree .input-checkbox-figure::after {
  border-color: transparent;
}

@media screen and (max-width: 1024px) {
  .input-checkbox.is-agree .input-checkbox-figure {
    width: 20px;
    height: 20px;
  }
}

.input-checkbox.is-agree input:checked + .input-checkbox-figure {
  background-color: #E50046;
  border-color: #E50046;
  border-radius: 4px;
}

.input-checkbox.is-agree input:checked + .input-checkbox-figure::after {
  border-color: #fff;
}

.input-checkbox.is-agree .input-checkbox-label {
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
}

.input-checkbox.is-agree .input-checkbox-label a {
  color: #1C7EFF;
  text-decoration: underline;
}

@media screen and (max-width: 1024px) {
  .input-checkbox.is-agree .input-checkbox-label {
    font-size: 14px;
  }
}

.input-checkbox-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  row-gap: 24px;
  width: 100%;
}

@media screen and (max-width: 1024px) {
  .input-checkbox-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 20px;
  }
}

.input-radio-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}

@media screen and (max-width: 1024px) {
  .input-radio-list {
    gap: 40px;
  }
}

.contact-form-item.is-error .input-checkbox-figure,
.contact-form-item.is-error .input-radio-figure,
.contact-form-item.is-error input:checked + .input-checkbox-figure,
.contact-form-item.is-error input:checked + .input-radio-figure {
  border-color: #E92662;
  background-color: #FFEFF0;
}

.contact-form-item.is-error input:checked + .input-checkbox-figure::after {
  border-color: #E92662;
}

.label-must {
  word-break: keep-all;
}

.contact-form-heading-wrapper {
  padding-right: 18px;
}

.contact-form-heading-txt small,
.contact-form-heading-txt .small-txt {
  display: block;
  font-size: 11px;
  font-weight: inherit;
  line-height: normal;
  color: inherit;
}

@media screen and (max-width: 1024px) {
  .contact-form-heading-txt small,
  .contact-form-heading-txt .small-txt {
    display: inline;
    font-size: inherit;
  }
}

@media screen and (min-width: 1025px) {
  .header-menu-list,
  .header-menu-item {
    flex-shrink: 0;
  }

  .header-menu-item {
    white-space: nowrap;
  }
}

@media screen and (max-width: 1024px) {
  .sp-menu-sub-menu-list .btn-sub-menu.is-wide {
    width: 300px;
  }

  .footer-link-list {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 10px;
  }

  .footer-link-item-link {
    padding-right: 6px;
    padding-left: 6px;
  }
}
