/* ====================================
   Linked3×3 — v4 Full-Width Editorial
   ==================================== */

:root {
  --primary: #1a1b4b;
  --primary-mid: #2e3092;
  --accent: #d6006e;
  --sub: #00a84f;

  --ink: #111122;
  --text: #2a2a42;
  --text-2: #5a5a72;
  --text-3: #9a9ab0;
  --border: #e2e2ec;
  --surface: #f5f5fa;
  --white: #ffffff;

  --font: 'Noto Sans JP', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-en: 'Inter', 'Noto Sans JP', sans-serif;
  --font-display: 'Outfit', 'Inter', sans-serif;
  --font-serif: 'Noto Serif JP', 'Yu Mincho', serif;
  --max-w: 1320px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.wide-container { max-width: var(--max-w); margin: 0 auto; padding: 0 48px; }
.container { max-width: 1060px; margin: 0 auto; padding: 0 24px; }
.hide-sp { display: none; }
@media (min-width: 768px) { .hide-sp { display: inline; } }

/* --- Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }

/* ====================================
   Buttons
   ==================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-display);
  letter-spacing: 0.01em;
  transition: all 0.25s var(--ease);
  cursor: pointer;
  border: none;
}
.btn--primary {
  background: var(--primary);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--primary-mid);
  box-shadow: 0 4px 20px rgba(26,27,75,0.2);
}
.btn--outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--border);
}
.btn--outline:hover { border-color: var(--primary); }
.btn--white {
  background: var(--white);
  color: var(--primary);
}
.btn--white:hover {
  background: rgba(255,255,255,0.88);
  box-shadow: 0 4px 20px rgba(255,255,255,0.12);
}
.btn--ghost {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.3);
}
.btn--ghost:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.15);
}
.btn--lg { padding: 18px 52px; font-size: 1rem; }

/* ====================================
   Navigation
   ==================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000; padding: 24px 0;
  transition: all 0.4s var(--ease);
}
.nav.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 16px 0;
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 48px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo-icon { height: 28px; width: auto; }
.nav-logo-icon path { fill: var(--white); transition: fill 0.4s; }
.nav.scrolled .nav-logo-icon path { fill: var(--primary); }
.nav-logo-text {
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 700;
  color: var(--white); transition: color 0.4s;
}
.nav-logo-text .logo-3x3 { opacity: 0.6; }
.nav.scrolled .nav-logo-text { color: var(--ink); }
.nav.scrolled .logo-3x3 { color: var(--primary-mid); opacity: 1; }

.nav-toggle {
  display: flex; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px; z-index: 1001;
}
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--white); transition: all 0.3s var(--ease); }
.nav.scrolled .nav-toggle span { background: var(--ink); }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

.nav-links {
  position: fixed; top: 0; right: -100%; width: 80%; max-width: 340px; height: 100vh;
  background: var(--white); display: flex; flex-direction: column;
  align-items: flex-start; justify-content: center; padding: 48px; gap: 28px;
  transition: right 0.4s var(--ease); box-shadow: -8px 0 32px rgba(0,0,0,0.06);
}
.nav-links.open { right: 0; }
.nav-links a { color: var(--text); font-size: 0.95rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--primary-mid); }
.nav-cta {
  padding: 10px 24px !important; border: 1px solid var(--primary); border-radius: 6px;
  color: var(--primary) !important; font-size: 0.85rem !important; font-weight: 600 !important;
}
.nav-cta:hover { background: var(--primary); color: var(--white) !important; }

@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .nav-links {
    position: static; width: auto; max-width: none; height: auto;
    background: none; flex-direction: row; align-items: center;
    padding: 0; gap: 36px; box-shadow: none;
  }
  .nav-links a { color: rgba(255,255,255,0.6); font-size: 0.85rem; }
  .nav-links a:hover { color: var(--white); }
  .nav.scrolled .nav-links a { color: var(--text-2); }
  .nav.scrolled .nav-links a:hover { color: var(--primary); }
  .nav-cta { border-color: rgba(255,255,255,0.3) !important; color: var(--white) !important; }
  .nav-cta:hover { background: var(--white) !important; color: var(--primary) !important; border-color: var(--white) !important; }
  .nav.scrolled .nav-cta { border-color: var(--primary) !important; color: var(--primary) !important; }
  .nav.scrolled .nav-cta:hover { background: var(--primary) !important; color: var(--white) !important; }
}

/* ====================================
   Hero — left-aligned, full-width
   ==================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  background: var(--primary);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: -5%; pointer-events: none;
  background: url('../img/hero-bg.png') center center / cover no-repeat;
  animation: heroPan 20s ease-in-out infinite alternate;
}
@keyframes heroPan {
  0%   { transform: scale(1.0) translate(0, 0); }
  100% { transform: scale(1.08) translate(-1.5%, -1%); }
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(13,14,48,0.75) 0%, rgba(26,27,75,0.55) 50%, rgba(13,14,48,0.7) 100%);
}
.hero-inner {
  position: relative; z-index: 1;
  padding: 0 48px; max-width: var(--max-w); margin: 0 auto; width: 100%;
  text-align: left;
}
.hero-badge {
  font-family: var(--font-display);
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.2em;
  color: rgba(255,255,255,0.3); margin-bottom: 40px;
  opacity: 0; animation: fadeIn 0.8s var(--ease) 0.2s forwards;
}
.hero-title {
  font-family: 'HGS明朝B', 'HGSMinchoB', 'Yu Mincho', 'YuMincho', serif;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 900; color: var(--white);
  line-height: 1.25; letter-spacing: -0.03em; margin-bottom: 36px;
  opacity: 0; animation: fadeIn 0.8s var(--ease) 0.35s forwards;
}
.hero-accent {
  background: linear-gradient(90deg, #e8a0d0, #c8b0ff, #90c8ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 24px rgba(200,160,255,0.4));
}
.hero-desc {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: rgba(255,255,255,0.88); line-height: 2; margin-bottom: 8px;
  max-width: none;
  opacity: 0; animation: fadeIn 0.8s var(--ease) 0.55s forwards;
}
.hero-desc--2 { margin-bottom: 52px; }
.hero-actions {
  display: flex; gap: 16px; flex-wrap: wrap;
  opacity: 0; animation: fadeIn 0.8s var(--ease) 0.7s forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ====================================
   Section Common
   ==================================== */
.section { padding: clamp(100px, 12vw, 160px) 0; }
.section-label {
  font-family: var(--font-display); font-size: 0.88rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-3); display: block; margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800;
  line-height: 1.3; color: var(--ink); margin-bottom: 20px;
  letter-spacing: -0.02em;
}

