/* イベント・セミナー情報セクション用CSS */
#section-events.events {
  background: #fffdea;
  border-radius: 40px;
  padding: 103px 0 54px;
  margin: 40px auto 20px;
  position: relative;
}
#section-events .events-ashirai {
  position: absolute;
  top: 8%;
  left: 4%;
  transform: translateX(0);
}
#section-events .events-ashirai-img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
}
#section-events .events-header {
  margin-bottom: 24px;
  padding: 0 24px;
}
#section-events .events-en {
  font-size: var(--12px);
  font-weight: 600;
  color: #156fc6;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
#section-events .events-ja {
  font-size: var(--22px);
  font-weight: 600;
  color: #27292b;
  letter-spacing: 0.05em;
  margin: 0;
}
#section-events .events-list {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 24px;
  padding: 0 0 32px 0;
  justify-content: flex-start;
  scroll-padding-left: 24px;
}
#section-events .event-card {
  background: #fff;
  border-radius: 16px;
  width: 239px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 260px;
  max-width: 320px;
  flex: 0 0 auto;
  scroll-snap-align: start;
  justify-content: space-between;
}
#section-events .events-list .event-card:first-child {
  margin-left: 24px; /* 必要なスペースに調整 */
}

/* サムネイル部分 */
#section-events .event-thumbnail {
  width: 100%;
  height: auto;
  overflow: hidden;
  position: relative;
  aspect-ratio: 327 / 148;
  border-radius: 16px 16px 0 0;
}

#section-events .event-thumbnail img.main-thumbnail-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* サムネイル内コンテナ（オーバーレイとあしらいの親要素） */
#section-events .event-thumbnail-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%; /* 幅を少し小さく */
  max-width: 300px;
  z-index: 2; /* 重なり順を明示的に設定 */
}

/* サムネイル内テキスト要素（タイトルとサブテキスト） */
#section-events .event-thumbnail-overlay {
  border-radius: 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
#section-events .event-thumbnail-overlay .event-thumbnail-subtext {
  color: #156fc6;

  font-size: var(--10px);
  font-style: normal;
  font-weight: 600;
  line-height: 170%;
}
#section-events .event-thumbnail-overlay .event-thumbnail-title {
  color: #27292b;
  text-align: center;

  font-size: var(--12px);
  font-style: normal;
  font-weight: 600;
  line-height: 170%;
}

/* サムネイルあしらい */
#section-events .event-thumbnail-ashirai {
  position: absolute;
  top: -31%;
  right: -12%;
  width: var(--55px);
  height: var(--55px);
  pointer-events: none;
  z-index: 1;
}

#section-events .thumbnail-ashirai-image {
  width: 100%;
  height: auto;
}

#section-events .event-card-body {
  padding: 16px 16px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#section-events .event-card-desc {
  color: #27292b;

  font-size: var(--14px);
  font-style: normal;
  font-weight: 500;
  line-height: 170%; /* 約23.8px (14px × 1.7) */
  margin-top: 8px;
  align-self: stretch;
  /* 4行分の高さ制限 (28px × 4 ≈ 112px) */
  max-height: calc(var(--14px) * 1.7 * 4);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
}

#section-events .event-card-footer {
  display: flex;
  justify-content: flex-start;
  padding: 0 16px 24px;
}
#section-events .event-card-footer .event-card-detail {
  display: inline-flex;
  color: #156fc6;

  font-size: var(--14px);
  font-style: normal;
  font-weight: 600;
  line-height: 170%; /* 23.8px */
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-skip-ink: none;
  text-decoration-thickness: auto;
  text-underline-offset: auto;
  text-underline-position: from-font;
}

#section-events .event-card-footer .event-card-detail .circle-arrow {
  padding-left: 2px;
}

#section-events .events-list-btn-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

#section-events .events-footer {
  display: flex;
  justify-content: center;
}
#section-events .events-footer .favtown-arrow-btn-icon{
  display: flex;
}

#section-events .events-list-btn {
  display: flex;
  width: 243px;
  height: 58px;
  padding: 18px 33px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  border: 3px solid #ffee56;
  background: #fff;
  color: #156fc6;
}
