/* 共通部品・サイト固有部品（クラスは ffb- で始める。クラブごとのCSSは作らない） */

/* ヘッダー：スマホ・タブレットは2段、1100px以上は1段 */
.ffb-header { position: relative; background: var(--ffb-surface); border-bottom: 1px solid var(--ffb-line); }
.ffb-header__bar { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "brand search account" "nav nav nav"; align-items: center; column-gap: 4px; padding-top: 6px; }
.ffb-header__brand { grid-area: brand; min-width: 0; min-height: 44px; display: flex; align-items: center; gap: 8px; color: var(--ffb-text); text-decoration: none; font-family: var(--ffb-font-brand); font-weight: 700; font-size: var(--ffb-fs-brand); line-height: 1.1; letter-spacing: .01em; }
.ffb .ffb-header__brand { color: var(--ffb-text); }
/* 採用画像の横型ロゴ領域を切り出した軽量画像。表示比率は従来どおり。 */
.ffb-header__logo { position: relative; display: block; width: 200px; max-width: 82%; aspect-ratio: 1425 / 314; overflow: hidden; }
.ffb-header__logo-name { position: absolute; inset: 0; display: flex; align-items: center; font-size: clamp(14px, 2vw, 20px); white-space: nowrap; }
.ffb-header__logo img { position: relative; display: block; z-index: 1; width: 100%; height: auto; color: transparent; font-size: 0; }
.ffb-header__tentative { font-family: var(--ffb-font); font-weight: 400; font-size: 12px; color: var(--ffb-text-2); }
.ffb-header__search-link { grid-area: search; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; min-height: 44px; padding: 0; border-radius: var(--ffb-r2); color: var(--ffb-text); text-decoration: none; font-size: 14px; white-space: nowrap; }
.ffb .ffb-header__search-link { color: var(--ffb-text); }
.ffb-header__search-link:hover { background: var(--ffb-surface-2); }
.ffb-header__icon-label { display: none; }
.ffb-account { grid-area: account; display: flex; gap: 8px; align-items: center; }
.ffb-account .ffb-account__login { padding: 0 12px; font-size: 14px; line-height: 1.5; }
.ffb-account .ffb-account__register { display: none; line-height: 1.5; white-space: nowrap; }
.ffb-member-btn { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 10px; border: 1px solid var(--ffb-line-strong); border-radius: var(--ffb-r2); background: var(--ffb-surface); color: var(--ffb-text); font-size: 14px; white-space: nowrap; cursor: pointer; }
.ffb-member-btn:hover { background: var(--ffb-surface-2); }
.ffb-member-btn__label { min-width: 0; max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.ffb-member-btn__long { display: none; }
.ffb-member-btn__caret { font-size: 10px; }
.ffb-nav { grid-area: nav; display: flex; overflow-x: auto; margin: 6px calc(var(--ffb-gutter) * -1) 0; padding: 0 calc(var(--ffb-gutter) - 8px); border-top: 1px solid var(--ffb-line); }
.ffb-nav__item { flex: 1 0 auto; display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 8px; border-bottom: var(--ffb-bar) solid transparent; color: var(--ffb-text); text-decoration: none; font-size: 15px; white-space: nowrap; }
.ffb .ffb-nav__item { color: var(--ffb-text); }
.ffb-nav__item[aria-current="page"] { border-bottom-color: var(--ffb-primary); font-weight: 700; }
.ffb-search { display: none; grid-area: search; gap: 6px; align-items: center; margin: 0; }
.ffb-search__label { position: absolute; left: -9999px; }
.ffb-search__field { position: relative; display: flex; align-items: center; }
.ffb-search__icon { position: absolute; left: 10px; display: flex; color: var(--ffb-text-2); pointer-events: none; }
.ffb-search__input { width: 210px; min-height: 44px; padding: 0 10px 0 38px; border: 1px solid var(--ffb-line-strong); border-radius: var(--ffb-r2); background: var(--ffb-surface); font-size: 15px; }
.ffb-search__submit { min-height: var(--ffb-h-btn); padding: 0 14px; border: 1px solid var(--ffb-line-strong); border-radius: var(--ffb-r2); background: var(--ffb-surface); color: var(--ffb-text); font-size: 14px; white-space: nowrap; cursor: pointer; }
.ffb-search__submit:hover { background: var(--ffb-surface-2); }
.ffb-menu { position: absolute; right: var(--ffb-gutter); top: 57px; z-index: 6; width: 240px; max-width: calc(100% - 32px); padding: 6px; display: flex; flex-direction: column; background: var(--ffb-surface); border: 1px solid var(--ffb-line); border-radius: var(--ffb-r2); box-shadow: var(--ffb-shadow-pop); }
.ffb-menu__who { padding: 8px 10px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--ffb-line); }
.ffb-menu__who > strong { display: block; font-size: 15px; overflow-wrap: anywhere; }
.ffb-menu__item { display: flex; align-items: center; min-height: 44px; padding: 0 10px; border-radius: 6px; color: var(--ffb-text); text-decoration: none; font-size: 15px; }
.ffb .ffb-menu__item { color: var(--ffb-text); }
.ffb-menu__item:hover { background: var(--ffb-surface-2); }
@media (min-width: 600px) {
  .ffb-header__search-link { padding: 0 12px; }
  .ffb-header__icon-label { display: inline; }
  .ffb-member-btn__short { display: none; }
  .ffb-member-btn__long { display: inline; }
}
@media (max-width: 360px) { .ffb-nav__item { font-size: 14px; } }
@media (min-width: 1100px) {
  .ffb-header__bar { grid-template-columns: auto minmax(0, 1fr) auto auto; grid-template-areas: "brand nav search account"; column-gap: 24px; min-height: 64px; padding-top: 0; }
  .ffb-header--likes .ffb-header__bar { column-gap: 16px; }
  .ffb-header--likes .ffb-search__input { width: 180px; }
  .ffb-header__brand { align-items: center; line-height: 1; }
  .ffb-header__logo { width: 220px; max-width: 100%; }
  .ffb-nav { margin: 0; padding: 0; border-top: 0; gap: 4px; }
  .ffb-nav__item { flex: none; min-height: 64px; padding: 0 12px; }
  .ffb-nav__item:hover { background: var(--ffb-surface-2); }
  .ffb-search { display: flex; }
  .ffb-header__search-link { display: none; }
  .ffb-account .ffb-account__login { padding: 0 16px; font-size: 15px; }
  .ffb-account .ffb-account__register { display: inline-flex; }
  .ffb-member-btn { gap: 6px; padding: 0 12px; }
  .ffb-menu { top: 64px; }
}

