@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&family=Noto+Serif+JP:wght@400;600;700&display=swap');

:root {
  --primary: #0F3460; /* Deep Navy Blue */
  --primary-light: #1A5276;
  --secondary: #2A2A2A; /* Charcoal Gray */
  --bg-color: #FAFAFA; /* Alabaster White */
  --bg-sand: #F4F1EA; /* Warm Sand */
  --text-main: #333333;
  --text-light: #666666;
  --white: #FFFFFF;
  --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text-main);
  background-color: var(--bg-color);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Noto Serif JP', serif;
  color: var(--secondary);
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  font-weight: 600;
  position: relative;
  letter-spacing: 0.1em;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--primary);
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

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

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

.logo {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.1em;
}

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

.nav-links li a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--secondary);
  position: relative;
  padding: 5px 0;
  transition: var(--transition);
}

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

.nav-links li a:hover {
  color: var(--primary);
}

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

.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
}

.hamburger svg {
  width: 28px;
  height: 28px;
  color: var(--secondary);
}

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

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transform: scale(1.05);
  transition: transform 10s linear;
}

.hero.loaded .hero-bg {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(42, 42, 42, 0.4), rgba(44, 74, 59, 0.6));
  z-index: -1;
}

.hero-content {
  text-align: center;
  color: var(--white);
  padding: 0 20px;
  margin-top: 40px; /* Offset for header */
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.15em;
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: 1.2rem;
  font-family: 'Noto Sans JP', sans-serif;
  letter-spacing: 0.05em;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* About Section */
.about {
  padding: 100px 0;
  background-color: var(--bg-color);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  margin-bottom: 60px;
}

.about-text {
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.8;
}

.company-table {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-collapse: collapse;
  background-color: var(--white);
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
  border-radius: 8px;
  overflow: hidden;
}

.company-table th, .company-table td {
  padding: 20px 30px;
  border-bottom: 1px solid #EEEEEE;
  text-align: left;
}

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

.company-table th {
  background-color: var(--bg-sand);
  width: 30%;
  font-weight: 500;
  color: var(--primary);
}

.company-table td {
  color: var(--text-main);
}

/* Business Areas Section */
.business {
  padding: 100px 0;
  background-color: var(--bg-sand);
}

.business-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.business-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.04);
  transition: var(--transition);
  position: relative;
  group: hover;
}

.business-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

.business-img-wrapper {
  overflow: hidden;
  height: 300px;
  position: relative;
}

.business-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.business-content {
  padding: 30px;
  position: relative;
}

.business-icon {
  position: absolute;
  top: -25px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 5px 15px rgba(15, 52, 96, 0.3);
}

.business-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--primary);
}

.business-card p {
  color: var(--text-light);
  line-height: 1.7;
}

/* Footer Section */
footer {
  background-color: var(--secondary);
  color: var(--white);
  padding: 80px 0 30px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 60px;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-info {
  flex: 1;
  min-width: 300px;
}

.footer-logo {
  font-family: 'Noto Serif JP', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  display: block;
  letter-spacing: 0.1em;
}

.footer-info p {
  color: #CCCCCC;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-links {
  flex: 1;
  min-width: 200px;
}

.footer-links h4 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-links h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--primary-light);
}

.footer-links ul li {
  margin-bottom: 12px;
}

.footer-links ul li a {
  color: #CCCCCC;
  transition: var(--transition);
}

.footer-links ul li a:hover {
  color: var(--primary-light);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #888888;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {
  .business-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--bg-color);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .hamburger {
    display: block;
  }
  
  .company-table, .company-table tbody, .company-table tr, .company-table th, .company-table td {
    display: block;
    width: 100%;
  }
  
  .company-table th {
    background-color: var(--bg-sand);
    border-bottom: none;
    padding-bottom: 10px;
  }
  
  .company-table td {
    padding-top: 5px;
    margin-bottom: 15px;
    border-bottom: 1px solid #EEEEEE;
  }
}
