/* Shared site header and footer. Edit with code/current-static/partials/*.html. */
.shared-site-header,
.shared-site-footer {
  --shell-ink: var(--ink, var(--text, #111111));
  --shell-muted: var(--muted, var(--text-soft, #727272));
  --shell-line: var(--line, rgba(17, 17, 17, 0.12));
  --shell-orange: var(--orange, #f57e35);
  --shell-gutter: var(--gutter, 32px);
  --shell-max: var(--max, 1200px);
  letter-spacing: 0;
}

.shared-site-header {
  display: block;
  position: sticky;
  top: 0;
  z-index: 80;
  width: 100%;
  padding: 0;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--shell-line);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
}

.shared-site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px var(--shell-gutter);
}

.shared-site-header .brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-width: 0;
}

.shared-site-header .brand img {
  display: block;
  width: auto;
  height: 22px;
}

.shared-site-header .global-nav {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 28px;
  min-width: 0;
  color: var(--shell-ink);
}

.shared-site-header .global-nav a {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  padding: 6px 2px;
  color: var(--shell-ink);
  text-decoration: none;
  white-space: nowrap;
}

.shared-site-header .nav-en {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.15;
  text-transform: uppercase;
  transition: color var(--duration, 240ms) var(--ease, cubic-bezier(0.2, 0, 0, 1));
}

.shared-site-header .nav-ja {
  color: var(--shell-muted);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.2;
  transition: color var(--duration, 240ms) var(--ease, cubic-bezier(0.2, 0, 0, 1));
}

.shared-site-header .global-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--shell-orange);
  transform: translateX(-50%);
  transition: width var(--duration, 240ms) var(--ease, cubic-bezier(0.2, 0, 0, 1));
}

.shared-site-header .global-nav a:hover::after,
.shared-site-header .global-nav a.is-current::after {
  width: 100%;
}

.shared-site-header .global-nav a:hover .nav-en,
.shared-site-header .global-nav a.is-current .nav-en {
  color: var(--shell-orange);
}

.shared-site-header .global-nav a:hover .nav-ja {
  color: var(--shell-ink);
}

.shared-site-header .header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
}

.shared-site-header .header-contact {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 52px;
  padding: 0 22px;
  background: var(--shell-ink);
  color: #ffffff;
  text-decoration: none;
  transition: background var(--duration, 240ms) var(--ease, cubic-bezier(0.2, 0, 0, 1));
}

.shared-site-header .header-contact .nav-en {
  font-size: 13px;
  letter-spacing: 0.1em;
}

.shared-site-header .header-contact .nav-ja {
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.shared-site-header .header-contact:hover,
.shared-site-header .header-contact.is-current {
  background: var(--shell-orange);
}

.shared-site-header .header-contact:hover .nav-ja,
.shared-site-header .header-contact.is-current .nav-ja {
  color: rgba(255, 255, 255, 0.9);
}

.shared-site-header .menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: 1px solid var(--shell-line);
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
}

.shared-site-header .menu-toggle span,
.shared-site-header .menu-toggle span::before,
.shared-site-header .menu-toggle span::after {
  content: "";
  display: block;
  position: relative;
  width: 18px;
  height: 2px;
  background: var(--shell-ink);
}

.shared-site-header .menu-toggle span::before,
.shared-site-header .menu-toggle span::after {
  position: absolute;
  left: 0;
}

.shared-site-header .menu-toggle span::before {
  top: -6px;
}

.shared-site-header .menu-toggle span::after {
  top: 6px;
}

.shared-site-header.nav-open .menu-toggle span {
  background: transparent;
}

.shared-site-header.nav-open .menu-toggle span::before {
  top: 0;
  transform: rotate(45deg);
}

.shared-site-header.nav-open .menu-toggle span::after {
  top: 0;
  transform: rotate(-45deg);
}

.shared-site-footer {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 64px 0 32px;
  background: #0b0b0c;
  color: #c9c9c9;
}

.shared-site-footer .container {
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 var(--shell-gutter);
}

.shared-site-footer .footer-top {
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) repeat(4, minmax(0, 1fr));
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.shared-site-footer .footer-logo {
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
}

.shared-site-footer .footer-logo img {
  display: block;
  width: auto;
  height: 24px;
}

.shared-site-footer .footer-brand p {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  line-height: 1.85;
}

.shared-site-footer .footer-col strong {
  display: block;
  margin-bottom: 14px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.shared-site-footer .footer-col a {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  line-height: 1.55;
  text-decoration: none;
  transition: color var(--duration, 240ms) var(--ease, cubic-bezier(0.2, 0, 0, 1));
}

.shared-site-footer .footer-col a:hover {
  color: var(--shell-orange);
}

.shared-site-footer .footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
}

.shared-site-footer .footer-bottom a {
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  transition: color var(--duration, 240ms) var(--ease, cubic-bezier(0.2, 0, 0, 1));
}

.shared-site-footer .footer-bottom a:hover {
  color: #ffffff;
}

@media (max-width: 1100px) {
  .shared-site-header .global-nav {
    gap: 20px;
  }
}

@media (max-width: 960px) {
  .shared-site-header .header-inner {
    padding: 14px var(--shell-gutter);
  }

  .shared-site-header .global-nav,
  .shared-site-header .header-contact {
    display: none;
  }

  .shared-site-header .menu-toggle {
    display: inline-flex;
  }

  .shared-site-header.nav-open .global-nav {
    position: fixed;
    top: var(--shared-header-height, 69px);
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    max-height: calc(100vh - var(--shared-header-height, 69px));
    padding: 10px var(--shell-gutter) 20px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--shell-line);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.12);
  }

  .shared-site-header.nav-open .global-nav a {
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid var(--shell-line);
  }

  .shared-site-header.nav-open .global-nav a::after {
    left: 0;
    bottom: 0;
    transform: none;
  }

  .shared-site-footer .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }

  .shared-site-footer .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .shared-site-header,
  .shared-site-footer {
    --shell-gutter: var(--gutter, 24px);
  }

  .shared-site-header .header-inner {
    min-height: 65px;
  }

  .shared-site-header .brand img {
    height: 20px;
  }

  .shared-site-footer {
    padding: 52px 0 28px;
  }

  .shared-site-footer .footer-top {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .shared-site-footer .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
