.l-inner {
  width: calc(100% - 5% * 2);
  max-width: 900px;
  height: inherit;
  padding: 0;
  margin-right: auto;
  margin-left: auto;
}

.p-form {
  padding-bottom: 60px;
}

.p-form h2 {
  position: relative;
  width: 100%;
  font-weight: 700;
  color: #fff;
  text-align: center;
  background-color: #e71e10;
}
.p-form h2::after {
  content: "";
  position: absolute;
  display: block;
  width: 100%;
}

.p-form__heading {
  text-align: center;
}

.p-form__heading h3 {
  font-weight: 700;
  color: #e71e10;
}

.p-form__heading h3 + p {
  margin-top: 16px;
}

.p-form__heading small {
  display: block;
  font-weight: 500;
}

.p-form__heading p {
  font-weight: 400;
  line-height: 1.4;
}

.p-form__input {
  display: grid;
  gap: 16px 60px;
}

.p-form__input dt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.p-form__input dt label {
  display: inline-flex;
  column-gap: 8px;
  font-size: 14px;
  font-weight: 700;
}

.p-form__input dd {
  margin-top: 4px;
}

.p-form__input dd input,
.p-form__input dd select,
.p-form__input dd textarea {
  width: 100%;
  padding: 8px 16px;
  margin: 0;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  -webkit-appearance: none;
  appearance: none;
  background-color: #f3f3f5;
  border: none;
  border-radius: 8px;
}

.p-form__input dd input:focus,
.p-form__input dd select:focus,
.p-form__input dd textarea:focus {
  outline: 2px solid #e71e10;
}

.p-form__input dd input,
.p-form__input dd select {
  min-height: 36px;
}

.p-form__input dd textarea {
  height: 100%;
  overflow-y: hidden;
  resize: none;
}

.p-form__select {
  position: relative;
}

.p-form__select::after {
  position: absolute;
  top: 50%;
  right: 16px;
  width: 8px;
  height: 8px;
  content: "";
  border-right: 2px solid #b2b2bb;
  border-bottom: 2px solid #b2b2bb;
  transform: translateY(-50%) rotate(45deg);
}

.p-form__required {
  font-weight: 700;
  color: #e71e10;
}

.p-form__input__count {
  font-size: 13px;
  font-weight: 400;
  color: #616061;
}

.p-form__check {
  padding: 16px 20px;
  border: 2px solid #f5f5f5;
}

.p-form__check dt:not(:first-of-type) {
  margin-top: 16px;
}

.p-form__check dt [type="checkbox"] {
  width: 16px;
  height: 16px;
  opacity: 0;
}

.p-form__check dt [type="checkbox"] + label {
  display: inline-flex;
  column-gap: 8px;
  align-items: center;
  margin-left: -16px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  background-color: #fff;
}

.p-form__check dt [type="checkbox"] + label > span:first-of-type {
  position: relative;
  width: 16px;
  height: 16px;
  background-color: #f3f3f5;
  border: 1px solid #dadadc;
  border-radius: 4px;
}

.p-form__check dt [type="checkbox"] + label > span:first-of-type::before {
  content: "";
}

.p-form__check dt [type="checkbox"] + label > span:first-of-type::after {
  position: absolute;
  top: 50%;
  left: 0;
  display: block;
  width: 6px;
  height: 12px;
  content: "";
  border-right: 2px solid #e71e10;
  border-bottom: 2px solid #e71e10;
  opacity: 0;
  transform: rotate(35deg) skewY(16deg) translateY(-50%);
  transform-origin: center right;
}

.p-form__check dt [type="checkbox"]:checked + label > span::after {
  opacity: 1;
}

.p-form__check dd {
  margin-top: 8px;
}

.p-form__check dd p {
  font-weight: 400;
}

.p-form__button {
  text-align: center;
}

.p-form__row {
  display: flex;
}

.p-form__period h4,
.p-form__note h4 {
  font-size: 16px;
  font-weight: 700;
  color: #e71e10;
}

.p-form__period p {
  font-weight: 500;
}

.p-form__note ul {
  margin-top: 12px;
  margin-left: 1.5em;
  list-style: disc;
}

.p-form__note li {
  font-weight: 400;
  line-height: 1.5;
}

.p-form__box__card {
  position: relative;
  width: 504px;
  max-width: 100%;
  margin: 0 auto;
}

.p-form__box__card > img {
  width: 100%;
  height: auto;
}

.p-form__box__card #message_text {
  position: absolute;
  left: 50%;
  width: 100%;
  font-weight: 500;
  line-height: 1.6;
  transform: translateX(-50%);
  white-space: pre-line;
}

.p-form__box__card__name {
  position: absolute;
  display: inline-flex;
  column-gap: 8px;
  font-weight: 500;
}

.p-form__button-row {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.p-form__download a,
.p-form__sns a,
.p-form__sns button,
.p-form__wallpaper a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  cursor: pointer;
  background-color: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  transition: opacity 0.3s ease-out;
}

