/* ==========================================================
   Tech2Works Corporate Site — style.css
   Minimal, Blue, Modern
   ========================================================== */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Noto Sans JP', 'Inter', sans-serif;
  color: #0d1b2a;
  background: #ffffff;
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body[data-lang="en"] {
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ---------- Container ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 24px;
  }
}

/* ---------- Utility ---------- */
.sp-only {
  display: none;
}

@media (max-width: 768px) {
  .sp-only {
    display: inline;
  }
}

/* ==========================================================
   HEADER
   ========================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 43, 91, 0.08);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.04em;
}

.nav-list {
  display: flex;
  gap: 40px;
}

.nav-link {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  position: relative;
  padding: 4px 0;
  transition: opacity 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: #0f2b5b;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:hover {
  opacity: 0.7;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Language Toggle */
.lang-toggle {
  background: #0f2b5b;
  color: #ffffff;
  border: none;
  padding: 6px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.3s ease;
}

.lang-toggle:hover {
  transform: scale(1.05);
  opacity: 0.85;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger-line {
  width: 24px;
  height: 2px;
  background: #0f2b5b;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  .header-inner {
    padding: 0 24px;
    height: 64px;
  }

  .hamburger {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    height: calc(100vh - 64px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
  }

  .main-nav.open {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .nav-link {
    font-size: 1.125rem;
  }
}

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(10, 30, 63, 0.6) 0%,
      rgba(10, 30, 63, 0.8) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #ffffff;
  padding: 120px 24px 80px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: 0.04em;
  margin-bottom: 28px;
}

.hero-sub {
  font-size: clamp(0.875rem, 1.4vw, 1.125rem);
  font-weight: 300;
  line-height: 2;
  opacity: 0.85;
  margin-bottom: 48px;
}

.hero-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 16px 40px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  transition: transform 0.25s ease, background 0.3s ease, color 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn:hover {
  transform: scale(1.05);
}

.btn-primary {
  background: #ffffff;
  color: #111111;
}

.btn-primary:hover {
  background: #e0ecfa;
}

.btn-outline {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 1;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: rgba(255, 255, 255, 0.4);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(0.6);
  }

  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

.scroll-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================
   SECTIONS — Common
   ========================================================== */
.section {
  padding: 140px 0;
}

@media (max-width: 768px) {
  .section {
    padding: 80px 0;
  }
}

.section-header {
  margin-bottom: 64px;
}

.section-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8aaaca;
  margin-bottom: 16px;
}

.section-label-light {
  color: rgba(255, 255, 255, 0.5);
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.section-title-light {
  color: #ffffff;
}

/* ==========================================================
   ABOUT
   ========================================================== */
.section-about {
  background: #ffffff;
}

.about-table {
  width: 100%;
  border-collapse: collapse;
}

.about-table tr {
  border-bottom: 1px solid #d0dff0;
}

.about-table th,
.about-table td {
  padding: 24px 0;
  font-size: 0.9375rem;
  vertical-align: top;
  text-align: left;
}

.about-table th {
  width: 180px;
  font-weight: 600;
  color: #4a6a8a;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
}

@media (max-width: 768px) {
  .about-table th {
    width: 120px;
    font-size: 0.75rem;
  }

  .about-table th,
  .about-table td {
    padding: 18px 0;
    font-size: 0.875rem;
  }
}

/* ==========================================================
   SERVICES
   ========================================================== */
.section-services {
  position: relative;
  background: #0a1e3f;
  overflow: hidden;
}

.services-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.services-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
}

.services-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(10, 30, 63, 0.85) 0%,
      rgba(10, 30, 63, 0.95) 100%);
}

.section-services .container {
  position: relative;
  z-index: 1;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2px;
}

.service-card {
  background: rgba(255, 255, 255, 0.04);
  padding: 48px 36px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.3s ease;
}

.service-card:hover {
  background: rgba(255, 255, 255, 0.08);
}

.service-number {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 20px;
}

.service-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.04em;
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    padding: 32px 24px;
  }
}

/* ==========================================================
   STRENGTHS
   ========================================================== */
.section-strengths {
  background: #f0f4fa;
}

.strengths-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.strength-card {
  padding: 40px 0;
  border-top: 2px solid #2563eb;
}

.strength-number {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: #c0d8f0;
  margin-bottom: 24px;
  line-height: 1;
}

.strength-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.strength-desc {
  font-size: 0.875rem;
  color: #5a7a9a;
  line-height: 1.8;
}

@media (max-width: 768px) {
  .strengths-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .strength-card {
    padding: 32px 0;
  }
}

/* ==========================================================
   CONTACT
   ========================================================== */
.section-contact {
  background: #ffffff;
}

.contact-intro {
  font-size: 0.9375rem;
  color: #5a7a9a;
  text-align: center;
  margin-bottom: 48px;
  line-height: 2;
}

.contact-form-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.contact-iframe {
  width: 100%;
  height: 800px;
  border: 1px solid #d0dff0;
}

@media (max-width: 768px) {
  .contact-iframe {
    height: 600px;
  }
}

/* ==========================================================
   FOOTER
   ========================================================== */
.site-footer {
  background: #0a1e3f;
  color: #ffffff;
  padding: 64px 0;
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  margin-bottom: 24px;
}

.footer-name-jp {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.footer-name-en {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  opacity: 0.5;
}

.footer-copy {
  font-family: 'Inter', sans-serif;
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  opacity: 0.35;
}

/* ==========================================================
   ANIMATIONS
   ========================================================== */
.anim-fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.anim-fade-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

.anim-delay-1 {
  transition-delay: 0.15s;
}

.anim-delay-2 {
  transition-delay: 0.3s;
}

.anim-delay-3 {
  transition-delay: 0.45s;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .anim-fade-up {
    opacity: 1;
    transform: translateY(0);
    transition: none;
  }

  .scroll-line {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}