@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  /* Color Palette */
  --color-bg: #fcfcfb;
  --color-surface: #ffffff;
  --color-text: #1c2022;
  --color-muted: #62686c;
  --color-border: #e5e5e0;
  
  /* Brand Accents */
  --color-primary: #0e1a24; /* Deep Navy */
  --color-accent: #927f56;  /* Dark Bronze Gold */
  --color-accent-light: #f4ede0;
  
  /* Shadow & Transition */
  --shadow-subtle: 0 4px 20px rgba(14, 26, 36, 0.04);
  --shadow-premium: 0 16px 40px rgba(14, 26, 36, 0.08);
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
  
  /* Layout */
  --container-max-width: 1040px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.03em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.nav-open {
  overflow: hidden;
}

/* Typography */
h1, h2, h3, h4, .font-serif {
  font-family: "Playfair Display", "Noto Sans JP", serif;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-primary);
}

.eyebrow {
  font-family: "Playfair Display", serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
  display: block;
}

.lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--color-muted);
}

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

/* Interactive Link Effect */
.interactive-link {
  position: relative;
  font-weight: 500;
  color: var(--color-accent);
  padding-bottom: 2px;
}

.interactive-link::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 1px;
  bottom: 0;
  left: 0;
  background-color: var(--color-accent);
  transform-origin: bottom right;
  transition: transform 0.3s ease-out;
}

.interactive-link:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(252, 252, 251, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition-smooth);
}

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

.brand {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-primary);
}

.brand-sub {
  font-family: "Playfair Display", serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--color-accent);
}

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

.site-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  padding: 8px 0;
  position: relative;
}

.site-nav a::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--color-accent);
  transform: scaleX(0);
  transition: var(--transition-smooth);
}

.site-nav a:hover {
  color: var(--color-accent);
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-nav a[aria-current="page"] {
  color: var(--color-accent);
  font-weight: 700;
}

/* Nav Toggle (Hamburger) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 110;
}

.nav-toggle-box {
  display: inline-block;
  position: relative;
  width: 24px;
  height: 16px;
}

.nav-toggle-inner,
.nav-toggle-inner::before,
.nav-toggle-inner::after {
  position: absolute;
  width: 24px;
  height: 2px;
  background-color: var(--color-primary);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.nav-toggle-inner {
  top: 50%;
  transform: translateY(-50%);
}

.nav-toggle-inner::before,
.nav-toggle-inner::after {
  content: "";
}

.nav-toggle-inner::before {
  top: -7px;
}

.nav-toggle-inner::after {
  top: 7px;
}

/* Active Nav Toggle Animation */
.nav-toggle[aria-expanded="true"] .nav-toggle-inner {
  background-color: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-inner::before {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-inner::after {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero Sections */
.home-hero, .page-hero {
  background-color: var(--color-primary);
  position: relative;
  overflow: hidden;
  color: #ffffff;
}

.home-hero {
  min-height: 580px;
  display: flex;
  align-items: center;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(135deg, rgba(14, 26, 36, 0.95) 30%, rgba(14, 26, 36, 0.6) 100%), url("../img/recruiting4.jpg");
  background-position: center;
  background-size: cover;
  z-index: 1;
}

.page-hero {
  padding: 100px 0 80px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.home-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: #ffffff;
  margin-bottom: 1.5rem;
  max-width: 800px;
  letter-spacing: 0.02em;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: #ffffff;
  margin-bottom: 1rem;
}

.hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.7;
  color: #ced6dc;
  max-width: 700px;
  margin-bottom: 2.5rem;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
}

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

.btn-primary:hover {
  background-color: #796843;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(146, 127, 86, 0.2);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.4);
  background-color: transparent;
  color: #ffffff;
}

.btn-outline:hover {
  border-color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.btn-secondary {
  border-color: var(--color-border);
  background-color: var(--color-surface);
  color: var(--color-primary);
}

.btn-secondary:hover {
  border-color: var(--color-primary);
  background-color: var(--color-bg);
  transform: translateY(-2px);
}

/* Sections */
.section {
  padding: 100px 24px;
}

.section-tight {
  padding: 60px 24px;
}

.section-dark {
  background-color: #121c24;
  color: #edf0f2;
}

.section-dark h2 {
  color: #ffffff;
}

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.section-header {
  margin-bottom: 60px;
  max-width: 700px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 1.25rem;
}

.section-header p {
  color: var(--color-muted);
  font-size: 1.05rem;
}

.section-dark .section-header p {
  color: #a0aab0;
}

/* Grid System */
.grid {
  display: grid;
  gap: 32px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* Cards */
.card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 40px;
  border-radius: 2px;
  transition: var(--transition-smooth);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-premium);
  border-color: rgba(146, 127, 86, 0.3);
}

.card h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.card p {
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.card ul {
  list-style: none;
  margin-top: 1.5rem;
}

.card li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: var(--color-text);
}

.card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-accent);
}

/* Info Cards */
.info-card-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
}

