.l-main {
  width: 100%;
}

.p-contact__error {
  color: var(--color-pink-deep);
  font-size: 0.75rem;
  margin-top: 0.25rem;
  display: block;
}

.p-contact__inner {
  padding: 0 1.25rem;
  margin: 0 auto;
  max-width: 58.75rem;
  font-family: var(--font-noto-sans);
  font-weight: 400;
  letter-spacing: 0.1em;
}

/* 開閉ボタンの見た目 */
.p-calendar__toggle {
  position: relative;
  width: 100%;
  margin-top: 4rem;
  padding: 0.8em 1.2em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border, #ddd);
  border-radius: 1rem;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
}

.p-calendar__toggle::after {
  content: "";
  display: inline-block;
  margin-left: 0.5em;
  width: 1.2em;
  height: 1.2em;
  background-image: url("../assets/under-arrow.svg");
  background-repeat: no-repeat;
  background-size: contain;
  transition: transform 0.3s ease;
}

/* 開いた時（180度回転） */
.p-calendar__toggle.is-open::after {
  transform: rotate(180deg);
}

.p-calender-container {
  display: none;
}

.p-calender-container.is-open {
  display: block;
}

.p-calender-container {
  margin-top: 2.6rem;
}

.p-calender-info {
  display: none;
  padding: 1rem;
  font-weight: bold;
  display: none;
  align-items: center;
  cursor: pointer;
}

.p-calender-info > p {
  color: #1558d6;
}

.p-calender-info::after {
  content: "";
  display: inline-block;
  margin-left: 0.5em;
  width: 1.2em;
  height: 1.2em;
  background-image: url("../assets/window.svg");
  background-repeat: no-repeat;
  background-size: contain;
  transition: transform 0.3s ease;
}

/* カレンダーの使用説明 */
.c-modal {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: grid;
  place-items: center;
}
.c-modal[hidden] {
  display: none;
}

