@charset "utf-8";
main {
  position: relative;
}

main .circle {
  position: absolute;
  top: -265px;
  right: min(48px, calc((48 + 96) * ((100vw - 769px) / (1280 - 769)) - 96px));
  width: 480px;
}

@media (max-width: 768px) {
  main .circle {
    top: -25px;
    right: -95px;
    width: 217px;
  }
}

main .circle img {
  animation: circle 26s linear 0s infinite;
}

@media (max-width: 768px) {
  main .circle img {
    animation: circle 18s linear 0s infinite;
  }
}

.txt {
  text-align: justify;
  font-size: 1.5rem;
  letter-spacing: 0.1em;
}

/* ↓↓↓ event ↓↓↓ */
.event {
  container-type: inline-size;
  margin-bottom: 230px;
  display: grid;
  justify-items: center;
}

@media screen and (max-width: 768px) {
  .event {
    margin-bottom: 190px;
  }
}

.event-wrap {
  position: relative;
  max-width: 1280px;
  background-color: #F0F0F0;
  border-radius: 160px;
  padding-bottom: 120px;
}

@media screen and (max-width: 768px) {
  .event-wrap {
    border-radius: 80px;
    padding-bottom: 40px;
  }
}

.event-inner {
  padding: 0 134px;
}

@container (max-width: 1279px) {
  .event-inner {
    padding: 0 10.478%;
  }
}

@media screen and (max-width: 768px) {
  .event-inner {
    padding: 0 22px;
  }
}

.event-container {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

@media screen and (max-width: 768px) {
  .event-container {
    gap: 16px;
    top: -20px;
  }
}

.event .heading-group {
  display: flex;
  flex-direction: column;
  position: relative;
  top: -90px;
  gap: 15px;
}

@media screen and (max-width: 768px) {
  .event .heading-group {
    top: -55px;
    gap: 10px;
  }
}

.event .heading-group .caption {
  width: fit-content;
  font-size: 1.5rem;
}

.event .heading-group .heading {
  font-family: var(--text-josefin);
  font-size: 9.6rem;
  font-weight: 300;
  line-height: 1;
}

@media screen and (max-width: 768px) {
  .event .heading-group .heading {
    font-size: 5.6rem;
  }
}

.event-item {
  background-color: #fff;
  padding: 40px 85px;
}

@container (max-width: 1279px) {
  .event-item {
    padding: 40px 8.606%;
  }
}

@media screen and (max-width: 768px) {
  .event-item {
    padding: 24px;
  }
}

.event-item-head {
  position: relative;
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.event-item-head::before {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  background-image: linear-gradient(to right, #A8DFE9 3px, transparent 3px);
  background-size: 6px 1px;
  background-repeat: repeat-x; 
  background-position: left bottom;
  width: 100%;
  height: 2px;
}


.event-date {
  font-family: var(--text-josefin);
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1.5;
}

@media screen and (max-width: 768px) {
  .event-date {
    font-size: 1.5rem;
    line-height: 1.8;
  }
}

.event-area {
  position: relative;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.6;
  color: #50BED2;
  margin-left: 20px;
}

.event-area::before {
  content: "";
  position: absolute;
  width: 8px;
  background-color: #50BED2;
  aspect-ratio: 1;
  border-radius: 50vmax;
  top: 50%;
  translate: 0 -50%;
  left: -16px;
}

.event-title {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.66;
  margin-bottom: 20px;
}

@media screen and (max-width: 768px) {
  .event-title {
    font-size: 2rem;
  }
}

.event-info-group {
  display: flex;
  gap: 32px;
  margin-bottom: 24px;
}

.event-img {
  min-width: 260px;
  width: 37.53%;
  height: 100%;
  aspect-ratio: 79 / 45;
}

.event-text {
  width: 58.196%;
  font-size: 1.5rem;
  line-height: 1.6;
  text-align: justify;
}

@container (max-width: 1000px) {
  .event-info-group {
    flex-wrap: wrap;
  }
  .event-img {
    min-width: initial;
    width: 100%;
  }
  .event-text {
    width: 100%;
  }
}

.event-text p + p {
  padding-top: 2rem;
} 

.event-item-link {
  position: relative;
  max-width: 240px;
  width: calc(100% - 40px);
  min-height: 56px;
  display: grid;
  place-content: center;
  font-size: 1.5rem;
  color: #fff;
  background-color: #50BED2;
  border-radius: 50vmax;
  margin-inline: auto;
  border: 1px solid #50BED2;
  transition: all 300ms 0s ease;
}

.event-item-link::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 20px;
  translate: 0 -50%;
  background: url(../img/common/icon-exlink-white.svg) no-repeat;
  background-size: contain;
  width: 14px;
  height: 12px;
  transition: background 300ms 0s ease;
}

@media (min-width: 769px) {
  .event-item-link:hover{
    background-color: #fff;
    color: #000;
  }
  .event-item-link:hover::before {
    background: url(../img/common/icon-exlink-black.svg) no-repeat;
  }
}
/* ↑↑↑ event ↑↑↑ */