/**
 * FCM 下層ページ共通（デザイン pages.css 準拠）
 */

body.fcm-faq-page .fcm-faqPage__content,
body.fcm-content-page .fcm-contentPage__content,
body.fcm-faq-page .fcm-faqPage__content,
body.fcm-wide-page .fcm-widePage__content,
body.fcm-content-page .post_content,
body.fcm-wide-page .post_content {
  font-size: 0.9375rem;
  line-height: 1.85;
  color: var(--fcm-color-text);
}

body.fcm-content-page .post_content h2,
body.fcm-wide-page .post_content h2 {
  margin: 2.25rem 0 0.85rem;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--fcm-color-bg-mint);
  color: var(--fcm-color-text);
  background: none !important;
}

body.fcm-content-page .post_content h3,
body.fcm-wide-page .post_content h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--fcm-color-text);
  background: none !important;
}

body.fcm-content-page .post_content a:not(.wp-block-button__link),
body.fcm-wide-page .post_content a:not(.wp-block-button__link) {
  color: var(--fcm-color-primary);
}

body.fcm-content-page .c-pageTitle__sub,
body.fcm-wide-page .c-pageTitle__sub {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--fcm-color-text-muted);
}

body.fcm-content-page .is-style-fcm-lead,
body.fcm-wide-page .is-style-fcm-lead,
body.fcm-content-page .c-eventLead,
body.fcm-wide-page .c-eventLead {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

body.fcm-content-page .c-eventLead--lg,
body.fcm-wide-page .c-eventLead--lg {
  font-size: 1.0625rem;
}

body.fcm-content-page .is-style-fcm-card,
body.fcm-wide-page .is-style-fcm-card,
body.fcm-content-page .c-card,
body.fcm-wide-page .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);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

body.fcm-content-page .is-style-fcm-card:hover,
body.fcm-wide-page .is-style-fcm-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--fcm-shadow-md);
}

body.fcm-content-page .c-card__title,
body.fcm-wide-page .c-card__title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 800;
}

body.fcm-content-page .c-card__title a,
body.fcm-wide-page .c-card__title a {
  text-decoration: none;
  color: var(--fcm-color-text);
}

body.fcm-content-page .is-style-fcm-muted,
body.fcm-wide-page .is-style-fcm-muted,
body.fcm-content-page .c-note,
body.fcm-wide-page .c-note {
  margin: 0.45rem 0 0;
  font-size: 0.8125rem;
  color: var(--fcm-color-text-muted);
  line-height: 1.5;
}

body.fcm-content-page .wp-block-separator.c-hr,
body.fcm-wide-page .wp-block-separator.c-hr {
  margin: 2rem 0;
  border-color: var(--fcm-color-border);
}

/* FAQ ページ見出し */
body.fcm-faq-page .fcm-faqPage__head .fcm-pageBreadcrumb {
  margin: 0 0 0.75rem !important;
}

body.fcm-faq-page .fcm-faqPage__head .c-pageTitle {
  margin: 0;
}

/* FAQ レイアウト */
body.fcm-faq-page .fcm-qaLayout,
body.fcm-wide-page .fcm-qaLayout,
body.fcm-content-page .fcm-qaLayout {
  display: grid;
  gap: var(--fcm-space-lg);
  max-width: var(--fcm-container);
  margin-left: auto;
  margin-right: auto;
  padding: 0 1.25rem var(--fcm-space-xl);
}

@media (min-width: 900px) {
  body.fcm-wide-page .fcm-qaLayout,
  body.fcm-content-page .fcm-qaLayout {
    grid-template-columns: 220px minmax(0, 1fr);
    align-items: start;
    gap: 2.5rem;
  }
}

body.fcm-wide-page .fcm-qaLayout__main,
body.fcm-content-page .fcm-qaLayout__main {
  min-width: 0;
}

body.fcm-faq-page .c-qaCatNav,
body.fcm-wide-page .c-qaCatNav,
body.fcm-content-page .c-qaCatNav {
  border: none;
  border-radius: var(--fcm-radius-md);
  background: var(--fcm-color-bg-mint);
  box-shadow: var(--fcm-shadow-sm);
  padding: 1.15rem 1.25rem;
  font-size: 0.875rem;
}

@media (min-width: 900px) {
  body.fcm-wide-page .c-qaCatNav,
  body.fcm-content-page .c-qaCatNav {
    position: sticky;
    top: calc(var(--fcm-header-h, 72px) + 1.5rem);
  }
}

body.fcm-wide-page .c-qaCatNav__title,
body.fcm-content-page .c-qaCatNav__title {
  margin: 0 0 0.85rem;
  font-family: var(--fcm-font-en);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fcm-color-primary);
}

