/* ============================================
   HUMAN BRIDGE - Corporate Staffing Website
   ============================================ */

:root {
  --blue: #1565C0;
  --blue-dark: #0D47A1;
  --blue-light: #E3F2FD;
  --blue-mid: #BBDEFB;
  --white: #FFFFFF;
  --gray-50: #FAFAFA;
  --gray-100: #F5F5F5;
  --gray-200: #EEEEEE;
  --gray-400: #BDBDBD;
  --gray-600: #757575;
  --gray-700: #616161;
  --gray-800: #424242;
  --gray-900: #212121;
  --font: 'Noto Sans JP', sans-serif;
  --shadow: 0 4px 24px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.1);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s ease;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font);
  color: var(--gray-800);
  line-height: 1.8;
  font-size: 15px;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

.section { padding: 100px 0; }
.section:nth-child(even) { background: var(--gray-50); }

.section-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
  text-align: center;
}

.section-title {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 900;
  color: var(--gray-900);
  text-align: center;
  margin-bottom: 16px;
  line-height: 1.4;
}

.section-title.left { text-align: left; }

.section-desc {
  text-align: center;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto 48px;
  line-height: 1.9;
}

/* Sample Banner */
.sample-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(90deg, #1565C0, #1976D2);
  color: #fff;
  text-align: center;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  z-index: 10000;
  letter-spacing: 0.5px;
}

.sample-banner a { color: #fff; text-decoration: underline; font-weight: 700; }

/* Header */
.header {
  position: fixed;
  top: 36px;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.header.scrolled {
  border-bottom-color: var(--gray-200);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-jp { font-size: 16px; font-weight: 900; color: var(--gray-900); }
.logo-en { font-size: 9px; font-weight: 500; letter-spacing: 2px; color: var(--blue); text-transform: uppercase; }

.nav-desktop { display: flex; align-items: center; gap: 28px; }
.nav-desktop a {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
  transition: var(--transition);
  position: relative;
}
.nav-desktop a:hover { color: var(--blue); }
.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue);
  transition: var(--transition);
}
.nav-desktop a:hover::after { width: 100%; }

.nav-cta {
  background: var(--blue) !important;
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 700 !important;
  transition: var(--transition);
}
.nav-cta:hover { background: var(--blue-dark) !important; }
.nav-cta::after { display: none !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1100;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--gray-900);
  transition: var(--transition);
  display: block;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Nav */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: var(--white);
  z-index: 1050;
  padding: 120px 32px 40px;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -8px 0 40px rgba(0,0,0,0.1);
}
.mobile-nav.active { right: 0; }

.mobile-nav nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-800);
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-200);
  transition: var(--transition);
}
.mobile-nav a:hover { color: var(--blue); padding-left: 8px; }

/* Overlay */
.nav-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 1040;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}
.nav-overlay.active { opacity: 1; pointer-events: all; }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 108px;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,71,161,0.82) 0%, rgba(21,101,192,0.65) 50%, rgba(25,118,210,0.5) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 800px;
}

.hero-sub {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 4px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 900;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 24px;
  letter-spacing: 2px;
}

.hero-desc {
  font-size: 16px;
  color: rgba(255,255,255,0.9);
  line-height: 2;
  margin-bottom: 40px;
}

.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}
.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(21,101,192,0.35);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}

.btn-full { width: 100%; padding: 16px; font-size: 16px; }

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.hero-scroll span {
  font-size: 11px;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.3);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
  0% { top: -100%; }
  100% { top: 100%; }
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 48px;
}

.about-svg { width: 100%; max-width: 400px; margin: 0 auto; display: block; }

.about-text h3 {
  font-size: 22px;
  font-weight: 900;
  color: var(--gray-900);
  margin-bottom: 20px;
  line-height: 1.5;
}

.about-text p {
  color: var(--gray-700);
  margin-bottom: 16px;
  line-height: 2;
}

.about-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.about-tags span {
  background: var(--blue-light);
  color: var(--blue);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
}

/* Service */
.service { background: var(--gray-50); }

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--gray-200);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-mid);
}

.service-icon { margin-bottom: 20px; }
.service-icon svg { width: 64px; height: 64px; }

.service-card h3 {
  font-size: 18px;
  font-weight: 900;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.service-card > p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 16px;
}

.service-list li {
  font-size: 13px;
  color: var(--gray-700);
  padding: 4px 0;
  padding-left: 18px;
  position: relative;
}

.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  opacity: 0.3;
}

/* For Companies */
.for-companies { background: var(--white); }

.fc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.fc-text .section-label { text-align: left; }

.fc-lead {
  font-size: 16px;
  color: var(--gray-700);
  line-height: 2;
  margin-bottom: 32px;
}

.fc-features { display: flex; flex-direction: column; gap: 20px; margin-bottom: 32px; }

.fc-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.fc-feature-icon { flex-shrink: 0; }
.fc-feature-icon svg { width: 40px; height: 40px; }

.fc-feature h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.fc-feature p {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.7;
}

