/* ==========================================================================
   SHARED HEADER & FOOTER  (menu.php + footer.php)

   Ported from the WPDean WordPress theme (style.css -> "NAVIGATION" and
   "FOOTER" sections) so the standalone tool pages look like the rest of
   wpdean.com. Every rule is scoped under #wpd-navbar / #wpd-mobile-nav /
   #wpd-footer: each tool page loads its own stylesheet AFTER this one, so the
   id keeps their generic `nav`, `footer`, `ul`, `a` rules from leaking in.
   ========================================================================== */

:root {
  --wpd-blue: #1847F0;
  --wpd-black: #080C14;
  --wpd-white: #FFFFFF;
  --wpd-gray: #F2F4FA;
  --wpd-text-muted: #8892A4;
  --wpd-border: rgba(24, 71, 240, 0.12);
  --wpd-nav-height: 72px;
}

.wpd-skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--wpd-blue); color: #fff; padding: 14px 24px;
  z-index: 1000; border-radius: 0 0 8px 0; font-weight: 600; text-decoration: none;
}
.wpd-skip-link:focus { left: 0; }

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
#wpd-navbar {
  position: sticky; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--wpd-border);
  transition: box-shadow .3s;
  font-family: 'DM Sans', sans-serif;
}
#wpd-navbar.scrolled { box-shadow: 0 4px 40px rgba(24, 71, 240, 0.08); }
#wpd-navbar .wrap { max-width: 1280px; margin: 0 auto; padding: 0 48px; }
#wpd-navbar .nav-inner { display: flex; align-items: center; justify-content: space-between; height: var(--wpd-nav-height); gap: 24px; }
#wpd-navbar .nav-logo { display: flex; align-items: center; flex-shrink: 0; text-decoration: none; }
#wpd-navbar .nav-logo img { height: 44px; width: auto; display: block; max-width: none; }
#wpd-navbar .nav-links { display: flex; align-items: center; gap: 32px; list-style: none; margin: 0; padding: 0; }
#wpd-navbar .nav-links > li { position: relative; margin: 0; }
#wpd-navbar .nav-links > li > a {
  display: flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 500;
  color: var(--wpd-black); text-decoration: none; position: relative; transition: color .2s; white-space: nowrap;
}
#wpd-navbar .nav-links > li > a::after {
  content: ''; position: absolute; bottom: -22px; left: 0; right: 0; height: 2px;
  background: var(--wpd-blue); transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
#wpd-navbar .nav-links > li > a:hover { color: var(--wpd-blue); }
#wpd-navbar .nav-links > li > a:hover::after { transform: scaleX(1); }
#wpd-navbar .nav-chevron {
  display: inline-block; width: 7px; height: 7px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px); transition: transform .2s; flex-shrink: 0;
}
#wpd-navbar .nav-links > li:hover > a > .nav-chevron { transform: rotate(-135deg) translateY(-2px); }

#wpd-navbar .dropdown {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: #fff; border: 1px solid var(--wpd-border); border-radius: 14px;
  padding: 16px 8px 8px; min-width: 220px; margin: 0;
  box-shadow: 0 20px 60px rgba(24, 71, 240, 0.12);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s, visibility .2s; z-index: 200; list-style: none;
}
#wpd-navbar .dropdown::before { content: ''; position: absolute; top: -16px; left: 0; right: 0; height: 16px; }
#wpd-navbar .nav-links > li:hover .dropdown { opacity: 1; visibility: visible; pointer-events: all; }
#wpd-navbar .dropdown li { position: relative; margin: 0; }
#wpd-navbar .dropdown a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 14px; border-radius: 8px; font-size: 13px; font-weight: 500;
  color: var(--wpd-black); white-space: nowrap; text-decoration: none; transition: background .15s, color .15s;
}
#wpd-navbar .dropdown a:hover { background: var(--wpd-gray); color: var(--wpd-blue); }
#wpd-navbar .dropdown li:hover > a { color: var(--wpd-blue); }
#wpd-navbar .subdropdown {
  position: absolute; top: 0; left: 100%; margin-left: 6px; background: #fff;
  border: 1px solid var(--wpd-border); border-radius: 14px; padding: 8px; min-width: 190px;
  box-shadow: 0 20px 60px rgba(24, 71, 240, 0.12);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s, visibility .2s; list-style: none; z-index: 201;
}
#wpd-navbar .subdropdown::before { content: ''; position: absolute; top: 0; left: -6px; width: 6px; height: 100%; }
#wpd-navbar .dropdown li:hover > .subdropdown { opacity: 1; visibility: visible; pointer-events: all; }
#wpd-navbar .subdropdown a { font-size: 13px; }

