/* Shared navigation across the public pages. */
html { scroll-padding-top: 120px; }
.desktop-nav { gap: clamp(18px, 1.8vw, 28px); white-space: nowrap; }
.nav-services { position: relative; }
.nav-cases .services-dropdown { min-width: 260px; }
.services-toggle {
  display: flex;
  min-height: 44px;
  padding: 12px 0;
  align-items: center;
  gap: 9px;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}
.services-toggle::after {
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: "";
  transform: translateY(-2px) rotate(45deg);
  transition: transform .2s ease;
}
.services-toggle[aria-expanded="true"]::after { transform: translateY(2px) rotate(225deg); }
.services-dropdown {
  position: absolute;
  top: 100%;
  left: -22px;
  display: grid;
  min-width: 190px;
  padding: 12px;
  border-radius: 16px;
  background: #f7fafc;
  box-shadow: 0 16px 36px rgba(37, 61, 97, .18);
}
.services-dropdown[hidden] { display: none; }
.services-dropdown a { display: block; padding: 13px 15px; border-radius: 8px; }
.services-dropdown a:hover, .services-dropdown a:focus-visible { color: #fff; background: var(--navy-dark); }
.desktop-nav > a.nav-contact {
  padding: 16px 22px;
  border-radius: 28px;
  color: #fff;
  background: var(--navy-dark);
  transition: background .2s ease;
}
.site-header .desktop-nav > a.nav-contact::after { display: none; content: none; }
.desktop-nav > .nav-contact:hover { background: var(--navy); }
.site-header a:focus-visible, .site-header button:focus-visible { outline: 2px solid var(--cyan-deep); outline-offset: 4px; }
@media (max-width: 1100px) {
  .mobile-nav { max-height: calc(100dvh - 130px); overflow-y: auto; overscroll-behavior: contain; }
  .mobile-nav .services-toggle { width: 100%; min-height: 44px; padding: 10px 12px; justify-content: space-between; border-bottom: 1px solid var(--line); color: var(--navy-dark); font-size: 13px; font-weight: 700; }
  .mobile-nav .services-dropdown { position: static; min-width: 0; margin: 4px 0 8px; padding: 4px 12px; border-radius: 12px; background: var(--cyan-light); box-shadow: none; }
  .mobile-nav .services-dropdown a { min-height: 44px; }
  .mobile-nav > a { min-height: 44px; }
  .mobile-nav > .nav-contact { border-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 0px) /* 2026-11: 視差効果を減らす設定でも動かす（無効化） */ {
  .services-toggle::after { transition: none; }
}

/* Footer navigation: mirrors the header and includes disclosure links. */
.footer-grid { gap: 48px; }
.footer-grid .footer-nav {
  width: min(100%, 740px);
  grid-template-columns: minmax(100px, .8fr) minmax(124px, 1fr) minmax(180px, 1.4fr);
  gap: 24px;
  color: var(--navy-dark);
}
.footer-nav__group { display: flex; flex-direction: column; align-items: flex-start; }
.footer-grid .footer-nav a {
  display: flex;
  min-height: 40px;
  padding: 9px 0;
  align-items: center;
  line-height: 1.8;
}
.footer-nav__services {
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-nav__services a { gap: 10px; font-weight: 500; }
.footer-nav__services a::before {
  width: 10px;
  height: 1px;
  flex: 0 0 10px;
  background: currentColor;
  content: "";
}
.footer-grid .footer-nav a:hover { color: var(--cyan-deep); }
.footer-grid .footer-nav a:focus-visible { outline: 2px solid var(--cyan-deep); outline-offset: 4px; }
@media (max-width: 1100px) {
  .footer-grid { flex-direction: column; gap: 32px; }
  .footer-grid .footer-nav { width: 100%; margin-top: 0; }
}
@media (max-width: 767px) {
  .footer-grid .footer-nav { margin-top: 32px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .footer-nav__legal { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--line); }
}

/* Official social accounts below the disclosure links. */
.footer-social {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.footer-grid .footer-social a {
  width: 44px;
  height: 44px;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
  color: #040000;
  font-size: 22px;
  line-height: 1;
  transition: background-color .2s ease;
}
.footer-grid .footer-social a:hover {
  color: #040000;
  background-color: var(--cyan-light, #eef9fb);
}
.footer-social img { display: block; width: 44px; height: 44px; }
@media (prefers-reduced-motion: reduce) and (max-width: 0px) /* 2026-11: 視差効果を減らす設定でも動かす（無効化） */ {
  .footer-grid .footer-social a { transition: none; }
}
