/* ==========================================================================
   Shanghai Qiangtu Japan Office - Design System & Stylesheet (Updated v3)
   ========================================================================== */

/* --- 1. Variables & Global Reset --- */
:root {
  --color-bg-darker: #060912;
  --color-bg-dark: #0a0f1d;
  --color-bg-light: #111a30;
  --color-card-bg: rgba(16, 25, 48, 0.65);
  
  --color-primary: #0ea5e9;       /* Cyan Blue */
  --color-primary-glow: rgba(14, 165, 233, 0.15);
  --color-secondary: #00f2fe;     /* Electric Cyan */
  --color-gold: #fbbf24;          /* Accent Gold */
  --color-gold-glow: rgba(251, 191, 36, 0.15);
  
  --color-text-main: #f8fafc;
  --color-text-sub: #94a3b8;
  --color-text-muted: #64748b;
  
  --border-glass: 1px solid rgba(255, 255, 255, 0.05);
  --border-glow: 1px solid rgba(14, 165, 233, 0.2);
  
  --font-family: 'Inter', 'Noto Sans JP', -apple-system, sans-serif;
  
  --transition-smooth: all 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.25s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--color-bg-darker);
  color: var(--color-text-main);
  overflow-x: hidden;
}

body {
  font-family: var(--font-family);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

/* --- 2. Common Layout Elements --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 8rem 0;
  position: relative;
}

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

/* --- 3. Custom Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg-darker);
}
::-webkit-scrollbar-thumb {
  background: var(--color-bg-light);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* --- 4. Navigation Bar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(6, 9, 18, 0.75);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: var(--border-glass);
  transition: var(--transition-fast);
}

.navbar.scrolled {
  background: rgba(6, 9, 18, 0.92);
  padding: 0.4rem 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.2rem 1.5rem;
}

.logo {
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, #fff, var(--color-text-sub));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-sub {
  font-size: 0.65rem;
  color: var(--color-primary);
  font-weight: 600;
  letter-spacing: 0.12em;
  margin-top: 0.1rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text-sub);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-text-main);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  transition: var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-btn {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.6rem 1.4rem;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #000;
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.25);
}

.nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.45);
}

/* Mobile Toggle */
.menu-toggle {
  display: none;
  cursor: pointer;
}

.menu-toggle .bar {
  display: block;
  width: 24px;
  height: 2px;
  margin: 6px auto;
  transition: var(--transition-fast);
  background-color: var(--color-text-main);
}

/* --- 5. Hero Section --- */
.hero {
  height: 100vh;
  min-height: 650px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('images/factory_interior.png?v=2');
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 0;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(6, 9, 18, 0.35) 0%, rgba(6, 9, 18, 0.9) 75%);
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 850px;
  padding: 0 1.5rem;
}

.badge {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  background: rgba(14, 165, 233, 0.1);
  color: var(--color-primary);
  border: 1px solid rgba(14, 165, 233, 0.25);
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #ffffff 65%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.15rem;
  color: var(--color-text-sub);
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.btn-primary {
  padding: 0.95rem 2.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #000;
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(14, 165, 233, 0.5);
}

.btn-secondary {
  padding: 0.95rem 2.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: var(--border-glass);
  color: var(--color-text-main);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 10;
  opacity: 0.6;
}

.mouse {
  width: 22px;
  height: 36px;
  border-radius: 12px;
  border: 2px solid var(--color-text-muted);
  position: relative;
}

.wheel {
  width: 4px;
  height: 8px;
  background-color: var(--color-primary);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollMouse 2s infinite;
}

.scroll-text {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--color-text-muted);
}

@keyframes scrollMouse {
  0% { opacity: 0; top: 6px; }
  15% { opacity: 1; }
  50% { opacity: 1; top: 18px; }
  100% { opacity: 0; top: 18px; }
}

/* --- 6. Section Headers --- */
.section-header {
  margin-bottom: 4.5rem;
  max-width: 750px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  display: block;
}

.section-header h2 {
  font-size: 2.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
  color: #fff;
  line-height: 1.35;
}

.subtitle {
  font-size: 1.05rem;
  color: var(--color-text-sub);
}

/* --- 7. About Section --- */
.about {
  background-color: var(--color-bg-dark);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h3 {
  font-size: 1.55rem;
  margin-bottom: 1.2rem;
  color: #fff;
  line-height: 1.4;
}

.about-text p {
  color: var(--color-text-sub);
  margin-bottom: 1.5rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.stat-card {
  padding: 1.2rem 1rem;
  border-radius: 4px;
  background: var(--color-card-bg);
  border: var(--border-glass);
  text-align: center;
}

.stat-num {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-primary);
  display: inline-block;
  line-height: 1;
}

.stat-unit {
  font-size: 0.95rem;
  color: var(--color-primary);
  margin-left: 0.1rem;
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
  font-weight: 500;
}

.glass-card-image {
  position: relative;
  border-radius: 6px;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: var(--border-glass);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

.img-responsive.rounded {
  border-radius: 4px;
}

.image-badge {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  background: rgba(6, 9, 18, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: var(--border-glow);
  padding: 0.8rem 1.2rem;
  border-radius: 4px;
  max-width: 220px;
}

.badge-title {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-secondary);
}

.badge-desc {
  display: block;
  font-size: 0.7rem;
  color: var(--color-text-sub);
}

/* --- 8. Pillars Section --- */
.pillars {
  background-color: var(--color-bg-darker);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.pillar-card {
  padding: 3rem 2.5rem;
  border-radius: 6px;
  background: var(--color-card-bg);
  border: var(--border-glass);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  opacity: 0;
  transition: var(--transition-fast);
}

.pillar-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35), 0 0 25px rgba(14, 165, 233, 0.15);
  border-color: rgba(14, 165, 233, 0.25);
}

.pillar-card:hover::before {
  opacity: 1;
}

.pillar-icon-box {
  width: 55px;
  height: 55px;
  border-radius: 4px;
  background: rgba(14, 165, 233, 0.06);
  border: var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  margin-bottom: 2rem;
}

.pillar-icon-box svg {
  width: 26px;
  height: 26px;
}

.pillar-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
}

.pillar-sub {
  font-size: 0.8rem;
  color: var(--color-primary);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 1.2rem;
}