.info-banner {
  background-color: var(--color-primary);
  color: #ffffff;
  padding: 60px;
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.info-banner h2 {
  color: #ffffff;
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

.info-banner p {
  color: #ced6dc;
  margin-bottom: 2rem;
}

/* Facts / Counter */
.facts {
  display: flex;
  justify-content: flex-start;
  gap: 48px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.fact-item {
  background-color: transparent;
  border-bottom: none;
  padding: 0;
  text-align: left;
  box-shadow: none;
  transition: none;
}

.fact-item:hover {
  transform: none;
  box-shadow: none;
}

.fact-num {
  font-family: "Playfair Display", serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1.2;
  margin-bottom: 4px;
}

.fact-label {
  font-size: 0.8rem;
  color: var(--color-muted);
  font-weight: 500;
}

/* Image Showcase */
.showcase-block {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}

.showcase-img {
  width: 100%;
  height: 100%;
  min-height: 350px;
  object-fit: cover;
}

.showcase-text {
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.showcase-text h2 {
  margin-bottom: 1.25rem;
}

.showcase-text p {
  color: var(--color-muted);
  margin-bottom: 2rem;
}

/* Tables */
.table-container {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-subtle);
  overflow-x: auto;
}

.premium-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
  font-size: 0.95rem;
}

.premium-table th,
.premium-table td {
  padding: 20px 24px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--color-border);
}

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

.premium-table th {
  width: 200px;
  background-color: #f7f7f5;
  color: var(--color-primary);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.premium-table td {
  color: var(--color-text);
  line-height: 1.7;
}

.premium-table tr {
  transition: var(--transition-fast);
}

.premium-table tr:hover td {
  background-color: rgba(244, 237, 224, 0.15);
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 1px;
  background-color: var(--color-border);
}

.timeline-item {
  position: relative;
  padding-left: 60px;
  margin-bottom: 40px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: 15px;
  top: 6px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background-color: var(--color-accent);
  border: 2px solid var(--color-bg);
  z-index: 2;
  transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.3);
  background-color: var(--color-primary);
}

.timeline-year {
  font-family: "Playfair Display", serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 6px;
  line-height: 1.2;
}

.timeline-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 24px 30px;
  border-radius: 2px;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-card {
  border-color: rgba(146, 127, 86, 0.3);
  box-shadow: var(--shadow-premium);
}

.timeline-card h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.timeline-card p {
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.6;
}

/* Access / Location Cards */
.location-list {
  display: grid;
  gap: 24px;
}

.location-item {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 280px;
  box-shadow: var(--shadow-subtle);
}

.location-item.primary {
  border-left: 4px solid var(--color-accent);
}

.location-info {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.location-info h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.location-address {
  font-size: 1.05rem;
  color: var(--color-primary);
  font-weight: 500;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.location-desc {
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.location-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.location-item-sub {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 32px;
  border-radius: 2px;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-smooth);
}

.location-item-sub:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-premium);
  border-color: rgba(146, 127, 86, 0.2);
}

.location-item-sub h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.location-item-sub .location-address {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.location-item-sub .location-desc {
  font-size: 0.85rem;
  margin-bottom: 0;
}

/* Alert Note */
.premium-note {
  border-left: 4px solid var(--color-accent);
  background-color: var(--color-accent-light);
  padding: 24px 30px;
  border-radius: 2px;
  color: #5d5239;
  font-size: 0.95rem;
  line-height: 1.6;
}

.premium-note strong {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--color-primary);
}

.note-footer {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-top: 24px;
  text-align: center;
}

/* Footer */
.site-footer {
  background-color: #121c24;
  color: #a0aab0;
  border-top: 1px solid #1c2a36;
  padding: 60px 24px;
  font-size: 0.9rem;
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-brand .name {
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.05em;
}

.footer-brand .copy {
  font-size: 0.75rem;
  margin-top: 4px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #a0aab0;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-accent);
}

/* Responsive Styles */
@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-bg);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 40px 32px;
    gap: 0;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    z-index: 90;
    overflow-y: auto;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    font-size: 1.2rem;
    padding: 20px 0;
    border-bottom: 1px solid var(--color-border);
    display: block;
  }

  .site-nav a::after {
    display: none;
  }

  .grid-3, .grid-2 {
    grid-template-columns: 1fr;
  }

  .facts {
    gap: 24px 32px;
  }

  .info-card-grid, .showcase-block, .location-item {
    grid-template-columns: 1fr;
  }
  
  .location-item {
    min-height: auto;
  }
  
  .location-img {
    height: 200px;
  }

  .home-hero {
    min-height: 480px;
  }

  .section {
    padding: 70px 20px;
  }
  
  .section-tight {
    padding: 40px 20px;
  }

  .info-banner, .showcase-text, .location-info {
    padding: 32px 24px;
  }

  .card, .location-item-sub {
    padding: 32px 24px;
  }
  
  .premium-table th {
    width: 130px;
    padding: 16px 14px;
  }
  
  .premium-table td {
    padding: 16px 14px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }
  
  .header-inner {
    height: 70px;
    padding: 0 16px;
  }
  
  .site-nav {
    top: 70px;
    padding: 30px 20px;
  }
  
  .home-hero {
    min-height: 400px;
  }
  
  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }
  
  .btn {
    width: 100%;
  }

  .timeline::before {
    left: 12px;
  }
  
  .timeline-item {
    padding-left: 36px;
  }
  
  .timeline-dot {
    left: 7px;
  }
  
  .timeline-card {
    padding: 18px 20px;
  }
  
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .premium-table th, 
  .premium-table td {
    display: block;
    width: 100%;
    border-bottom: none;
  }
  
  .premium-table th {
    background-color: #f7f7f5;
    padding-bottom: 8px;
  }
  
  .premium-table td {
    padding-top: 8px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
  }
  
  .premium-table tr:last-child td {
    border-bottom: none;
  }
}
