/* 
 * 株式会社サンテック Corporate Site Design 
 */

:root {
  /* Colors */
  --color-primary: #0056b3;
  /* Trust Blue */
  --color-primary-dark: #003d80;
  --color-secondary: #f4f7f6;
  /* Clean Gray */
  --color-accent: #d35400;
  /* Coppery Orange (Cuprous Oxide hint) */
  --color-text-main: #333333;
  --color-text-light: #777777;
  --color-white: #ffffff;

  /* Typography */
  --font-base: 'Noto Sans JP', sans-serif;

  /* Spacing */
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 32px;
  --spacing-xl: 64px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-base);
  color: var(--color-text-main);
  line-height: 1.6;
  background-color: var(--color-white);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Header */
header {
  background-color: var(--color-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}


.logo {
  display: flex;
  align-items: center;
  /* Removed text styles as we are using an image */
}

.logo-img {
  max-height: 50px;
  /* Adjust based on header height */
  width: auto;
  background-color: #ffffff;
  mix-blend-mode: multiply;
  /* Blends white/off-white background with header */
  margin-right: 10px;
  /* Space between logo and text */
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  /* Dark gray for text */
  white-space: nowrap;
  /* Prevent wrapping on slightly small screens */
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .logo-img {
    max-height: 30px;
    /* Smaller logo for mobile */
    margin-right: 5px;
  }

  .logo-text {
    font-size: 0.9rem;
    /* Significantly smaller text to fit on one line if possible */
  }

  .hero h1 {
    font-size: 1.5rem;
    /* Smaller hero title for mobile */
    margin-bottom: 30px;
  }

  .header-inner {
    height: 60px;
    /* Compact header height */
    padding: 0 10px;
  }
}

.nav-menu {
  display: flex;
  gap: var(--spacing-lg);
}

.nav-link {
  font-weight: 500;
  color: var(--color-text-main);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  padding: 100px 0;
  text-align: center;
}

.hero h1 {
  font-size: 2.2rem;
  /* Reduced size */
  margin-bottom: 50px;
  /* Increased spacing */
}

.hero p {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 800px;
  margin: 0 auto var(--spacing-lg);
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  background-color: var(--color-accent);
  color: var(--color-white);
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(211, 84, 0, 0.4);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--color-white);
  margin-left: var(--spacing-md);
}

.btn-outline:hover {
  background-color: var(--color-white);
  color: var(--color-primary);
}

/* Section Common */
.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--color-primary-dark);
  margin-bottom: var(--spacing-sm);
}

.section-title span {
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--color-accent);
  margin: 0 auto;
}

/* Features/Services */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

.feature-card {
  padding: 40px;
  border-radius: 12px;
  background-color: var(--color-white);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  border-bottom: 4px solid transparent;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-bottom-color: var(--color-accent);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
  color: var(--color-primary);
  display: flex;
  justify-content: center;
  align-items: center;
}

.feature-icon img {
  mix-blend-mode: multiply;
}

.feature-card h3 {
  margin-bottom: var(--spacing-md);
  color: var(--color-primary-dark);
}

/* Call to Action */
.cta {
  background-color: var(--color-secondary);
  text-align: center;
}

/* Footer */
footer {
  background-color: #1a1a1a;
  color: #cccccc;
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

.footer-company h3 {
  color: var(--color-white);
  font-size: 1.5rem;
  margin-bottom: var(--spacing-md);
}

.footer-links h4 {
  color: var(--color-white);
  margin-bottom: var(--spacing-md);
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a:hover {
  color: var(--color-accent);
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #333;
  font-size: 0.9rem;
}

/* Contact Form */
.contact-form {
  max-width: 700px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

/* Hamburger Menu - Hidden for this strategy */
.mobile-menu-toggle {
  display: none !important;
}

/* Mobile Responsive - Compact Layout */
@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    /* Allow wrapping if needed */
    height: auto;
    padding: 5px 10px;
    /* Reduced vertical padding */
    justify-content: center;
    /* Center align for visual balance */
    align-items: center;
    gap: 5px;
    position: static;
    /* No absolute elements needed */
  }

  /* Compact Logo */
  .logo {
    margin-bottom: 2px;
  }

  .logo-img {
    max-height: 24px;
    /* Significantly smaller logo */
    margin-right: 5px;
  }

  .logo-text {
    font-size: 0.8rem;
    /* Smaller text */
    white-space: nowrap;
  }

  /* Restore Nav Menu as flexible row */
  .nav-menu {
    display: flex;
    /* Always show */
    width: auto;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    /* Minimal gap */
    margin: 0;
    padding: 0;
    border: none;
    flex-wrap: wrap;
    /* Allow links to wrap to second line if very narrow */
    justify-content: center;
  }

  .nav-menu.active {
    display: flex;
    /* Ensure displayed */
  }

  .nav-link {
    font-size: 0.7rem !important;
    /* Force small font */
    padding: 4px 6px;
    width: auto;
    border: none;
    white-space: nowrap;
  }

  /* Compact Button */
  .nav-link.btn {
    margin: 0;
    display: inline-block;
    padding: 4px 10px !important;
    font-size: 0.7rem !important;
    line-height: 1.2;
    width: auto;
    border-radius: 4px;
  }

  .hero h1 {
    font-size: 1.5rem;
    margin-top: 10px;
  }

  .btn-outline {
    margin-left: 0;
    margin-top: 10px;
    display: block;
    width: 80%;
    /* Slightly wider on mobile */
    margin: 10px auto 0;
    font-size: 0.9rem;
  }
}

/* Service Page Image Styling */
.service-img {
  background-color: #ffffff !important;
  /* Force white background */
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  padding: 20px;
}

.service-img img {
  mix-blend-mode: multiply;
}

/* Fix for anchor links being covered by sticky header */
.service-detail {
  scroll-margin-top: 100px;
  /* Header height + buffer */
}