.pillar-card p {
  color: var(--color-text-sub);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* --- 9. Products Section --- */
.products {
  background-color: var(--color-bg-dark);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

.product-card {
  background: var(--color-card-bg);
  border: var(--border-glass);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  transition: var(--transition-smooth);
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(14, 165, 233, 0.25);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35), 0 0 20px rgba(14, 165, 233, 0.1);
}

.product-img-box {
  position: relative;
  overflow: hidden;
  height: 300px;
  border-bottom: var(--border-glass);
  /* 白背景を自然に馴染ませるための上品なシルバーグレーのグラデーション背景 */
  background: radial-gradient(circle at center, #ffffff 30%, #f8fafc 70%, #f1f5f9 100%);
  /* ディスプレイケースのような奥行き感を与えるインセットシャドウ */
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-img-box img {
  width: 90%;
  height: 90%;
  object-fit: contain;
  padding: 1rem;
  /* 画像の白背景を透過させ、グラデーション背景に完全に融合 */
  mix-blend-mode: multiply;
  filter: contrast(1.02) brightness(0.98);
  transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.product-card:hover .product-img-box img {
  transform: scale(1.08);
}

/* 製品ホバー時オーバーレイ */
.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.product-overlay span {
  background: rgba(14, 165, 233, 0.9);
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
  transform: translateY(10px);
  transition: transform 0.3s ease;
}

.product-card:hover .product-overlay {
  opacity: 1;
}

.product-card:hover .product-overlay span {
  transform: translateY(0);
}

.product-info {
  padding: 2.5rem;
}

.prod-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  display: block;
}

.product-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.2rem;
  line-height: 1.4;
}

.product-info p {
  font-size: 0.92rem;
  color: var(--color-text-sub);
  line-height: 1.7;
}

/* --- 10. Partners Section --- */
.partners {
  background-color: var(--color-bg-darker);
}

.major-partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.partner-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.partner-tag {
  background-color: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(14, 165, 233, 0.3);
  color: var(--color-primary, #0ea5e9);
  border-radius: 4px;
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
}

.partner-year {
  font-size: 0.75rem;
  color: var(--color-text-sub, #94a3b8);
  font-weight: 500;
}

.partner-hero-card {
  padding: 3rem 2.5rem;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(16, 25, 48, 0.7) 0%, rgba(9, 13, 26, 0.7) 100%);
  border: var(--border-glass);
  position: relative;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
  transition: var(--transition-smooth);
}

.partner-hero-card::after {
  content: '';
  position: absolute;
  top: 15px;
  right: 15px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-primary);
  box-shadow: 0 0 10px var(--color-primary);
  opacity: 0.8;
}

.partner-hero-card:hover {
  border-color: rgba(14, 165, 233, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

.partner-header {
  margin-bottom: 1.5rem;
}

.partner-header .category {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.partner-header h4 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-top: 0.3rem;
  color: #fff;
  letter-spacing: 0.01em;
}

.partner-desc {
  color: var(--color-text-sub);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- 11. Team Section --- */
.team {
  background-color: var(--color-bg-dark);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3.5rem 2.5rem;
}

.team-card {
  display: flex;
  flex-direction: row;
  gap: 2.5rem;
  padding: 3rem 2.5rem;
  background: linear-gradient(135deg, rgba(16, 25, 48, 0.8) 0%, rgba(9, 13, 26, 0.85) 100%);
  border: var(--border-glass);
  border-radius: 8px;
  align-items: flex-start;
  transition: var(--transition-smooth);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.team-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 20%, rgba(14, 165, 233, 0.08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.team-card:hover {
  border-color: rgba(14, 165, 233, 0.35);
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.45), 0 0 30px rgba(14, 165, 233, 0.2);
}

.team-card:hover::after {
  opacity: 1;
}

.avatar-container {
  flex-shrink: 0;
  width: 165px; /* アスペクト比 3:4 */
  height: 220px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(14, 165, 233, 0.3);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  background-color: #0d1527;
  position: relative;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-card:hover .avatar-img {
  transform: scale(1.08);
}

.team-info {
  flex-grow: 1;
}

.team-header-row {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}

.team-info .title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.05em;
  display: inline-block;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.4;
}

.team-info h4 {
  font-size: 1.55rem;
  font-weight: 700;
  margin: 0;
  color: #fff;
}

.team-info .message {
  font-size: 0.95rem;
  color: var(--color-text-sub);
  line-height: 1.8;
}

/* --- 12. Headquarters & Equipment --- */
.headquarters {
  background-color: var(--color-bg-darker);
}

.hq-content-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr;
  gap: 4rem;
  margin-bottom: 5rem;
}

.hq-desc h3, .hq-equipment h3 {
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #fff;
}

.hq-desc p {
  color: var(--color-text-sub);
  margin-bottom: 1.5rem;
}

/* --- 13. Business Scheme (Matrix UI) --- */
.scheme-section {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.business-scheme-container {
  background: var(--color-bg-light);
  border-radius: 16px;
  border: var(--border-glass);
  padding: 3.5rem 2rem;
  box-shadow: var(--shadow-glass);
  backdrop-filter: blur(10px);
}

/* PC用マトリクス表示 */
.scheme-matrix-view {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.5rem;
  margin-top: 4rem;
  position: relative;
}

/* アクター列 */
.matrix-actors-col {
  display: grid;
  grid-template-rows: repeat(4, 90px);
  gap: 1rem;
  padding-top: 130px; /* ステップヘッダー分の余白 */
  z-index: 2;
}

.actor-header-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
  height: 70px;
  align-self: center;
}

.actor-header-card.actor-customer:hover {
  border-color: rgba(255, 122, 0, 0.4);
  box-shadow: 0 0 15px rgba(255, 122, 0, 0.15);
  background: rgba(255, 122, 0, 0.02);
}
.actor-header-card.actor-afar:hover {
  border-color: rgba(0, 242, 254, 0.4);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.15);
  background: rgba(0, 242, 254, 0.02);
}
.actor-header-card.actor-shanghai:hover {
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.15);
  background: rgba(168, 85, 247, 0.02);
}
.actor-header-card.actor-supplier:hover {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
  background: rgba(16, 185, 129, 0.02);
}

.actor-icon {
  font-size: 1.25rem;
}

.actor-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
}

/* グリッド盤面 */
.matrix-grid-board {
  position: relative;
  display: grid;
  grid-template-rows: repeat(4, 90px);
  gap: 1rem;
  padding-top: 130px;
}

/* 横背景ライン */
.matrix-horizontal-lines {
  position: absolute;
  top: 130px;
  bottom: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-rows: repeat(4, 90px);
  gap: 1rem;
  pointer-events: none;
}

.horizontal-line {
  height: 2px;
  background: rgba(255, 255, 255, 0.04);
  align-self: center;
  position: relative;
}

.horizontal-line::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 242, 254, 0), rgba(0, 242, 254, 0.15) 50%, rgba(0, 242, 254, 0));
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* ステップ列 */
.matrix-steps-columns {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
}