.fc-visual {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.fc-visual img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

/* Numbers */
.numbers {
  background: linear-gradient(135deg, #0D47A1 0%, #1565C0 50%, #1976D2 100%);
  color: #fff;
}

.numbers .section-label { color: rgba(255,255,255,0.7); }
.numbers .section-title { color: #fff; }

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.number-card {
  text-align: center;
  padding: 32px 16px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
}

.number-value {
  font-size: 48px;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 8px;
}

.number-value small {
  font-size: 20px;
  font-weight: 500;
  margin-left: 4px;
}

.number-label {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.number-card p {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
}

/* Cases */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.case-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.case-tag {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.case-card h3 {
  font-size: 16px;
  font-weight: 900;
  color: var(--gray-900);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--blue-light);
}

.case-challenge, .case-solution, .case-result {
  margin-bottom: 16px;
}

.case-challenge h4, .case-solution h4, .case-result h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.case-challenge h4 { color: var(--gray-600); }
.case-solution h4 { color: var(--blue); }
.case-result h4 { color: #2E7D32; }

.case-challenge p, .case-solution p, .case-result p {
  font-size: 13px;
  color: var(--gray-700);
  line-height: 1.8;
}

/* Flow */
.flow-steps {
  max-width: 700px;
  margin: 48px auto 0;
  position: relative;
}

.flow-steps::before {
  content: '';
  position: absolute;
  left: 32px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--blue-mid);
}

.flow-step {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  margin-bottom: 40px;
  position: relative;
}

.flow-step:last-child { margin-bottom: 0; }

.flow-num {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  background: var(--blue);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 16px rgba(21,101,192,0.3);
}

.flow-content {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  flex: 1;
}

.flow-content h3 {
  font-size: 16px;
  font-weight: 900;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.flow-content p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.8;
}

/* Company */
.company-table-wrap {
  max-width: 800px;
  margin: 48px auto 0;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}

.company-table {
  width: 100%;
  border-collapse: collapse;
}

.company-table th,
.company-table td {
  padding: 18px 24px;
  font-size: 14px;
  line-height: 1.7;
  border-bottom: 1px solid var(--gray-200);
  text-align: left;
  vertical-align: top;
}

.company-table tr:last-child th,
.company-table tr:last-child td { border-bottom: none; }

.company-table th {
  background: var(--blue-light);
  color: var(--blue-dark);
  font-weight: 700;
  width: 180px;
  white-space: nowrap;
}

.company-table td { color: var(--gray-800); }

/* Contact */
.contact { background: var(--gray-50); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  margin-top: 48px;
}

.contact-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  margin-bottom: 20px;
}

.contact-box h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.contact-phone {
  font-size: 28px;
  font-weight: 900;
  color: var(--blue);
  display: block;
  margin-bottom: 8px;
}

.contact-box p {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.8;
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group { margin-bottom: 16px; }
.form-row .form-group { margin-bottom: 0; }

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 6px;
}

.req {
  background: #EF5350;
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 6px;
  font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 14px;
  color: var(--gray-800);
  transition: var(--transition);
  background: var(--gray-50);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(21,101,192,0.1);
  background: var(--white);
}

.form-group textarea { resize: vertical; min-height: 120px; }

/* Footer */
.footer {
  background: var(--gray-900);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-name {
  font-size: 16px;
  font-weight: 900;
  color: #fff;
}

.footer-name-en {
  font-size: 10px;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.5);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.footer-col a,
.footer-col p {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  padding: 3px 0;
  transition: var(--transition);
  line-height: 1.7;
}

.footer-col a:hover { color: #fff; padding-left: 4px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  margin-top: 0;
}

.footer-bottom p {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

.footer-bottom a {
  color: rgba(255,255,255,0.5);
  transition: var(--transition);
}

.footer-bottom a:hover { color: #fff; }

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============== RESPONSIVE ============== */

@media (max-width: 1024px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .numbers-grid { grid-template-columns: repeat(2, 1fr); }
  .cases-grid { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }

  .nav-desktop { display: none; }
  .hamburger { display: flex; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-visual { order: -1; }

  .service-grid { grid-template-columns: 1fr; max-width: 500px; margin-left: auto; margin-right: auto; }

  .fc-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .fc-visual { order: -1; }
  .fc-visual img { height: 280px; }

  .numbers-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .number-value { font-size: 36px; }

  .flow-steps::before { left: 24px; }
  .flow-num { width: 48px; height: 48px; font-size: 14px; }

  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .company-table th { width: 120px; padding: 14px 16px; }
  .company-table td { padding: 14px 16px; }

  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .hero-title { letter-spacing: 1px; }
  .hero-desc { font-size: 14px; }
}

@media (max-width: 480px) {
  body { font-size: 14px; }
  .container { padding: 0 16px; }
  .section { padding: 56px 0; }

  .header-inner { height: 60px; }
  .header { top: 34px; }
  .hero { padding-top: 94px; }

  .logo-jp { font-size: 14px; }
  .logo-icon { width: 32px !important; height: 32px !important; }

  .numbers-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .number-card { padding: 20px 12px; }
  .number-value { font-size: 32px; }

  .service-card { padding: 28px 20px; }
  .contact-form { padding: 24px; }
  .case-card { padding: 24px; }

  .flow-step { gap: 16px; }
  .flow-content { padding: 20px; }

  .contact-phone { font-size: 24px; }

  .section-title.left { text-align: left; }
}
