/* FB HP アップデート案 モック v02 — 下層12ページ用の追加部品
   site_v01.css（v01の部品）に足すだけ。色・余白・書体は tokens_v01.css の変数を使う。 */

/* ---------- 下層ヒーローの補助 ---------- */
.phero--narrow .phero__grid { grid-template-columns: minmax(0, 1fr); }
.phero__meta { margin-top: var(--fb-space-5); display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; color: var(--fb-ink-muted); }
.chip { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: var(--fb-radius-pill); background: var(--fb-surface); border: 1px solid var(--fb-purple-200); color: var(--fb-ink); font-size: 13px; font-weight: 500; }
.chip--key { background: var(--fb-purple-600); border-color: var(--fb-purple-600); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { font: inherit; cursor: pointer; }
.chips button[aria-pressed="true"] { background: var(--fb-purple-600); border-color: var(--fb-purple-600); color: #fff; }
.field-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 10px; margin-top: 12px; }
.field-list li { font-size: 14px; padding: 6px 10px; border-radius: 10px; background: rgba(255, 255, 255, .62); border: 1px solid rgba(255, 255, 255, .9); }
.field-list b { color: var(--fb-purple-700); font-size: 12px; margin-right: 8px; }

/* ---------- ミッション ---------- */
.mission { padding: clamp(28px, 4vw, 56px); }
.mission h2 { font-size: clamp(24px, 3vw, 38px); font-weight: 600; line-height: 1.45; letter-spacing: var(--fb-ls-display); }
.mission .en { margin-top: 12px; font-size: 15px; color: var(--fb-purple-700); font-weight: 600; }
.mission p { margin-top: 16px; color: var(--fb-ink); }

/* ---------- 行動指針（5枚） ---------- */
.values { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--fb-space-4); }
.value { grid-column: span 2; padding: clamp(20px, 2.2vw, 28px); border-radius: var(--fb-radius-lg); background: var(--fb-surface); border: 1px solid var(--fb-line); box-shadow: var(--fb-shadow-sm); display: flex; flex-direction: column; gap: 8px; }
.value:nth-child(4), .value:nth-child(5) { grid-column: span 3; }
.value .num { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--fb-purple-700); }
.value h3 { font-size: 20px; font-weight: 600; font-family: var(--fb-font-sans); }
.value .tag { font-size: 15px; font-weight: 600; color: var(--fb-purple-700); }
.value p { font-size: 15px; color: var(--fb-ink-muted); }

