.main_width > div + div {
  margin-top: 80px;
}

.p-event-list__wrap {
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  margin-top: 56px;
  margin-bottom: 32px;
}

.p-event-list {
  width: fit-content;
  border: 1px solid #DFDFDF;
}

.p-event-list__list:not(.--duration) {
  display: flex;
}

.p-event-list__list .p-event-list__item {
  width: 400px;
}

.p-event-list__list.--title .p-event-list__item {
  text-align: center;
}

.p-event-list__list.--month .p-event-list__item span {
  width: calc(400px/3);
  display: inline-block;
  text-align: center;
}

.p-event-list__list.--month {
  border-bottom: 1px solid #333;
}

.p-event-list__list.--month .p-event-list__item span:nth-child(n+2) {
  border-left: 1px solid #333;
}

.p-event-list__list.--mid {
  padding-left: calc(400px/3);
}

.p-event-list__list.--late {
  padding-left: calc(400px/3 * 2);
}

.p-event-list__list.--duration .p-event-list__item {
  width: 100%;
}

.p-event-list__list.--title .p-event-list__item {
  position: relative;
}

.p-event-list__list.--title .p-event-list__item:nth-child(n+2)::before {
  position: absolute;
  content: "";
  width: 100%;
  height: var(--before-height);
  left: 0;
  top: 0;
  border-left: 1px solid #333;
}

.p-event__head-title {
  font-size: 30px;
  font-weight: bold;
  text-align: center;
  color: #00479B;
}

.p-event__category {
  margin-top: 40px;
  text-align: center;
}

.p-event-category__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