/* 個別列 */
.matrix-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* 支援バッジエリア */
.support-area {
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  position: relative;
}

.support-area.area-top {
  margin-bottom: 0.5rem;
}

.support-area.area-bottom {
  margin-top: 0.5rem;
}

.support-badge-neon {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  text-align: center;
  white-space: nowrap;
  letter-spacing: 0.05em;
  opacity: 0.4;
  transform: scale(0.95);
  transition: all 0.3s ease;
}

/* カラーバリエーション */
.badge-blue {
  background: rgba(0, 242, 254, 0.05);
  border: 1px solid rgba(0, 242, 254, 0.2);
  color: var(--color-primary);
}
.badge-orange {
  background: rgba(255, 160, 0, 0.05);
  border: 1px solid rgba(255, 160, 0, 0.2);
  color: #ffa000;
}
.badge-green {
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #10b981;
}
.badge-purple {
  background: rgba(139, 92, 246, 0.05);
  border: 1px solid rgba(139, 92, 246, 0.2);
  color: #8b5cf6;
}
.badge-red {
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #ef4444;
}
.badge-pink {
  background: rgba(236, 72, 153, 0.05);
  border: 1px solid rgba(236, 72, 153, 0.2);
  color: #ec4899;
}

/* ステップカードトリガー */
.step-trigger-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  width: 90%;
  height: 70px;
  transition: all 0.3s ease;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding: 0.25rem;
}

.step-num-neon {
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.1em;
  line-height: 1;
}

.step-title-neon {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-sub);
  margin-top: 0.2rem;
  transition: color 0.3s ease;
}

/* ノード線路トラック */
.matrix-nodes-track {
  flex: 1;
  position: relative;
  width: 100%;
  display: grid;
  grid-template-rows: repeat(4, 90px);
  gap: 1rem;
}

/* 縦の接続線 */
.vertical-track-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(255, 255, 255, 0.04);
  transform: translateX(-50%);
  pointer-events: none;
  transition: all 0.3s ease;
  overflow: hidden;
}

/* 上から下へ光が流れるフロー線 */
.vertical-track-line.flow-down::after {
  content: '';
  position: absolute;
  top: -100px;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--color-primary), transparent);
  animation: flow-down-anim 2.5s infinite linear;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* 下から上へ光が流れるフロー線 */
.vertical-track-line.flow-up::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(to top, transparent, var(--color-primary), transparent);
  animation: flow-up-anim 2.5s infinite linear;
  opacity: 0;
  transition: opacity 0.3s ease;
}

@keyframes flow-down-anim {
  0% { top: -100px; }
  100% { top: 100%; }
}

@keyframes flow-up-anim {
  0% { bottom: -100px; }
  100% { bottom: 100%; }
}

/* 交点ノードの基本状態 */
.matrix-node {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #0b0f19;
  border: 2px solid rgba(255, 255, 255, 0.15);
  justify-self: center;
  align-self: center;
  z-index: 2;
  position: relative;
  transition: all 0.3s ease;
}

/* 主担当 (active-main) の標準状態 - アクター別カラーリング */
.matrix-node.active-main[data-actor="customer"] {
  border-color: #ffffff;
  background: #ff7a00;
  box-shadow: 0 0 10px rgba(255, 122, 0, 0.8);
}
.matrix-node.active-main[data-actor="afar"] {
  border-color: #ffffff;
  background: var(--color-primary);
  box-shadow: 0 0 10px var(--color-primary);
}
.matrix-node.active-main[data-actor="shanghai"] {
  border-color: #ffffff;
  background: #a855f7;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.8);
}
.matrix-node.active-main[data-actor="supplier"] {
  border-color: #ffffff;
  background: #10b981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.8);
}

/* サポート (active-sub) の標準状態 - アクター別カラーリング */
.matrix-node.active-sub[data-actor="customer"] {
  border-color: rgba(255, 122, 0, 0.4);
  background: rgba(11, 15, 25, 0.8);
  box-shadow: 0 0 4px rgba(255, 122, 0, 0.2);
}
.matrix-node.active-sub[data-actor="afar"] {
  border-color: rgba(0, 242, 254, 0.4);
  background: rgba(11, 15, 25, 0.8);
  box-shadow: 0 0 4px rgba(0, 242, 254, 0.2);
}
.matrix-node.active-sub[data-actor="shanghai"] {
  border-color: rgba(168, 85, 247, 0.4);
  background: rgba(11, 15, 25, 0.8);
  box-shadow: 0 0 4px rgba(168, 85, 247, 0.2);
}
.matrix-node.active-sub[data-actor="supplier"] {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(11, 15, 25, 0.8);
  box-shadow: 0 0 4px rgba(16, 185, 129, 0.2);
}

/* ツールチップ効果 */
.matrix-node[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 140%;
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  background: rgba(10, 15, 30, 0.95);
  border: 1px solid rgba(0, 242, 254, 0.3);
  color: #fff;
  padding: 0.4rem 0.75rem;
  font-size: 0.7rem;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  transition: all 0.2s ease;
  z-index: 10;
}

.matrix-node.active-main:hover::after,
.matrix-node.active-sub:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ホバー/アクティブ状態のスタイル適用 */
.matrix-column.active .step-trigger-card,
.matrix-column:hover .step-trigger-card {
  background: rgba(255, 255, 255, 0.01);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
}