/* Selectors carry the full `.nav-links > li >` path so they outrank the
   generic `.nav-links > li > a` / `:hover` rules above — otherwise the pill
   would render blue-on-blue on hover. */
#wpd-navbar .nav-links > li > a.nav-cta {
  color: var(--wpd-blue); padding: 9px 22px; border-radius: 100px; font-weight: 600; font-size: 14px;
  border: 2px solid var(--wpd-blue); text-decoration: none;
  transition: background .2s, color .2s, transform .2s; white-space: nowrap;
}
#wpd-navbar .nav-links > li > a.nav-cta:hover {
  background: var(--wpd-blue); color: var(--wpd-white); transform: translateY(-1px);
}
#wpd-navbar .nav-links > li > .nav-cta::after { display: none; }

#wpd-navbar .hamburger {
  display: none; flex-direction: column; gap: 5px; background: none; border: none;
  cursor: pointer; padding: 8px; flex-shrink: 0;
}
#wpd-navbar .hamburger span { width: 22px; height: 2px; background: var(--wpd-black); transition: all .25s; display: block; }
#wpd-navbar .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#wpd-navbar .hamburger.open span:nth-child(2) { opacity: 0; }
#wpd-navbar .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

#wpd-navbar a:focus-visible,
#wpd-navbar button:focus-visible,
#wpd-mobile-nav a:focus-visible,
#wpd-mobile-nav summary:focus-visible,
#wpd-footer a:focus-visible {
  outline: 2px solid var(--wpd-blue); outline-offset: 3px; border-radius: 4px;
}

/* Mobile nav panel */
#wpd-mobile-nav {
  display: none; position: fixed; top: var(--wpd-nav-height); left: 0; right: 0; bottom: 0;
  background: #fff; z-index: 90; padding: 24px 24px 40px; overflow-y: auto;
  transform: translateY(-10px); opacity: 0; visibility: hidden;
  transition: opacity .25s, transform .25s, visibility .25s;
  font-family: 'DM Sans', sans-serif;
}
#wpd-mobile-nav.open { opacity: 1; visibility: visible; transform: translateY(0); }
#wpd-mobile-nav ul { list-style: none; margin: 0; padding: 0; }
#wpd-mobile-nav > ul { display: flex; flex-direction: column; gap: 2px; }
#wpd-mobile-nav > ul > li { border-bottom: 1px solid var(--wpd-border); margin: 0; }
#wpd-mobile-nav > ul > li > a { display: block; padding: 16px 4px; font-size: 18px; font-weight: 600; text-decoration: none; color: var(--wpd-black); }
#wpd-mobile-nav details > summary {
  display: flex; align-items: center; justify-content: space-between; padding: 16px 4px;
  font-size: 18px; font-weight: 600; color: var(--wpd-black); cursor: pointer; list-style: none;
}
#wpd-mobile-nav details > summary::-webkit-details-marker { display: none; }
#wpd-mobile-nav details > summary::after {
  content: ''; width: 8px; height: 8px;
  border-right: 1.5px solid var(--wpd-text-muted); border-bottom: 1.5px solid var(--wpd-text-muted);
  transform: rotate(45deg); transition: transform .2s; flex-shrink: 0;
}
#wpd-mobile-nav details[open] > summary::after { transform: rotate(-135deg); }
#wpd-mobile-nav .sub-list { padding: 0 4px 12px 12px; display: flex; flex-direction: column; }
#wpd-mobile-nav .sub-list li { margin: 0; }
#wpd-mobile-nav .sub-list a { display: block; padding: 10px 0; font-size: 15px; font-weight: 500; color: var(--wpd-text-muted); text-decoration: none; }
#wpd-mobile-nav .sub-list a:hover { color: var(--wpd-blue); }
#wpd-mobile-nav details details summary { font-size: 14.5px; font-weight: 600; color: var(--wpd-black); padding: 10px 0; }
#wpd-mobile-nav .nav-cta {
  display: block; margin-top: 20px; text-align: center; padding: 12px 22px; border-radius: 100px;
  border: 2px solid var(--wpd-blue); color: var(--wpd-blue); font-weight: 600; font-size: 16px; text-decoration: none;
}
#wpd-mobile-nav .nav-cta:hover { background: var(--wpd-blue); color: var(--wpd-white); }
#wpd-mobile-nav > ul > li:has(> a.nav-cta) { border-bottom: none; padding-top: 8px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
#wpd-footer {
  background: var(--wpd-gray); padding: 72px 0 0; margin-top: 64px;
  font-family: 'DM Sans', sans-serif; color: var(--wpd-text-muted);
}
#wpd-footer .wrap { max-width: 1280px; margin: 0 auto; padding: 0 48px; }
#wpd-footer .footer-brand { padding-bottom: 48px; }
#wpd-footer .footer-logo { display: inline-block; text-decoration: none; }
#wpd-footer .footer-logo img { height: 44px; width: auto; display: block; max-width: none; }
#wpd-footer .footer-tagline {
  font-size: 14px; color: var(--wpd-text-muted); line-height: 1.7;
  max-width: 320px; margin: 14px 0 0;
}
#wpd-footer .footer-top {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px; padding-bottom: 56px;
}
#wpd-footer .footer-col-title {
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--wpd-black); margin-bottom: 18px;
}
#wpd-footer .footer-links { list-style: none; display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; }
#wpd-footer .footer-links li { margin: 0; }
#wpd-footer .footer-links a {
  font-size: 14px; color: var(--wpd-text-muted); text-decoration: none;
  transition: color .2s; line-height: 1.4;
}
#wpd-footer .footer-links a:hover { color: var(--wpd-blue); }
#wpd-footer .footer-author {
  border-top: 1px solid var(--wpd-border); padding: 28px 0 4px;
}
#wpd-footer .footer-author p {
  font-size: 14px; line-height: 1.7; color: var(--wpd-text-muted);
  max-width: 820px; margin: 0;
}
#wpd-footer .footer-author-label {
  display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--wpd-black); margin-bottom: 8px;
}
#wpd-footer .footer-author a {
  color: var(--wpd-black); font-weight: 600; text-decoration: none; transition: color .2s;
}
#wpd-footer .footer-author a:hover { color: var(--wpd-blue); }