/* ====================================
   Guild
   ==================================== */
.guild { background: var(--surface); }

/* Guild full-width container */
.guild-full-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Our Business banner — ribbon/tag style */
.guild-banner {
  text-align: center;
  margin-bottom: 48px;
  position: relative;
}
.guild-banner::before,
.guild-banner::after,
.value-banner::before,
.value-banner::after {
  content: '';
  position: absolute;
  top: 50%;
  width: clamp(60px, 12vw, 180px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.guild-banner::before,
.value-banner::before { right: calc(50% + clamp(120px, 16vw, 200px)); }
.guild-banner::after,
.value-banner::after  { left:  calc(50% + clamp(120px, 16vw, 200px)); }
.section-banner-text,
.guild-banner-text,
.value-banner-text {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-style: italic;
  font-weight: 700;
  color: var(--white);
  background: linear-gradient(135deg, #1a1b4b 0%, #2e3092 100%);
  padding: 18px 72px;
  width: 440px;
  text-align: center;
  box-sizing: border-box;
  border: none;
  position: relative;
  letter-spacing: 0.06em;
  box-shadow: 0 8px 32px rgba(26,27,75,0.4), 0 2px 8px rgba(46,48,146,0.3);
}
.section-banner-text::before,
.guild-banner-text::before,
.value-banner-text::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(255,255,255,0.25);
}
.section-banner-text::after,
.guild-banner-text::after,
.value-banner-text::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 20px;
  right: 20px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #c8a84e, #e8d48a, #c8a84e, transparent);
  border-radius: 2px;
}

.guild-name {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  letter-spacing: 0.15em;
  padding: 0;
  background: none;
  border-radius: 0;
}
.guild-name::before {
  content: '';
  width: 32px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-mid));
  flex-shrink: 0;
}
.guild-name::after {
  content: '';
  width: 32px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-mid), var(--primary));
  flex-shrink: 0;
}
.guild-intro { margin-bottom: 72px; }
.guild-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 900; color: var(--ink); line-height: 1.3;
  margin-bottom: 24px; letter-spacing: -0.02em;
}
.guild-em {
  font-size: 1.2em;
  color: var(--primary-mid);
}
.guild-lead {
  font-size: clamp(1rem, 1.5vw, 1.15rem); color: var(--text-2); line-height: 2;
  max-width: 800px;
}
.guild-lead-em {
  font-size: 1.2em;
  color: var(--primary-mid);
  font-weight: 900;
  letter-spacing: 0.05em;
}

