/* Global Net Modern Styles - Professional Corporate */
:root {
  --primary: #1e3a5f;
  --primary-light: #2d5a8a;
  --primary-dark: #0f1f33;
  --accent: #c41e3a;
  --bg: #fafbfc;
  --bg-white: #ffffff;
  --text: #1a202c;
  --text-light: #4a5568;
  --text-muted: #718096;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

/* Header */
.header {
  position: fixed; top: 0; left: 0; right: 0;
  height: 70px;
  background: rgba(255,255,255,0.98);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: box-shadow 0.3s;
}

.header.scrolled { box-shadow: var(--shadow); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}

.logo { text-decoration: none; display: flex; align-items: center; gap: 0.5rem; }
.logo-text { font-size: 1.3rem; font-weight: 700; color: var(--primary); letter-spacing: -0.02em; }
.logo-tagline { font-size: 0.7rem; color: var(--text-muted); font-weight: 500; }

/* Navigation */
.nav-list { display: flex; list-style: none; gap: 0.25rem; }
.nav-item { position: relative; }
.nav-link {
  font-size: 0.85rem; font-weight: 500; color: var(--text-light);
  text-decoration: none; padding: 0.5rem 0.75rem; border-radius: 6px;
  transition: all 0.2s; display: block;
}
.nav-link:hover { color: var(--primary); background: var(--bg); }

/* Dropdown Menu */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: 100%; left: 0; background: var(--bg-white);
  border: 1px solid var(--border); border-radius: 8px;
  box-shadow: var(--shadow-lg); min-width: 220px; padding: 0.5rem 0;
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: all 0.2s; z-index: 1001;
}
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-item {
  display: block; padding: 0.625rem 1rem; font-size: 0.8rem;
  color: var(--text-light); text-decoration: none; transition: all 0.15s;
}
.dropdown-item:hover { background: var(--bg); color: var(--primary); }
.dropdown-arrow { display: inline-block; margin-left: 0.25rem; font-size: 0.7rem; }

/* Mobile Menu */
.menu-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 1px; }

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white; padding: 5rem 0 3rem; text-align: center;
}
.page-header h1 { font-size: 2rem; font-weight: 700; letter-spacing: 0.05em; }

/* Main Content */
.section { padding: 3rem 0; }
.content-box { background: var(--bg-white); padding: 3rem; border-radius: 12px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
@media (max-width: 768px) { .content-box { padding: 1.5rem; } }

/* Typography */
#contents h2, #contents h3 { color: var(--primary); margin: 2rem 0 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--border); }
#contents h2 { font-size: 1.5rem; font-weight: 700; }
#contents h2:first-child { margin-top: 0; }
#contents p { margin: 1rem 0; }

/* Tables - Default */
#contents table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.95rem; }
#contents th, #contents td { padding: 0.875rem 1rem; text-align: left; border: 1px solid var(--border); vertical-align: top; }
#contents th { background: var(--bg); font-weight: 600; color: var(--primary); }
#contents tr:nth-child(even) { background: var(--bg); }

/* Company Table (group.html) */
#contents .company-table { table-layout: fixed; }
#contents .company-table th,
#contents .company-table td { word-wrap: break-word; overflow-wrap: break-word; }
#contents .company-table th:first-child,
#contents .company-table td:first-child { width: 25%; }
#contents .company-table th:nth-child(2),
#contents .company-table td:nth-child(2) { width: 35%; }
#contents .company-table th:nth-child(3),
#contents .company-table td:nth-child(3) { width: 15%; }
#contents .company-table th:nth-child(4),
#contents .company-table td:nth-child(4) { width: 25%; }


/* Images */
#contents img { max-width: 100%; height: auto; border-radius: 8px; margin: 1rem 0; }

/* Links */
#contents a { color: var(--primary-light); text-decoration: none; }
#contents a:hover { text-decoration: underline; }

/* Footer */
.footer { background: var(--primary-dark); color: rgba(255,255,255,0.8); padding: 2.5rem 0; margin-top: 2rem; }
.footer p { margin: 0.25rem 0; }

/* Enhanced Mobile Menu Styles */
@media (max-width: 900px) {
  .nav { 
    position: fixed; 
    top: 70px; 
    left: 0; 
    right: 0; 
    background: white; 
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: 1rem;
    display: none;
    z-index: 999;
  }
  .nav.active { display: block; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-item { border-bottom: 1px solid var(--border); }
  .nav-item:last-child { border-bottom: none; }
  .nav-link { display: block; padding: 1rem; }
  .dropdown-menu { 
    position: static; 
    opacity: 1; 
    visibility: visible; 
    transform: none;
    box-shadow: none;
    border: none;
    padding-left: 1rem;
    display: none;
    min-width: auto;
  }
  .dropdown.active .dropdown-menu { display: block; }
  .dropdown-arrow { float: right; transition: transform 0.3s; }
  .dropdown.active .dropdown-arrow { transform: rotate(180deg); }
  .menu-toggle { display: flex !important; }
  .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); }
}

/* Mobile fixes */
@media (max-width: 900px) {
  .header { z-index: 1000; }
  .nav { z-index: 999; }
  .nav.active { display: block !important; }
  .content-box { overflow-x: auto; }
}

#contents .travel-table {
  table-layout: fixed;
}
#contents .travel-table th,
#contents .travel-table td {
  padding: 0.75rem 0.5rem;
  vertical-align: middle;
}
#contents .travel-table th:nth-child(1),
#contents .travel-table td:nth-child(1) { width: 20%; }
#contents .travel-table th:nth-child(2),
#contents .travel-table td:nth-child(2) { width: 15%; }
#contents .travel-table th:nth-child(3),
#contents .travel-table td:nth-child(3) { width: 40%; }
#contents .travel-table th:nth-child(4),
#contents .travel-table td:nth-child(4) { width: 25%; }