#wpd-footer .footer-bottom {
  border-top: 1px solid var(--wpd-border); padding: 24px 0;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: var(--wpd-text-muted); flex-wrap: wrap; gap: 12px;
}

/* --------------------------------------------------------------------------
   Responsive - same breakpoints as the theme
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  #wpd-navbar .wrap,
  #wpd-footer .wrap { padding: 0 32px; }
  #wpd-footer .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
}

@media (max-width: 900px) {
  #wpd-navbar .nav-links { display: none; }
  #wpd-navbar .hamburger { display: flex; }
  #wpd-mobile-nav { display: block; }
}

@media (max-width: 640px) {
  #wpd-navbar .wrap,
  #wpd-footer .wrap { padding: 0 24px; }
  #wpd-navbar .nav-logo img,
  #wpd-footer .footer-logo img { height: 38px; }
  #wpd-footer { padding-top: 56px; margin-top: 48px; }
  #wpd-footer .footer-top { grid-template-columns: 1fr; gap: 32px; }
  #wpd-footer .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  #wpd-navbar *, #wpd-mobile-nav *, #wpd-footer * { transition: none !important; animation: none !important; }
}

/* Localized labels may be longer; keep the original layout and components. */
#wpd-navbar *, #wpd-mobile-nav *, #wpd-footer * { box-sizing: border-box; }
#wpd-navbar p, #wpd-mobile-nav p, #wpd-footer p { margin-top: 0; }
#wpd-footer .footer-brand .footer-tagline { margin-top:14px; }
#wpd-navbar .dropdown a, #wpd-navbar .subdropdown a, #wpd-mobile-nav a, #wpd-footer .footer-links a { overflow-wrap:anywhere; hyphens:auto; }
#wpd-navbar .hamburger { min-height:40px; }
@media(max-width:1080px){
 #wpd-navbar .nav-links{display:none} #wpd-navbar .hamburger{display:flex} #wpd-mobile-nav{display:block}
}
html:lang(ja) #wpd-navbar, html:lang(ja) #wpd-mobile-nav, html:lang(ja) #wpd-footer, html:lang(ja) #wpd-navbar *, html:lang(ja) #wpd-mobile-nav *, html:lang(ja) #wpd-footer * {
 font-family:"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif; text-transform:none; font-style:normal; line-height:1.75; line-break:strict; letter-spacing:normal;
}
