/* イベント詳細ページ用CSS */
.event-detail-container {
  margin: 0 auto;
  padding: 50px 24px 0;
}
/* あしらい */
.event-detail-ashirai {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.event-detail-ashirai .ashirai-image {
  width: 100%;
  height: auto;
}

.event-detail-header {
  margin-bottom: 30px;
}

/* パンくずリスト */
.breadcrumb {
  margin-bottom: 20px;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: var(--14px);
}

.breadcrumb-list li {
  display: flex;
  align-items: center;
  color: #666;
}

.breadcrumb-list li:after {
  content: ">";
  margin: 0 8px;
  color: #999;
}

.breadcrumb-list li:last-child:after {
  display: none;
}

.breadcrumb-list li a {
  color: #156fc6;
  text-decoration: none;
}

.event-breadcrumb {
  font-size: var(--14px);
  margin-bottom: 20px;
  color: #666;
}

.event-breadcrumb a {
  color: #156fc6;
  text-decoration: none;
}

.event-title {
  color: #27292b;
  
  font-size: var(--20px);
  font-style: normal;
  font-weight: 600;
  line-height: 200%;
  padding-bottom: 16px;
}

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

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

/* 疑似要素で終了オーバーレイ（詳細ページ） */
.event-thumbnail.is-finished::after{
  display: -ms-grid;
  display: grid;
  position: absolute;
  place-items: center;
  inset: 0;
  background-color: rgba(0, 0, 0, .45);
  content: "このイベントは終了しました。";
  color: #fff;
  font-weight: 700;
  font-size: var(--21px);
  text-align: center;
  border-radius: inherit;
  z-index: 3;
  pointer-events: none;
}

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

/* サムネイル内テキスト要素（タイトルとサブテキスト） */
.event-thumbnail-overlay {
  width: 100%;
  border-radius: 8px;
  padding: 12px var(--17px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.event-thumbnail-title{
  font-weight: bold;
}
/* サムネイルあしらい */
.event-thumbnail-ashirai {
  position: absolute;
  top: -13px;
  right: -31px;
  width: var(--60px);
  height: var(--60px);
  pointer-events: none;
  z-index: 1;
}

.thumbnail-ashirai-image {
  width: 100%;
  height: auto;
  opacity: 0.8;
}

.event-content {
  margin-bottom: 40px;
  line-height: 1.8;
  color: #333;
}

.event-content h2 {
  font-size: var(--24px);
  font-weight: bold;
  margin: 30px 0 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e3f2ff;
  color: #156fc6;
}

.event-content h3 {
  font-size: var(--20px);
  font-weight: bold;
  margin: 25px 0 15px;
  color: #156fc6;
}

.event-content p {
  margin-bottom: 15px;
}

.event-content ul,
.event-content ol {
  margin-bottom: 15px;
  padding-left: 20px;
}

.event-content li {
  margin-bottom: 8px;
}

.event-content a {
  color: #156fc6;
  text-decoration: none;
}

.event-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 20px 0;
}

/* 申込みボタン */
.event-apply {
  display: flex;
  justify-content: center;
}

.apply-button {
  display: flex;
  width: fit-content;
  height: auto;
  padding: var(--10px) var(--30px);
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  border: 3px solid #ffee56;
  background: #fff;
}
.apply-button .text {
  display: flex;
  flex-direction: column;
}
.apply-button .text .button-label {
  color: #156fc6;
  text-align: center;
  
  font-size: var(--14px);
  font-style: normal;
  font-weight: 600;
  line-height: 160%; /* 22.4px */
  letter-spacing: 0.28px;
}
.apply-button .text .button-subtext {
  color: #156fc6;

  text-align: center;
  
  font-size: var(--10px);
  font-style: normal;
  font-weight: 600;
  line-height: 160%; /* 16px */
  letter-spacing: 0.2px;
}

.apply-button-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-body {
  padding-top: 40px;
  padding-bottom: 24px;
}

.event-body h2 {
  color: #156fc6;
  
  font-size: var(--18px);
  font-style: normal;
  font-weight: 600;
  line-height: 160%; /* 28.8px */
  letter-spacing: 0.9px;
  display: flex;
  gap: var(--15px);
  padding: 16px 0;
}
.event-body h2::before {
  content: "";
  display: block;
  width: 3px;
  height: auto; /* 固定の高さを指定せず、親要素に合わせる */
  align-self: stretch; /* 親要素の高さに合わせて伸縮 */
  background-color: #156fc6;
  margin: 2px 0;
}

.event-body p {
  color: #27292b;
  
  font-size: var(--14px);
  font-style: normal;
  font-weight: 500;
  line-height: 190%;
}

.event-body hr {
  border: none;
  background: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="329" height="2" viewBox="0 0 329 2" fill="none"><path d="M1 1L328 1" stroke="%23E8F3FF" stroke-width="2" stroke-linecap="square" stroke-dasharray="4 4"/></svg>');
  background-repeat: repeat-x;
  width: 100%;
  height: 3px;
  margin: 8px 0;
}

.event-body h3 {
  color: #27292b;
  
  font-size: var(--14px);
  font-style: normal;
  font-weight: 600;
  line-height: 190%; /* 26.6px */
  display: flex;
}
/* h3要素の前に青丸 */
.event-body h3::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #156fc6;
  margin-right: 8px;
  margin-bottom: 2px;
  align-self: center;
}
.wp-block-image{
  text-align: center;
  padding-bottom: 30px;
}

/* 戻るボタン */
.back-button-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 55px;
}

.back-button {
  border-radius: 999px;
  border: 3px solid #c5c5c5;
  background: #fff;
  padding: 18px var(--22px);
}

.back-text {
  color: #949494;
  text-align: center;
  
  font-size: var(--14px);
  font-style: normal;
  font-weight: 600;
  line-height: 160%; /* 22.4px */
  letter-spacing: 0.28px;
}

/* CTAボタン */
.cta-button-container .cta {
  margin-top: 32px;
}
