/* =========================================================
   renew.css  (2026.09 リニューアル追加分 / 260928_hondaRenew.fig)
   - トップ：論文リスト簡略化
   - 研究開発プロジェクトページ（project.html）
   - Honda アバターロボットページ（avatar-robot.html）
   ========================================================= */

/* ---------- 共通 ---------- */
/* 「Honda」表記をcap&lowのまま表示（ボタンの大文字変換を解除） */
.btn-primary.btn-nocaps { text-transform: none; }
#modalYouTube { position: relative; width: 100%; padding-top: 56.25%; }
#modalYouTube iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.av-credit a[data-youtube-id] { cursor: pointer; }
.rn-pre { white-space: pre-line; }
.container-wide { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.rn-heading { text-align: center; }
.rn-heading-en { font-family: var(--font-primary); font-size: 48px; font-weight: var(--font-weight-bold); line-height: 64px; color: #1a1a1a; }
.rn-heading-ja { font-size: 24px; font-weight: var(--font-weight-bold); line-height: 38.4px; color: #777; }

/* ---------- トップ：論文リスト（簡略版） ---------- */
.research-papers.rp-simple { background: #f5f5f5; padding: 80px 0 104px; }
.rp-simple .rp-title-block { margin-bottom: 24px; }
.rp-simple .rp-sub { font-size: var(--font-size-body); font-weight: 350; color: #777; line-height: 25.6px; margin-top: 7px; }
.rp-simple .rp-cta .btn-hero { display: inline-flex; width: auto; }

/* ---------- 下層ページ ヒーロー（論文リストと共通の rp-page-hero を使用） ---------- */
.rp-page-hero .rp-page-sub { font-weight: 350; }

/* ---------- 研究開発プロジェクト ---------- */
.pj-lead { padding: 100px 0; background: #fff; }
.pj-lead-text { font-size: 24px; font-weight: var(--font-weight-bold); line-height: 38px; color: #777; text-align: center; }
.pj-lead-text strong { color: #2a2a2a; font-weight: inherit; }

.pj-body { background: #f5f5f5; padding: 80px 0 100px; }
.pj-card { background: #fff; padding: 64px; }
.pj-card + .pj-card { margin-top: 72px; }
.pj-card-head { margin-bottom: 72px; }
.pj-program { margin-top: 30px; text-align: center; font-size: 24px; line-height: 29px; }
.pj-program-main { display: block; font-weight: var(--font-weight-bold); color: #767676; }
.pj-program-sub { display: block; font-weight: var(--font-weight-light); color: #444; margin-top: 4px; }

.pj-table { width: 100%; border: 1px solid #e0e0e0; border-radius: 8px; border-collapse: separate; border-spacing: 0; overflow: hidden; }
.pj-table th, .pj-table td { padding: 24px 32px; vertical-align: top; line-height: 29px; text-align: left; }
.pj-table tr + tr th, .pj-table tr + tr td { border-top: 1px solid #e0e0e0; }
.pj-table th { width: 183px; padding-right: 0; font-size: 14px; font-weight: var(--font-weight-bold); color: #1a1a1a; white-space: nowrap; }
.pj-table td { font-size: var(--font-size-body); font-weight: 350; color: #444; }
.pj-note { margin-top: 28px; font-size: 13px; font-weight: 350; line-height: 23px; color: #777; }

.pj-links { margin-top: 28px; padding-top: 12px; }
.pj-links-title { font-size: 18px; font-weight: var(--font-weight-bold); line-height: 29px; color: #1a1a1a; margin-bottom: 16px; }
.pj-link-card { display: flex; align-items: center; gap: 24px; background: #fff; border: 1px solid #e0e0e0; border-radius: 8px; padding: 25px 64px 25px 25px; }
.pj-link-card + .pj-link-card { margin-top: 16px; }
.pj-link-info { flex: 1; min-width: 0; }
.pj-link-title { font-size: var(--font-size-body); font-weight: var(--font-weight-bold); line-height: 26px; color: #1a1a1a; }
.pj-link-org { font-size: var(--font-size-body); font-weight: 400; line-height: 26px; color: #1a1a1a; }
.pj-link-card .btn-primary { flex-shrink: 0; padding: 9.5px 20px; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }

.pj-roles-text { max-width: 646px; margin: 36px auto 0; font-size: var(--font-size-body); font-weight: 350; line-height: 29px; color: #444; }
.pj-roles-fig img { display: block; width: 100%; height: auto; }

.pj-recruit { margin-top: 72px; background: #fff; border: 1px solid #e0e0e0; border-radius: 8px; padding: 40px; text-align: center; }
.pj-recruit-text { margin-top: 20px; font-size: var(--font-size-body); font-weight: 350; line-height: 26px; color: #777; }
.pj-recruit-links { margin-top: 20px; display: flex; justify-content: center; gap: 24px; }
.pj-recruit-links .btn-primary { flex: 0 1 300px; display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 73px; padding: 14px 20px; text-transform: none; line-height: 22px; }
.pj-recruit-links .btn-primary span { display: block; }
.pj-recruit-links .btn-primary span span { display: inline; }
.pj-recruit-links .btn-primary svg { flex-shrink: 0; }

/* ---------- Honda アバターロボット ---------- */
.av-intro { position: relative; padding: 100px 0; overflow: hidden; background: #fff; }
.av-intro-bg { position: absolute; inset: 0; background: url('../img/core-message/bg.png') no-repeat center center / cover; opacity: 0.2; pointer-events: none; }
.av-intro .container-wide { position: relative; }
.av-intro-inner { padding: 40px; text-align: center; }
.av-intro-desc { margin-top: 24px; font-size: var(--font-size-body); font-weight: 350; line-height: 29px; color: #444; }

.av-body { background: #fff; padding: 80px 0 100px; }
.av-spec-title { font-size: 32px; font-weight: var(--font-weight-bold); line-height: 51px; letter-spacing: 3px; color: #1a1a1a; text-align: center; }
.av-specs { display: flex; align-items: center; justify-content: center; gap: 52px; padding: 24px 32px 48px; }
.av-spec { display: flex; flex-direction: column; align-items: flex-start; color: #2a2a2a; }
.av-spec-num { font-family: var(--font-heading-en); font-size: 64px; font-weight: var(--font-weight-bold); line-height: 53px; white-space: nowrap; }
.av-spec-unit { font-size: 16px; line-height: 20px; margin-left: 2px; }
.av-spec-label { font-size: var(--font-size-body); font-weight: 900; line-height: 26px; white-space: nowrap; }
.av-spec-dof { display: flex; align-items: center; gap: 14px; }
.av-dof-list { display: grid; grid-template-columns: auto auto; gap: 9px 25px; font-size: 14px; font-weight: 900; color: #666; line-height: 21px; white-space: nowrap; }
.av-dof-list .wide { grid-column: 1 / -1; }
.av-dof-list dt, .av-dof-list dd { display: inline; }
.av-dof-list b { font-family: var(--font-heading-en); font-size: 18px; margin-left: 2px; }
.av-spec-divider { width: 1px; height: 79px; background: #e0e0e0; flex-shrink: 0; }

.av-items { background: #f5f5f5; margin: 0 40px; padding: 80px; }
.av-items .tech-items-list { max-width: 1200px; margin: 0 auto; gap: 0; }
.av-item { padding: 37px 0; }
.av-item:first-child { padding-top: 0; padding-bottom: 100px; }
.av-item:last-child { padding-bottom: 0; }
.av-video-link { display: block; }
.av-video-link:focus-visible { outline: 3px solid var(--color-honda-red); outline-offset: 3px; }
.av-video-link:hover .tech-play-btn { background: rgba(255,255,255,0.35); }
.av-video-pending { cursor: default; }
.av-video-pending:hover img { transform: none; }
.av-pending { position: absolute; left: 12px; bottom: 12px; z-index: 2; background: rgba(0,0,0,0.65); color: #fff; font-size: 12px; font-weight: var(--font-weight-bold); line-height: 20px; padding: 4px 10px; border-radius: 4px; }
.av-item-lead .tech-video-frame { flex: 0 0 57%; }
.av-item-lead .tech-video { aspect-ratio: 618/435; }
.av-item-lead .tech-frame-bar { width: 54%; top: -53px; bottom: -51px; left: -65px; }
.av-lead { flex: 1; display: flex; flex-direction: column; gap: 16px; padding: 0 24px; }
.av-label { font-size: 12px; font-weight: var(--font-weight-bold); line-height: 20px; letter-spacing: 1.5px; color: var(--color-honda-red); }
.av-title { font-size: 22px; font-weight: var(--font-weight-bold); line-height: 38px; color: #1a1a1a; }
.av-desc { font-size: 15px; font-weight: 350; line-height: 30px; color: #444; }
.av-credit { font-size: 12px; font-weight: 350; line-height: 20px; color: #777; }
.av-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.av-credit a:hover, .av-credit a:focus-visible { color: var(--color-honda-red); }

/* 参考情報 */
.av-refs { background: #fff; padding: 0 0 100px; }
.av-refs-inner { max-width: 1120px; margin: 0 auto; }
.av-refs-title { font-size: 24px; font-weight: var(--font-weight-bold); line-height: 38px; color: #1a1a1a; margin-bottom: 24px; }
.av-refs .pj-link-card .btn-primary { flex-shrink: 0; padding: 9.5px 20px; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .av-specs { flex-wrap: wrap; gap: 32px 40px; }
  .av-spec-divider { display: none; }
  .av-items { margin: 0; padding: 64px 40px; }
  .av-item-lead .tech-video-frame { flex: none; width: 100%; }
  .av-item, .av-item:first-child { padding: 32px 0; }
  .av-item .av-lead { order: 1; padding: 0; }
  .pj-card { padding: 48px 32px; }
}

/* ---------- Smartphone ---------- */
@media (max-width: 767px) {
  .container-wide { padding: 0 20px; }
  .rn-heading-en { font-size: 32px; line-height: 44px; }
  .rn-heading-ja { font-size: 18px; line-height: 30px; }
  .research-papers.rp-simple { padding: 56px 0 64px; }
  .rp-simple .rp-heading { font-size: 32px; }

  .pj-lead { padding: 56px 0; }
  .pj-lead-text { font-size: 16px; line-height: 28px; }
  .rp-page-title { font-size: 28px; line-height: 40px; }
  .pj-body { padding: 40px 0 56px; }
  .pj-card { padding: 40px 20px; }
  .pj-card + .pj-card { margin-top: 32px; }
  .pj-card-head { margin-bottom: 40px; }
  .pj-program { font-size: 18px; line-height: 26px; }
  .pj-table, .pj-table tbody, .pj-table tr, .pj-table th, .pj-table td { display: block; width: 100%; }
  .pj-table th { padding: 20px 20px 4px; }
  .pj-table td { padding: 0 20px 20px; border-top: none !important; }
  .pj-link-card { flex-direction: column; align-items: flex-start; padding: 20px; gap: 16px; }
  .pj-link-card .btn-primary { align-self: center; }
  .pj-roles-text { margin-top: 24px; }
  .pj-recruit { margin-top: 32px; padding: 32px 20px; }
  .pj-recruit-links { flex-direction: column; align-items: stretch; gap: 16px; }
  .pj-recruit-links .btn-primary { flex: none; min-height: 64px; }

  .av-intro { padding: 56px 0; }
  .av-intro-inner { padding: 0; }
  .av-body { padding: 56px 0 0; }
  .av-spec-title { font-size: 22px; line-height: 36px; }
  .av-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 16px; padding: 24px 20px 40px; justify-items: start; }
  .av-spec-dof { grid-column: 1 / -1; flex-wrap: wrap; }
  .av-spec-num { font-size: 48px; line-height: 44px; }
  .av-spec-label { font-size: 14px; }
  .av-items { padding: 40px 20px 56px; }
  .av-item, .av-item:first-child { padding: 0; margin-bottom: 48px; }
  .av-item:last-child { margin-bottom: 0; }
  .av-item-lead .tech-frame-bar { top: 0; bottom: -32px; left: 0; width: 64%; }
  .av-lead { gap: 8px; }
  .av-title { font-size: 20px; line-height: 32px; }
  .av-refs { padding: 40px 0 56px; }
  .av-refs-title { font-size: 20px; line-height: 32px; margin-bottom: 16px; }

  /* フッター上CTA：トップのヒーローボタンと同じ幅に（全ページ共通） */
  .final-cta-panel { width: calc(100% - 40px); padding: 40px 20px; gap: 32px; }
  .final-cta-heading { font-size: 32px; letter-spacing: 2px; }
  .final-cta-buttons { flex-direction: column; align-items: center; width: 100%; gap: 16px; }
  .final-cta-buttons .btn-hero { width: 100%; max-width: 320px; }
}
