@charset "utf-8";

.event_list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3.2rem;
}

.event_item {
  background: var(--white-color);
  border: 1px solid var(--line-color);
  border-radius: 1.6rem;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  min-height: 300px;
}

.event_item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

.event_content {
  display: flex;
  flex-direction: row;
  flex: 1;
  min-height: 0;
  align-items: stretch;
  height: 100%;
}

.thumbnail {
  position: relative;
  flex: 1 1 auto;
  min-width: 200px;
  min-height: 200px;
  align-self: stretch;
  width: auto;
  height: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: var(--background-color);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 1;
  transition: transform 0.5s ease;
  border-radius: 1.6rem 0 1.6rem 0;
}

.event_item:hover .thumbnail {
  transform: scale(1.05);
}

.event_info {
  padding: 2.4rem;
  display: flex;
  flex-direction: column;
  flex: 0 0 400px;
  min-width: 300px;
  max-width: 500px;
  min-height: 300px;
  overflow: hidden;
  flex-shrink: 0;
}

.event_header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.6rem;
  min-width: 0;
  gap: 1.6rem;
}

.badge {
  display: inline-block;
  padding: 1rem 1.6rem;
  background: var(--primary-color);
  color: var(--white-color);
  font-size: 1.4rem;
  font-weight: 600;
  border-radius: 0.8rem;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.event_info h3 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--body-color);
  margin-bottom: 1.2rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

.event_info .date {
  font-size: 1.7rem;
  color: var(--body-color);
  margin-bottom: 0.8rem;
  opacity: 0.75;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-height: 100px;
}

.event_info .date time {
  font-weight: 500;
}

.date_item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.date_item_period {
  flex-direction: row;
  align-items: center;
  gap: 0.8rem;
  padding: 0.4rem 0.8rem;
  background-color: #f5f5f5;
  border-radius: 4px;
  margin-bottom: 0.4rem;
  width: fit-content;
}

.date_item_period time {
  color: var(--body-color);
  font-weight: 500;
}

.date_item_dates {
  flex-direction: row;
  align-items: center;
  gap: 0.8rem;
  padding: 0.4rem 0.8rem;
  background-color: #f5f5f5;
  border-radius: 4px;
  margin-bottom: 0.4rem;
  width: fit-content;
}

.date_item_dates:last-child {
  margin-bottom: 0;
}

.date_item_dates > time:first-child {
  color: var(--primary-color);
  font-weight: 600;
}

.date_item_dates > time:last-child {
  color: var(--body-color);
  font-weight: 500;
}

.date_item_more {
  display: flex;
  align-items: center;
  color: #666;
  font-size: 1.3rem;
  font-style: italic;
}

.date_item_more span {
  color: var(--primary-color);
  font-weight: 500;
  text-decoration: underline;
  cursor: pointer;
  opacity: 1;
}

.event_info .place {
  font-size: 1.4rem;
  color: var(--body-color);
  margin-bottom: 1.6rem;
  opacity: 0.75;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.5;
}

.event_item .desc {
  font-size: 1.5rem;
  color: var(--body-color);
  line-height: 1.6;
  margin-top: auto;
  margin-bottom: 0;
  opacity: 0.8;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  padding: 1.6rem 2.4rem;
}

.more_btn {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  justify-content: flex-end;
  align-items: center;
  flex-shrink: 0;
}

.more_btn a {
  display: inline-block;
  color: var(--primary-color);
  font-size: 1.4rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  white-space: nowrap;
}

.more_btn a:hover {
  color: var(--tertiary-color);
}

.more_btn a::after {
  content: '→';
  margin-left: 0.4rem;
  transition: transform 0.3s ease;
  display: inline-block;
}

.more_btn a:hover::after {
  transform: translateX(4px);
}

@media (max-width: 1024px) {
  .event_list {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .event_item {
    min-height: auto;
  }

  .event_content {
    flex-direction: row;
    align-items: stretch;
  }

  .thumbnail {
    flex: 1 1 auto;
    width: auto;
    height: 100%;
    aspect-ratio: 1 / 1;
    min-width: 200px;
    min-height: 200px;
    flex-shrink: 1;
  }

  .event_info {
    flex: 0 0 350px;
    min-width: 280px;
    max-width: 400px;
    padding: 2rem;
    min-height: 260px;
    flex-shrink: 0;
  }

  .event_info h3 {
    font-size: 1.9rem;
    margin-bottom: 1.2rem;
  }

  .event_info .date,
  .event_info .place {
    font-size: 1.4rem;
    margin-bottom: 0rem;
  }

  .event_info .date {
    min-height: 80px;
  }

  .event_item .desc {
    font-size: 1.5rem;
    line-height: 1.6;
    margin-top: 1rem;
    margin-bottom: 0;
  }

  .event_header {
    margin-bottom: 1.4rem;
    gap: 1.2rem;
  }

  .badge {
    font-size: 1.2rem;
    padding: 0.5rem 0.9rem;
  }

  .more_btn a {
    font-size: 1.4rem;
  }

  .date_item_dates {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.4rem;
    padding: 0.6rem 0.8rem;
  }

  .date_item_dates > time:first-child {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .thumbnail {
    flex: 1 1 auto;
    width: auto;
    height: 100%;
    aspect-ratio: 1 / 1;
    min-width: 150px;
    min-height: 150px;
    flex-shrink: 1;
  }

  .event_info {
    flex: 0 0 300px;
    min-width: 250px;
    max-width: 350px;
    min-height: 200px;
    flex-shrink: 0;
  }

  .event_info .date {
    min-height: 70px;
  }
}

@media (max-width: 480px) {
  .event_list {
    gap: 1.6rem;
  }

  .event_content {
    flex-direction: column;
  }

  .thumbnail {
    flex: none;
    width: 100%;
    height: 0;
    padding-top: 100%;
    border-radius: 1.6rem 1.6rem 0 0;
  }

  .event_info {
    flex: none;
    padding: 2rem;
  }

  .event_info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }

  .event_info .date,
  .event_info .place {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
  }

  .event_info .date {
    min-height: 60px;
  }

  .event_item .desc {
    font-size: 1.5rem;
    line-height: 1.6;
  }

  .event_header {
    margin-bottom: 1.2rem;
    gap: 1rem;
  }

  .badge {
    font-size: 1.2rem;
    padding: 0.5rem 0.9rem;
  }

  .more_btn a {
    font-size: 1.4rem;
  }

  .date_item_dates {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.4rem;
    padding: 0.6rem 0.8rem;
  }

  .date_item_dates > time:first-child {
    width: 100%;
  }
}