/* 各ステップのヘッダーカードの色を主担当のアクターの色に連動させる */
.matrix-column[data-step="1"].active .step-trigger-card,
.matrix-column[data-step="1"]:hover .step-trigger-card {
  border-color: #00f2fe;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}
.matrix-column[data-step="2"].active .step-trigger-card,
.matrix-column[data-step="2"]:hover .step-trigger-card {
  border-color: #ff7a00;
  box-shadow: 0 0 15px rgba(255, 122, 0, 0.2);
}
.matrix-column[data-step="3"].active .step-trigger-card,
.matrix-column[data-step="3"]:hover .step-trigger-card {
  border-color: #a855f7;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.2);
}
.matrix-column[data-step="4"].active .step-trigger-card,
.matrix-column[data-step="4"]:hover .step-trigger-card {
  border-color: #10b981;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}
.matrix-column[data-step="5"].active .step-trigger-card,
.matrix-column[data-step="5"]:hover .step-trigger-card {
  border-color: #00f2fe;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}
.matrix-column[data-step="6"].active .step-trigger-card,
.matrix-column[data-step="6"]:hover .step-trigger-card {
  border-color: #00f2fe;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}
.matrix-column[data-step="7"].active .step-trigger-card,
.matrix-column[data-step="7"]:hover .step-trigger-card {
  border-color: #00f2fe;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

.matrix-column.active .step-num-neon,
.matrix-column:hover .step-num-neon {
  color: var(--color-primary);
  text-shadow: 0 0 8px rgba(0, 242, 254, 0.5);
}

/* ホバー時の番号カラーもアクター別に連動 */
.matrix-column[data-step="1"].active .step-num-neon, .matrix-column[data-step="1"]:hover .step-num-neon { color: #00f2fe; text-shadow: 0 0 8px rgba(0, 242, 254, 0.5); }
.matrix-column[data-step="2"].active .step-num-neon, .matrix-column[data-step="2"]:hover .step-num-neon { color: #ff7a00; text-shadow: 0 0 8px rgba(255, 122, 0, 0.5); }
.matrix-column[data-step="3"].active .step-num-neon, .matrix-column[data-step="3"]:hover .step-num-neon { color: #a855f7; text-shadow: 0 0 8px rgba(168, 85, 247, 0.5); }
.matrix-column[data-step="4"].active .step-num-neon, .matrix-column[data-step="4"]:hover .step-num-neon { color: #10b981; text-shadow: 0 0 8px rgba(16, 185, 129, 0.5); }
.matrix-column[data-step="5"].active .step-num-neon, .matrix-column[data-step="5"]:hover .step-num-neon { color: #00f2fe; text-shadow: 0 0 8px rgba(0, 242, 254, 0.5); }
.matrix-column[data-step="6"].active .step-num-neon, .matrix-column[data-step="6"]:hover .step-num-neon { color: #00f2fe; text-shadow: 0 0 8px rgba(0, 242, 254, 0.5); }
.matrix-column[data-step="7"].active .step-num-neon, .matrix-column[data-step="7"]:hover .step-num-neon { color: #00f2fe; text-shadow: 0 0 8px rgba(0, 242, 254, 0.5); }

.matrix-column.active .step-title-neon,
.matrix-column:hover .step-title-neon {
  color: #fff;
}

.matrix-column.active .vertical-track-line,
.matrix-column:hover .vertical-track-line {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.1);
}

/* 縦線の流れる色もアクター別に連動 */
.matrix-column[data-step="1"].active .vertical-track-line.flow-down::after, .matrix-column[data-step="1"]:hover .vertical-track-line.flow-down::after { background: linear-gradient(to bottom, transparent, #00f2fe, transparent); }
.matrix-column[data-step="2"].active .vertical-track-line.flow-down::after, .matrix-column[data-step="2"]:hover .vertical-track-line.flow-down::after { background: linear-gradient(to bottom, transparent, #ff7a00, transparent); }
.matrix-column[data-step="3"].active .vertical-track-line.flow-up::after, .matrix-column[data-step="3"]:hover .vertical-track-line.flow-up::after { background: linear-gradient(to top, transparent, #a855f7, transparent); }
.matrix-column[data-step="4"].active .vertical-track-line.flow-up::after, .matrix-column[data-step="4"]:hover .vertical-track-line.flow-up::after { background: linear-gradient(to top, transparent, #10b981, transparent); }
.matrix-column[data-step="5"].active .vertical-track-line.flow-up::after, .matrix-column[data-step="5"]:hover .vertical-track-line.flow-up::after { background: linear-gradient(to top, transparent, #00f2fe, transparent); }
.matrix-column[data-step="6"].active .vertical-track-line.flow-up::after, .matrix-column[data-step="6"]:hover .vertical-track-line.flow-up::after { background: linear-gradient(to top, transparent, #00f2fe, transparent); }
.matrix-column[data-step="7"].active .vertical-track-line.flow-up::after, .matrix-column[data-step="7"]:hover .vertical-track-line.flow-up::after { background: linear-gradient(to top, transparent, #00f2fe, transparent); }

.matrix-column.active .vertical-track-line.flow-down::after,
.matrix-column:hover .vertical-track-line.flow-down::after,
.matrix-column.active .vertical-track-line.flow-up::after,
.matrix-column:hover .vertical-track-line.flow-up::after {
  opacity: 1;
}

/* ホバー/アクティブ時のノード拡張スタイル（アクター別） */
.matrix-column.active .matrix-node.active-main[data-actor="customer"],
.matrix-column:hover .matrix-node.active-main[data-actor="customer"] {
  background: #ff7a00;
  border-color: #fff;
  box-shadow: 0 0 16px #ff7a00, 0 0 30px rgba(255, 122, 0, 0.4);
  transform: scale(1.3);
  animation: pulse-customer 1.5s infinite alternate;
}
.matrix-column.active .matrix-node.active-main[data-actor="afar"],
.matrix-column:hover .matrix-node.active-main[data-actor="afar"] {
  background: var(--color-primary);
  border-color: #fff;
  box-shadow: 0 0 16px var(--color-primary), 0 0 30px rgba(0, 242, 254, 0.4);
  transform: scale(1.3);
  animation: pulse-afar 1.5s infinite alternate;
}
.matrix-column.active .matrix-node.active-main[data-actor="shanghai"],
.matrix-column:hover .matrix-node.active-main[data-actor="shanghai"] {
  background: #a855f7;
  border-color: #fff;
  box-shadow: 0 0 16px #a855f7, 0 0 30px rgba(168, 85, 247, 0.4);
  transform: scale(1.3);
  animation: pulse-shanghai 1.5s infinite alternate;
}
.matrix-column.active .matrix-node.active-main[data-actor="supplier"],
.matrix-column:hover .matrix-node.active-main[data-actor="supplier"] {
  background: #10b981;
  border-color: #fff;
  box-shadow: 0 0 16px #10b981, 0 0 30px rgba(16, 185, 129, 0.4);
  transform: scale(1.3);
  animation: pulse-supplier 1.5s infinite alternate;
}

.matrix-column.active .matrix-node.active-sub[data-actor="customer"],
.matrix-column:hover .matrix-node.active-sub[data-actor="customer"] {
  background: rgba(255, 122, 0, 0.3);
  border-color: #ff7a00;
  box-shadow: 0 0 10px rgba(255, 122, 0, 0.4);
  transform: scale(1.15);
}
.matrix-column.active .matrix-node.active-sub[data-actor="afar"],
.matrix-column:hover .matrix-node.active-sub[data-actor="afar"] {
  background: rgba(0, 242, 254, 0.3);
  border-color: var(--color-primary);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.4);
  transform: scale(1.15);
}

@keyframes pulse-main {
  0% {
    box-shadow: 0 0 10px var(--color-primary), 0 0 15px rgba(0, 242, 254, 0.4);
  }
  100% {
    box-shadow: 0 0 20px var(--color-primary), 0 0 35px rgba(0, 242, 254, 0.6), 0 0 5px rgba(255, 255, 255, 0.8);
  }
}

.matrix-column.active .support-badge-neon,
.matrix-column:hover .support-badge-neon {
  opacity: 1;
  transform: scale(1);
}

/* PC用詳細パネル（ガラスモーフィズム） */
.matrix-detail-glass {
  margin-top: 3rem;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  position: relative;
  min-height: 180px;
  display: flex;
  align-items: center;
  backdrop-filter: blur(8px);
}

.matrix-detail-card {
  display: none;
  width: 100%;
  animation: cardFadeIn 0.5s ease forwards;
}

.matrix-detail-card.active {
  display: block;
}

.detail-step-lbl {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.1em;
  display: inline-block;
  margin-bottom: 0.4rem;
}

.matrix-detail-card h3 {
  font-size: 1.4rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.matrix-detail-card p {
  font-size: 0.95rem;
  color: var(--color-text-sub);
  line-height: 1.7;
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* モバイル表示（スマホ用タイムライン） */
.scheme-mobile-timeline {
  display: none;
  position: relative;
  padding-left: 2rem;
  margin-top: 3rem;
}

.mobile-timeline-line {
  position: absolute;
  left: 9px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-primary), var(--color-secondary));
  box-shadow: 0 0 8px rgba(0, 242, 254, 0.4);
}

.mobile-timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.mobile-timeline-item:last-child {
  margin-bottom: 0;
}

.mobile-timeline-badge {
  position: absolute;
  left: -33px;
  top: 10px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-bg-darker);
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  box-shadow: 0 0 8px rgba(0, 242, 254, 0.4);
  z-index: 2;
}

.mobile-timeline-card {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.mobile-card-main {
  margin-bottom: 1.25rem;
}

.mobile-step-lbl {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.2rem;
}

.mobile-card-main h3 {
  font-size: 1.15rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.mobile-card-main p {
  font-size: 0.85rem;
  color: var(--color-text-sub);
  line-height: 1.6;
}

.mobile-support-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.mobile-tag {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
}

/* スマホ用アクターバッジ */
.mobile-card-actors {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 1rem;
}

.mobile-card-actors .actors-lbl {
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.actors-list-mini {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.actor-badge-mini {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.2rem 0.45rem;
  border-radius: 3px;
  opacity: 0.5;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.actor-badge-mini.active-main {
  opacity: 1;
  border-style: solid;
}

.actor-badge-mini.active-sub {
  opacity: 0.7;
  border-style: dashed;
}

.actor-badge-mini.active-main.actor-customer {
  background: rgba(255, 122, 0, 0.15);
  border: 1px solid rgba(255, 122, 0, 0.6);
  color: #ff7a00;
  box-shadow: 0 0 8px rgba(255, 122, 0, 0.2);
}
.actor-badge-mini.active-sub.actor-customer {
  background: rgba(255, 122, 0, 0.04);
  border: 1px dashed rgba(255, 122, 0, 0.3);
  color: rgba(255, 122, 0, 0.8);
}

.actor-badge-mini.active-main.actor-afar {
  background: rgba(0, 242, 254, 0.15);
  border: 1px solid rgba(0, 242, 254, 0.6);
  color: #00f2fe;
  box-shadow: 0 0 8px rgba(0, 242, 254, 0.2);
}
.actor-badge-mini.active-sub.actor-afar {
  background: rgba(0, 242, 254, 0.04);
  border: 1px dashed rgba(0, 242, 254, 0.3);
  color: rgba(0, 242, 254, 0.8);
}

.actor-badge-mini.active-main.actor-shanghai {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.6);
  color: #a855f7;
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.2);
}
.actor-badge-mini.active-sub.actor-shanghai {
  background: rgba(168, 85, 247, 0.04);
  border: 1px dashed rgba(168, 85, 247, 0.3);
  color: rgba(168, 85, 247, 0.8);
}

.actor-badge-mini.active-main.actor-supplier {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.6);
  color: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.2);
}
.actor-badge-mini.active-sub.actor-supplier {
  background: rgba(16, 185, 129, 0.04);
  border: 1px dashed rgba(16, 185, 129, 0.3);
  color: rgba(16, 185, 129, 0.8);
}

.actor-badge-mini.disabled {
  opacity: 0.25;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.3);
  text-decoration: line-through;
}

/* レスポンシブ切り替え */
@media (max-width: 992px) {
  .scheme-matrix-view {
    grid-template-columns: 160px 1fr;
  }
  .actor-header-card {
    padding: 0.5rem;
  }
  .actor-name {
    font-size: 0.75rem;
  }
}

@media (max-width: 768px) {
  .scheme-matrix-view, .matrix-detail-glass {
    display: none;
  }
  .scheme-mobile-timeline {
    display: block;
  }
}

/* 設備テーブル */
.table-container {
  width: 100%;
  overflow-x: auto;
  border-radius: 6px;
  border: var(--border-glass);
  background: var(--color-card-bg);
}

.equipment-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.equipment-table th, .equipment-table td {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.equipment-table th {
  background-color: rgba(255, 255, 255, 0.02);
  color: #fff;
  font-weight: 600;
}

.equipment-table td {
  color: var(--color-text-sub);
}

.equipment-table tr:last-child td {
  border-bottom: none;
}

/* 設備ギャラリー */
.equipment-gallery {
  margin-top: 6rem;
  margin-bottom: 6rem;
}

.equipment-gallery h3 {
  font-size: 1.45rem;
  text-align: center;
  margin-bottom: 3rem;
  color: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.gallery-card {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  border: var(--border-glass);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  aspect-ratio: 4 / 3;
  background-color: #0d1527;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-card:hover img {
  transform: scale(1.08);
}

.gallery-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1rem;
  background: linear-gradient(to top, rgba(6, 9, 18, 0.95) 50%, rgba(6, 9, 18, 0.4) 100%);
  border-top: var(--border-glass);
}

.gallery-info h5 {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.1rem;
}

.gallery-info p {
  font-size: 0.72rem;
  color: var(--color-text-sub);
}

/* 受賞・認証実績ギャラリー */
.awards-gallery {
  margin-top: 6rem;
  margin-bottom: 6rem;
}

.awards-gallery h3 {
  font-size: 1.45rem;
  text-align: center;
  margin-bottom: 3.5rem;
  color: #fff;
}

.awards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.award-card {
  padding: 2rem;
  background: #fff;
  color: #000;
  border-radius: 6px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  text-align: center;
  transition: var(--transition-smooth);
}

.award-card img {
  height: 180px;
  object-fit: contain;
  margin: 0 auto 1.5rem auto;
  transition: transform 0.4s ease;
}

.award-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(14, 165, 233, 0.25);
}

.award-card:hover img {
  transform: scale(1.04);
}

.award-card h5 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: #1e293b;
}

.award-card p {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.5;
}

/* 当社の歩み（タイムライン刷新） */
.milestones {
  padding-top: 5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.milestones-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 5rem;
  align-items: flex-start;
}

.milestones-content-left h3 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  color: #fff;
}

.history-timeline {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-left: 1rem;
}

/* タイムラインの縦線 */
.history-timeline::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 28px;
  width: 2px;
  height: calc(100% - 40px);
  background: linear-gradient(to bottom, var(--color-primary) 0%, rgba(14, 165, 233, 0.2) 100%);
  z-index: 1;
}

.history-item {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
  position: relative;
  z-index: 2;
}

.history-item:last-child {
  margin-bottom: 1.5rem;
}

.history-number {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 15px rgba(14, 165, 233, 0.2);
  transition: var(--transition-fast);
}

.history-item:hover .history-number {
  background: var(--color-primary);
  color: #000;
  box-shadow: 0 0 20px var(--color-primary);
}

.history-text h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.history-text p {
  font-size: 0.95rem;
  color: var(--color-text-sub);
  line-height: 1.7;
}

.history-footer {
  font-size: 0.95rem;
  color: var(--color-text-sub);
  line-height: 1.75;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  margin-top: 3rem;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.history-image-wrapper {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: var(--border-glass);
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.5);
  background: #080d1a;
  padding: 0.5rem;
}

.history-image-wrapper img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.history-image-wrapper:hover img {
  transform: scale(1.03);
}

/* --- 13. Contact Section --- */
.contact {
  background-color: var(--color-bg-dark);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: center;
}

.contact-info h2 {
  font-size: 2.3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #fff;
}

.contact-info p {
  color: var(--color-text-sub);
  margin-bottom: 1.5rem;
}

.office-details-box {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 2rem;
}

.office-group h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.4rem;
}

.office-sub {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 0.8rem;
  display: block;
}

.detail-item {
  font-size: 0.9rem;
  color: var(--color-text-sub);
  margin-bottom: 0.6rem;
}

.detail-item strong {
  color: #fff;
  width: 90px;
  display: inline-block;
}

.contact-link {
  color: var(--color-gold);
  text-decoration: none;
  transition: var(--transition-smooth);
  border-bottom: 1px dotted transparent;
}

.contact-link:hover {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.glass-form {
  padding: 3rem;
  background: var(--color-card-bg);
  border: var(--border-glass);
  border-radius: 6px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-sub);
  margin-bottom: 0.5rem;
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(7, 10, 19, 0.55);
  border: var(--border-glass);
  border-radius: 4px;
  color: #fff;
  font-family: var(--font-family);
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 10px rgba(14, 165, 233, 0.2);
}

.btn-submit {
  width: 100%;
  padding: 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #000;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border: none;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.25);
  transition: var(--transition-fast);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.45);
}

/* --- 14. Footer --- */
.footer {
  background-color: var(--color-bg-darker);
  border-top: var(--border-glass);
  padding: 5rem 0 3rem 0;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 4rem;
}

.footer-logo h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
}

.footer-logo p {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 0.3rem;
}

.footer-links {
  display: flex;
  gap: 2.5rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--color-text-sub);
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 2rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.copyright {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.iso-label {
  font-size: 0.72rem;
  color: var(--color-primary);
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* --- 15. Scroll Reveal Animation Classes (Highly Advanced v4) --- */
/* Cartazero & Box1 のような、滑らかで高級感のあるブラー＋スケール＋スライドフェード */
.reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.97);
  filter: blur(10px);
  transition: opacity 1.0s cubic-bezier(0.19, 1, 0.22, 1),
              transform 1.0s cubic-bezier(0.19, 1, 0.22, 1),
              filter 1.0s cubic-bezier(0.19, 1, 0.22, 1);
  will-change: opacity, transform, filter;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* 左右スライドリビールの最適化 */
.reveal-left {
  opacity: 0;
  transform: translateX(-40px) scale(0.98);
  filter: blur(8px);
  transition: opacity 1.0s cubic-bezier(0.19, 1, 0.22, 1),
              transform 1.0s cubic-bezier(0.19, 1, 0.22, 1),
              filter 1.0s cubic-bezier(0.19, 1, 0.22, 1);
  will-change: opacity, transform, filter;
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0) scale(1);
  filter: blur(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px) scale(0.98);
  filter: blur(8px);
  transition: opacity 1.0s cubic-bezier(0.19, 1, 0.22, 1),
              transform 1.0s cubic-bezier(0.19, 1, 0.22, 1),
              filter 1.0s cubic-bezier(0.19, 1, 0.22, 1);
  will-change: opacity, transform, filter;
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0) scale(1);
  filter: blur(0);
}

/* 時間差表示（Stagger）用の遅延調整クラス */
.delay-1 { transition-delay: 0.05s; }
.delay-2 { transition-delay: 0.10s; }
.delay-3 { transition-delay: 0.15s; }
.delay-4 { transition-delay: 0.20s; }
.delay-5 { transition-delay: 0.25s; }

/* ヒーローフェードイン遅延 */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 1.0s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.fade-in.delay-1 { animation-delay: 0.15s; }
.fade-in.delay-2 { animation-delay: 0.3s; }
.fade-in.delay-3 { animation-delay: 0.45s; }

@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- 15.5. About Section HQ Photo --- */
.about-hq-photo {
  margin-top: 4rem;
  width: 100%;
}
.about-hq-photo .glass-card-image {
  padding: 0.8rem;
}
.about-hq-photo img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 4px;
}
.image-caption {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--color-text-sub);
  text-align: center;
  font-weight: 500;
}

/* --- 16. Responsive Media Queries --- */
@media (max-width: 1024px) {
  section {
    padding: 6rem 0;
  }
  
  .about-grid, .hq-content-grid, .products-grid, .awards-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .major-partners-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-image {
    max-width: 600px;
    margin: 0 auto;
  }
  
  .milestones-container {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  
  .history-image-wrapper {
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.3rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .navbar-container {
    padding: 1rem;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 60px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 60px);
    background-color: var(--color-bg-darker);
    flex-direction: column;
    padding: 3rem 2rem;
    gap: 2rem;
    transition: var(--transition-fast);
    align-items: flex-start;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-btn {
    width: 100%;
    text-align: center;
  }
  
  .pillars-grid, .major-partners-grid, .team-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .team-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.5rem 1.5rem;
    gap: 1.5rem;
  }

  .avatar-container {
    width: 180px;
    height: 240px;
    margin-bottom: 0.5rem;
  }

  .about-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-top {
    flex-direction: column;
    gap: 2.5rem;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 1.2rem;
  }
}

/* ==========================================================================
   v4 Additions: Parallax / Reveal Variants / Facility Gallery / Lightbox
   ========================================================================== */

/* --- Hero Parallax --- */
.hero {
  background-image: none !important;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: -20%;
  left: 0;
  width: 100%;
  height: 140%;
  background-image: url('images/factory_interior.png?v=2');
  background-size: cover;
  background-position: center;
  will-change: transform;
  z-index: 0;
}

/* --- Reveal Variants --- */
.reveal-left {
  opacity: 0;
  transform: translateX(-55px);
  filter: blur(6px);
  transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.1s cubic-bezier(0.16, 1, 0.3, 1),
              filter 1.1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
  filter: blur(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(55px);
  filter: blur(6px);
  transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.1s cubic-bezier(0.16, 1, 0.3, 1),
              filter 1.1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
  filter: blur(0);
}

/* --- Team Card Photo Overlay --- */
.avatar-container {
  position: relative;
}

.avatar-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(14, 165, 233, 0.25) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 8px;
}

.team-card:hover .avatar-overlay {
  opacity: 1;
}

/* --- Facility Gallery Section --- */
.facility-gallery-section {
  margin-top: 6rem;
  margin-bottom: 4rem;
}

.facility-gallery-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.facility-gallery-header h3 {
  font-size: 1.55rem;
  font-weight: 700;
  color: #fff;
  margin: 0.6rem 0 0.8rem;
}

.facility-gallery-header p {
  font-size: 0.95rem;
  color: var(--color-text-sub);
  max-width: 620px;
  margin: 0 auto;
}

/* Tab filter buttons */
.facility-tabs {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.fac-tab {
  padding: 0.5rem 1.4rem;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-text-sub);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: var(--font-family);
}

.fac-tab:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.fac-tab.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #000;
  font-weight: 700;
}

/* Masonry Grid */
.facility-masonry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.875rem;
}

.fac-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  background: #080d1a;
  border: 1px solid rgba(255, 255, 255, 0.05);
  aspect-ratio: 4 / 3;
  transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1),
              border-color 0.4s ease,
              box-shadow 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.fac-item:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(14, 165, 233, 0.45);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(14, 165, 233, 0.25);
  z-index: 2;
}

.fac-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1),
              filter 1.2s ease;
}

.fac-item:hover img {
  transform: scale(1.08);
  filter: brightness(1.03) contrast(1.02);
}

.fac-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 9, 18, 0.95) 20%, rgba(6, 9, 18, 0.6) 50%, transparent 100%);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.2rem;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.19, 1, 0.22, 1),
              backdrop-filter 0.4s ease,
              -webkit-backdrop-filter 0.4s ease;
  pointer-events: none;
}

.fac-item:hover .fac-overlay {
  opacity: 1;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.fac-overlay span {
  font-size: 0.84rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.fac-overlay em {
  font-style: normal;
  font-size: 0.69rem;
  color: var(--color-primary);
  margin-top: 0.2rem;
  display: block;
}

.fac-item.hidden {
  display: none;
}

/* --- Lightbox --- */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.93);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-content {
  max-width: 88vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 0 4rem;
}

#lightboxImg {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
  display: block;
}

.lightbox-caption {
  font-size: 0.88rem;
  color: var(--color-text-sub);
  text-align: center;
  max-width: 600px;
}

.lightbox-close {
  position: fixed;
  top: 1.2rem;
  right: 1.8rem;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.75);
  font-size: 2.8rem;
  cursor: pointer;
  line-height: 1;
  z-index: 10000;
  transition: color 0.2s;
  font-family: sans-serif;
  padding: 0;
}

.lightbox-close:hover { color: #fff; }

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.8);
  font-size: 2rem;
  width: 3rem;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  z-index: 10000;
}

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(14, 165, 233, 0.28);
  color: #fff;
  border-color: var(--color-primary);
}

/* --- prefers-reduced-motion --- */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right,
  .fade-in, .pillar-card, .product-card,
  .team-card, .gallery-card, .award-card,
  .partner-hero-card, .fac-item {
    transition: none !important;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .wheel { animation: none !important; }
  .hero-bg { transform: none !important; }
}

/* --- Responsive additions --- */
@media (max-width: 1024px) {
  .facility-masonry {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .facility-masonry {
    grid-template-columns: repeat(2, 1fr);
  }

  .lightbox-content {
    padding: 0 3.5rem;
  }

  .reveal-left, .reveal-right {
    transform: translateY(40px);
  }

  .reveal-left.active, .reveal-right.active {
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .facility-masonry {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .lightbox-prev { left: 0.25rem; }
  .lightbox-next { right: 0.25rem; }
  .lightbox-content { padding: 0 3rem; }
}

/* 製品詳細ポップアップの一挙縦並び表示用のスタイル */
.lightbox-image-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1rem;
  max-height: 85vh;
  overflow-y: auto;
}

/* カスタムスクロールバーのプレミアム表現 */
.lightbox-image-list::-webkit-scrollbar {
  width: 6px;
}
.lightbox-image-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}
.lightbox-image-list::-webkit-scrollbar-thumb {
  background: rgba(14, 165, 233, 0.4);
  border-radius: 3px;
}
.lightbox-image-list::-webkit-scrollbar-thumb:hover {
  background: rgba(14, 165, 233, 0.6);
}

.lightbox-list-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.lightbox-list-img {
  max-width: 100%;
  max-height: 500px;
  object-fit: contain;
  border-radius: 4px;
  background: #ffffff;
  padding: 1rem;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.1);
}

.lightbox-list-caption {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  font-weight: 500;
}

/* ==========================================================================
   Production Flow Section
   ========================================================================== */
/* ==========================================================================
   Production Flow Section (Timeline Variant)
   ========================================================================== */
.production-flow-section {
  margin-top: 4rem;
  padding: 2rem 0;
}

.production-flow-section h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-align: center;
  position: relative;
  background: linear-gradient(135deg, var(--text-light, #ffffff) 30%, var(--primary, #00f2fe) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.production-timeline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.3rem;
  margin-top: 2rem;
  padding: 1rem 0;
  overflow-x: auto;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  flex: 1;
  min-width: 90px;
}

.step-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-secondary, monospace);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary, #00f2fe);
  margin-bottom: 0.8rem;
  transition: all 0.3s ease;
  box-shadow: inset 0 0 10px rgba(0, 242, 254, 0.05);
}

.step-name {
  font-size: 0.8rem;
  color: var(--text-muted, #94a3b8);
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.timeline-connector {
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 242, 254, 0.2), rgba(0, 242, 254, 0.05));
  flex-grow: 1;
  margin: 0 0.5rem;
  margin-bottom: 1.5rem; /* Align vertical center with badges */
  min-width: 15px;
}

.timeline-step:hover .step-badge {
  background: rgba(0, 242, 254, 0.1);
  border-color: var(--primary, #00f2fe);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.4), inset 0 0 10px rgba(0, 242, 254, 0.2);
  color: #fff;
  transform: scale(1.05);
}

.timeline-step:hover .step-name {
  color: #fff;
}

/* --- Lightbox Production Detail Layout --- */
.lightbox-process-container {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  max-width: 850px;
  width: 90vw;
  align-items: center;
  background: rgba(10, 15, 30, 0.95);
  border: 1px solid rgba(0, 242, 254, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 242, 254, 0.1);
}

.lightbox-process-img-wrapper {
  flex: 1.2;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4/3;
}

.lightbox-process-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lightbox-process-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.lightbox-process-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 0.8rem 0;
  color: #fff;
  border-left: 3px solid var(--primary, #00f2fe);
  padding-left: 0.8rem;
  line-height: 1.2;
}

.lightbox-process-equipment {
  font-size: 0.85rem;
  color: var(--primary, #00f2fe);
  margin: 0 0 1rem 0;
  font-weight: 600;
  background: rgba(0, 242, 254, 0.05);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  border: 1px solid rgba(0, 242, 254, 0.1);
  display: inline-block;
}

.lightbox-process-desc {
  font-size: 0.9rem;
  color: var(--text-muted, #94a3b8);
  line-height: 1.6;
  margin: 0;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .production-timeline {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
    padding-left: 2rem;
    position: relative;
  }
  
  .production-timeline::before {
    content: '';
    position: absolute;
    top: 1.5rem;
    left: calc(2rem + 24px);
    width: 1px;
    height: calc(100% - 3rem);
    background: linear-gradient(180deg, rgba(0, 242, 254, 0.2), rgba(0, 242, 254, 0.05));
    z-index: 0;
  }

  .timeline-step {
    flex-direction: row;
    align-items: center;
    text-align: left;
    width: 100%;
    gap: 1.2rem;
    min-width: auto;
    z-index: 1;
  }
  
  .step-badge {
    margin-bottom: 0;
  }
  
  .step-name {
    font-size: 0.95rem;
  }
  
  .timeline-connector {
    display: none;
  }

  .lightbox-process-container {
    flex-direction: column;
    max-width: 480px;
    gap: 1.2rem;
    padding: 1.2rem;
  }
  
  .lightbox-process-img-wrapper {
    width: 100%;
    aspect-ratio: 16/10;
  }
  
  .lightbox-process-title {
    font-size: 1.2rem;
  }
}

/* ==========================================================================
   Equipment Gallery (No Image Specification)
   ========================================================================== */
.gallery-card.clickable {
  aspect-ratio: auto;
  min-height: 250px;
  background: linear-gradient(135deg, rgba(13, 21, 39, 0.95), rgba(6, 9, 18, 0.98));
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 1.5rem;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.gallery-card.clickable:hover {
  transform: translateY(-8px);
  border-color: var(--primary, #00f2fe);
  box-shadow: 0 15px 35px -10px rgba(0, 242, 254, 0.5), 0 0 15px rgba(0, 242, 254, 0.2);
}

.gallery-card.clickable .gallery-info {
  position: static;
  background: transparent;
  padding: 0;
  border-top: none;
  width: 100%;
}

.gallery-card.clickable .gallery-info h5 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 0.5rem;
  margin-bottom: 0.8rem;
  color: #fff;
}

.gallery-card.clickable .brand {
  font-size: 0.8rem;
  color: var(--primary, #00f2fe);
  font-weight: 600;
  margin-bottom: 1rem;
}

.gallery-card.clickable .spec-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: #00f2fe;
  background: rgba(0, 242, 254, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.gallery-card.clickable .spec-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.gallery-card.clickable .spec-list li {
  font-size: 0.8rem;
  color: var(--color-text-sub, #94a3b8);
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  padding-bottom: 0.3rem;
}

.gallery-card.clickable .spec-list li strong {
  color: #cbd5e1;
}

/* --- スマートフォン・全画面幅最適化 --- */
html, body {
  overflow-x: hidden !important;
  max-width: 100% !important;
}

* {
  box-sizing: border-box !important;
}

img, video, iframe {
  max-width: 100% !important;
  height: auto !important;
}

@media screen and (max-width: 768px) {
  .container, .wrapper, main, section, header, footer, .hero, .hero-content {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  h1, h2, h3, p, div, span, a, button {
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }
}