/* ---------- 代表 ---------- */
.ceo { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: var(--fb-space-8); align-items: start; }
.ceo__card { padding: 24px; text-align: center; }
.ceo__card img { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; background: var(--fb-purple-100); }
.ceo__card h3 { font-size: 22px; font-weight: 600; }
.ceo__card .role { margin-top: 4px; font-size: 14px; color: var(--fb-purple-700); font-weight: 600; }
.ceo__body p + p { margin-top: 14px; }
.ceo__body h3 { margin-top: var(--fb-space-7); font-size: 18px; font-weight: 600; }
.ceo__body h3 + p { margin-top: 10px; color: var(--fb-ink-muted); font-size: 15px; }
.career { margin-top: 14px; }
.career .flow__node { padding: 16px; }
.members--team { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.member .area { font-size: 12px; color: var(--fb-ink-muted); margin-top: 4px; }

/* ---------- 記事一覧 ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--fb-space-6); padding: clamp(24px, 3vw, 40px); border-radius: var(--fb-radius-xl); background: linear-gradient(180deg, var(--fb-purple-100), var(--fb-surface) 75%); border: 1px solid var(--fb-purple-200); color: var(--fb-ink); }
.feature:hover { text-decoration: none; color: var(--fb-ink); box-shadow: var(--fb-shadow-md); }
.feature h2 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; line-height: 1.45; }
.feature p { color: var(--fb-ink-muted); font-size: 15px; }
.post p { font-size: 14px; color: var(--fb-ink-muted); line-height: 1.75; }
.post:hover { text-decoration: none; box-shadow: var(--fb-shadow-md); }
.post .meta { display: flex; gap: 10px; align-items: center; font-size: 12px; }
.post .meta time { margin: 0; font-size: 12px; }
.posts--list { margin-top: var(--fb-space-6); }
.bar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding: 18px 24px; margin-top: var(--fb-space-6); }
.bar p { color: var(--fb-ink); font-size: 15px; }

/* ---------- 記事本文 ---------- */
.article { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: var(--fb-space-8); align-items: start; }
.article__toc { position: sticky; top: 96px; padding: 20px; }
.article__toc ol { counter-reset: toc; margin-top: 10px; }
.article__toc li { counter-increment: toc; border-top: 1px solid rgba(31, 28, 43, .10); }
.article__toc li:first-child { border-top: 0; }
.article__toc a { display: flex; gap: 10px; padding: 8px 2px; color: var(--fb-ink); font-size: 13px; line-height: 1.6; font-weight: 500; }
.article__toc a::before { content: counter(toc, decimal-leading-zero); color: var(--fb-purple-700); font-size: 11px; font-weight: 700; padding-top: 2px; }
.prose { max-width: 760px; min-width: 0; overflow-wrap: anywhere; }
.prose > * + * { margin-top: 18px; }
.prose h2 { margin-top: var(--fb-space-9); padding-top: 18px; border-top: 2px solid var(--fb-ink); font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; line-height: 1.45; scroll-margin-top: 96px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: var(--fb-space-7); font-size: 19px; font-weight: 600; line-height: 1.5; padding-left: 14px; border-left: 4px solid var(--fb-purple-600); }
.prose p, .prose li { font-size: 16px; line-height: 1.95; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 6px; }
.prose li::marker { color: var(--fb-purple-700); }
.prose strong { font-weight: 700; }
.prose figure { margin: 24px 0 0; padding: 16px; border-radius: var(--fb-radius-lg); background: var(--fb-surface); border: 1px solid var(--fb-line); }
.prose figure img { width: 100%; }
.prose figcaption { margin-top: 10px; font-size: 13px; color: var(--fb-ink-muted); }
.prose blockquote { margin: 24px 0 0; padding: 20px 24px; border-radius: var(--fb-radius-lg); background: var(--fb-purple-50); border: 1px solid var(--fb-purple-200); }
.prose .note { font-size: 14px; color: var(--fb-ink-muted); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.75; background: var(--fb-surface); border-radius: var(--fb-radius-md); overflow: hidden; border: 1px solid var(--fb-line); }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--fb-line); }
.tbl thead th, .tbl tr:first-child th { background: var(--fb-purple-100); font-weight: 600; color: var(--fb-ink); }
.tbl tr:last-child td { border-bottom: 0; }
.inline-cta { padding: clamp(24px, 3vw, 36px); text-align: center; }
.inline-cta p + p { margin-top: 8px; }
.inline-cta .h3 { margin-top: 6px; }
.back { display: inline-flex; margin-top: var(--fb-space-8); font-weight: 600; }

