/* Base variables conforming to industrial professional theme */
:root {
  --primary: #0b2c4d;       /* Deep clinical navy */
  --secondary: #00b4d8;     /* Clinical bright blue */
  --accent: #2ec4b6;        /* High-contrast industrial teal */
  --accent-hover: #25a195;
  --bg-light: #f8fafc;      /* Clean background grey */
  --text-dark: #1e293b;     /* High-contrast readable body text */
  --text-muted: #64748b;
  --white: #ffffff;
  --border-color: #e2e8f0;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --container-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.65;
}

body {
  overflow-x: hidden;
}

/* Typography elements */
h1, h2, h3, h4 {
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
}

p {
  margin-bottom: 1.25rem;
}

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

a:hover {
  color: var(--accent);
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Sticky Header styling */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  transition: var(--transition);
}

.main-header.scrolled {
  padding: 0.5rem 0;
  background-color: var(--white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.header-logo {
  display: block;
  max-height: 48px;
  width: auto;
}

/* Nav Menu styles */
.main-nav ul {
  display: flex;
  align-items: center;
  list-style: none;
}

.main-nav li {
  margin-left: 2rem;
}

.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--primary);
}

.main-nav a:hover {
  color: var(--accent);
}

.nav-cta {
  background-color: var(--accent);
  color: var(--white) !important;
  padding: 0.65rem 1.25rem;
  border-radius: 4px;
  font-weight: 700 !important;
  box-shadow: 0 2px 5px rgba(46, 196, 182, 0.3);
}

.nav-cta:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
}

/* Mobile Nav Toggle Icon */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--primary);
  position: relative;
  transition: background 0.3s;
}

.hamburger::before, .hamburger::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--primary);
  position: absolute;
  left: 0;
  transition: var(--transition);
}

.hamburger::before { top: -6px; }
.hamburger::after { bottom: -6px; }

/* Active mobile layout of hamburger button */
.nav-toggle[aria-expanded="true"] .hamburger {
  background: transparent;
}
.nav-toggle[aria-expanded="true"] .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}
.nav-toggle[aria-expanded="true"] .hamburger::after {
  transform: rotate(-45deg);
  bottom: 0;
}

/* Hero Section style */
.hero-section {
  padding: 10rem 0 6rem;
  background-size: cover;
  background-position: center;
  color: var(--white);
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 800px;
}

.hero-title {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions .btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}

.trust-icon {
  width: 20px;
  height: 20px;
}

/* Global button styles */
.btn {
  background-color: var(--accent);
  color: var(--white);
  font-weight: 700;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(46, 196, 182, 0.2);
  transition: var(--transition);
  text-align: center;
}

.btn:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(46, 196, 182, 0.3);
}

/* Common Section layout */
section {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Benefits Grid styling (6 cards) */
.benefits-section {
  background-color: var(--bg-light);
}

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

.benefit-card {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.02);
  transition: var(--transition);
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.benefit-img-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background-color: #e2e8f0;
}

.benefit-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.benefit-card:hover .benefit-img-wrapper img {
  transform: scale(1.05);
}

.benefit-body {
  padding: 1.75rem;
}

.benefit-icon-box {
  background-color: rgba(46, 196, 182, 0.1);
  width: 50px;
  height: 50px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.benefit-body h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.benefit-body p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Services section style */
.services-section {
  background-color: var(--white);
}

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

.service-item {
  background: var(--bg-light);
  border-left: 4px solid var(--primary);
  padding: 2.5rem;
  border-radius: 0 8px 8px 0;
  transition: var(--transition);
}

.service-item:hover {
  transform: scale(1.01);
  box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.service-head {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.service-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary);
  opacity: 0.4;
}

.service-item h3 {
  font-size: 1.4rem;
}

.service-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* How It Works (Timeline Process style) */
.process-section {
  background-color: var(--bg-light);
}

.process-timeline {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 25px;
  height: 100%;
  width: 2px;
  background-color: var(--border-color);
}

.process-step {
  position: relative;
  padding-left: 80px;
  margin-bottom: 3.5rem;
}

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

.step-badge {
  position: absolute;
  left: 0;
  top: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--white);
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid var(--white);
  z-index: 2;
}

.step-content {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 10px rgba(0,0,0,0.01);
}

.step-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.step-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* About Section styles */
.about-section {
  background-color: var(--white);
  border-bottom: 1px solid var(--border-color);
}

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

.about-text p {
  font-size: 1.05rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

.about-text .section-title {
  text-align: left;
  margin-bottom: 2rem;
}

.about-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* FAQ Accordion Styling */
.faq-section {
  background-color: var(--bg-light);
}

.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 1.5rem;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
}

.faq-trigger:hover {
  background-color: rgba(0, 180, 216, 0.02);
}

.faq-icon-indicator {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--secondary);
  transition: var(--transition);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 1.5rem;
}