.p-form__download a svg,
.p-form__sns a svg,
.p-form__sns button svg,
.p-form__wallpaper a svg {
  height: auto;
}

.p-form__download {
  text-align: center;
}

.p-form__sns h4 {
  font-weight: 500;
  text-align: center;
}

.p-form__sns__row {
  display: flex;
  align-items: center;
  justify-content: center;
}

.p-form__sns__row a,
.p-form__sns__row button {
  display: flex;
  align-items: center;
  justify-content: center;
}

.p-form__sp {
  background-color: #fde8e7;
}

.p-form__sp__row {
  display: flex;
  align-items: center;
  justify-content: center;
}

.p-form__sp__text {
  text-align: center;
}

.p-form__sp__text h3 {
  font-weight: 700;
  color: #e71e10;
}

.p-form__sp__text p {
  font-weight: 400;
}

.p-form__line__button {
  display: flex;
  align-items: center;
  justify-content: center;
}

.p-form__line__button a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.3s ease-out;
}

.p-form__line__button a:first-of-type {
  color: #fff;
  background-color: #e71e10;
}

.p-form__line__button a:last-of-type {
  color: #616061;
  border: 1px solid #c0bfc0;
}

.p-form__line__text {
  text-align: center;
}

.p-form__line__text p {
  font-weight: 400;
}

.p-form__line__text a {
  display: inline-block;
  margin-top: 16px;
  transition: opacity 0.3s ease-out;
}

@media not screen and (min-width: 544px) {
  .p-form__box__card #message_text {
    top: 14.1333333333vw;
    max-width: 73.3333333333vw;
    font-size: 4.2666666667vw;
  }

  .p-form__box__card__name {
    right: 9.0666666667vw;
    bottom: 16.5333333333vw;
    font-size: 3.4666666667vw;
  }
}

@media screen and (min-width: 544px) {
  .p-form__box__card #message_text {
    top: 80px;
    max-width: 408px;
    font-size: 24px;
  }

  .p-form__box__card__name {
    right: 50px;
    bottom: 88px;
    font-size: 20px;
  }
}

@media not screen and (min-width: 768px) {
  .p-form h2 {
    padding: 24px 0 24px;
    font-size: 20px;
  }
  .p-form h2::after {
    top: calc(100% - 4px);
    height: 8px;
    background: radial-gradient(
        circle at center,
        var(--color-main) 4px,
        transparent 4px
      )
      repeat-x 0 0 / calc(8px + 5px) 8px;
  }

  .p-form__heading {
    margin-top: 30px;
  }

  .p-form__heading h3 {
    font-size: 15px;
  }

  .p-form__heading small {
    margin-top: 10px;
    font-size: 11px;
    text-align: left;
  }

  .p-form__heading p {
    font-size: 14px;
  }

  .p-form__form {
    margin-top: 20px;
  }

  .p-form__input {
    grid-template-rows: repeat(4, auto);
    grid-template-columns: repeat(1, 1fr);
    width: 90%;
    margin: 0 auto;
  }

  .p-form__item--02 {
    grid-row-start: 3;
    grid-column-start: 1;
  }

  .p-form__item--03 {
    grid-row-start: 4;
    grid-column-start: 1;
  }

  .p-form__item--04 {
    grid-row-start: 2;
    grid-column-start: 1;
  }

  .p-form__check {
    margin-top: 30px;
  }

  .p-form__check dd p {
    font-size: 11px;
  }

  .p-form__button {
    margin-top: 24px;
  }

  .p-form__row {
    flex-direction: column;
    row-gap: 20px;
    margin-top: 40px;
  }

  .p-form__period p {
    margin-top: 6px;
    font-size: 16px;
  }

  .p-form__note li {
    font-size: 13px;
  }

  .p-form__box {
    width: calc(var(--vw, 100vw));
    padding: 24px 20px;
    margin: 24px calc(50% - var(--vw, 100vw) / 2) 0;
    background-color: #f5f5f5;
  }

  .p-form__button-row {
    row-gap: 16px;
    margin-top: 24px;
  }

  .p-form__download a,
  .p-form__sns a,
  .p-form__sns button,
  .p-form__wallpaper a {
    column-gap: 12px;
    height: 36px;
    font-size: 13px;
  }

  .p-form__download a svg,
  .p-form__sns a svg,
  .p-form__sns button svg,
  .p-form__wallpaper a svg {
    width: 16px;
  }

  .p-form__download {
    margin-top: 16px;
  }

  .p-form__download a {
    width: 235px;
  }

  .p-form__sns {
    margin-top: 32px;
  }

  .p-form__sns h4 {
    font-size: 13px;
  }

  .p-form__wallpaper {
    margin-top: 20px;
  }

  .p-form__wallpaper a {
    width: 172px;
  }

  .p-form__sns__row {
    flex-direction: column;
    row-gap: 12px;
    margin-top: 16px;
  }

  .p-form__sns__row a,
  .p-form__sns__row button {
    width: 136px;
  }

  .p-form__sp {
    padding: 30px 0;
    margin-top: 45px;
  }

  .p-form__sp__row {
    flex-direction: column;
    row-gap: 20px;
  }

  .p-form__sp__text h3 {
    font-size: 15px;
  }

  .p-form__sp__text p {
    margin-top: 12px;
    font-size: 14px;
  }

  .p-form__line {
    margin-top: 32px;
  }

  .p-form__line__button {
    flex-direction: column;
    row-gap: 16px;
  }

  .p-form__line__button a {
    width: 224px;
    height: 40px;
    font-size: 13px;
    border-radius: 20px;
  }

  .p-form__line__text {
    margin-top: 35px;
  }

  .p-form__line__text p {
    font-size: 14px;
  }
}