/* パンくず・フッター */
.ffb-breadcrumb { margin: 0 0 var(--ffb-s2); font-size: var(--ffb-fs-sub); color: var(--ffb-text-2); }
.ffb-breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 6px; align-items: center; }
.ffb-breadcrumb li { display: inline-flex; gap: 6px; align-items: center; min-width: 0; overflow-wrap: anywhere; }
.ffb-breadcrumb a { display: inline-flex; align-items: center; min-height: 36px; }
.ffb-breadcrumb__separator { color: var(--ffb-text-2); }
.ffb-footer { margin-top: var(--ffb-s7); padding: var(--ffb-s5) 0; background: var(--ffb-bg); border-top: 1px solid var(--ffb-line); font-size: var(--ffb-fs-sub); }
.ffb-footer__inner { max-width: none; }
.ffb-footer__brand { font-family: var(--ffb-font-brand); font-weight: 700; font-size: 20px; line-height: 1.2; }
.ffb-footer__nav { display: flex; flex-wrap: wrap; gap: 0 16px; margin-top: 4px; }
.ffb-footer__nav a { display: inline-flex; align-items: center; min-height: 44px; }
.ffb-footer__copyright { margin: var(--ffb-s2) 0 0; }
@media (min-width: 600px) and (max-width: 1099px) {
  .ffb-footer__inner { max-width: 720px; }
}
@media (min-width: 1100px) {
  .ffb-footer__inner { max-width: var(--ffb-w-page); }
}

