/* ============================================
   SYNAPSE - Medical Staffing Website
   ============================================ */

:root {
  --teal: #00796B;
  --teal-dark: #00574B;
  --teal-light: #E0F2F1;
  --teal-lighter: #F0FAF9;
  --white: #FFFFFF;
  --gray-50: #FAFAFA;
  --gray-100: #F5F5F5;
  --gray-200: #EEEEEE;
  --gray-400: #BDBDBD;
  --gray-600: #757575;
  --gray-800: #424242;
  --gray-900: #212121;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.1);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s ease;
}

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

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

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.8;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

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

.section {
  padding: 100px 0;
}

.sp-only { display: none; }

/* ---- Sample Banner ---- */
.sample-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--teal);
  color: white;
  text-align: center;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  z-index: 10000;
  letter-spacing: 0.5px;
}

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

.header.scrolled {
  box-shadow: var(--shadow-sm);
}

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

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

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 3px;
}

.logo-sub {
  font-size: 10px;
  color: var(--gray-600);
  letter-spacing: 2px;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-desktop a {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-800);
  position: relative;
}

.nav-desktop a:not(.nav-cta):hover {
  color: var(--teal);
}

.nav-desktop a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--teal);
  transition: var(--transition);
}

.nav-desktop a:not(.nav-cta):hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--teal);
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 13px;
}

.nav-cta:hover {
  background: var(--teal-dark);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-800);
  transition: var(--transition);
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* ---- Mobile Nav ---- */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 360px;
  height: 100vh;
  background: var(--white);
  z-index: 999;
  padding: 120px 32px 40px;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav nav a {
  font-size: 15px;
  font-weight: 500;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-200);
  color: var(--gray-800);
}

.mobile-nav nav a:hover {
  color: var(--teal);
}

.mobile-nav-info {
  text-align: center;
  padding-top: 24px;
}

.mobile-nav-phone {
  font-size: 20px;
  font-weight: 700;
  color: var(--teal);
}

.mobile-nav-hours {
  font-size: 12px;
  color: var(--gray-600);
  margin-top: 4px;
}

.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.mobile-overlay.show {
  opacity: 1;
  visibility: visible;
}

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

.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(0,55,47,0.75) 0%, rgba(0,121,107,0.55) 100%);
}

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

.hero-label {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 20px;
}

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

.hero-desc {
  font-size: 16px;
  line-height: 2;
  opacity: 0.9;
  margin-bottom: 40px;
  font-weight: 300;
}

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

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

.btn-primary {
  background: var(--teal);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,121,107,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
}

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

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-size: 11px;
  letter-spacing: 2px;
  opacity: 0.7;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: var(--white);
  animation: scrollLine 1.5s ease infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---- Section Labels ---- */
.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 16px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-desc {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.9;
}

/* ---- About ---- */
.about {
  background: var(--white);
}

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

.about-visual {
  display: flex;
  justify-content: center;
}

.about-icon-wrap {
  width: 200px;
  height: 200px;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.about-text p {
  color: var(--gray-600);
  margin-bottom: 16px;
  font-size: 15px;
}

.about-features {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.about-feature-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--teal-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-feature strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.about-feature span {
  font-size: 13px;
  color: var(--gray-600);
}

/* ---- For Sections ---- */
.for-section {
  overflow: hidden;
}

.for-facilities {
  background: var(--teal-lighter);
}

.for-professionals {
  background: var(--white);
}

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

.for-grid.reverse {
  direction: rtl;
}

.for-grid.reverse > * {
  direction: ltr;
}

.for-lead {
  font-size: 17px;
  color: var(--gray-800);
  margin-bottom: 28px;
  line-height: 1.8;
}

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

.for-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}

.for-list li svg {
  flex-shrink: 0;
}

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

.for-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* ---- Services ---- */
.services {
  background: var(--gray-50);
}

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

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--gray-200);
  position: relative;
}

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

.service-icon {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

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

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

.service-tag {
  display: inline-block;
  margin-top: 16px;
  padding: 4px 14px;
  font-size: 11px;
  font-weight: 600;
  color: var(--teal);
  background: var(--teal-light);
  border-radius: 20px;
}

/* ---- Numbers ---- */
.numbers {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: var(--white);
}

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

.numbers .section-title {
  color: var(--white);
}

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

.number-card {
  text-align: center;
  padding: 32px 16px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius);
  backdrop-filter: blur(4px);
}

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

.number-unit {
  font-size: 20px;
  font-weight: 500;
  margin-left: 2px;
}

