/* 新着情報詳細ページ用スタイル */
:root {
  --main-color: #156fc6;
  --accent-color: #e3f2ff;
}

/* 共通コンテナスタイル */
.favtown-news-detail {
  padding: 60px 0;
  position: relative;
}

.mb-4 {
  margin-bottom: 4px;
}
.mb-8 {
  margin-bottom: 8px;
}
.mb-12 {
  margin-bottom: 12px;
}
.mb-16 {
  margin-bottom: 16px;
}
.mb-24 {
  margin-bottom: 24px;
}
.mb-32 {
  margin-bottom: 32px;
}
/* あしらい */
.news-detail-ashirai {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

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

.favtown-news-detail .container {
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}

.news-detail-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.news-date-area {
  display: flex;
  align-items: center;
  gap: 8px;
}

.news-date {
  font-size: var(--14px);
  font-weight: 400;
  color: var(--main-color, #156fc6);
  letter-spacing: 0.05em;
}

.news-new-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  color: #fff;
  text-align: center;

  font-size: var(--12px);
  font-style: normal;
  font-weight: 600;
  line-height: 150%; /* 18px */
  letter-spacing: 0.6px;
  background-color: var(--main-color, #156fc6);
  border-radius: 4px;
  text-align: center;
  width: var(--48px);
}

.news-categories {
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-tag {
  display: inline-block;
  background: var(--accent-color, #e3f2ff);
  color: var(--main-color, #156fc6);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: var(--14px);
  font-weight: 600;
}

.news-title {
  font-size: var(--24px);
  font-weight: 600;
  margin-top: 0;
  line-height: 1.5;
  color: #27292b;
}

/* コンテンツ部分 */
.news-detail-content {
  line-height: 1.9;
  font-size: var(--16px);
  color: #27292b;

  font-weight: 500;
}
.wp-block-image{
  padding-bottom: 16px;
}
.news-detail-content img {
  max-width: 100%;
  height: auto;
  margin: 0;
  border-radius: 8px;
}

.news-detail-content h1,
.news-detail-content h2,
.news-detail-content h3 {
  font-weight: 600;
  color: var(--main-color, #156fc6);
}

.news-detail-content h1 {
  font-size: var(--24px);
}

.news-detail-content 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: 0 0 16px;
}

.news-detail-content h2::before {
  content: "";
  display: block;
  width: 3px;
  min-width: 3px;
  max-width: 3px;
  flex-shrink: 0;
  height: auto;
  align-self: stretch;
  background-color: #156fc6;
  margin: 2px 0;
}

.news-detail-content h3 {
  color: #27292b;
  font-size: var(--14px);
  font-style: normal;
  font-weight: 600;
  line-height: 190%; /* 26.6px */
  display: flex;
  padding-bottom: 8px;
}
/* h3要素の前に青丸 */
.news-detail-content 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;
}

.news-detail-content h3.no-dot {
  font-size: var(--18px);
  margin-top: 0;
  padding-bottom: 16px;
}

.news-detail-content h3.no-dot::before {
  content: none;
}

.news-detail-content p {
  color: #27292b;
  font-size: var(--14px);
  font-style: normal;
  font-weight: 500;
  line-height: 190%;
  padding-bottom: 16px;
}

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

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

.news-detail-content li {
  margin-bottom: 10px;
}

.news-detail-content 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-bottom: 16px;
}

.nav-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.nav-previous,
.nav-next {
  display: flex;
  align-items: center;
  color: var(--main-color, #156fc6);
  text-decoration: none;
  padding: 10px 16px;
  border: 1px solid var(--main-color, #156fc6);
  border-radius: 4px;
  transition: all 0.3s;
  min-width: 100px;
}

/* 新着情報一覧へナビゲーション */
.news-list-nav {
  display: flex;
  justify-content: center;
  margin: 0;
}

.nav-to-list {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 243px;
  height: 58px;
  border: 3px solid #c5c5c5;
  border-radius: 999px;
  color: #949494;
  white-space: nowrap;
  text-align: center;
  text-decoration: none;

  transition: opacity 0.3s;
  background-color: #ffffff;
}

.nav-label {
  font-size: var(--14px);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.6;
}


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

.event-apply .apply-button {
  display: flex;
  width: fit-content;
  height: auto;
  padding: 8px var(--40px);
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  border: 3px solid #ffee56;
  background: #fff;
}
.event-apply .apply-button .text {
  display: flex;
  flex-direction: column;
}
.event-apply .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;
}
.event-apply .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;
}

.event-apply .apply-button-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
.event-apply .apply-button-icon img{
  max-width: 100%;
  height: auto;
  margin: 0;
  border-radius: inherit;
}


/* CTA エリア */
.cta-area {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-area .cta{
  margin-top: 0;
}