body.fcm-wide-page .c-qaCatNav ul,
body.fcm-content-page .c-qaCatNav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.fcm-wide-page .c-qaCatNav a,
body.fcm-content-page .c-qaCatNav a {
  display: block;
  padding: 0.55rem 0;
  text-decoration: none;
  color: var(--fcm-color-text);
  border-bottom: 1px solid var(--fcm-color-border);
  font-weight: 500;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

body.fcm-wide-page .c-qaCatNav li:last-child a,
body.fcm-content-page .c-qaCatNav li:last-child a {
  border-bottom: 0;
}

body.fcm-wide-page .c-qaCatNav a:hover,
body.fcm-wide-page .c-qaCatNav a.is-active,
body.fcm-content-page .c-qaCatNav a:hover,
body.fcm-content-page .c-qaCatNav a.is-active {
  color: var(--fcm-color-primary);
  padding-left: 0.25rem;
}

body.fcm-wide-page .c-qaSearchRow,
body.fcm-content-page .c-qaSearchRow {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

body.fcm-faq-page .c-qaSearchRow .c-btn,
body.fcm-wide-page .c-qaSearchRow .c-btn,
body.fcm-content-page .c-qaSearchRow .c-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--fcm-color-primary);
  background: transparent;
  border: 2px solid var(--fcm-color-primary);
  border-radius: var(--fcm-radius-pill);
  cursor: pointer;
}

body.fcm-faq-page .c-qaSearchRow .c-input,
body.fcm-wide-page .c-qaSearchRow .c-input,
body.fcm-content-page .c-qaSearchRow .c-input {
  flex: 1;
  min-width: 200px;
  padding: 0.75rem 0.95rem;
  border: 1px solid var(--fcm-color-border);
  border-radius: var(--fcm-radius-md);
  font-family: inherit;
  font-size: 1rem;
}

body.fcm-wide-page .c-qaSearchStatus,
body.fcm-content-page .c-qaSearchStatus {
  font-size: 0.8125rem;
  color: var(--fcm-color-text-muted);
  margin: 0 0 1.25rem;
  min-height: 1.25em;
}

body.fcm-wide-page .c-qaSection,
body.fcm-content-page .c-qaSection {
  margin-bottom: 2.5rem;
  scroll-margin-top: calc(var(--fcm-header-h, 72px) + 1.5rem);
}

body.fcm-wide-page .c-qaSection__title,
body.fcm-content-page .c-qaSection__title {
  margin: 0 0 1rem !important;
  font-size: 1.125rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em;
  padding-bottom: 0.5rem !important;
  border-bottom: 2px solid var(--fcm-color-primary) !important;
  color: var(--fcm-color-text) !important;
  background: none !important;
}

body.fcm-wide-page .c-qaSection.is-hidden,
body.fcm-content-page .c-qaSection.is-hidden,
body.fcm-wide-page .c-qaItem.is-hidden,
body.fcm-content-page .c-qaItem.is-hidden {
  display: none !important;
}

/* アコーディオン（core/details） */
body.fcm-wide-page .c-qaItem.wp-block-details,
body.fcm-content-page .c-qaItem.wp-block-details {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--fcm-color-border);
}

body.fcm-wide-page .c-qaItem.wp-block-details:last-child,
body.fcm-content-page .c-qaItem.wp-block-details:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

body.fcm-wide-page .c-qaItem.wp-block-details summary,
body.fcm-content-page .c-qaItem.wp-block-details summary {
  margin: 0 0 0.5rem;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--fcm-color-text);
  line-height: 1.55;
  cursor: pointer;
  list-style: none;
}

body.fcm-wide-page .c-qaItem.wp-block-details summary::-webkit-details-marker,
body.fcm-content-page .c-qaItem.wp-block-details summary::-webkit-details-marker {
  display: none;
}

body.fcm-wide-page .c-qaItem.wp-block-details summary::before,
body.fcm-content-page .c-qaItem.wp-block-details summary::before {
  content: "Q. ";
  color: var(--fcm-color-primary);
  font-weight: 800;
}

body.fcm-wide-page .c-qaItem.wp-block-details .c-qaItem__a,
body.fcm-content-page .c-qaItem.wp-block-details .c-qaItem__a {
  margin: 0;
  font-size: 0.875rem;
  color: var(--fcm-color-text-muted);
  line-height: 1.75;
}

body.fcm-wide-page .c-qaItem.wp-block-details .c-qaItem__a::before,
body.fcm-content-page .c-qaItem.wp-block-details .c-qaItem__a::before {
  content: "A. ";
  font-weight: 700;
  color: var(--fcm-color-text);
}
