/* 下層ページ共通 */
.detail-page {
  --detail-h1: 52px;
  --detail-h2: 32px;
  --detail-h3: 24px;
  --detail-body: 18px;
  --detail-space: 80px;
  --detail-gap: 64px;
  --detail-surface: #f7f7f5;
}
.detail-page .page-masthead { background: white; border: 0; }
.detail-page .page-hero { padding-block: 56px 64px; }
.detail-page .page-hero.has-visual { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: var(--detail-gap); }
.detail-page .page-hero h1,
.detail-page .article-header h1 { font-size: var(--detail-h1); line-height: 1.35; font-weight: 700; letter-spacing: .01em; }
.detail-page .page-kicker { display: none; }
.detail-page .section-number,
.detail-page .company-section-number,
.detail-page .office-number { display: none; }
.detail-page .page-hero .eyebrow,
.detail-page .article-category { color: var(--muted); font-size: 14px; font-weight: 400; margin-bottom: 20px; }
.detail-page .page-lead,
.detail-page .article-lead { font-size: 20px; line-height: 1.85; margin-top: 24px; max-width: 65ch; }
.detail-page .page-hero-visual { height: 440px; border-radius: 12px; }
.detail-page .page-hero-visual.is-art { background: var(--detail-surface); }
.detail-page .subnav { gap: 12px; border: 0; padding-block: 8px; }
.detail-page .subnav a { display: inline-flex; align-items: center; min-height: 48px; padding: 10px 22px; border: 0; border-radius: 6px; background: var(--detail-surface); font-size: 16px; font-weight: 500; }
.detail-page .subnav a:hover { color: var(--ink); background: #eeeee9; }
.detail-page .subnav a[aria-current] { color: white; background: var(--ink); }
.detail-page .page-content { padding-block: var(--detail-space); }
.detail-page .content-block { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 0; border: 0; }
.detail-page .content-block + .content-block { margin-top: var(--detail-space); }
.detail-page .content-block h2 { font-size: var(--detail-h2); line-height: 1.5; font-weight: 700; }
.detail-page .content-block h3 { font-size: var(--detail-h3); line-height: 1.5; font-weight: 700; }
.detail-page .content-block > div:last-child { min-width: 0; font-size: var(--detail-body); line-height: 1.9; }

.detail-page .content-block p + p { margin-top: 20px; }
.detail-page .article-header { padding-block: 64px 48px; border: 0; }
.detail-page .article-body .content-block { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 0; border: 0; }
.detail-page .article-body .content-block + .content-block { margin-top: 56px; }
.detail-page .company-block.has-offices { grid-template-columns: minmax(0, 1fr); gap: 32px; }
.detail-page .company-office h3 { margin: 0; }
.detail-page .company-office p { max-width: none; }
.detail-page .company-office p + p { margin-top: 0; }
.detail-page .office-contact a { display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; }
.detail-page .office-contact a:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
@media (max-width: 1000px) {
  .detail-page { --detail-gap: 40px; }
  .detail-page .page-hero-visual { height: 360px; }
}
@media (max-width: 767px) {
  .detail-page { --detail-h1: 34px; --detail-h2: 26px; --detail-h3: 22px; --detail-body: 16px; --detail-space: 48px; --detail-gap: 24px; }
  .detail-page .page-hero { padding-block: 32px 40px; }
  .detail-page .page-hero.has-visual,
  .detail-page .content-block { grid-template-columns: minmax(0, 1fr); }
  .detail-page .page-lead,
  .detail-page .article-lead { font-size: 18px; }
  .detail-page .page-hero-visual { height: 280px; }
  .detail-page .subnav { gap: 8px; }
  .detail-page .subnav a { padding: 10px 16px; }
  .detail-page .company-block.has-offices { gap: 24px; }
  .detail-page .article-header { padding-block: 40px; }
}

/* 項目名と値を並べて表示 */
.profile-facts { width: 100%; margin: 0; border-collapse: collapse; table-layout: fixed; text-align: left; }
.profile-facts .profile-label-column { width: 30%; }
.profile-facts caption { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.profile-facts tr { border-bottom: 1px solid #e4e5e2; }
.profile-facts tr:first-child { border-top: 1px solid #c9ccc8; }
.profile-facts th, .profile-facts td { padding: 24px 20px; vertical-align: top; line-height: 1.8; overflow-wrap: anywhere; }
.profile-facts th { width: 30%; padding-left: 0; color: var(--ink); font-size: 16px; font-weight: 600; }
.profile-facts td { padding-right: 0; color: var(--ink); font-size: 18px; font-weight: 400; }
.profile-facts a { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; text-decoration: none; }
.profile-facts a:hover { color: var(--brand-ink); text-decoration: none; }
.profile-facts a:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
@media (max-width: 767px) {
  .profile-facts th, .profile-facts td { padding-block: 18px; font-size: 16px; line-height: 1.7; }
  .profile-facts .profile-label-column { width: 38%; }
  .profile-facts th { width: 38%; padding-right: 16px; }
  .profile-facts td { padding-left: 0; }
}

/* イラストの色を維持 */
.detail-page .page-hero-visual.is-art { background: #faf8f3; }
.detail-page .page-hero-visual.is-art img { padding: 28px; mix-blend-mode: normal; }
@media (max-width: 767px) {
 .detail-page .page-hero-visual.is-art img { padding: 20px; }
}
