/* ══════════════════════════════════════════════════
   DXデザインシステム — Shared Nav & Footer Styles
   Include this on subpages that use nav-footer.js
   ══════════════════════════════════════════════════ */

/* ── GLOBAL NAV ── */
.global-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: #f5f2ed;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 40px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  z-index: 101;
}
.nav-logo img {
  height: 52px;
  width: auto;
  opacity: 0.9;
}
.nav-logo-text {
  display: none;
}
/* PC links */
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-size: 12px;
  color: rgba(13, 15, 20, 0.6);
  text-decoration: none;
  letter-spacing: 0.1em;
  transition: color 0.2s;
}
.nav-links a:hover { color: #9b59b6; }
.nav-cta {
  font-size: 11px;
  padding: 7px 20px;
  border: 1px solid #9b59b6;
  color: #9b59b6 !important;
  border-radius: 1px;
  transition: background 0.2s, color 0.2s !important;
}
.nav-cta:hover {
  background: #9b59b6 !important;
  color: #fff !important;
}
/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 101;
}
.nav-hamburger span {
  display: block;
  width: 100%; height: 1.5px;
  background: rgba(13, 15, 20, 0.7);
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
/* Mobile drawer */
.nav-drawer {
  display: none;
  position: fixed;
  top: 60px; left: 0; right: 0; bottom: 0;
  background: rgba(245, 242, 237, 0.98);
  backdrop-filter: blur(16px);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.3s, transform 0.3s;
}
.nav-drawer.open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}
.nav-drawer a {
  display: block;
  width: 100%;
  max-width: 320px;
  text-align: center;
  padding: 20px 0;
  font-family: 'Noto Serif JP', serif;
  font-size: 18px;
  font-weight: 300;
  color: rgba(13, 15, 20, 0.7);
  text-decoration: none;
  letter-spacing: 0.12em;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  transition: color 0.2s;
}
.nav-drawer a:first-child { border-top: 1px solid rgba(0, 0, 0, 0.07); }
.nav-drawer a:hover { color: #9b59b6; }
.nav-drawer .drawer-cta {
  margin-top: 28px;
  border: 1px solid #9b59b6 !important;
  border-bottom: 1px solid #9b59b6 !important;
  color: #9b59b6 !important;
  font-size: 13px !important;
  padding: 14px 40px !important;
  width: auto !important;
  letter-spacing: 0.14em;
}

/* ── FOOTER ── */
footer {
  background: #0d0f14;
  color: rgba(255,255,255,0.35);
  padding: 48px 40px 32px;
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: start;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 24px;
}
.footer-logo img {
  height: 72px;
  filter: brightness(0) invert(1);
  opacity: 0.6;
  margin-bottom: 10px;
}
.footer-company {
  font-family: 'Noto Serif JP', serif;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.footer-address {
  font-size: 11px;
  line-height: 1.8;
  letter-spacing: 0.04em;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}
.footer-links a {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}
.footer-links a:hover { color: #9b59b6; }
.footer-copy {
  max-width: 1080px;
  margin: 0 auto;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-align: center;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-inner { padding: 0 16px; height: 64px; }
  .nav-logo img { height: 56px; }
  .nav-logo-text { font-size: 10px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { align-items: flex-start; }
  footer { padding: 36px 20px 24px; }
}