.c-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.c-modal__dialog {
  position: relative;
  width: 92vw;
  height: 80vh;
  max-width: min(720px, 92vw);
  max-height: 80vh;
  box-sizing: border-box;
  padding: 12px;
  margin: 0;
  overflow: hidden;
  background: var(--color-white, #fff);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);

  display: flex;
  flex-direction: column;
  font-family: var(--font-noto-sans);
  animation: modalIn 0.18s ease-out;
}

.c-modal__media {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.c-modal__gif {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 0.75rem;
}

body.is-modal-open {
  overflow: hidden;
}

@keyframes modalIn {
  from {
    transform: translateY(8px);
    opacity: 0.6;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.c-modal__media {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  width: 100%;
  height: 100%;
}

.c-modal__video {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  background: #000;
  border-radius: 0.75rem;
}

/* カレンダー */
.p-calender {
  width: 100%;
  margin-top: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  background-color: var(--color-white);
  border-radius: 8px;
  overflow-x: auto;
  justify-content: flex-start;
}

.p-calendar__arrow {
  display: inline-block;
  transform: translateY(1px);
}

.p-contact__form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

.p-contact__form dl {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.p-contact__form dt {
  font-size: 1.0625rem;
}

.p-contact__form dt span {
  color: var(--color-pink-deep);
  margin-left: 0.25rem;
}

.p-contact__form input,
.p-contact__form textarea {
  width: 100%;
  font-size: 0.9375rem;
  padding: 1rem;
  box-sizing: border-box;
  border: none;
  outline: none;
  background-color: var(--color-white);
}

input:-webkit-autofill,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px var(--color-white) inset !important;
  -webkit-text-fill-color: inherit !important;
  background-color: var(--color-white) !important;
  transition: background-color 5000s ease-in-out 0s;
}

.p-contact__form input[type="text"],
.p-contact__form input[type="email"],
.p-contact__form input[type="tel"],
.p-contact__form input[type="datetime-local"],
.p-contact__form input[type="date"] {
  height: 3rem;
  border-radius: 1rem;
}

.p-contact__form textarea {
  height: 18.75rem;
  border-radius: 1.5rem;
}

.p-contact__form .p-contact__item--tel > dl {
  gap: 0;
}

.p-contact__remarks {
  font-size: 0.75rem;
  color: var(--color-gray);
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.p-contact__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.p-contact__list p {
  display: flex;
  align-items: center;
  gap: 0.1875rem;
  font-size: 0.9375rem;
}

.p-contact__list input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 24px;
  height: 24px;
  margin: 0;
  padding: 0;
  border-radius: 4px;
  background-color: var(--color-white);
  cursor: pointer;
  position: relative;
}

.p-contact__list input[type="checkbox"]:checked {
  background-color: var(--color-pink-deep);
}

.p-contact__list input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 9px;
  width: 6px;
  height: 12px;
  border: solid var(--color-white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.p-contact__button input {
  background-color: var(--color-pink-deep);
  color: var(--color-white);
  border-radius: 6.25rem;
  font-size: 1.25rem;
  font-weight: 700;
  padding: 1.5rem;
}

.p-contact__toast {
  position: fixed;
  bottom: 15%;
  left: 85%;
  width: min(calc((320 / 1440) * 100vw), 320px);
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.6);
  color: var(--color-white);
  padding: 1.125rem 1rem;
  border-radius: 0.25rem;
  font-size: 0.9375rem;
  font-weight: 700;
  display: none;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.2);
  z-index: 1000;
  justify-content: space-between;
}

.p-contact__toast span {
  display: flex;
  align-items: center;
}

.p-contact__toast span::before {
  content: "";
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  margin-right: 1rem;
  background: url("/public/contact/toast_check.png") no-repeat center center /
    contain;
}

.p-contact__toast button {
  background: none;
  border: none;
  color: var(--color-white);
  width: 1rem;
  height: 1rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  position: absolute;
  right: 0.625rem;
  top: 0.625rem;
}

@media screen and (max-width: 999px) {
  .p-contact__toast {
    padding: 0.91rem 1.21rem;
    bottom: 20%;
    left: 50%;
    width: calc(361px + ((100vw - 393px) / 374) * 361);
    max-width: 54.7rem;
  }
}

@media screen and (max-width: 767px) {
  .p-contact__inner {
    padding: 0 1.82rem;
  }

  .p-calender-info {
    display: flex;
  }

  .p-calender {
    margin: 0;
  }

  .p-calender-container {
    margin-top: 1.2rem;
  }

  .p-calendar__toggle {
    margin-top: 2.4rem;
  }

  .p-contact__error {
    color: var(--color-pink-deep);
    font-size: 0.91rem;
    margin-top: 0.3rem;
  }

  .p-contact__form {
    gap: 2.42rem;
  }

  .p-contact__form {
    gap: 2.42rem;
  }

  .p-contact__form dl {
    gap: 1.21rem;
  }

  .p-contact__form dt {
    font-size: 1.29rem;
  }

  .p-contact__form dt span {
    margin-left: 0.3rem;
  }

  .p-contact__form input,
  .p-contact__form textarea {
    font-size: 1.14rem;
    padding: 0.76rem;
  }

  .p-contact__form input[type="text"],
  .p-contact__form input[type="email"],
  .p-contact__form input[type="tel"],
  .p-contact__form input[type="datetime-local"],
  .p-contact__form input[type="date"] {
    height: 3.64rem;
    border-radius: 1.21rem;
  }

  .p-contact__form textarea {
    height: 22.73rem;
    border-radius: 1.82rem;
  }

  .p-contact__remarks {
    font-size: 0.91rem;
    margin-top: 0.61rem;
    margin-bottom: 1.21rem;
  }

  .p-contact__list {
    gap: 1.21rem;
  }

  .p-contact__list p {
    gap: 0.23rem;
    font-size: 1.14rem;
  }

  .p-contact__button input {
    border-radius: 7.58rem;
    font-size: 1.52rem;
    padding: 1.82rem;
  }

  .p-contact__toast span::before {
    width: 1.14rem;
    height: 1.14rem;
    margin-right: 1.21rem;
  }

  .p-contact__toast button {
    width: 0.76rem;
    height: 0.76rem;
    right: 0.76rem;
    top: 0.76rem;
  }
}
