/* ===== Hero ===== */
.hero { position: relative; height: calc(100vh - var(--header-height)); min-height: 600px; display: flex; flex-direction: column; overflow: hidden; cursor: pointer; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.35); }
.hero-inner { position: relative; z-index: 2; flex: 1; display: flex; align-items: flex-start; padding: 0 50px; }
.hero-content { background: transparent; border-radius: 0; padding: 48px; display: flex; flex-direction: column; gap: 21px; max-width: 1008px; width: 100%; cursor: default; }
.hero-title-block { display: flex; flex-direction: column; }
.hero-title { font-family: var(--font-heading-en); font-size: 56px; font-weight: var(--font-weight-bold); line-height: 1.3; letter-spacing: 2px; color: white; text-shadow: 0 4px 4px rgba(0,0,0,0.25); }
.hero-subtitle { font-family: var(--font-primary); font-weight: 350; font-size: 36px; line-height: 32px; color: white; }
.hero-tagline { padding-top: 20px; padding-bottom: 6px; }
.hero-tagline-red { font-family: var(--font-primary); font-size: 32px; font-weight: var(--font-weight-bold); color: var(--color-honda-red); line-height: 1.6; }
.hero-tagline-white { font-family: var(--font-primary); font-weight: 350; font-size: 24px; color: white; line-height: 1.6; }
.hero-specs { display: flex; align-items: flex-start; gap: 50px; background: transparent; padding: 23px 32px 24px; }
.spec-item { flex: 1; text-align: left; }
.spec-item-group { display: flex; align-items: flex-start; gap: 16px; }
.spec-sub { display: flex; flex-direction: column; }
.spec-slash { font-family: var(--font-heading-en); font-size: 40px; font-weight: var(--font-weight-bold); color: white; line-height: 68.8px; }
.spec-number { display: block; font-family: var(--font-heading-en); font-size: 64px; font-weight: var(--font-weight-bold); line-height: 52.8px; color: white; }
.spec-unit-inline { font-size: 36px; font-weight: var(--font-weight-bold); font-family: var(--font-heading-en); line-height: 34px; vertical-align: baseline; }
.spec-unit-inline-sm { font-size: 16px; font-weight: var(--font-weight-bold); font-family: var(--font-heading-en); line-height: 20px; vertical-align: baseline; }
.spec-unit { display: block; font-size: var(--font-size-body); font-weight: 900; color: white; }
.spec-label { display: block; font-family: var(--font-primary); font-size: var(--font-size-body); font-weight: 900; line-height: 25.6px; color: white; white-space: nowrap; margin-top: 4px; }
.spec-item.accent .spec-number { color: var(--color-honda-red); }
.spec-divider { width: 1px; height: 48px; background: #e0e0e0; flex-shrink: 0; align-self: center; }
.hero-cta-group { display: flex; flex-direction: column; gap: 30px; padding: 24px 0; }
.btn-hero { display: flex; align-items: center; justify-content: space-between; width: 320px; padding: 14px 24px; }
.hero-scroll-indicator { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); z-index: 2; }
.hero-scroll-indicator span { display: block; width: 24px; height: 24px; border-right: 2px solid #777777; border-bottom: 2px solid #777777; transform: rotate(45deg); animation: scrollBounce 2s infinite; }
@keyframes scrollBounce { 0%,100% { transform: rotate(45deg) translateY(0); opacity: 1; } 50% { transform: rotate(45deg) translateY(10px); opacity: 0.5; } }

/* ===== Core Message ===== */
.core-message { position: relative; padding: 100px 0; overflow: hidden; background: #ffffff; }
.core-message-bg { position: absolute; inset: 0; background: url('../img/core-message/bg.png') no-repeat center center / cover; opacity: 0.2; pointer-events: none; }
.core-message-container { display: flex; flex-direction: column; gap: 24px; align-items: center; text-align: center; }
.core-message-title { font-family: var(--font-primary); font-size: 48px; font-weight: var(--font-weight-bold); line-height: 64px; color: #1a1a1a; }
.core-message-catch { font-size: 24px; font-weight: var(--font-weight-bold); line-height: 38.4px; color: #777777; }
.core-message-body { font-weight: 350; font-size: var(--font-size-body); line-height: 28.8px; color: #444444; text-align: center; }
.core-message-body p + p { margin-top: 8px; }

/* ===== Technology ===== */
.technology { background: #ffffff; padding: 80px 0 0; }

/* Page Hero */
.tech-page-hero { text-align: center; padding: 0 var(--container-padding); margin-bottom: 48px; }
.tech-page-title { font-family: var(--font-primary); font-size: 48px; font-weight: var(--font-weight-bold); line-height: 64px; color: #1a1a1a; }
.tech-page-sub { font-weight: 350; font-size: var(--font-size-body); line-height: 25.6px; color: #777777; margin-top: 4px; }

/* Shared section title */
.tech-section-title { font-family: var(--font-primary); font-size: 32px; font-weight: var(--font-weight-bold); line-height: 51.2px; letter-spacing: 3px; color: #1a1a1a; text-align: center; margin-bottom: 48px; }

/* --- TECHNOLOGY / 技術詳細 (grey) --- */
.tech-detail-section { background: #f5f5f5; padding: 80px 0 140px; position: relative; overflow: hidden; }
.tech-items-list { display: flex; flex-direction: column; gap: 99px; position: relative; z-index: 1; }

/* Tech item */
.tech-item { display: flex; gap: 24px; align-items: center; }
.tech-item-reverse { gap: 60px; justify-content: flex-end; padding-right: 2%; }
.tech-item-end { justify-content: flex-end; }

/* Per-image 3-sided red accent frame */
.tech-video-frame { position: relative; flex: 0 0 calc(50% - 12px); }
.tech-frame-bar {
  position: absolute;
  width: 46%;
  top: -28px;
  bottom: -28px;
  left: -16px;
  background: var(--color-honda-red);
  z-index: 0;
}
.tech-video-frame-right .tech-frame-bar {
  left: auto;
  right: -16px;
}

/* Tech video thumbnail */
.tech-video { position: relative; width: 100%; aspect-ratio: 530/298; overflow: hidden; cursor: pointer; z-index: 1; }
.tech-video img, .tech-video video { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.tech-video:hover img, .tech-video:hover video { transform: scale(1.03); }
.tech-play-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.tech-play-btn { width: 72px; height: 72px; border-radius: 36px; background: rgba(255,255,255,0.2); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); display: flex; align-items: center; justify-content: center; transition: background 0.2s ease; }
.tech-video:hover .tech-play-btn { background: rgba(255,255,255,0.35); }
.tech-play-triangle { width: 0; height: 0; border-top: 12px solid transparent; border-bottom: 12px solid transparent; border-left: 20px solid white; margin-left: 4px; }

/* Tech content */
.tech-content { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.tech-name { font-family: var(--font-heading-en); font-size: 24px; font-weight: var(--font-weight-bold); line-height: 38.4px; color: #1a1a1a; }
.spec-highlight { font-family: var(--font-heading-en); font-size: 40px; font-weight: var(--font-weight-bold); color: var(--color-honda-red); line-height: 48px; display: block; }
.tech-desc { font-weight: 350; font-size: var(--font-size-body); line-height: 28.8px; color: #444444; padding-top: 7px; }

/* --- OTHERS / その他技術 --- */
.tech-others-section { background: #ffffff; padding: 80px 0; }
.tech-section-sub { font-size: var(--font-size-body); font-weight: var(--font-weight-light); color: var(--color-text-muted); text-align: center; margin-top: 4px; margin-bottom: 24px; }
.tech-others-grid { display: flex; gap: 16px; }
.tech-detail-item { display: flex; flex-direction: column; gap: 20px; flex: 1; min-width: 0; }
.tech-video-wide { position: relative; width: 100%; aspect-ratio: 530/298; overflow: hidden; cursor: pointer; height: auto; }
.tech-video-wide img, .tech-video-wide video { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.tech-video-wide:hover img, .tech-video-wide:hover video { transform: scale(1.03); }
.tech-detail-content { display: flex; flex-direction: column; gap: 3px; }
.tech-detail-heading { font-family: var(--font-primary); font-size: 32px; font-weight: var(--font-weight-bold); line-height: 51.2px; color: #1a1a1a; text-align: center; }
.tech-detail-subheading { font-family: var(--font-heading-en); font-size: 24px; font-weight: var(--font-weight-bold); line-height: 38.4px; color: #1a1a1a; text-align: center; }
.tech-detail-desc { font-weight: 350; font-size: var(--font-size-body); line-height: 28.8px; color: #444444; padding: 20px 24px 0; }

/* --- FEATURES / 特徴 --- */
.tech-performance-section { background: #ffffff; padding: 0 0 100px; }
.fc-wrap { max-width: 1100px; margin: 0 auto; }
.fc-chart-area { position: relative; width: 100%; aspect-ratio: 1196 / 615; overflow: visible; font-size: clamp(7px, 1.05vw, 13px); }
.fc-abs { position: absolute; }
/* Backgrounds */
.fc-bg-outer { top: 14.57%; right: 7.92%; bottom: 24.23%; left: 9.04%; background: #CCD5DD; border-radius: 20px; }
.fc-bg-inner { top: 27.06%; right: 7.92%; bottom: 22.62%; left: 9.03%; background: #A6B8C8; border-radius: 20px; }
.fc-bg-robot { top: 51.7%; right: 50.77%; bottom: 27.72%; left: 16.73%; background: #6F9DC3; border-radius: 18px; }
/* Axes */
.fc-axes { top: 16.49%; right: 5.94%; bottom: 19.93%; left: 7.44%; }
.fc-axes img { width: 100%; height: 100%; }
.fc-y-arrow { top: 13.07%; right: 91.05%; bottom: 83.94%; left: 5.94%; }
.fc-y-arrow img { width: 100%; height: 100%; }
.fc-x-arrow { top: 77.14%; right: 4.4%; bottom: 17%; left: 94.07%; }
.fc-x-arrow img { width: 100%; height: 100%; }
/* Area labels */
.fc-label-y { top: 6.5%; right: 85.81%; bottom: 89.77%; left: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-primary); font-size: 1.9em; font-weight: var(--font-weight-bold); color: #1a1a1a; white-space: nowrap; }
.fc-area-label { font-family: var(--font-primary); font-size: 1.9em; font-weight: var(--font-weight-bold); color: #ffffff; line-height: 1.4; }
.fc-label-human { top: 18.63%; right: 9.4%; left: 73.47%; text-align: right; }
.fc-label-multihand { top: 29.84%; right: 9.19%; left: 65.84%; text-align: right; }
.fc-label-robot { top: 51.7%; right: 50.77%; bottom: 27.72%; left: 16.73%; display: flex; align-items: center; justify-content: center; font-size: 1.59em; white-space: nowrap; }
/* Photos */
.fc-photo { border-radius: 24px; overflow: hidden; box-shadow: 0 8px 12px 6px rgba(0,0,0,0.15), 0 4px 4px 0 rgba(0,0,0,0.3); cursor: pointer; }
.fc-photo img, .fc-photo video { width: 100%; height: 100%; object-fit: cover; display: block; }
.fc-photo::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.20); border-radius: 24px; }
.fc-photo-play { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; }
.fc-photo-play::after { content: ''; display: block; width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent #ffffff; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5)); }
.fc-photo-1 { left: 6.10%; top: 27.06%; width: 9.45%; height: 15.12%; }
.fc-photo-2 { left: 19.65%; top: 36.33%; width: 17.56%; height: 15.61%; }
.fc-photo-3 { left: 47.41%; top: 43.48%; width: 17.56%; height: 15.61%; }
.fc-photo-4 { left: 79.76%; top: 56.65%; width: 10.95%; height: 17.72%; }
/* Caption boxes */
.fc-caption { background: rgba(255,255,255,0.5); border-radius: 16px; padding: 10px 20px; font-family: var(--font-primary); font-size: 1.27em; font-weight: var(--font-weight-bold); color: #1a1a1a; white-space: nowrap; line-height: 1.25; }
.fc-caption-1 { left: 1.92%; top: 42.83%; }
.fc-caption-2 { left: 22.16%; top: 24.94%; }
.fc-caption-3 { left: 50.00%; top: 60.55%; }
.fc-caption-4 { left: 77.17%; top: 44.94%; }
/* Force scale */
.fc-force { font-family: Arial, sans-serif; font-size: 2.8em; font-weight: 700; color: #1a1a1a; transform: translateX(-50%); text-align: center; line-height: 1.2; }
.fc-force sub { font-size: 0.6em; vertical-align: baseline; }
.fc-force-label { font-family: var(--font-primary); font-size: 2.62em; font-weight: var(--font-weight-bold); color: #1a1a1a; transform: translateX(-50%); text-align: center; }
.fc-force-1 { left: 9.6%; top: 85.3%; }
.fc-force-2 { left: 26.5%; top: 85.3%; }
.fc-force-center { left: 50%; top: 89.3%; }
.fc-force-4 { left: 94.2%; top: 85.3%; }
/* Direction labels */
.fc-dir { font-family: var(--font-primary); font-size: 1.9em; font-weight: var(--font-weight-bold); color: #1a1a1a; white-space: nowrap; top: 97%; }
.fc-dir-left { left: 1.3%; }
.fc-dir-right { left: 93.4%; transform: translateX(-50%); }
.tech-performance-desc { font-weight: 350; font-size: var(--font-size-body); line-height: 28.8px; color: #444444; max-width: 596px; margin: 50px auto 20px; text-align: left; }

/* ===== Work Scenes ===== */
.work-scenes { background: var(--color-bg-secondary); padding-top: 48px; padding-bottom: 48px; overflow: hidden; }
.ws-title-block { text-align: center; margin-bottom: 32px; }
.ws-title { font-family: var(--font-heading-en); font-size: var(--font-size-h2); font-weight: var(--font-weight-bold); letter-spacing: var(--letter-spacing-heading); color: var(--color-text-primary); line-height: 1.2; }
.ws-subtitle { font-size: var(--font-size-small); color: var(--color-text-muted); margin-top: 6px; }

/* Slider wrapper */
.ws-slider-wrap { position: relative; }

/* Scrollable viewport */
.ws-viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}
.ws-viewport:active { cursor: grabbing; }
.ws-viewport::-webkit-scrollbar { display: none; }
.ws-viewport { scrollbar-width: none; }

/* Card track */
.ws-track {
  display: flex;
  gap: 48px;
  padding: 0 48px;
  width: max-content;
}

/* Individual cards */
.scene-card {
  flex: 0 0 420px;
  scroll-snap-align: start;
  cursor: pointer;
}
.scene-thumb { position: relative; overflow: hidden; border-radius: 4px; }
.scene-thumb img, .scene-thumb video { width: 100%; aspect-ratio: 16/9; object-fit: cover; transition: transform 0.4s ease; display: block; }
.scene-overlay { position: absolute; inset: 0; background: var(--color-overlay-medium); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; opacity: 0; transition: opacity 0.3s ease; }
.scene-card:hover .scene-overlay { opacity: 1; }
.scene-card:hover .scene-thumb img, .scene-card:hover .scene-thumb video { transform: scale(1.05); }
.scene-hover-text { color: var(--color-white); font-size: var(--font-size-small); text-align: center; padding: 0 16px; }
.scene-label { padding: 12px 0; font-size: var(--font-size-body); text-align: center; color: var(--color-text-primary); }

/* Navigation arrows */
.ws-arrow {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.92);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  transition: background 0.2s, box-shadow 0.2s, opacity 0.2s;
  color: var(--color-text-primary);
}
.ws-arrow:hover { background: #fff; box-shadow: 0 4px 20px rgba(0,0,0,0.2); }
.ws-arrow:disabled { opacity: 0.25; pointer-events: none; }
.ws-arrow-prev { left: 12px; }
.ws-arrow-next { right: 12px; }

/* ===== Join Us (CV) ===== */
.join-us { background: var(--color-bg-dark); padding: var(--section-padding); }
.cv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.cv-card { background: var(--color-bg-card); border: 1px solid var(--color-border); border-radius: var(--card-border-radius); padding: 48px 32px; text-align: center; transition: var(--transition-default); box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.cv-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.1); }
.cv-icon { margin-bottom: 24px; }
.cv-icon svg { width: 48px; height: 48px; margin: 0 auto; stroke: var(--color-text-secondary); fill: none; stroke-width: 1.5; }
.cv-title { font-size: var(--font-size-h4); font-weight: var(--font-weight-bold); margin-bottom: 16px; }
.cv-desc { font-size: var(--font-size-small); color: var(--color-text-muted); margin-bottom: 32px; line-height: 1.6; }

/* ===== Humanoids Summit ===== */
.humanoids-summit { background: #0d1b2e; padding: 80px 0; }
.summit-title-block { text-align: center; margin-bottom: 40px; }
.summit-heading { font-family: var(--font-heading-en); font-size: 48px; font-weight: var(--font-weight-bold); color: #fff; letter-spacing: 2px; line-height: 1.2; }
.summit-heading-sub { font-size: var(--font-size-small); color: rgba(255,255,255,0.65); margin-top: 8px; letter-spacing: 1px; }
.summit-img-link { display: block; margin-bottom: 40px; }
.summit-img-link img { width: 100%; display: block; border-radius: 12px; }
.summit-cta { text-align: center; }
.summit-cta .btn-hero { width: auto; display: inline-flex; }

/* ===== Research Papers ===== */
.research-papers { background: #fff; padding: 80px 0; }

.rp-title-block { text-align: center; margin-bottom: 48px; }
.rp-heading { font-family: var(--font-primary); font-size: 40px; font-weight: var(--font-weight-bold); color: #1a1a1a; line-height: 1.3; }
.rp-sub { font-size: var(--font-size-small); color: #888; margin-top: 8px; }

.rp-list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 48px; }

.rp-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  background: #fff;
  transition: box-shadow 0.2s ease;
}
.rp-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }

.rp-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: #f5f5f5;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rp-body { flex: 1; min-width: 0; }
.rp-author { font-size: var(--font-size-body); color: #1a1a1a; line-height: 25.6px; margin-bottom: 1px; }
.rp-title { font-size: 20px; font-weight: var(--font-weight-bold); color: #1a1a1a; line-height: 25.6px; margin-bottom: 1px; }
.rp-venue { font-size: 14px; color: #1a1a1a; line-height: 25.6px; }

.rp-link {
  flex-shrink: 0;
  color: #888;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  transition: color 0.2s ease;
}
.rp-link:hover { color: var(--color-honda-red); }

.rp-cta { text-align: center; }

/* ===== Final CTA ===== */
.final-cta {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.final-cta-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.final-cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}
.final-cta-panel {
  position: relative;
  z-index: 1;
  background: rgba(0,0,0,0.38);
  border-radius: 16px;
  padding: 56px 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  max-width: 860px;
  width: 90%;
}
.final-cta-heading {
  font-family: var(--font-heading-en);
  font-size: 56px;
  font-weight: var(--font-weight-bold);
  color: #fff;
  letter-spacing: 3px;
  text-align: center;
  line-height: 1.2;
}
.final-cta-buttons {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ===== Overseas Bases ===== */
.overseas-bases { position: relative; background: #fff; padding: 0 0 80px; overflow: hidden; }
.overseas-bases::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../img/overseas-bases/world_bg.png') no-repeat center center / contain;
  opacity: 0.15;
  pointer-events: none;
  filter: grayscale(1);
}
.overseas-title-block { text-align: center; margin-bottom: 48px; }
.overseas-heading { font-family: var(--font-primary); font-size: 40px; font-weight: var(--font-weight-bold); color: #1a1a1a; line-height: 1.3; }
.overseas-sub { font-size: var(--font-size-small); color: #777; margin-top: 8px; }
.overseas-grid { display: flex; gap: 24px; justify-content: center; }
.overseas-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 25px;
  flex: 1;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s ease;
}
.overseas-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.10); }
.overseas-flag { flex-shrink: 0; width: 64px; height: 64px; border-radius: 8px; object-fit: cover; }
.overseas-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.overseas-country { font-size: var(--font-size-body); font-weight: var(--font-weight-bold); color: #1a1a1a; }
.overseas-org { font-size: var(--font-size-body); font-weight: 350; color: #444; }
.overseas-icon { flex-shrink: 0; color: #888; display: flex; align-items: center; }

/* ===== Links ===== */
.links-section { background: var(--color-bg-tertiary); padding: 40px 0; }
.links-inner { display: flex; align-items: center; gap: 40px; max-width: var(--container-width); margin: 0 auto; padding: var(--container-padding); flex-wrap: wrap; }
.links-label { font-weight: var(--font-weight-bold); letter-spacing: 2px; }
.links-inner a { font-size: var(--font-size-small); color: var(--color-text-muted); transition: var(--transition-default); }
.links-inner a:hover { color: var(--color-honda-red); }