@media screen and (min-width: 768px) {
  .p-form h2 {
    padding: 42px 0 calc(26px + 13px);
    font-size: 30px;
  }
  .p-form h2::after {
    top: calc(100% - 13px);
    height: 26px;
    background: radial-gradient(
        circle at center,
        var(--color-main) 13px,
        transparent 13px
      )
      repeat-x 0 0 / calc(26px + 23px) 26px;
  }

  .p-form__heading {
    margin-top: 65px;
  }

  .p-form__heading h3 {
    font-size: 24px;
  }

  .p-form__heading small {
    margin-top: 12px;
    font-size: 13px;
  }

  .p-form__heading p {
    font-size: 18px;
  }

  .p-form__form {
    margin-top: 40px;
  }

  .p-form__input {
    grid-template-rows: auto;
    grid-template-columns: repeat(2, 1fr);
  }

  .p-form__input dd textarea {
    min-height: 224px;
  }

  .p-form__item--02 {
    grid-row-start: 2;
    grid-column-start: 1;
  }

  .p-form__item--03 {
    grid-row-start: 3;
    grid-column-start: 1;
  }

  .p-form__item--04 {
    grid-row: span 3 / span 3;
    grid-row-start: 1;
    grid-column-start: 2;
  }

  .p-form__check {
    margin-top: 40px;
  }

  .p-form__check dd p {
    font-size: 13px;
  }

  .p-form__button {
    margin-top: 40px;
  }

  .p-form__row {
    column-gap: 60px;
    margin-top: 100px;
  }

  .p-form__period,
  .p-form__note {
    width: calc((100% - 60px) / 2);
  }

  .p-form__period p {
    margin-top: 12px;
    font-size: 20px;
  }

  .p-form__note li {
    font-size: 14px;
  }

  .p-form__box {
    padding: 40px;
    margin-top: 40px;
    background-color: #f5f5f5;
    border-radius: 40px;
  }

  .p-form__button-row {
    row-gap: 24px;
    margin-top: 32px;
  }

  .p-form__download a,
  .p-form__sns a,
  .p-form__sns button,
  .p-form__wallpaper a {
    column-gap: 16px;
    height: 45px;
    font-size: 18px;
  }

  .p-form__download a svg,
  .p-form__sns a svg,
  .p-form__sns button svg,
  .p-form__wallpaper a svg {
    width: 20px;
  }

  .p-form__download {
    margin-top: 20px;
  }

  .p-form__download a {
    width: 328px;
  }

  .p-form__sns {
    margin-top: 55px;
  }

  .p-form__sns h4 {
    font-size: 19px;
  }

  .p-form__wallpaper {
    margin-top: 24px;
  }

  .p-form__wallpaper a {
    width: 240px;
  }

  .p-form__sns__row {
    column-gap: 20px;
    margin-top: 20px;
  }

  .p-form__sns__row a,
  .p-form__sns__row button {
    width: 185px;
  }

  .p-form__sp {
    padding: 50px 0;
    margin-top: 60px;
  }

  .p-form__sp__row {
    column-gap: 50px;
  }

  .p-form__sp__text h3 {
    font-size: 24px;
  }

  .p-form__sp__text p {
    margin-top: 16px;
    font-size: 18px;
  }

  .p-form__line {
    margin-top: 56px;
  }

  .p-form__line__button {
    column-gap: 48px;
  }

  .p-form__line__button a {
    width: 320px;
    height: 56px;
    font-size: 18px;
    border-radius: 28px;
  }

  .p-form__line__text {
    margin-top: 45px;
  }

  .p-form__line__text p {
    font-size: 18px;
  }
}

@media (any-hover: hover) {
  .p-form__download a:hover,
  .p-form__sns a:hover,
  .p-form__sns button:hover,
  .p-form__wallpaper a:hover {
    opacity: 0.8;
  }

  .p-form__line__button a:hover {
    opacity: 0.8;
  }

  .p-form__line__text a:hover {
    opacity: 0.8;
  }
}

@media (any-hover: none) {
  .p-form__download a:active,
  .p-form__sns a:active,
  .p-form__sns button:active,
  .p-form__wallpaper a:active {
    opacity: 0.8;
  }

  .p-form__line__button a:active {
    opacity: 0.8;
  }

  .p-form__line__text a:active {
    opacity: 0.8;
  }
}