/* --- Guild Steps Image --- */
.guild-steps-img {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 32px rgba(0,0,0,0.06);
  border: 1px solid var(--border);
}
.guild-steps-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Guild Steps Block (legacy) --- */
.guild-steps-block {
  background: var(--primary);
  border-radius: 20px;
  padding: 56px 56px 48px;
  color: var(--white);
}
.guild-steps-heading {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 36px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

/* 3-column grid */
.guild-steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 40px;
}
.guild-step-col {
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 28px 24px;
  border: 1px solid rgba(255,255,255,0.08);
}
.guild-step-col-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(255,255,255,0.2);
}
.guild-step-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.guild-step-col li {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  padding-left: 16px;
  position: relative;
}
.guild-step-col li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
}

/* Bottom feature cards */
.guild-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.guild-feature {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 24px;
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
}
.guild-feature-icon {
  width: 36px;
  height: 36px;
  color: rgba(255,255,255,0.5);
}
.guild-feature-icon svg {
  width: 100%;
  height: 100%;
}
.guild-feature h5 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
}
.guild-feature p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
}

@media (min-width: 768px) {
  .guild-steps-grid { grid-template-columns: repeat(3, 1fr); }
  .guild-features { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .guild-steps-block { padding: 36px 24px 32px; }
}

/* ====================================
   Values (三方良し) — KTX Features style
   ==================================== */
.values {
  background: var(--white);
  padding-bottom: 0;
}

/* Value banner */
.value-banner {
  text-align: center;
  margin-bottom: 48px;
  position: relative;
}
/* value-banner-text styles are now shared via .section-banner-text above */

.values-header { margin-bottom: 48px; text-align: center; }
.values-lead {
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  color: var(--text-2); line-height: 2;
  letter-spacing: 0.05em;
}
.values-keyword {
  color: var(--primary-mid);
  font-weight: 700;
  font-size: 1.15em;
}

/* Each value row: full-width 2-column */
.value-row {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 380px;
}

.value-text {
  padding: clamp(48px, 6vw, 80px) clamp(32px, 5vw, 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--white);
}

/* Tag style for "For Talent" etc */
.value-tag {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-style: italic;
  font-weight: 700;
  color: var(--primary);
  padding: 0;
  border: none;
  margin-bottom: 28px;
  letter-spacing: 0.08em;
}

.value-text p {
  font-size: clamp(0.95rem, 1.3vw, 1.08rem);
  line-height: 2;
  color: var(--text);
  margin-bottom: 4px;
}
.value-text p strong {
  color: var(--ink);
  font-weight: 700;
}

/* Visual block (colored) with catchphrase */
.value-visual {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  padding: 48px;
}
.value-visual--deep,
.value-visual--navy,
.value-visual--royal {
  background: url('../img/value-bg.png') center center / cover no-repeat;
}

/* Catchphrase inside visual */
.value-catch {
  font-family: 'HGS明朝B', 'HGSMinchoB', 'Yu Mincho', 'YuMincho', serif;
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.5;
  letter-spacing: 0.02em;
  position: relative;
  z-index: 1;
}
.value-catch em {
  font-style: normal;
  font-size: 1.5em;
}

/* Watermark number */
.value-watermark {
  position: absolute;
  bottom: -10px;
  right: 20px;
  font-family: var(--font-serif);
  font-size: clamp(7rem, 14vw, 12rem);
  font-weight: 900;
  font-style: italic;
  color: rgba(255,255,255,0.06);
  line-height: 1;
  z-index: 0;
  user-select: none;
}

@media (min-width: 768px) {
  .value-row {
    grid-template-columns: 1fr 1fr;
    min-height: 440px;
  }
  .value-text {
    padding: 72px 80px;
  }
  .value-visual {
    padding: 60px;
  }
}

/* ====================================
   Program (Steps)
   ==================================== */
.program { background: var(--white); }

.program-header { margin-bottom: 56px; }
.program-sub {
  font-size: clamp(0.95rem, 1.3vw, 1.08rem);
  color: var(--text-2);
}

.steps-timeline {
  display: flex; flex-direction: column; gap: 0;
  margin-bottom: 72px;
}
.step {
  display: flex; gap: 28px; align-items: stretch;
}
.step-marker {
  display: flex; flex-direction: column; align-items: center;
  flex-shrink: 0; width: 56px;
}
.step-marker-num {
  font-family: var(--font-display); font-size: 0.88rem; font-weight: 800;
  color: var(--white); background: var(--primary);
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.step-marker-line {
  width: 2px; flex: 1; background: var(--border); margin: 8px 0 0;
}
.step-content { padding-bottom: 44px; flex: 1; }
.step:last-child .step-content { padding-bottom: 0; }
.step-phase {
  font-family: var(--font-display); font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.08em; color: var(--primary-mid); text-transform: uppercase;
  display: block; margin-bottom: 8px;
}
.step-name {
  font-size: 1.25rem; font-weight: 700; color: var(--ink); margin-bottom: 8px;
}
.step-goal {
  font-size: 1rem; color: var(--text-2); line-height: 1.8;
}

@media (min-width: 768px) {
  .steps-timeline { flex-direction: row; gap: 0; }
  .step { flex-direction: column; flex: 1; gap: 0; }
  .step-marker { flex-direction: row; width: auto; height: auto; margin-bottom: 24px; }
  .step-marker-line { width: auto; height: 2px; flex: 1; margin: 0 0 0 8px; }
  .step:last-child .step-marker-line { display: none; }
  .step-content { padding-bottom: 0; padding-right: 32px; }
  .step:last-child .step-content { padding-right: 0; }
}

/* --- Guild CTA --- */
.guild-cta {
  display: flex; align-items: center; gap: 28px;
  flex-wrap: wrap;
}
.guild-contact-link {
  font-size: 0.92rem; font-weight: 500; color: var(--text-2);
  transition: color 0.2s;
}
.guild-contact-link:hover { color: var(--primary); }

/* ====================================
   Team
   ==================================== */
.team { background: var(--surface); }
.team-banner {
  text-align: center;
  margin-bottom: 48px;
  position: relative;
}
.team-banner::before,
.team-banner::after {
  content: '';
  position: absolute;
  top: 50%;
  width: clamp(60px, 12vw, 180px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.team-banner::before { right: calc(50% + clamp(120px, 16vw, 200px)); }
.team-banner::after  { left:  calc(50% + clamp(120px, 16vw, 200px)); }

/* Team cards — 3-column dark cards */
.team-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: none;
  margin: 0 auto;
}
.team-card {
  background: linear-gradient(135deg, #1a1b4b 0%, #2e3092 100%);
  border-radius: 16px;
  padding: 56px 40px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.team-card-photo {
  width: 140px; height: 140px; border-radius: 50%;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 28px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  overflow: hidden;
}
.team-card-photo img {
  width: 130%; height: 130%;
  object-fit: contain;
  object-position: bottom center;
}
.team-card-name {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
  letter-spacing: 0.08em;
}
.team-card-name-en {
  font-family: var(--font-serif);
  font-size: 0.92rem;
  font-style: italic;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}
.team-card-role {
  display: block;
  width: 100%;
  max-width: 320px;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  background: none;
  border: 1px solid rgba(255,255,255,0.25);
  padding: 10px 20px;
  border-radius: 4px;
  margin-bottom: 20px;
  text-align: center;
  white-space: nowrap;
}
.team-card-career {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.8;
  margin-bottom: 20px;
}
.team-card-tags {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
}
.team-card-tags span {
  font-size: 0.88rem; font-weight: 500;
  color: rgba(255,255,255,0.7);
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
}

@media (min-width: 768px) {
  .team-cards { grid-template-columns: repeat(3, 1fr); }
}

/* ====================================
   Bottom (Company + Contact)
   ==================================== */
.bottom { background: var(--white); }

.bottom-grid {
  display: grid; grid-template-columns: 1fr; gap: 72px;
  max-width: 1400px; margin: 0 auto;
}
.bottom-banner-inline {
  margin-bottom: 32px;
}

.company-table { width: 100%; border-collapse: collapse; margin-top: 0; text-align: left; }
.company-table tr { border-bottom: 1px solid var(--border); }
.company-table th, .company-table td { padding: 18px 0; text-align: left; vertical-align: top; }
.company-table th { font-size: 0.88rem; font-weight: 500; color: var(--text-3); width: 110px; white-space: nowrap; }
.company-table td { font-size: 0.95rem; color: var(--ink); line-height: 1.8; }

.bottom-contact-desc {
  font-size: 1rem; color: var(--text-2); line-height: 2; margin-bottom: 32px;
}
.bottom-contact-links { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

.bottom-company, .bottom-contact { text-align: center; }

@media (min-width: 768px) {
  .bottom-grid { grid-template-columns: 1fr 1fr; gap: 120px; align-items: start; }
}

/* ====================================
   Footer
   ==================================== */
.footer {
  background: linear-gradient(135deg, #0d0e30 0%, #1a1b4b 100%);
  color: var(--white);
  padding: 48px 0;
}
.footer-inner {
  display: flex; flex-direction: column; align-items: center;
  gap: 24px; margin-bottom: 28px;
}
.footer-name {
  font-family: var(--font-display); font-size: 1rem; font-weight: 700;
}
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.footer-nav a { font-size: 0.85rem; color: rgba(255,255,255,0.3); transition: color 0.2s; }
.footer-nav a:hover { color: rgba(255,255,255,0.7); }
.footer-copy {
  font-size: 0.78rem; color: rgba(255,255,255,0.15); text-align: center;
}

@media (min-width: 768px) {
  .footer-inner { flex-direction: row; justify-content: space-between; }
}

/* ====================================
   Mobile overlay
   ==================================== */
.nav-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.2);
  z-index: 999; opacity: 0; visibility: hidden; transition: all 0.3s var(--ease);
}
.nav-overlay.active { opacity: 1; visibility: visible; }

/* ====================================
   Form Pages (contact.html, entry.html)
   ==================================== */
.page-header {
  background: var(--primary); padding: 140px 0 60px; text-align: center;
}
.page-header .section-label { color: rgba(255,255,255,0.4); }
.page-header .section-title { color: var(--white); }
.page-header .section-desc,
.page-header .section-lead { color: rgba(255,255,255,0.5); }

.form-section { padding: 80px 0 120px; background: var(--white); }
.form-wrapper {
  max-width: 600px; margin: 0 auto;
  background: var(--surface); border-radius: 12px;
  padding: 44px 36px; border: 1px solid var(--border);
}
.form-intro {
  font-size: 0.88rem; color: var(--text-2); line-height: 1.8;
  margin-bottom: 36px; padding-bottom: 20px; border-bottom: 1px solid var(--border);
}
.form-group { margin-bottom: 24px; }
.form-label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.form-label .required {
  font-size: 0.65rem; font-weight: 600; color: var(--white);
  background: var(--accent); padding: 2px 7px; border-radius: 3px; margin-left: 6px;
}
.form-label .optional {
  font-size: 0.65rem; color: var(--text-3);
  background: var(--surface); padding: 2px 7px; border-radius: 3px; margin-left: 6px;
}
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 12px 14px; font-family: var(--font); font-size: 0.88rem;
  color: var(--ink); background: var(--white); border: 1px solid var(--border);
  border-radius: 6px; outline: none; transition: border-color 0.2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--primary-mid); }
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-3); }
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239a9ab0' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; cursor: pointer;
}
.form-textarea { min-height: 140px; resize: vertical; line-height: 1.7; }
.form-hint { font-size: 0.75rem; color: var(--text-3); margin-top: 5px; }
.form-radio-group { display: flex; flex-direction: column; gap: 7px; }
.form-radio-label {
  display: flex; align-items: center; gap: 10px; font-size: 0.85rem;
  color: var(--text); cursor: pointer; padding: 11px 14px;
  background: var(--white); border-radius: 6px; border: 1px solid var(--border);
  transition: border-color 0.2s;
}
.form-radio-label:hover { border-color: var(--primary-mid); }
.form-radio-label input[type="radio"],
.form-radio-label input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--primary-mid); cursor: pointer; }
.form-submit { margin-top: 36px; text-align: center; }
.form-submit .btn { min-width: 220px; font-family: var(--font); }
.form-privacy { font-size: 0.75rem; color: var(--text-3); text-align: center; margin-top: 14px; }
.form-success { display: none; text-align: center; padding: 56px 20px; }
.form-success.show { display: block; }
.form-success-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: #edf8f3; color: var(--sub);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 20px;
}
.form-success-icon svg { width: 24px; height: 24px; }
.form-success h3 { font-size: 1.1rem; margin-bottom: 10px; color: var(--ink); }
.form-success p { font-size: 0.88rem; color: var(--text-2); line-height: 1.8; margin-bottom: 20px; }
.back-link { display: inline-flex; align-items: center; gap: 5px; font-size: 0.82rem; color: var(--text-2); margin-top: 20px; transition: color 0.2s; }
.back-link:hover { color: var(--primary-mid); }
.back-link svg { width: 14px; height: 14px; }

.nav--sub .nav-logo-text { color: var(--white); }
.nav--sub .nav-logo-text .logo-3x3 { color: rgba(255,255,255,0.6); }
.nav--sub .nav-logo-icon path { fill: var(--white); }
.nav--sub .nav-toggle span { background: var(--white); }

@media (max-width: 640px) {
  .form-wrapper { padding: 28px 20px; }
  .wide-container { padding: 0 24px; }
}