/* ---------- お問い合わせ ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: var(--fb-space-7); align-items: start; }
.contact__side { display: flex; flex-direction: column; gap: var(--fb-space-4); }
.contact__side .glass, .contact__side .card { padding: 24px; }
.card { border-radius: var(--fb-radius-lg); background: var(--fb-surface); border: 1px solid var(--fb-line); box-shadow: var(--fb-shadow-sm); }
.contact__side h3 { font-size: 18px; font-weight: 600; }
.contact__side p { margin-top: 8px; font-size: 15px; color: var(--fb-ink-muted); }
.contact__side .tel { display: block; margin-top: 6px; font-size: 26px; font-weight: 600; color: var(--fb-ink); font-family: var(--fb-font-sans); }
.form { padding: clamp(24px, 3vw, 40px); display: grid; gap: 18px; }
.form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.form .req { color: var(--fb-err); margin-left: 4px; }
.form input, .form select, .form textarea { width: 100%; font: inherit; font-size: 16px; color: var(--fb-ink); padding: 12px 14px; border-radius: 12px; border: 1px solid var(--fb-line-strong); background: var(--fb-surface); }
.form textarea { min-height: 160px; resize: vertical; }
.form input::placeholder, .form textarea::placeholder { color: var(--fb-ink-muted); }
.form .hint { font-size: 13px; color: var(--fb-ink-muted); margin-top: 6px; }
.form .two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.radios { border: 0; padding: 0; margin: 0; min-width: 0; }
.radios legend { font-size: 14px; font-weight: 600; margin-bottom: 8px; padding: 0; }
.radios__list { display: flex; flex-wrap: wrap; gap: 8px; }
.form .radio { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 8px 14px; border-radius: var(--fb-radius-pill); border: 1px solid var(--fb-purple-200); background: var(--fb-surface); font-size: 14px; font-weight: 500; cursor: pointer; }
.form .radio input { width: auto; margin: 0; accent-color: var(--fb-purple-600); }
.form .radio:has(input:checked) { border-color: var(--fb-purple-600); background: var(--fb-purple-50); }
.form .btn { justify-self: start; border: 0; cursor: pointer; font: inherit; font-weight: 600; }

/* ---------- 採用 ---------- */
.positions { display: grid; gap: var(--fb-space-4); }
.position { padding: clamp(20px, 2.4vw, 32px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 24px; align-items: start; }
.position h3 { font-size: 20px; font-weight: 600; }
.position .chips { margin-top: 10px; }
.position p { margin-top: 10px; color: var(--fb-ink-muted); font-size: 15px; }
.position ul { margin-top: 10px; display: grid; gap: 4px; }
.position li { font-size: 14px; padding-left: 12px; border-left: 2px solid var(--fb-purple-200); }
.position h4 { margin-top: 14px; font-size: 13px; color: var(--fb-purple-700); font-weight: 600; }
.position--tb { border-style: dashed; border-color: var(--fb-line-strong); }
.position .btn { white-space: nowrap; }

/* ---------- ニュース ---------- */
.year { display: grid; grid-template-columns: minmax(0, 160px) minmax(0, 1fr); gap: var(--fb-space-6); }
.year + .year { margin-top: var(--fb-space-8); }
.year h2 { font-size: 32px; font-weight: 600; font-family: var(--fb-font-sans); padding-top: 10px; border-top: 2px solid var(--fb-ink); }
.year .news { margin-top: 0; }
.news--wide li { grid-template-columns: 110px 140px minmax(0, 1fr); align-items: baseline; }

/* ---------- 資料 ---------- */
.res { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--fb-space-5); }
.res__card { padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 14px; }
.res__card h2 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; line-height: 1.45; }
.res__card p { color: var(--fb-ink-muted); font-size: 15px; }
.res__card .link-arrow { margin-top: auto; }

/* ---------- 準備中 ---------- */
.soon { max-width: 760px; margin: 0 auto; text-align: center; padding: clamp(32px, 5vw, 64px) clamp(20px, 4vw, 48px); }
.soon h2 { margin-top: 12px; font-size: clamp(24px, 3vw, 36px); font-weight: 600; }
.soon p { margin-top: 14px; color: var(--fb-ink-muted); }

/* 記事・お知らせの見出しは長いので一段小さくする */
.phero--article h1 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.35; }

@media (max-width: 1024px) {
  .ceo, .article, .contact, .year { grid-template-columns: minmax(0, 1fr); }
  .article__toc { position: static; }
  .members--team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ceo__card { max-width: 360px; }
}
@media (max-width: 768px) {
  .values { grid-template-columns: minmax(0, 1fr); }
  .value, .value:nth-child(4), .value:nth-child(5) { grid-column: auto; }
  .feature, .res, .form .two, .position { grid-template-columns: minmax(0, 1fr); }
  .field-list { grid-template-columns: minmax(0, 1fr); }
  .news--wide li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  /* 表は縦積みにして横はみ出しを出さない（見出しは data-label で各セルの上に出す） */
  .tbl, .tbl tbody, .tbl tr, .tbl td, .tbl th { display: block; width: 100%; }
  .tbl tr:first-child:has(th) { display: none; }
  .tbl tr { border-bottom: 1px solid var(--fb-line-strong); }
  .tbl td { border-bottom: 0; padding: 8px 14px; }
  .tbl td[data-label]::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 600; color: var(--fb-purple-700); }
  .tbl td:first-child { padding-top: 14px; font-weight: 600; }
}
@media (max-width: 480px) {
  .members--team { grid-template-columns: minmax(0, 1fr); }
}
