/* ========================================
   AURIX JAPAN - Corporate Website Styles
   ======================================== */

/* --- CSS Variables --- */
:root {
  --color-primary: #8B7355;
  --color-primary-light: #A8926B;
  --color-accent: #D4AF37;
  --color-accent-light: #E5C87F;
  --color-accent-dark: #B8941F;
  --color-silver: #C9B896;
  --color-white: #ffffff;
  --color-light: #FAF8F3;
  --color-gray: #6c757d;
  --color-gray-light: #E8E3D8;
  --color-text: #3d3026;
  --color-text-light: #6b5d4f;
  --font-heading: "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
  --max-width: 1200px;
  --header-height: 100px;
  --transition: 0.3s ease;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.8;
  background: var(--color-white);
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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

/* --- Language Switching --- */
.lang-en {
  display: none;
}

html[lang="en"] .lang-ja {
  display: none;
}

html[lang="en"] .lang-en {
  display: revert;
}

/* --- Utility --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

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

.section-header h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.section-header .section-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.section-header .section-line {
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  margin: 16px auto 0;
}

.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  letter-spacing: 0.5px;
}

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

.btn-primary:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

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

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

.btn-outline-dark {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline-dark:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: all var(--transition);
  background: transparent;
}

.header.scrolled {
  background: rgba(139, 115, 85, 0.97);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
  height: 80px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

.logo-img {
  height: 80px;
  width: auto;
  transition: all var(--transition);
}

.logo:hover .logo-img {
  opacity: 0.85;
}

.header.scrolled .logo-img {
  height: 64px;
}

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

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-white);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 4px;
}

.lang-switch button {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 16px;
  cursor: pointer;
  transition: all var(--transition);
}

.lang-switch button.active {
  background: var(--color-accent);
  color: var(--color-white);
}

.lang-switch button:hover:not(.active) {
  color: var(--color-white);
}

/* Mobile menu button */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  transition: all var(--transition);
}

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

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

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

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 50%, #C4A55D 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 60% 80%, rgba(255, 255, 255, 0.03) 0%, transparent 40%);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.3;
  margin-bottom: 24px;
}

.hero-content h1 .accent {
  color: var(--color-accent);
}

.hero-content p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin-bottom: 40px;
  line-height: 1.9;
}

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

/* --- Page Hero (sub-pages) --- */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  padding: 180px 0 80px;
  text-align: center;
  position: relative;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.page-hero h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 8px;
  position: relative;
}

.page-hero .page-hero-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
}

/* --- Services Overview (Top page) --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background: var(--color-white);
  border-radius: 12px;
  padding: 40px 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all var(--transition);
  border: 1px solid var(--color-gray-light);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--color-accent);
}

.service-card .icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-card .icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--color-accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* --- About Preview (Top page) --- */
.about-preview {
  background: var(--color-light);
}

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

.about-preview-text h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 20px;
  line-height: 1.5;
}

.about-preview-text p {
  color: var(--color-text-light);
  margin-bottom: 24px;
  line-height: 1.9;
}

.about-visual {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  border-radius: 16px;
  padding: 50px;
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.about-visual::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15), transparent 70%);
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  position: relative;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 4px;
}

/* --- Company Info Table (About page) --- */
.company-table {
  width: 100%;
  border-collapse: collapse;
}

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

.company-table th {
  width: 200px;
  padding: 20px 24px;
  text-align: left;
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-light);
  font-size: 0.95rem;
  vertical-align: top;
}

.company-table td {
  padding: 20px 24px;
  color: var(--color-text);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- Services Detail (Services page) --- */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 60px 0;
  border-bottom: 1px solid var(--color-gray-light);
}

.service-detail:last-child {
  border-bottom: none;
}

.service-detail.reverse {
  direction: rtl;
}

.service-detail.reverse > * {
  direction: ltr;
}

.service-detail-text .service-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-gray-light);
  line-height: 1;
  margin-bottom: 8px;
}

.service-detail-text h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.service-detail-text p {
  color: var(--color-text-light);
  line-height: 1.9;
  margin-bottom: 20px;
}

.service-detail-text ul {
  list-style: none;
}

.service-detail-text ul li {
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
  color: var(--color-text-light);
  font-size: 0.9rem;
}

.service-detail-text ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
}

.service-visual {
  background: var(--color-light);
  border-radius: 16px;
  padding: 60px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.service-visual svg {
  width: 120px;
  height: 120px;
  stroke: var(--color-primary);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- Contact Form --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info-card {
  background: var(--color-primary);
  border-radius: 16px;
  padding: 50px 40px;
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.contact-info-card::before {
  content: "";
  position: absolute;
  bottom: -30%;
  right: -20%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15), transparent 70%);
  pointer-events: none;
}

.contact-info-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 24px;
  position: relative;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  position: relative;
}

.contact-info-item svg {
  width: 22px;
  height: 22px;
  stroke: var(--color-accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-info-item .info-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 2px;
}

.contact-info-item .info-value {
  font-size: 0.95rem;
  color: var(--color-white);
}

.contact-form {
  background: var(--color-white);
  border-radius: 16px;
  padding: 50px 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--color-gray-light);
}

.form-group {
  margin-bottom: 24px;
}

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

.form-group label .required {
  color: #dc3545;
  font-size: 0.8rem;
  margin-left: 4px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-gray-light);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  transition: border-color var(--transition);
  background: var(--color-white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

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

.form-submit {
  text-align: center;
}

.form-submit .btn {
  width: 100%;
  padding: 16px;
  font-size: 1rem;
}

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 30% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 50%, rgba(212, 175, 55, 0.05) 0%, transparent 40%);
  pointer-events: none;
}

.cta-section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 16px;
  position: relative;
}

.cta-section p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 32px;
  position: relative;
}

.cta-section .btn {
  position: relative;
}

/* --- Footer --- */
.footer {
  background: #0a1f33;
  padding: 60px 0 0;
  color: rgba(255, 255, 255, 0.7);
}

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

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand .logo-img {
  height: 72px;
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.5);
}

.footer-nav h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 16px;
}

.footer-nav ul li {
  margin-bottom: 10px;
}

.footer-nav ul li a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--transition);
}

.footer-nav ul li a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  text-align: center;
  padding: 24px 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

/* --- Scroll Animation --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* --- Responsive --- */
@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-preview-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .service-detail {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .service-detail.reverse {
    direction: ltr;
  }

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

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: rgba(139, 115, 85, 0.98);
    flex-direction: column;
    padding: 20px 24px;
    gap: 0;
    backdrop-filter: blur(10px);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 1rem;
  }

  .menu-toggle {
    display: flex;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .section {
    padding: 60px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .section-header h2 {
    font-size: 1.6rem;
  }

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

  .page-hero {
    padding: 140px 0 60px;
  }

  .page-hero h1 {
    font-size: 1.8rem;
  }

  .company-table th {
    display: block;
    width: 100%;
    padding-bottom: 4px;
  }

  .company-table td {
    display: block;
    padding-top: 4px;
    padding-bottom: 16px;
  }

  .contact-form {
    padding: 30px 20px;
  }

  .contact-info-card {
    padding: 30px 24px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-buttons .btn {
    width: 100%;
    text-align: center;
  }
}