.number-label {
  font-size: 14px;
  opacity: 0.85;
  font-weight: 400;
}

/* ---- Flow ---- */
.flow {
  background: var(--white);
}

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

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

.flow-step {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding: 28px 0;
  position: relative;
}

.flow-number {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  background: var(--teal);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.flow-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  padding-top: 4px;
}

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

/* ---- CTA Banner ---- */
.cta-banner {
  background: linear-gradient(135deg, var(--teal) 0%, #009688 100%);
  padding: 0;
}

.cta-banner .container {
  padding-top: 0;
  padding-bottom: 0;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 60px 0;
}

.cta-content h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.cta-content p {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  line-height: 1.8;
}

.cta-actions {
  display: flex;
  gap: 14px;
  flex-shrink: 0;
}

.btn-white {
  background: var(--white);
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-white:hover {
  background: var(--teal-light);
  transform: translateY(-2px);
}

.btn-white-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-white-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
}

/* ---- Strengths ---- */
.strengths {
  background: var(--white);
}

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

.strength-card {
  padding: 36px 28px;
  background: var(--teal-lighter);
  border-radius: var(--radius);
  position: relative;
  transition: var(--transition);
}

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

.strength-number {
  font-size: 48px;
  font-weight: 900;
  color: var(--teal);
  opacity: 0.1;
  position: absolute;
  top: 16px;
  right: 24px;
  line-height: 1;
}

.strength-icon {
  margin-bottom: 20px;
}

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

.strength-card p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.9;
}

/* ---- Company ---- */
.company {
  background: var(--gray-50);
}

.company-table {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

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

.company-table tr {
  border-bottom: 1px solid var(--gray-200);
}

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

.company-table th,
.company-table td {
  padding: 18px 24px;
  font-size: 14px;
  text-align: left;
  vertical-align: top;
}

.company-table th {
  width: 160px;
  background: var(--teal-lighter);
  font-weight: 600;
  color: var(--teal-dark);
  white-space: nowrap;
}

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

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

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info-card {
  background: var(--teal-lighter);
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-info-label {
  font-size: 12px;
  color: var(--gray-600);
  display: block;
  margin-bottom: 4px;
}

.contact-info-item strong {
  font-size: 16px;
  font-weight: 600;
  display: block;
}

.contact-info-sub {
  font-size: 12px;
  color: var(--gray-600);
  display: block;
  margin-top: 2px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-800);
}

.required {
  font-size: 11px;
  color: var(--white);
  background: var(--teal);
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 6px;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  transition: var(--transition);
  background: var(--white);
  color: var(--gray-900);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0,121,107,0.1);
}

.form-group textarea {
  resize: vertical;
}

/* ---- Footer ---- */
.footer {
  background: var(--gray-900);
  color: var(--white);
  padding: 60px 0 0;
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-brand-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 3px;
}

.footer-desc {
  font-size: 13px;
  opacity: 0.6;
  line-height: 1.9;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  opacity: 0.9;
}

.footer-col a {
  display: block;
  font-size: 13px;
  opacity: 0.5;
  padding: 4px 0;
}

.footer-col a:hover {
  opacity: 1;
  color: var(--teal-light);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 12px;
  opacity: 0.4;
}

.footer-bottom a {
  color: var(--teal-light);
}

.footer-bottom a:hover {
  opacity: 0.8;
}

/* ---- 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) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .numbers-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .strengths-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .strengths-grid .strength-card:last-child {
    grid-column: 1 / -1;
    max-width: 480px;
    margin: 0 auto;
  }

  .cta-inner {
    flex-direction: column;
    text-align: center;
  }

  .cta-actions {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .sp-only { display: inline; }

  .section { padding: 72px 0; }

  .nav-desktop { display: none; }

  .hamburger { display: flex; }

  .header-inner { height: 60px; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .about-features {
    align-items: flex-start;
    text-align: left;
  }

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

  .for-grid.reverse {
    direction: ltr;
  }

  .for-image {
    order: -1;
  }

  .for-image img {
    height: 260px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

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

  .number-value {
    font-size: 36px;
  }

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

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

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

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

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

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

  .flow-steps::before {
    left: 24px;
  }

  .flow-number {
    width: 50px;
    height: 50px;
    font-size: 16px;
  }

  .flow-step {
    gap: 20px;
  }

  .strengths-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .strengths-grid .strength-card:last-child {
    max-width: none;
  }

  .hero-scroll { display: none; }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
  }

  .hero-desc {
    font-size: 14px;
  }

  .number-card {
    padding: 24px 12px;
  }

  .number-value {
    font-size: 30px;
  }
}