/* ==========================================================================
   CSS Custom Properties & Design Tokens
   ========================================================================== */
:root {
  /* Color Palette */
  --primary-color: hsl(207, 45%, 15%);       /* Deep Navy */
  --primary-hover: hsl(207, 45%, 28%);       /* Medium Navy */
  --accent-color: hsl(207, 25%, 35%);        /* Slate Blue */
  --text-main: hsl(209, 30%, 20%);           /* Dark Charcoal/Blue */
  --text-muted: hsl(209, 15%, 45%);          /* Muted Blue-Grey */
  --bg-white: hsl(0, 0%, 100%);
  --bg-light: hsl(210, 20%, 98%);            /* Off-White */
  --border-color: hsl(207, 15%, 90%);
  --border-light: hsl(207, 15%, 95%);
  
  /* Fonts */
  --font-title: 'Cinzel', serif;
  --font-body: 'Noto Sans JP', sans-serif;
  
  /* Layout Spacings */
  --container-width: 1100px;
  --section-padding: 80px 24px;
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: all 0.2s ease;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-white);
  line-height: 1.8;
  letter-spacing: 0.05em;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

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

/* Common Layout Components */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 16px;
}

.section {
  padding: var(--section-padding);
}

/* ==========================================================================
   Typography & Headers
   ========================================================================== */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--primary-color);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  font-weight: 400;
}

.section-title .amp {
  text-transform: none;
  margin: 0 4px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition-smooth);
}

.site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.04);
}

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

.logo {
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--primary-color);
}

.logo a:hover {
  opacity: 0.8;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 36px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
  position: relative;
  padding: 8px 0;
  letter-spacing: 0.08em;
}

/* Underline Animation on Hover */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1.5px;
  background-color: var(--primary-color);
  transition: var(--transition-smooth);
  transform: translateX(-50%);
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active-link {
  color: var(--primary-hover);
}

.nav-link.active-link::after {
  width: 100%;
}

/* Mobile Hamburger Menu Toggle Trigger */
.menu-trigger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 1010;
}

.menu-trigger span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background-color: var(--primary-color);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

.menu-trigger span:nth-child(1) { top: 0px; }
.menu-trigger span:nth-child(2) { top: 10px; }
.menu-trigger span:nth-child(3) { top: 20px; }

/* Hamburger Open Animation */
.menu-trigger.active span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}
.menu-trigger.active span:nth-child(2) {
  opacity: 0;
}
.menu-trigger.active span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* Add padding to body to compensate for fixed header */
body {
  padding-top: 80px;
}

/* ==========================================================================
   Section 1: Mission & Vision
   ========================================================================== */
.mission-section {
  background-color: var(--bg-white);
  padding-top: 100px;
  padding-bottom: 80px;
}

.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 40px;
}

.mission-card {
  padding: 10px 10px;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1.5px solid var(--primary-color);
  padding-bottom: 10px;
}

.card-title .title-jp {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.card-text {
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 2.0;
  text-align: justify;
}


/* ==========================================================================
   Section 2: Corporate Overview Table
   ========================================================================== */
.overview-section {
  background-color: var(--bg-white);
  border-top: 1px solid var(--border-light);
}

.table-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.overview-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.overview-table tr {
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-fast);
}

.overview-table tr:hover {
  background-color: var(--bg-light);
}

.overview-table th {
  text-align: left;
  width: 25%;
  padding: 24px 16px;
  font-weight: 700;
  color: var(--primary-color);
  vertical-align: top;
}

.overview-table td {
  padding: 24px 16px;
  color: var(--text-main);
  line-height: 1.8;
}

.text-link {
  color: var(--accent-color);
  position: relative;
  word-break: break-all;
}

.text-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background-color: var(--accent-color);
  transform: scaleX(1);
  transition: var(--transition-fast);
  transform-origin: bottom left;
}

.text-link:hover {
  color: var(--primary-hover);
}

.text-link:hover::after {
  transform: scaleX(0);
  transform-origin: bottom right;
}

/* ==========================================================================
   Section 3: Contact Section
   ========================================================================== */
.contact-section {
  background-color: var(--bg-white);
  border-top: 1px solid var(--border-light);
  padding-bottom: 120px;
}

.contact-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.contact-details {
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.contact-item {
  font-size: 1.35rem;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-item .label {
  font-weight: 400;
  font-family: var(--font-title);
  color: var(--text-muted);
}

.contact-link {
  font-weight: 500;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.contact-link:hover {
  color: var(--primary-hover);
  border-bottom-color: var(--primary-hover);
}

.contact-message {
  font-size: 1rem;
  color: var(--text-main);
  line-height: 2.0;
}

.contact-message p {
  margin-bottom: 10px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--bg-light);
  border-top: 1px solid var(--border-color);
  padding: 60px 24px;
  color: var(--text-main);
}

.footer-container {
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-company {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 0.1em;
}

.footer-address {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-tel,
.footer-mail {
  font-size: 0.95rem;
  color: var(--text-main);
  font-weight: 500;
}

.footer-link {
  transition: var(--transition-fast);
}

.footer-link:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

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

/* ==========================================================================
   Animations & Reveals
   ========================================================================== */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform, opacity;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */

/* Tablet Screens (under 1024px) */
@media (max-width: 1024px) {
  :root {
    --section-padding: 60px 16px;
  }
  
  .mission-grid {
    gap: 40px;
  }
}

/* Mobile Screens (under 768px) */
@media (max-width: 768px) {
  body {
    padding-top: 70px;
  }
  
  .mission-section .section-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
    font-size: 2.1rem;
  }
  
  .mission-section .section-title span {
    display: block;
  }
  
  .mission-section .section-title .amp {
    font-size: 1.6rem;
    margin: 6px 0;
    color: var(--text-muted);
  }

  .header-container {
    height: 70px;
  }
  
  /* Mobile Menu Toggle Styling */
  .menu-trigger {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: calc(100vh - 70px);
    background-color: var(--bg-white);
    box-shadow: -10px 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
    padding: 40px 24px;
    z-index: 1005;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-list {
    flex-direction: column;
    gap: 24px;
  }
  
  .nav-link {
    font-size: 1.1rem;
    display: block;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 12px;
  }
  
  .nav-link::after {
    display: none;
  }
  
  /* Mission Layout Collapse */
  .mission-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  /* Corporate Overview Table Collapse for Mobile */
  .overview-table th, .overview-table td {
    padding: 16px 8px;
  }
  
  .overview-table tr {
    display: flex;
    flex-direction: column;
    padding: 12px 0;
  }
  
  .overview-table th {
    width: 100%;
    padding-bottom: 4px;
    font-size: 0.95rem;
  }
  
  .overview-table td {
    width: 100%;
    padding-top: 4px;
    font-size: 0.9rem;
  }
  
  /* Contact Layout Scaling */
  .contact-item {
    font-size: 1.1rem;
  }
  
  /* Footer Layout Collapse */
  .footer-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  
  .footer-copyright {
    align-self: flex-start;
  }
}