.faq-content p {
  padding-bottom: 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Open Accordion State styling classes */
.faq-item.active .faq-content {
  max-height: 300px; /* arbitrary height to slide down */
}

.faq-item.active .faq-icon-indicator {
  transform: rotate(45deg);
}

/* Lead Gen Form Section style */
.contact-section {
  background-color: var(--white);
  padding: 7rem 0;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
}

.contact-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-intro .section-title {
  text-align: left;
  margin-bottom: 1.5rem;
}

.contact-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.direct-contact-box {
  background-color: var(--bg-light);
  border-left: 4px solid var(--accent);
  padding: 2rem;
  border-radius: 0 8px 8px 0;
}

.direct-email {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  border-bottom: 2px solid rgba(11, 44, 77, 0.2);
}

.direct-email:hover {
  color: var(--secondary);
  border-color: var(--secondary);
}

.transparency-note {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0;
}

/* Custom Interactive Form Styling */
.form-wrapper {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  padding: 3rem;
}

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

.lead-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.lead-form label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.lead-form label .required {
  color: #ef4444;
}

.lead-form input[type="text"],
.lead-form input[type="email"],
.lead-form input[type="tel"],
.lead-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-color);
  background-color: var(--bg-light);
  border-radius: 4px;
  font-size: 1rem;
  color: var(--text-dark);
  transition: var(--transition);
}

.lead-form input:focus,
.lead-form textarea:focus {
  outline: none;
  border-color: var(--secondary);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.15);
}

/* Custom phone prefix UI */
.phone-input-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  background-color: var(--bg-light);
  border-radius: 4px;
  overflow: hidden;
}

.phone-input-wrapper:focus-within {
  border-color: var(--secondary);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.15);
}

.phone-prefix {
  background-color: #e2e8f0;
  padding: 0.85rem 1rem;
  font-weight: 600;
  color: var(--primary);
  border-right: 1px solid var(--border-color);
}

.phone-input-wrapper input {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

.form-hint {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* Form Checkbox Styling */
.checkbox-group {
  margin: 2rem 0;
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-weight: 500 !important;
  line-height: 1.5;
}

.consent-label input[type="checkbox"] {
  display: none;
}

.checkbox-custom {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-color);
  border-radius: 4px;
  background-color: var(--bg-light);
  flex-shrink: 0;
  position: relative;
  transition: var(--transition);
  margin-top: 2px;
}

.consent-label input[type="checkbox"]:checked + .checkbox-custom {
  background-color: var(--accent);
  border-color: var(--accent);
}

.consent-label input[type="checkbox"]:checked + .checkbox-custom::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 6px;
  width: 5px;
  height: 10px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.consent-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.consent-text a {
  text-decoration: underline;
  font-weight: 600;
}

.btn-submit {
  width: 100%;
  padding: 1.15rem;
  font-size: 1.1rem;
  background-color: var(--primary);
  box-shadow: 0 4px 10px rgba(11, 44, 77, 0.2);
}

.btn-submit:hover {
  background-color: #174a7b;
  box-shadow: 0 6px 15px rgba(11, 44, 77, 0.3);
}

/* AJAX Form responses display alerts */
.form-alert {
  padding: 1.5rem;
  border-radius: 6px;
  margin-bottom: 2rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.alert-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.form-success {
  background-color: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.form-success .alert-icon {
  background-color: #059669;
  color: var(--white);
}

.form-danger {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.form-danger .alert-icon {
  background-color: #dc2626;
  color: var(--white);
}

.alert-body h4 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  color: inherit;
}

.alert-body p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Footer layout */
.main-footer {
  background-color: var(--primary);
  color: rgba(255, 255, 255, 0.7);
  padding: 5rem 0 0;
}

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

.footer-brand .footer-logo {
  max-height: 48px;
  margin-bottom: 1.5rem;
  filter: brightness(0) invert(1);
}

.footer-brand-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.footer-operator-info {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.main-footer h3 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
}

.main-footer ul {
  list-style: none;
}

.main-footer li {
  margin-bottom: 0.85rem;
}

.main-footer a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.main-footer a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-bottom {
  background-color: #061c32;
  padding: 2rem 0;
  font-size: 0.85rem;
}

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

.back-to-top {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: var(--transition);
}

.back-to-top:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

/* Functional Cookie Banner styling */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(11, 44, 77, 0.98);
  color: var(--white);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  z-index: 2000;
  padding: 1.5rem 0;
  border-top: 3px solid var(--accent);
}

.cookie-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.cookie-text {
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 0;
}

.cookie-text a {
  color: var(--accent);
  text-decoration: underline;
  font-weight: 600;
}

.btn-cookie-accept {
  background-color: var(--accent);
  color: var(--white);
  padding: 0.5rem 1.5rem;
  font-size: 0.85rem;
  border-radius: 4px;
  flex-shrink: 0;
}

.btn-cookie-accept:hover {
  background-color: var(--accent-hover);
}

/* Responsive Mobile Breakpoint Styles */
@media (max-width: 1024px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .about-image {
    order: -1;
  }
  .contact-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  section {
    padding: 4rem 0;
  }
  .section-title {
    font-size: 1.85rem;
  }
  .hero-section {
    padding: 8rem 0 4rem;
  }
  .hero-title {
    font-size: 2.25rem;
  }
  
  /* Show hamburger toggle */
  .nav-toggle {
    display: block;
  }
  
  .main-nav {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--white);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
  }
  
  .main-nav.open {
    max-height: 500px;
  }
  
  .main-nav ul {
    flex-direction: column;
    padding: 2rem 1.5rem;
    align-items: stretch;
  }
  
  .main-nav li {
    margin-left: 0;
    margin-bottom: 1.5rem;
    text-align: center;
  }
  
  .main-nav li:last-child {
    margin-bottom: 0;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .process-timeline::before {
    left: 18px;
  }
  .process-step {
    padding-left: 55px;
  }
  .step-badge {
    width: 38px;
    height: 38px;
    font-size: 1rem;
    border-width: 2px;
  }
  
  .lead-form .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .form-wrapper {
    padding: 1.75rem;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .cookie-container {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}