/* ボタン */
.ffb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: var(--ffb-h-btn); min-width: 44px; padding: 0 16px; border: 1px solid var(--ffb-line-strong); border-radius: var(--ffb-r2); background: var(--ffb-surface); color: var(--ffb-text); font-size: 15px; line-height: var(--ffb-lh-ui); text-decoration: none; cursor: pointer; }
.ffb a.ffb-btn { color: var(--ffb-text); }
.ffb-btn:hover { background: var(--ffb-surface-2); }
.ffb-btn--primary, .ffb a.ffb-btn--primary { padding: 0 18px; border-color: var(--ffb-primary); background: var(--ffb-primary); color: #fff; font-weight: 700; }
.ffb-btn--primary:hover, .ffb a.ffb-btn--primary:hover { border-color: var(--ffb-primary-hover); background: var(--ffb-primary-hover); color: #fff; }
.ffb-btn--outline, .ffb a.ffb-btn--outline { border-color: var(--ffb-primary); color: var(--ffb-primary); font-weight: 700; white-space: nowrap; }
.ffb-btn--outline:hover { background: var(--ffb-primary-soft); }
.ffb-btn--text, .ffb a.ffb-btn--text { min-width: 0; padding: 0; border: 0; border-radius: 0; background: none; color: var(--ffb-link); text-decoration: underline; text-underline-offset: 3px; }
.ffb-btn--text:hover, .ffb a.ffb-btn--text:hover { background: none; color: var(--ffb-primary-hover); }
.ffb-btn--current, .ffb a.ffb-btn--current { padding: 0 14px; border-color: currentColor; color: inherit; font-weight: 700; line-height: 1.6; }
.ffb-btn--block { width: 100%; min-height: var(--ffb-h-input); font-size: 16px; }
.ffb-btn--wrap { white-space: normal; overflow-wrap: anywhere; word-break: auto-phrase; padding-top: 8px; padding-bottom: 8px; }
.ffb-btn:disabled, .ffb-btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.ffb-btn[aria-busy="true"] { cursor: progress; }
.ffb-btn-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ffb-btn__label { min-width: 0; }

/* 入力欄・選択 */
.ffb-field { margin: var(--ffb-s4) 0; }
.ffb-label { display: block; margin-bottom: 4px; font-size: 15px; font-weight: 700; }
.ffb-help { display: block; margin: -2px 0 4px; font-size: var(--ffb-fs-meta); color: var(--ffb-text-2); }
.ffb-input, .ffb-textarea { display: block; width: 100%; min-height: var(--ffb-h-input); padding: 0 14px; border: 1px solid var(--ffb-line-strong); border-radius: var(--ffb-r2); background: var(--ffb-surface); font-size: 16px; }
.ffb-textarea { padding: 10px 12px; line-height: 1.7; resize: vertical; }
.ffb-input[aria-invalid="true"], .ffb-textarea[aria-invalid="true"] { border: 2px solid var(--ffb-error); }
.ffb-textarea:disabled, .ffb-input:disabled { background: var(--ffb-muted); cursor: not-allowed; }
.ffb-error-text { margin: 4px 0 0; color: var(--ffb-error); font-size: var(--ffb-fs-sub); line-height: 1.5; }
.ffb-error-text::before { content: "！ "; }
.ffb-select { min-height: var(--ffb-h-btn); max-width: 100%; padding: 0 10px; border: 1px solid var(--ffb-line-strong); border-radius: var(--ffb-r2); background: var(--ffb-surface); font-size: 15px; }
.ffb-check { display: flex; gap: 10px; align-items: flex-start; min-height: 44px; cursor: pointer; }
.ffb-check input { flex: none; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--ffb-primary); }
.ffb-filter { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; padding: var(--ffb-s4); background: var(--ffb-bg); border-radius: var(--ffb-r3); }
.ffb-filter__label { display: block; margin-bottom: 4px; font-size: var(--ffb-fs-sub); font-weight: 700; }
.ffb-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ffb-chip { min-height: var(--ffb-h-btn); min-width: 56px; padding: 0 14px; border: 1px solid var(--ffb-line-strong); border-radius: 999px; background: var(--ffb-surface); color: var(--ffb-text); font-size: 14px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.ffb a.ffb-chip { display: inline-flex; align-items: center; justify-content: center; color: var(--ffb-text); text-decoration: none; }
.ffb-chip[aria-pressed="true"], .ffb .ffb-chip[aria-current="page"] { border-color: var(--ffb-text); background: var(--ffb-text); color: #fff; }
.ffb-result-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin: var(--ffb-s4) 0 0; }
.ffb-result-bar > p { margin: 0; font-weight: 700; }
.ffb-tablist { display: flex; border-bottom: 1px solid var(--ffb-line); }
.ffb-tab, .ffb a.ffb-tab { min-height: var(--ffb-h-btn); padding: 0 16px; border: 0; border-bottom: var(--ffb-bar) solid transparent; background: none; color: var(--ffb-text); font-size: 15px; font-weight: 700; cursor: pointer; }
.ffb-tab[aria-selected="true"] { border-bottom-color: var(--ffb-primary); }

/* 状態通知（色だけで伝えない：記号＋見出し＋文言＋次の操作） */
.ffb-notice { display: flex; gap: 10px; align-items: flex-start; margin-top: var(--ffb-s3); padding: 12px 14px; border: 1px solid var(--ffb-line); border-radius: var(--ffb-r2); font-size: 15px; line-height: 1.6; }
.ffb-notice__icon { flex: none; width: 22px; height: 22px; margin-top: 1px; display: grid; place-items: center; border: 2px solid currentColor; border-radius: 50%; font-size: 12px; font-weight: 700; line-height: 1; }
.ffb-notice__body { min-width: 0; }
.ffb-notice__title { display: block; font-weight: 700; }
.ffb-notice__actions { margin-top: 8px; }
.ffb-notice__action { display: inline-flex; align-items: center; min-height: var(--ffb-h-btn); padding: 0 14px; border: 1px solid currentColor; border-radius: var(--ffb-r2); background: var(--ffb-surface); color: inherit; font-weight: 700; cursor: pointer; text-decoration: none; }
.ffb .ffb-notice__action { color: inherit; }
.ffb-notice--info { border-color: var(--ffb-primary-line); background: var(--ffb-primary-soft); color: var(--ffb-primary-hover); }
.ffb-notice--success { border-color: var(--ffb-success-line); background: var(--ffb-success-bg); color: var(--ffb-success); }
.ffb-notice--pending { border-color: var(--ffb-pending-line); background: var(--ffb-pending-bg); color: var(--ffb-pending); }
.ffb-notice--error { border-color: var(--ffb-error-line); background: var(--ffb-error-bg); color: var(--ffb-error); }
.ffb-notice--muted { border-color: var(--ffb-line); background: var(--ffb-muted); color: var(--ffb-text); }
.ffb-notice--plain { border-color: var(--ffb-line); background: var(--ffb-bg); color: var(--ffb-text); }

/* 確認ダイアログ・一時表示 */
.ffb-dialog { max-width: 380px; width: calc(100% - 32px); padding: var(--ffb-s5); border: 0; border-radius: var(--ffb-r3); box-shadow: var(--ffb-shadow-pop); color: var(--ffb-text); }
.ffb-dialog::backdrop { background: rgba(16, 24, 40, .45); }
.ffb-dialog__title { margin: 0 0 6px; font-size: 18px; line-height: 1.4; }
.ffb-dialog__actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-top: var(--ffb-s4); }
.ffb-toast { position: fixed; left: 50%; bottom: 16px; z-index: 60; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); padding: 10px 16px; border-radius: var(--ffb-r2); background: var(--ffb-text); color: #fff; font-size: var(--ffb-fs-sub); box-shadow: var(--ffb-shadow-pop); overflow-wrap: anywhere; }

/* 一覧の行（カードで囲まない） */
.ffb-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ffb-line); }
.ffb-list > li { border-bottom: 1px solid var(--ffb-line); }
.ffb-row-link { display: block; padding: var(--ffb-s3) 0; color: inherit; text-decoration: none; }
.ffb .ffb-row-link { color: inherit; }
.ffb-row-link:hover { background: var(--ffb-surface-2); }
.ffb-row-link__where { display: block; font-size: var(--ffb-fs-meta); font-weight: 700; color: var(--ffb-link); overflow-wrap: anywhere; }
.ffb-row-link__body { display: block; margin: 2px 0; font-size: var(--ffb-fs-body); line-height: 1.65; overflow-wrap: anywhere; }
.ffb-row-link__title { display: block; margin: 2px 0; font-size: var(--ffb-fs-body); font-weight: 700; line-height: 1.5; color: var(--ffb-link); overflow-wrap: anywhere; word-break: auto-phrase; }
.ffb-row-link__meta { display: flex; flex-wrap: wrap; gap: 0 12px; }
.ffb-group-title { margin: var(--ffb-s5) 0 0; padding: 0 0 6px; border-bottom: 2px solid var(--ffb-text); font-size: 15px; line-height: 1.4; }
.ffb-panel { padding: var(--ffb-s4) var(--ffb-s5); background: var(--ffb-bg); border-radius: var(--ffb-r3); }
.ffb-empty { padding: var(--ffb-s5) var(--ffb-s4); border: 1px dashed var(--ffb-line-strong); border-radius: var(--ffb-r3); text-align: center; font-size: 15px; line-height: 1.8; }