@media only screen and (max-width: 768px) {
  .p-event-category__list {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}
@media only screen and (max-width: 480px) {
  .p-event-category__list {
    grid-template-columns: auto;
  }
}
.p-event-category__item {
  border-radius: 6px;
  border: 1px solid #E5EEF5;
  background: #E5EEF5;
  height: 56px;
}

@media only screen and (max-width: 480px) {
  .p-event-category__item {
    height: 48px;
  }
}
.p-event-category__label {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 100%;
}

.p-event-category__text {
  font-weight: bold;
  padding-left: 24px;
}

@media only screen and (min-width: 769px) {
  .p-event-category__label:hover {
    cursor: pointer;
  }
}
.p-event-category__checkbox {
  width: 16px;
  height: 16px;
  background: #fff;
  border: 1px solid #DEDEDE;
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.p-event-list__list .p-event-list__item {
  width: 399px;
}

.list title .p-event-list__item {
  background: #F0F0F0;
}

.p-event-list__list.--title .p-event-list__item {
  background: #F0F0F0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.p-event-list__list.--title {
  height: 32px;
}

.p-event-list__list .p-event-list__item {
  width: 399px;
}

.p-event-list__list.--month .p-event-list__item span {
  width: calc(399px/3);
  height: 100%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.p-event-list__list.--month {
  border-bottom: 1px solid #DFDFDF;
  height: 32px;
}

.p-event-list__list.--month .p-event-list__item span:nth-child(n+2) {
  border-left: 1px solid #DFDFDF;
}

.p-event-list__list.--title, .p-event-list__list.--month {
  border-bottom: 1px solid #DFDFDF;
}

.p-event-list__list.--duration, .p-event-list__list.--other {
  border-top: 1px solid #DFDFDF;
}

.p-event-list__list.--title .p-event-list__item:nth-child(n+2)::before {
  border-left: 1px solid #DFDFDF;
}

.p-event-list__list.--early .p-event-list__item, .p-event-list__list.--mid .p-event-list__item, .p-event-list__list.--late .p-event-list__item, .p-event-list__list.--other .p-event-list__item {
  padding: 16px;
  position: relative;
}

.p-event-childlist__item, .p-event-list__text {
  /*text-decoration: underline;*/
  line-height: 1.6;
  padding-right: 24px;
  display: inline-block;
}

.p-event-list__list.--early .p-event-list__item, .p-event-list__list.--mid .p-event-list__item {
  padding-bottom: 0;
}

.p-event-list__list.--duration {
  padding: 16px 0;
}

.p-event-list__list.--duration .p-event-list__item + .p-event-list__item {
  margin-top: 8px;
}

.p-event-list__list.--duration .p-event-list__item {
  background: #FBF7D7;
  padding: 8px 0;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.c-modal__wrap {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99999;
  width: 100%;
  height: 100dvh;
}

.c-modal__wrap.--show {
  display: block;
}

.c-modal__bg {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.56);
}

.c-modal__contents {
  background-color: #FFF;
  border-radius: 10px;
  /*position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 100%;
  width: 100%;
  max-height: 580px;
  max-width: 520px;*/
  padding: 45px 60px;
}

@media only screen and (max-width: 768px) {
  .c-modal__contents {
    padding: 45px 25px;
  }
}
.c-modal-category__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 16px;
  gap: 8px;
}

.c-modal__title {
  margin-top: 16px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  line-height: 1.3;
}

.c-modal__text {
  margin-top: 16px;
  line-height: 1.6;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.c-modal__link {
  margin: 24px auto 0;
  display: flex;
  border: 2px solid #00479B;
  border-radius: 40px;
  font-weight: bold;
  width: fit-content;
  /* text-align: center; */
  align-items: center;
  justify-content: center;
  padding: 12px 36px;
  line-height: 1.26;
}

@media only screen and (min-width: 769px) {
  .c-modal__link:hover {
    color: #fff;
    background: #00479B;
  }
}
.c-modal__img-wrap {
  width: fit-content;
}

.c-modal__close {
  position: absolute;
  background-image: url(/media/images/event/close_btn.svg);
  background-size: contain;
  background-repeat: no-repeat;
  position: absolute;
  top: 30px;
  right: 30px;
  width: 14px;
  height: 15px;
  z-index: 1;
}

@media only screen and (max-width: 768px) {
  .c-modal__close {
    top: 18px;
  }
}
.c-modal {
  max-height: calc(100vh - 40px);
  max-width: min(calc(100vw - 40px), 520px);
  height: fit-content;
  width: 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #FFF;
  border-radius: 10px;
  overflow-y: auto;
}

.c-modal-category__item {
  font-size: 12px;
  font-weight: bold;
  padding: 0 8px 0 24px;
  height: 20px;
  border-radius: 6px;
  position: relative;
}

.c-modal-category__item.--cat-1 {
  background: #DAD7E9;
}

.c-modal-category__item.--cat-2 {
  background: #EDE3D2;
}

.c-modal-category__item.--cat-3 {
  background: #E5EEF5;
}

.c-modal-category__item.--cat-4 {
  background: #EDD6D4;
}

.c-modal-category__item.--cat-5 {
  background: #D5EAD7;
}

.c-modal-category__item.--cat-6 {
  background: #F0F0F0;
}

.c-modal-category__item::before {
  position: absolute;
  content: "";
  width: 12px;
  height: 12px;
  top: 4px;
  left: 8px;
  background-size: contain;
  background-repeat: no-repeat;
}

.c-modal-category__item.--cat-1::before {
  background-image: url(/media/images/event/cat-1.svg);
}

.c-modal-category__item.--cat-2::before {
  background-image: url(/media/images/event/cat-2.svg);
}

.c-modal-category__item.--cat-3::before {
  background-image: url(/media/images/event/cat-3.svg);
}

.c-modal-category__item.--cat-4::before {
  background-image: url(/media/images/event/cat-4.svg);
}

.c-modal-category__item.--cat-5::before {
  background-image: url(/media/images/event/cat-5.svg);
}

.c-modal-category__item.--cat-6::before {
  background-image: url(/media/images/event/cat-6.svg);
}

.c-modal {
  display: none;
}

.c-modal.--show {
  display: block;
}

.p-event-category__checkbox {
  position: absolute;
  z-index: 9999;
}

.p-event-category__item.cat-1:has(.p-event-category__checkbox:checked) {
  border: 1px solid #5849A2;
}

.p-event-category__item.cat-2:has(.p-event-category__checkbox:checked) {
  border: 1px solid #DE8E08;
}

.p-event-category__item.cat-3:has(.p-event-category__checkbox:checked) {
  border: 1px solid #00479B;
}

.p-event-category__item.cat-4:has(.p-event-category__checkbox:checked) {
  border: 1px solid #CB5E54;
}

.p-event-category__item.cat-5:has(.p-event-category__checkbox:checked) {
  border: 1px solid #007E0C;
}

.p-event-category__item.cat-6:has(.p-event-category__checkbox:checked) {
  border: 1px solid #707070;
}

.p-event-category__item.cat-1 {
  background: #DAD7E9;
}

.p-event-category__item.cat-2 {
  background: #EDE3D2;
}

.p-event-category__item.cat-3 {
  background: #E5EEF5;
}

.p-event-category__item.cat-4 {
  background: #EDD6D4;
}

.p-event-category__item.cat-5 {
  background: #D5EAD7;
}

.p-event-category__item.cat-6 {
  background: #F0F0F0;
}

.p-event-category__text {
  position: relative;
}

.p-event-category__text::before {
  position: absolute;
  content: "";
  width: 16px;
  height: 16px;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.p-event-category__item.cat-1 .p-event-category__text::before {
  background-image: url(/media/images/event/cat-1.svg);
}

.p-event-category__item.cat-2 .p-event-category__text::before {
  background-image: url(/media/images/event/cat-2.svg);
}

.p-event-category__item.cat-3 .p-event-category__text::before {
  background-image: url(/media/images/event/cat-3.svg);
}

.p-event-category__item.cat-4 .p-event-category__text::before {
  background-image: url(/media/images/event/cat-4.svg);
}

.p-event-category__item.cat-5 .p-event-category__text::before {
  background-image: url(/media/images/event/cat-5.svg);
}

.p-event-category__item.cat-6 .p-event-category__text::before {
  background-image: url(/media/images/event/cat-6.svg);
}

.p-event-category__checkbox:checked::before {
  width: 8px;
  height: 9px;
  /*aspect-ratio: 6/5;*/
  content: "";
  position: absolute;
  mask: url(/media/images/event/cat_check.svg) no-repeat center/contain;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.p-event-category__item.cat-1 .p-event-category__checkbox:checked::before {
  background: #5849A2;
}

.p-event-category__item.cat-2 .p-event-category__checkbox:checked::before {
  background: #DE8E08;
}

.p-event-category__item.cat-3 .p-event-category__checkbox:checked::before {
  background: #00479B;
}

.p-event-category__item.cat-4 .p-event-category__checkbox:checked::before {
  background: #CB5E54;
}

.p-event-category__item.cat-5 .p-event-category__checkbox:checked::before {
  background: #007E0C;
}

.p-event-category__item.cat-6 .p-event-category__checkbox:checked::before {
  background: #777777;
}

.p-event-childlist__item, .p-event-list__text {
  max-width: 100%;
  align-items: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  /*margin-left: 8px;*/
  position: relative;
  opacity: 1;
  transition: all 0.3s;
}

.p-event-list__text {
  justify-content: center;
}

@media only screen and (min-width: 769px) {
  .p-event-childlist__item:hover, .p-event-list__text:hover {
    cursor: pointer;
    opacity: 0.8;
  }
}
.p-event-childlist__item::before, .p-event-list__text::before {
  width: 16px;
  height: 12px;
  content: "";
  position: absolute;
  background-image: url(/media/images/event/calendar_icon.svg);
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.c-event-title__icon {
  width: 8px;
  height: 8px;
  display: inline-block;
  margin-right: 8px;
}

.c-event-title__icon.--cat-1 {
  background: #5849A2;
}

.c-event-title__icon.--cat-2 {
  background: #DE8E08;
}

.c-event-title__icon.--cat-3 {
  background: #00479B;
}

.c-event-title__icon.--cat-4 {
  background: #CB5E54;
}

.c-event-title__icon.--cat-5 {
  background: #007E0C;
}

.c-event-title__icon.--cat-6 {
  background: #777777;
}

.p-event-list__list.--duration .p-event-list__text {
  text-decoration: underline;
}

.p-event-list__list.--duration .p-event-list__text-wrap {
  display: flex;
  align-items: center;
}

.p-event-childlist__text {
  text-decoration: underline;
}

/*# sourceMappingURL=event_add.css.map */
