/**
 * シングルページ共通（イベント・お知らせ）
 */

:is(body.fcm-event-single, #body_wrap.fcm-event-single, .fcm-eventSingle__article),
:is(body.fcm-news-single, #body_wrap.fcm-news-single) {
  --wp--style--global--content-size: 1120px;
  --wp--style--global--wide-size: 1120px;
  /* SWELL カスタムカラーより申込一覧と同色を優先 */
  --fcm-color-primary: #2e9478;
  --fcm-color-primary-dark: #247a63;
  --color_main: #2e9478;
  --color_htag: #2e9478;
}

:is(body.fcm-event-single, #body_wrap.fcm-event-single, .fcm-eventSingle__article) .p-pageHead,
:is(body.fcm-news-single, #body_wrap.fcm-news-single) .p-pageHead {
  display: none;
}

:is(body.fcm-event-single, #body_wrap.fcm-event-single, .fcm-eventSingle__article) .p-breadcrumb,
:is(body.fcm-event-single, #body_wrap.fcm-event-single, .fcm-eventSingle__article) .l-mainContent__inner {
  max-width: var(--fcm-container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

:is(body.fcm-news-single, #body_wrap.fcm-news-single) .p-breadcrumb,
:is(body.fcm-news-single, #body_wrap.fcm-news-single) .l-mainContent__inner {
  max-width: var(--fcm-content);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

:is(body.fcm-event-single, #body_wrap.fcm-event-single, .fcm-eventSingle__article) .fcm-eventSingle__header .fcm-pageBreadcrumb,
:is(body.fcm-news-single, #body_wrap.fcm-news-single) .fcm-newsSingle__header .fcm-pageBreadcrumb {
  margin-bottom: 0.75rem !important;
}

:is(body.fcm-event-single, #body_wrap.fcm-event-single, .fcm-eventSingle__article) .c-pageTitle,
:is(body.fcm-news-single, #body_wrap.fcm-news-single) .c-pageTitle {
  background: none !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: var(--fcm-color-text) !important;
  font-size: clamp(2.25rem, 5vw, 3.25rem) !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em;
  padding: 0.5rem 0 0 !important;
  text-align: left;
  margin: 0 0 2.25rem !important;
}

:is(body.fcm-event-single, #body_wrap.fcm-event-single, .fcm-eventSingle__article) .post_content h2,
:is(body.fcm-news-single, #body_wrap.fcm-news-single) .post_content h2,
:is(body.fcm-event-single, #body_wrap.fcm-event-single, .fcm-eventSingle__article) .entry-content h2,
:is(body.fcm-news-single, #body_wrap.fcm-news-single) .entry-content h2,
:is(body.fcm-event-single, #body_wrap.fcm-event-single, .fcm-eventSingle__article) .c-eventFacts__title,
:is(body.fcm-news-single, #body_wrap.fcm-news-single) .c-eventFacts__title,
:is(body.fcm-event-single, #body_wrap.fcm-event-single, .fcm-eventSingle__article) .fcm-eventSection > h2,
:is(body.fcm-event-single, #body_wrap.fcm-event-single, .fcm-eventSingle__article) h2.wp-block-heading,
:is(body.fcm-event-single, #body_wrap.fcm-event-single, .fcm-eventSingle__article) h2.c-eventFacts__title {
  display: block !important;
  margin: 3rem 0 1.25rem !important;
  padding: 0.85rem 1.1rem !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
  letter-spacing: 0.04em;
  text-align: left !important;
  color: #fff !important;
  background: #2e9478 !important;
  background-color: #2e9478 !important;
  background-image: none !important;
  border: none !important;
  border-bottom: none !important;
  border-radius: var(--fcm-radius-sm, 6px) !important;
  box-shadow: none !important;
  position: static !important;
}

:is(body.fcm-event-single, #body_wrap.fcm-event-single, .fcm-eventSingle__article) .post_content h2.wp-block-heading::before,
:is(body.fcm-event-single, #body_wrap.fcm-event-single, .fcm-eventSingle__article) .post_content h2.wp-block-heading::after,
:is(body.fcm-news-single, #body_wrap.fcm-news-single) .post_content h2.wp-block-heading::before,
:is(body.fcm-news-single, #body_wrap.fcm-news-single) .post_content h2.wp-block-heading::after,
:is(body.fcm-event-single, #body_wrap.fcm-event-single, .fcm-eventSingle__article) .entry-content h2.wp-block-heading::before,
:is(body.fcm-event-single, #body_wrap.fcm-event-single, .fcm-eventSingle__article) .entry-content h2.wp-block-heading::after,
:is(body.fcm-news-single, #body_wrap.fcm-news-single) .entry-content h2.wp-block-heading::before,
:is(body.fcm-news-single, #body_wrap.fcm-news-single) .entry-content h2.wp-block-heading::after,
:is(body.fcm-event-single, #body_wrap.fcm-event-single, .fcm-eventSingle__article) .c-eventFacts__title::before,
:is(body.fcm-event-single, #body_wrap.fcm-event-single, .fcm-eventSingle__article) .c-eventFacts__title::after,
:is(body.fcm-news-single, #body_wrap.fcm-news-single) .c-eventFacts__title::before,
:is(body.fcm-news-single, #body_wrap.fcm-news-single) .c-eventFacts__title::after,
:is(body.fcm-event-single, #body_wrap.fcm-event-single, .fcm-eventSingle__article) .fcm-eventSection > h2::before,
:is(body.fcm-event-single, #body_wrap.fcm-event-single, .fcm-eventSingle__article) .fcm-eventSection > h2::after,
:is(body.fcm-event-single, #body_wrap.fcm-event-single, .fcm-eventSingle__article) h2.wp-block-heading::before,
:is(body.fcm-event-single, #body_wrap.fcm-event-single, .fcm-eventSingle__article) h2.wp-block-heading::after,
:is(body.fcm-event-single, #body_wrap.fcm-event-single, .fcm-eventSingle__article) .post_content h2.c-eventFacts__title::before,
:is(body.fcm-event-single, #body_wrap.fcm-event-single, .fcm-eventSingle__article) .post_content h2.c-eventFacts__title::after,
:is(body.fcm-event-single, #body_wrap.fcm-event-single, .fcm-eventSingle__article) .entry-content h2.c-eventFacts__title::before,
:is(body.fcm-event-single, #body_wrap.fcm-event-single, .fcm-eventSingle__article) .entry-content h2.c-eventFacts__title::after,
:is(body.fcm-event-single, #body_wrap.fcm-event-single, .fcm-eventSingle__article) .c-eventFacts > h2::before,
:is(body.fcm-event-single, #body_wrap.fcm-event-single, .fcm-eventSingle__article) .c-eventFacts > h2::after,
:is(body.fcm-event-single, #body_wrap.fcm-event-single, .fcm-eventSingle__article) h2[id^="fcm-ev-facts-"]::before,
:is(body.fcm-event-single, #body_wrap.fcm-event-single, .fcm-eventSingle__article) h2[id^="fcm-ev-facts-"]::after,
:is(body.fcm-event-single, #body_wrap.fcm-event-single, .fcm-eventSingle__article) .post_content h2[id^="fcm-ev-facts-"]::before,
:is(body.fcm-event-single, #body_wrap.fcm-event-single, .fcm-eventSingle__article) .post_content h2[id^="fcm-ev-facts-"]::after {
  display: none !important;
  content: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
  background: none !important;
  background-image: none !important;
}

/* 出店者向け案内見出し — セクション余白に任せ上余白を潰す */
:is(body.fcm-event-single, #body_wrap.fcm-event-single, .fcm-eventSingle__article) h2.fcm-eventVendorDocs__title,
:is(body.fcm-event-single, #body_wrap.fcm-event-single, .fcm-eventSingle__article) .fcm-eventVendorDocs > h2.fcm-eventVendorDocs__title,
:is(body.fcm-event-single, #body_wrap.fcm-event-single, .fcm-eventSingle__article) .post_content h2.fcm-eventVendorDocs__title,
:is(body.fcm-event-single, #body_wrap.fcm-event-single, .fcm-eventSingle__article) .entry-content h2.fcm-eventVendorDocs__title {
  margin-top: 0 !important;
}

:is(body.fcm-event-single, #body_wrap.fcm-event-single, .fcm-eventSingle__article) .post_content h3,
:is(body.fcm-news-single, #body_wrap.fcm-news-single) .post_content h3,
:is(body.fcm-event-single, #body_wrap.fcm-event-single, .fcm-eventSingle__article) .entry-content h3,
:is(body.fcm-news-single, #body_wrap.fcm-news-single) .entry-content h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--fcm-color-text);
  background: none !important;
}

:is(body.fcm-event-single, #body_wrap.fcm-event-single, .fcm-eventSingle__article) .c-eventLead,
:is(body.fcm-news-single, #body_wrap.fcm-news-single) .c-eventLead {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
  color: var(--fcm-color-text-muted);
}

:is(body.fcm-event-single, #body_wrap.fcm-event-single, .fcm-eventSingle__article) .c-label,
:is(body.fcm-news-single, #body_wrap.fcm-news-single) .c-label {
  display: inline-block;
  padding: 0.35em 0.85em;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  border-radius: 0;
  background: #2e9478;
  color: #fff;
  margin-right: 0.35rem;
  vertical-align: middle;
}

:is(body.fcm-event-single, #body_wrap.fcm-event-single, .fcm-eventSingle__article) .c-label.-recruit,
:is(body.fcm-news-single, #body_wrap.fcm-news-single) .c-label.-recruit {
  background: #2e9478;
  color: #fff;
}

:is(body.fcm-event-single, #body_wrap.fcm-event-single, .fcm-eventSingle__article) .c-label.-ended,
:is(body.fcm-news-single, #body_wrap.fcm-news-single) .c-label.-ended {
  background: var(--fcm-color-text-muted);
  color: #fff;
}

:is(body.fcm-event-single, #body_wrap.fcm-event-single, .fcm-eventSingle__article) .c-label.-paused,
:is(body.fcm-news-single, #body_wrap.fcm-news-single) .c-label.-paused {
  background: var(--fcm-color-bg-sub);
  color: var(--fcm-color-text);
  border: 1px solid var(--fcm-color-border, #d8e5dc);
}

:is(body.fcm-event-single, #body_wrap.fcm-event-single, .fcm-eventSingle__article) .c-label.-ticket,
:is(body.fcm-news-single, #body_wrap.fcm-news-single) .c-label.-ticket {
  background: #efc61a !important;
  background-image: none !important;
  color: #2b241b !important;
}

:is(body.fcm-event-single, #body_wrap.fcm-event-single, .fcm-eventSingle__article) .c-eventFacts,
:is(body.fcm-news-single, #body_wrap.fcm-news-single) .c-eventFacts {
  margin: 3.5rem 0 3rem !important;
  padding: 0 !important;
  border-radius: 0;
  background: none !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

/* 隣接セレクタは単体クラスより強いため、余白の正本はこちらに置く */
:is(body.fcm-event-single, #body_wrap.fcm-event-single, .fcm-eventSingle__article) .fcm-eventSingle__applicationNotice + .c-eventFacts,
:is(body.fcm-event-single, #body_wrap.fcm-event-single, .fcm-eventSingle__article) .fcm-eventSingle__content + .c-eventFacts {
  margin-top: 3.5rem !important;
}

:is(body.fcm-event-single, #body_wrap.fcm-event-single, .fcm-eventSingle__article) .fcm-eventSingle__applicationNotice + .fcm-eventSection,
:is(body.fcm-event-single, #body_wrap.fcm-event-single, .fcm-eventSingle__article) .fcm-eventSingle__content + .fcm-eventSection {
  margin-top: 4rem !important;
}

@media (max-width: 767px) {
  :is(body.fcm-event-single, #body_wrap.fcm-event-single, .fcm-eventSingle__article) .fcm-eventSingle__applicationNotice + .c-eventFacts,
  :is(body.fcm-event-single, #body_wrap.fcm-event-single, .fcm-eventSingle__article) .fcm-eventSingle__content + .c-eventFacts {
    margin-top: 2.75rem !important;
  }

  :is(body.fcm-event-single, #body_wrap.fcm-event-single, .fcm-eventSingle__article) .fcm-eventSingle__applicationNotice + .fcm-eventSection,
  :is(body.fcm-event-single, #body_wrap.fcm-event-single, .fcm-eventSingle__article) .fcm-eventSingle__content + .fcm-eventSection {
    margin-top: 3.5rem !important;
  }
}

/* 受付期間 */
:is(body.fcm-event-single, #body_wrap.fcm-event-single, .fcm-eventSingle__article) .fcm-recruitmentSchedule__tableWrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--fcm-color-border);
}

:is(body.fcm-event-single, #body_wrap.fcm-event-single, .fcm-eventSingle__article) .fcm-recruitmentSchedule__table {
  width: 100%;
  min-width: 32rem;
  margin: 0;
  border-collapse: collapse;
  background: var(--fcm-color-surface);
}

:is(body.fcm-event-single, #body_wrap.fcm-event-single, .fcm-eventSingle__article) .fcm-recruitmentSchedule__table th,
:is(body.fcm-event-single, #body_wrap.fcm-event-single, .fcm-eventSingle__article) .fcm-recruitmentSchedule__table td {
  padding: 0.85rem 1rem;
  border-right: 1px solid var(--fcm-color-border);
  border-bottom: 1px solid var(--fcm-color-border);
  text-align: left;
  vertical-align: middle;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--fcm-color-text);
}

:is(body.fcm-event-single, #body_wrap.fcm-event-single, .fcm-eventSingle__article) .fcm-recruitmentSchedule__table thead th {
  background: #2e9478 !important;
  color: #fff;
  font-weight: 800;
}

:is(body.fcm-event-single, #body_wrap.fcm-event-single, .fcm-eventSingle__article) .fcm-recruitmentSchedule__table tbody th {
  min-width: 8rem;
  color: #247a63;
  white-space: nowrap;
}

:is(body.fcm-event-single, #body_wrap.fcm-event-single, .fcm-eventSingle__article) .fcm-recruitmentSchedule__table tr > :last-child {
  border-right: 0;
}

:is(body.fcm-event-single, #body_wrap.fcm-event-single, .fcm-eventSingle__article) .fcm-recruitmentSchedule__table tbody tr:last-child > * {
  border-bottom: 0;
}

:is(body.fcm-event-single, #body_wrap.fcm-event-single, .fcm-eventSingle__article) .fcm-eventSingle__content {
  margin: 0 0 1.75rem;
}

:is(body.fcm-event-single, #body_wrap.fcm-event-single, .fcm-eventSingle__article) .fcm-eventSingle__content:empty {
  display: none;
}

/* 開催概要バーはセクション内先頭のため上下余白をセクション側で確保 */
:is(body.fcm-event-single, #body_wrap.fcm-event-single, .fcm-eventSingle__article) .c-eventFacts > .c-eventFacts__title,
:is(body.fcm-news-single, #body_wrap.fcm-news-single) .c-eventFacts > .c-eventFacts__title {
  margin: 0 0 1.25rem !important;
}

:is(body.fcm-event-single, #body_wrap.fcm-event-single, .fcm-eventSingle__article) .c-eventFacts dl,
:is(body.fcm-news-single, #body_wrap.fcm-news-single) .c-eventFacts dl {
  margin: 0;
  display: grid;
  gap: 0.85rem 1.5rem;
  grid-template-columns: minmax(7.5rem, 10rem) 1fr;
  align-items: baseline;
}

:is(body.fcm-event-single, #body_wrap.fcm-event-single, .fcm-eventSingle__article) .c-eventFacts dt,
:is(body.fcm-news-single, #body_wrap.fcm-news-single) .c-eventFacts dt {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--fcm-color-text-muted);
}

:is(body.fcm-event-single, #body_wrap.fcm-event-single, .fcm-eventSingle__article) .c-eventFacts dd,
:is(body.fcm-news-single, #body_wrap.fcm-news-single) .c-eventFacts dd {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--fcm-color-text);
}

:is(body.fcm-event-single, #body_wrap.fcm-event-single, .fcm-eventSingle__article) .c-eventFacts dd.fcm-eventFacts__recruitment {
  grid-column: 1 / -1;
  display: flex !important;
  flex-wrap: wrap;
  align-items: center !important;
  gap: 0.5rem 0.65rem;
  margin: 0;
}

:is(body.fcm-event-single, #body_wrap.fcm-event-single, .fcm-eventSingle__article) .c-eventFacts dd.fcm-eventFacts__recruitment .c-label {
  margin: 0 !important;
  vertical-align: middle;
}

:is(body.fcm-event-single, #body_wrap.fcm-event-single, .fcm-eventSingle__article) .c-eventFacts dd.fcm-eventFacts__recruitment .fcm-eventFacts__statusNote {
  margin: 0;
  line-height: 1.4;
}

@media (max-width: 480px) {
  :is(body.fcm-event-single, #body_wrap.fcm-event-single, .fcm-eventSingle__article) .c-eventFacts dl,
  :is(body.fcm-news-single, #body_wrap.fcm-news-single) .c-eventFacts dl {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  :is(body.fcm-event-single, #body_wrap.fcm-event-single, .fcm-eventSingle__article) .c-eventFacts dt,
  :is(body.fcm-news-single, #body_wrap.fcm-news-single) .c-eventFacts dt {
    margin-top: 0.65rem;
  }

  :is(body.fcm-event-single, #body_wrap.fcm-event-single, .fcm-eventSingle__article) .c-eventFacts dl dt:first-of-type,
  :is(body.fcm-news-single, #body_wrap.fcm-news-single) .c-eventFacts dl dt:first-of-type {
    margin-top: 0;
  }
}

:is(body.fcm-event-single, #body_wrap.fcm-event-single, .fcm-eventSingle__article) .c-btn,
:is(body.fcm-news-single, #body_wrap.fcm-news-single) .c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.7em 1.6em;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  border: 2px solid var(--fcm-color-primary);
  background: var(--fcm-color-surface);
  color: var(--fcm-color-primary);
  border-radius: var(--fcm-radius-pill);
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

:is(body.fcm-event-single, #body_wrap.fcm-event-single, .fcm-eventSingle__article) .c-btn.-sm,
:is(body.fcm-news-single, #body_wrap.fcm-news-single) .c-btn.-sm {
  font-size: 0.8125rem;
  padding: 0.5em 1.25em;
}

:is(body.fcm-event-single, #body_wrap.fcm-event-single, .fcm-eventSingle__article) .c-btn.-primary,
:is(body.fcm-news-single, #body_wrap.fcm-news-single) .c-btn.-primary {
  background-color: var(--fcm-color-primary);
  color: #fff;
  border-color: var(--fcm-color-primary);
}

:is(body.fcm-event-single, #body_wrap.fcm-event-single, .fcm-eventSingle__article) .c-btn:hover,
:is(body.fcm-news-single, #body_wrap.fcm-news-single) .c-btn:hover {
  background-color: var(--fcm-color-primary);
  color: #fff;
  border-color: var(--fcm-color-primary);
}

:is(body.fcm-event-single, #body_wrap.fcm-event-single, .fcm-eventSingle__article) .c-note,
:is(body.fcm-news-single, #body_wrap.fcm-news-single) .c-note {
  font-size: 0.8125rem;
  color: var(--fcm-color-text-muted);
  line-height: 1.5;
}

:is(body.fcm-event-single, #body_wrap.fcm-event-single, .fcm-eventSingle__article) .wp-block-separator.c-hr,
:is(body.fcm-news-single, #body_wrap.fcm-news-single) .wp-block-separator.c-hr {
  margin: 2rem 0;
  border-color: var(--fcm-color-border);
}

:is(body.fcm-event-single, #body_wrap.fcm-event-single, .fcm-eventSingle__article) .is-style-fcm-card,
:is(body.fcm-news-single, #body_wrap.fcm-news-single) .is-style-fcm-card,
:is(body.fcm-event-single, #body_wrap.fcm-event-single, .fcm-eventSingle__article) .c-card,
:is(body.fcm-news-single, #body_wrap.fcm-news-single) .c-card {
  border: none;
  border-radius: var(--fcm-radius-lg);
  box-shadow: var(--fcm-shadow-sm);
  margin-bottom: var(--fcm-space-md);
  padding: 1.25rem 1.5rem;
  background: var(--fcm-color-surface);
}

:is(body.fcm-event-single, #body_wrap.fcm-event-single, .fcm-eventSingle__article) .c-card__title,
:is(body.fcm-news-single, #body_wrap.fcm-news-single) .c-card__title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 800;
}

:is(body.fcm-event-single, #body_wrap.fcm-event-single, .fcm-eventSingle__article) .c-card__title a,
:is(body.fcm-news-single, #body_wrap.fcm-news-single) .c-card__title a {
  text-decoration: none;
  color: var(--fcm-color-text);
}