/* ラベル（投稿行・記事で共通） */
.ffb-label-tag { display: inline-block; padding: 0 6px; border: 1px solid transparent; border-radius: var(--ffb-r1); font-size: 12px; line-height: 1.5; white-space: nowrap; }
.ffb-label-tag--staff, .ffb-label-tag--article { background: var(--ffb-text); color: #fff; font-weight: 700; }
.ffb-label-tag--staff { border: 0; }
.ffb-label-tag--article { padding: 1px 8px; border: 0; }
.ffb-label-tag--mine, .ffb-label-tag--type { border-color: var(--ffb-line-strong); color: var(--ffb-text); }
.ffb a.ffb-label-tag--type { color: var(--ffb-text); text-decoration: none; }
.ffb a.ffb-label-tag--type:hover { text-decoration: underline; }
.ffb-label-tag--new { border-color: var(--ffb-primary); color: var(--ffb-primary); font-weight: 700; }
.ffb-label-tag--selected, .ffb-label-tag--target { border: 0; background: var(--ffb-primary); color: #fff; font-weight: 700; }
.ffb-label-tag--returned { border-color: var(--ffb-pending-line); background: var(--ffb-pending-bg); color: var(--ffb-pending); font-weight: 700; }
.ffb-label-tag--root { border-color: var(--ffb-text); color: var(--ffb-text); font-weight: 700; }
.ffb-label-tag--div { border-color: var(--ffb-line-strong); color: var(--ffb-text-2); }
.ffb-label-tag--tentative { border: 1px dashed var(--ffb-pending-line); background: var(--ffb-pending-bg); color: var(--ffb-pending); }

/* クラブ行・お気に入り */
.ffb-club-row { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; padding: var(--ffb-s2) 0; }
.ffb-club-row__name { flex: 1 1 200px; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-size: 17px; font-weight: 400; overflow-wrap: anywhere; word-break: auto-phrase; }
.ffb-club-row__actions { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.ffb-fav { min-height: var(--ffb-h-btn); padding: 0 10px; border: 1px solid var(--ffb-line-strong); border-radius: var(--ffb-r2); background: var(--ffb-surface); color: var(--ffb-text); font-size: 14px; white-space: nowrap; cursor: pointer; }
.ffb-fav[aria-pressed="true"] { border-color: var(--ffb-primary-line); background: var(--ffb-primary-soft); color: var(--ffb-primary-hover); }
.ffb-quick-links { display: flex; flex-wrap: wrap; margin-left: -8px; }

/* チャンネル切替：1列はタブ、3列は左の一覧 */
.ffb-tabs { display: flex; overflow-x: auto; margin: 0 calc(var(--ffb-gutter) * -1) var(--ffb-s3); padding: 0 calc(var(--ffb-gutter) - 8px); border-bottom: 1px solid var(--ffb-line); }
.ffb-tabs__item { flex: 1 0 auto; display: flex; align-items: center; justify-content: center; min-height: var(--ffb-h-btn); padding: 0 8px; border-bottom: var(--ffb-bar) solid transparent; color: var(--ffb-text); text-decoration: none; font-size: 15px; white-space: nowrap; }
.ffb .ffb-tabs__item { color: var(--ffb-text); }
.ffb-tabs__item[aria-current="page"] { border-bottom-color: var(--ffb-primary); font-weight: 700; }
@media (max-width: 360px) { .ffb-tabs__item { font-size: 14px; } }
.ffb-chlist { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.ffb-chlist a { display: flex; align-items: center; min-height: var(--ffb-h-btn); padding: 0 12px; border-radius: var(--ffb-r2); color: var(--ffb-text); text-decoration: none; }
.ffb .ffb-chlist a { color: var(--ffb-text); }
.ffb-chlist a:hover { background: var(--ffb-surface-2); }
.ffb-chlist a[aria-current="page"] { background: var(--ffb-primary-soft); box-shadow: inset var(--ffb-bar) 0 0 var(--ffb-primary); font-weight: 700; }

/* 投稿行：投稿者名→ラベル→日時（右端）→本文→「返信 n件」から始まる操作行 */
.ffb-post { margin: 0 calc(var(--ffb-s3) * -1); padding: var(--ffb-s3) var(--ffb-s3) var(--ffb-s1); border-bottom: 1px solid var(--ffb-line); scroll-margin-top: 80px; }
.ffb-post__meta { display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: center; font-size: var(--ffb-fs-meta); color: var(--ffb-text-2); line-height: 1.5; }
.ffb-post__name { font-size: 15px; color: var(--ffb-text); overflow-wrap: anywhere; }
.ffb-post__time { margin-left: auto; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ffb-post__body { margin: 4px 0 0; font-size: var(--ffb-fs-body); line-height: var(--ffb-lh-body); white-space: pre-wrap; overflow-wrap: anywhere; line-break: strict; }
.ffb-post__hidden { margin: 6px 0; padding: 8px 12px; border-radius: var(--ffb-r2); background: var(--ffb-muted); font-size: var(--ffb-fs-sub); }
.ffb-post__actions { display: flex; flex-wrap: wrap; margin: 2px 0 0 -8px; }
.ffb-act { display: inline-flex; align-items: center; min-height: var(--ffb-h-btn); padding: 0 8px; border: 0; border-radius: var(--ffb-r2); background: none; color: var(--ffb-link); font-size: 14px; text-decoration: none; cursor: pointer; }
.ffb a.ffb-act { color: var(--ffb-link); }
.ffb-act:hover { background: var(--ffb-primary-soft); }
.ffb-act--count { font-weight: 700; }
.ffb-act--quiet, .ffb a.ffb-act--quiet { color: var(--ffb-text-2); }
.ffb-post--selected, .ffb-post--target { background: var(--ffb-surface-2); box-shadow: inset var(--ffb-bar) 0 0 var(--ffb-club-color,var(--ffb-primary)); }
.ffb-post--returned { background: var(--ffb-flash); box-shadow: inset var(--ffb-bar) 0 0 var(--ffb-pending-line); }
.ffb-post--root { margin: 6px 0 4px; border-bottom: 0; border-radius: var(--ffb-r2); background: var(--ffb-surface-2); }
.ffb-post--root.ffb-post--target { background: var(--ffb-surface-2); }
.ffb-post--root > .ffb-post__body { margin-top: 6px; }
.ffb-post--flash { background: var(--ffb-flash); }

/* 短い返信先参照（字下げしない） */
.ffb-ref { display: flex; align-items: center; gap: 0 6px; min-width: 0; margin-top: 4px; padding-left: 8px; border-left: 2px solid var(--ffb-line-strong); font-size: var(--ffb-fs-meta); color: var(--ffb-text-2); line-height: 1.5; }
.ffb-ref__text { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ffb-ref__text--unavailable { flex: 0 1 auto; min-width: auto; overflow: visible; text-overflow: clip; white-space: normal; }
.ffb-ref__link { flex: none; min-height: 36px; padding: 0 4px; border: 0; background: none; color: var(--ffb-link); text-decoration: underline; text-underline-offset: 3px; font-size: var(--ffb-fs-meta); white-space: nowrap; cursor: pointer; }

/* 新着案内（手動） */
.ffb-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ffb-newbar { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin-top: var(--ffb-s3); padding: 10px 14px; border: 1px solid var(--ffb-primary-line); border-radius: var(--ffb-r2); background: var(--ffb-primary-soft); color: var(--ffb-primary-hover); font-size: var(--ffb-fs-sub); line-height: 1.6; }
.ffb-newbar__text { flex: 1 1 200px; min-width: 0; }
.ffb-newbar:empty { display: none; }
.ffb-newbar > .ffb-btn { padding: 0 14px; font-size: 14px; white-space: nowrap; }

/* 投稿フォーム・返信欄 */
.ffb-composer { margin-top: var(--ffb-s3); padding: 12px; border: 1px solid var(--ffb-line-strong); border-radius: var(--ffb-r3); background: var(--ffb-surface); }
.ffb-composer__dest { font-size: var(--ffb-fs-sub); line-height: 1.6; color: var(--ffb-text-2); }
.ffb-composer__dest strong { color: var(--ffb-text); overflow-wrap: anywhere; }
.ffb-composer__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; overflow-wrap: anywhere; }
.ffb-composer__target { display: flex; align-items: center; gap: 0 8px; min-width: 0; margin:4px 0 8px; padding:6px 8px; border-radius:4px; background:var(--ffb-surface-2); font-size: var(--ffb-fs-meta); color: var(--ffb-text-2); line-height: 1.5; }
.ffb-composer__target-text { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ffb-composer__target strong { color: var(--ffb-text); }
.ffb-composer__changed { margin-top: 4px; padding: 4px 8px; border-radius: var(--ffb-r1); background: var(--ffb-pending-bg); color: var(--ffb-pending); font-size: var(--ffb-fs-meta); }
.ffb-composer__row { display: flex; gap: 8px; align-items: flex-end; margin-top: 6px; }
.ffb-composer__row .ffb-textarea { flex: 1 1 auto; min-width: 0; }
.ffb-composer__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; margin-top: 4px; font-size: var(--ffb-fs-meta); color: var(--ffb-text-2); }
.ffb-composer__count { font-variant-numeric: tabular-nums; }
.ffb-composer__count.is-over { color: var(--ffb-error); }
.ffb-composer__notice:empty { display: none; }
.ffb-quick-phrases { margin: 0; }
.ffb-quick-phrases__buttons { display: flex; flex-wrap: wrap; align-items:center; gap: 4px; }
.ffb-quick-phrase { min-height: 28px; max-width: 100%; padding: 0 6px; border: 1px solid var(--ffb-line-strong); border-radius: 999px; background: var(--ffb-surface); color: var(--ffb-text); font: inherit; font-size: 13px; line-height: 1.5; cursor: pointer; }
.ffb-quick-phrase:hover:not(:disabled) { background: var(--ffb-muted); }
.ffb-quick-phrase:disabled { opacity: .5; cursor: default; }
.ffb-quick-phrases__notice { margin: 6px 0 0; font-size: 13px; color: var(--ffb-error); }
.ffb-quick-phrases__notice:empty { display: none; }
.ffb-quick-emoji { display:inline-flex; align-items:center; justify-content:center; flex:none; min-width:28px; min-height:28px; padding:0 4px; font-size:16px; line-height:1; }
.ffb-input-tools { min-width:0; margin:6px 0; padding:6px; border-radius:6px; background:var(--ffb-surface-2); }
.ffb-input-tools .ffb-lineup-actions > .ffb-btn { padding:0 10px; font-size:13px; }
.ffb-composer > p.ffb-meta { margin:6px 0 0; font-size:12px; line-height:1.5; }
.ffb-composer .ffb-textarea, .ffb-post-edit-page .ffb-textarea { padding:8px 10px; }
.ffb-post-edit-page .ffb-field { margin:6px 0; }
.ffb-post-edit-page #post-edit-help { margin:6px 0; font-size:12px; line-height:1.5; }
/* 下部に固定する返信欄（1列の返信画面・3列の会話列）。影はこの部品だけに使う */
.ffb-composer--dock { position: relative; margin: var(--ffb-s4) 0 0; padding: var(--ffb-s3) var(--ffb-gutter); border: 0; border-top: 1px solid var(--ffb-line-strong); border-radius: 0; box-shadow: var(--ffb-shadow-dock); }
.ffb-gate { padding: var(--ffb-s3) var(--ffb-s4); border: 1px solid var(--ffb-line); border-radius: var(--ffb-r2); background: var(--ffb-bg); font-size: 15px; line-height: 1.6; }
.ffb-gate--pending { border-color: var(--ffb-pending-line); background: var(--ffb-pending-bg); color: var(--ffb-pending); }
.ffb-gate--muted { background: var(--ffb-muted); }
.ffb-gate__title { display: block; font-weight: 700; }
.ffb-composer-gate { margin-top: var(--ffb-s3); }
.ffb-composer-gate--reply { position: relative; margin: var(--ffb-s4) 0 0; padding: var(--ffb-s3) var(--ffb-gutter); border: 0; border-top: 1px solid var(--ffb-line-strong); border-radius: 0; background: var(--ffb-surface); box-shadow: none; font-size: var(--ffb-fs-body); line-height: var(--ffb-lh-ui); }
.ffb-composer-gate--reply > .ffb-gate__title { font-size: 15px; line-height: 1.5; }
.ffb-composer-gate--reply > .ffb-gate__description { line-height: 1.6; }
.ffb-composer-gate--reply.ffb-gate--pending { background: var(--ffb-pending-bg); border-top-color: var(--ffb-pending-line); }
.ffb-composer-gate--reply.ffb-gate--muted { background: var(--ffb-muted); }
.ffb-gate__description { font-size: var(--ffb-fs-sub); color: var(--ffb-text-2); }
.ffb-gate__actions { margin-top: var(--ffb-s2); }
.ffb .ffb-composer-gate .ffb-gate__actions > a.ffb-btn--club { padding: 0 18px; }
.ffb-composer-gate:not(.ffb-composer-gate--reply) .ffb-gate__actions > .ffb-btn { line-height: 1.6; }
.ffb-gate__links { display: flex; flex-wrap: wrap; gap: 0 16px; }
.ffb-gate__links > a { display: inline-flex; align-items: center; min-height: var(--ffb-h-btn); }

/* 記事行 */
.ffb-article-row { padding: var(--ffb-s4) 0; }
.ffb-article-row__meta { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: var(--ffb-fs-meta); color: var(--ffb-text-2); }
.ffb-article-row__title { display: block; padding: 6px 0 4px; font-size: 19px; font-weight: 700; line-height: 1.5; text-decoration: none; overflow-wrap: anywhere; word-break: auto-phrase; }
.ffb-article-row__title:hover { text-decoration: underline; }
.ffb-article-row__summary { margin: 0; font-size: 15px; line-height: 1.7; }
.ffb-article-row__clubs { margin: 4px 0 0; }

/* 1100px以上だけに出す補助表示（ヘッダーの「仮称」など） */
.ffb-only-wide { display: none; }
@media (min-width: 1100px) { .ffb-only-wide { display: inline; } }

/* Activity: public aggregate counts, neutral supplemental text. */
.ffb-activity { display:flex; flex-direction:column; gap:2px; font-size:14px; line-height:1.5; color:#475569; font-weight:400; overflow-wrap:anywhere; min-width:0; }
.ffb-access { overflow-wrap:normal; word-break:normal; }
.ffb-access__part { display:inline-block; max-width:100%; }
.ffb-access__label,.ffb-access__unit { white-space:nowrap; }
.ffb-club-row__name { display:flex; flex-direction:column; }
.ffb-club-row__name > .ffb-activity { order:2; }
.ffb-channel-recent { margin-left:6px; font-size:12px; font-weight:400; }
.ffb-activity-dot { display:none; width:6px; height:6px; background:#475569; border-radius:50%; flex:none; margin-left:4px; }
.ffb-tabs .ffb-channel-recent { display:none; }
.ffb-tabs .ffb-activity-dot { display:inline-block; }

/* BBS-056: launch notice, in normal document flow. */
.ffb-launch-notice { min-height: 20px; padding: 0 8px; background: #eff6ff; color: #1e40af; font-size: 12px; font-weight: 400; line-height: 20px; text-align: center; overflow-wrap: anywhere; }

