/* Adopted REFINED navigation. The temporary measurement attribute preserves the original spacing. */
html:not([data-nav-baseline]) #header {min-height:var(--nav-baseline-height);--nav-ink:#24211f}
html:not([data-nav-baseline]) #buttons03 {display:flex!important;flex-direction:row;flex-wrap:nowrap!important;align-items:center;justify-content:center;gap:var(--space-5)!important;width:max-content;max-width:100%;margin:0 auto!important;padding:0!important;border:0;border-radius:0;background:transparent}
html:not([data-nav-baseline]) #buttons03 li {display:block;flex:0 0 auto;margin:0!important;padding:0!important;max-width:100%}
html:not([data-nav-baseline]) #buttons03 a {position:relative;display:flex!important;align-items:center;justify-content:center;min-width:44px;min-height:44px;width:auto!important;height:auto!important;padding:0 var(--space-4)!important;box-sizing:border-box;font-size:10px!important;line-height:1.4!important;font-weight:600;letter-spacing:0!important;text-decoration:none!important;color:var(--nav-ink)!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;transition:color 160ms ease!important}
/* The real link box already provides the 44px tap target. */
html:not([data-nav-baseline]) #buttons03 a::after {display:none!important}
html:not([data-nav-baseline]) #buttons03 a::before {content:'';position:absolute;bottom:5px;left:calc(50% - 7px);width:14px;height:1px;border-radius:0;background:var(--color-accent);opacity:0;transform:scaleX(0);transform-origin:left center;transition:opacity 160ms ease,transform 160ms ease}
html:not([data-nav-baseline]) #buttons03 a[aria-current="page"],html:not([data-nav-baseline]) #buttons03 a:active {color:var(--color-accent)!important}
html:not([data-nav-baseline]) #buttons03 a[aria-current="page"]::before,html:not([data-nav-baseline]) #buttons03 a:active::before {opacity:1;transform:scaleX(1)}
html:not([data-nav-baseline]) #divider01 {margin-top:0!important;opacity:.6}
@media (hover:hover) {
  html:not([data-nav-baseline]) #buttons03 a:hover {color:var(--color-accent)!important}
  html:not([data-nav-baseline]) #buttons03 a:hover::before {opacity:1;transform:scaleX(1)}
}
@media (max-width:736px) {
  html:not([data-nav-baseline]) #buttons03 {gap:var(--space-3)!important}
  html:not([data-nav-baseline]) #buttons03 a {font-size:9.5px!important;padding:0 var(--space-3)!important}
}
@media (prefers-reduced-motion:reduce) {
  html:not([data-nav-baseline]) #buttons03 a,html:not([data-nav-baseline]) #buttons03 a::before {transition:none!important}
}

/* Preview branch only: CAT NAVIGATION v12 at the real site's four-link menu.
   The SVG and original bounce JS are not modified. */
html:not([data-nav-baseline]) #buttons03{
  display:flex!important;flex-wrap:nowrap!important;
  justify-content:center!important;align-items:center!important;
  gap:clamp(4px,1.4vw,10px)!important;
  width:100%!important;max-width:100%!important;
  overflow:visible!important;
}
html:not([data-nav-baseline]) #buttons03 li{
  flex:0 1 92px!important;min-width:0!important;overflow:visible!important;
}
html:not([data-nav-baseline]) #buttons03 a{
  display:block!important;position:relative!important;
  width:100%!important;max-width:92px!important;
  height:44px!important;min-height:44px!important;
  padding:0!important;border:0!important;
  color:#fff!important;background:transparent!important;
  font-family:"DM Sans","Noto Sans JP",sans-serif!important;
  font-size:10px!important;font-weight:700!important;line-height:1!important;
  isolation:isolate;overflow:visible!important;
}
html:not([data-nav-baseline]) #buttons03 a:hover,
html:not([data-nav-baseline]) #buttons03 a[aria-current=page]{
  color:#fff!important;
}
html:not([data-nav-baseline]) #buttons03 a::before,
html:not([data-nav-baseline]) #buttons03 a::after{
  display:none!important;
}
/* SVG width scales uniformly: original 90x31 viewBox, never distorted. */
#buttons03 a .cat-v12-svg{
  display:block;position:absolute;z-index:-1;
  left:50%;top:50%;transform:translate(-50%,-50%);
  width:100%;height:auto;aspect-ratio:90 / 31;
  overflow:visible;pointer-events:none;
}
#buttons03 a .cat-v12-bg{fill:var(--color-accent)}
#buttons03 a .cat-v12-ears path{fill:var(--color-accent)}
#buttons03 a .cat-v12-tail{
  fill:none;stroke:var(--color-accent);stroke-width:4;stroke-linecap:round;
}
#buttons03 a .cat-v12-ears,
#buttons03 a .cat-v12-eyes,
#buttons03 a .cat-v12-tailgroup{
  opacity:0;
  transition:opacity .16s ease,transform .34s cubic-bezier(.2,.8,.2,1);
}
#buttons03 a .cat-v12-ears{transform:translateY(3px)}
#buttons03 a .cat-v12-eyes{transform:translateY(2px)}
#buttons03 a .cat-v12-tailgroup{
  transform:rotate(-13deg) translateX(-3px);
  transform-origin:64.5px 16px;
}
#buttons03 a.cat-active .cat-v12-ears,
#buttons03 a.cat-active .cat-v12-eyes,
#buttons03 a.cat-active .cat-v12-tailgroup{
  opacity:1;transform:none;
}
/* Explicit positions relative to the SVG body, instead of shifting centered text.
   Normal label: center at x=34. Active cat: center at x=48.5. */
#buttons03 a .cat-v12-label{
  position:absolute;z-index:1;
  left:0;top:50%;width:75.5556%;
  display:block;text-align:center;white-space:nowrap;
  transform:translateY(calc(-50% + 1px));
  translate:none!important;
  letter-spacing:0!important;pointer-events:none;
}
#buttons03 a .cat-v12-label.cat-v12-ja{
  transform:translateY(-50%);
}
#buttons03 a.cat-active .cat-v12-label{
  left:32%;width:44%;
}
#buttons03 a.cat-boop.cat-active .cat-v12-tailgroup{
  animation:catTailWag .32s ease-out 1;
}
@keyframes catTailWag{
  0%{rotate:-5deg}48%{rotate:3deg}100%{rotate:0deg}
}
@media(max-width:736px){
  html:not([data-nav-baseline]) #buttons03{
    gap:clamp(2px,.85vw,5px)!important;
  }
  html:not([data-nav-baseline]) #buttons03 li{
    flex:0 1 88px!important;
  }
  html:not([data-nav-baseline]) #buttons03 a{
    max-width:88px!important;font-size:9.5px!important;
  }
}
@media(max-width:380px){
  html:not([data-nav-baseline]) #buttons03 li{flex:0 1 80px!important}
  html:not([data-nav-baseline]) #buttons03 a{
    max-width:80px!important;font-size:9px!important;
  }
}
@media(prefers-reduced-motion:reduce){
  #buttons03 a .cat-v12-ears,#buttons03 a .cat-v12-eyes,
  #buttons03 a .cat-v12-tailgroup{
    transition:none!important;animation:none!important;
  }
}

/* Preview refinement 2026-10-09: visually enlarge the four pills, NOT the text.
   Keep a single horizontal row on narrow phones without stretching the SVG. */
html:not([data-nav-baseline]) #buttons03 {
  gap:clamp(5px,1.45vw,11px)!important;
}
html:not([data-nav-baseline]) #buttons03 li{
  flex:1 1 0!important;
  max-width:108px!important;
  min-width:0!important;
}
html:not([data-nav-baseline]) #buttons03 a{
  width:100%!important;
  max-width:none!important;
  height:48px!important;
  min-height:48px!important;
  font-size:10px!important;
}
#buttons03 a .cat-v12-svg{
  width:calc(100% + 8px)!important;
  max-width:none!important;
  height:auto!important;
  aspect-ratio:90/31!important;
}
#buttons03 a .cat-v12-label{
  left:0!important;
  width:calc(100% * .755556 + 6px)!important;
  font-size:inherit!important;
}
#buttons03 a.cat-active .cat-v12-label{
  /* Enough room for four Japanese glyphs, but safely before the tail. */
  left:25%!important;
  width:51%!important;
  font-size:inherit!important;
}
@media(max-width:736px){
  html:not([data-nav-baseline]) #buttons03{
    gap:clamp(4px,1.1vw,7px)!important;
  }
  html:not([data-nav-baseline]) #buttons03 a{
    height:48px!important;
    min-height:48px!important;
    font-size:9.5px!important;
  }
}
@media(max-width:380px){
  html:not([data-nav-baseline]) #buttons03{
    gap:var(--space-1)!important;
  }
  html:not([data-nav-baseline]) #buttons03 a{
    font-size:9px!important;
  }
  #buttons03 a .cat-v12-svg{width:calc(100% + 6px)!important}
  #buttons03 a.cat-active .cat-v12-label{
    left:23%!important;width:53%!important;
  }
}

/* Preview v12 alignment pass: visually center the row and each label.
   Keep the current font sizes, SVG silhouette and animation untouched. */
html:not([data-nav-baseline]) #buttons03 {
  display:flex!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  justify-content:center!important;
  width:min(100%, 448px)!important;
  max-width:100%!important;
  margin-left:auto!important;
  margin-right:auto!important;
  gap:clamp(4px, 1.4vw, 11px)!important;
}
html:not([data-nav-baseline]) #buttons03 li {
  flex:1 1 0!important;
  width:auto!important;
  max-width:106px!important;
  min-width:0!important;
}
html:not([data-nav-baseline]) #buttons03 a {
  width:100%!important;
  max-width:none!important;
  height:48px!important;
  min-height:48px!important;
  font-size:10px!important;
}
/* Reserve the SVG's transparent right-side space while moving the visible
   cat/pill to the visual center of its allocated menu cell. */
#buttons03 a .cat-v12-svg {
  left:calc(50% + 7px)!important;
  width:calc(100% + 8px)!important;
  height:auto!important;
  aspect-ratio:90/31!important;
  max-width:none!important;
}
/* The regular dark body is x=0..68 inside a 90-unit SVG, so its visual
   center is not the center of the SVG viewport. */
#buttons03 a .cat-v12-label {
  position:absolute!important;
  left:43%!important;
  top:50%!important;
  width:max-content!important;
  max-width:calc(100% - 10px)!important;
  margin:0!important;
  text-align:center!important;
  white-space:nowrap!important;
  transform:translate(-50%, calc(-50% + 1px))!important;
  translate:none!important;
  letter-spacing:0!important;
  font-size:inherit!important;
}
#buttons03 a .cat-v12-label.cat-v12-ja {
  transform:translate(-50%,-50%)!important;
}
/* When ears/eyes appear, center text over the free body space right of face.
   Four Japanese glyphs stay left of the tail. */
#buttons03 a.cat-active .cat-v12-label {
  left:60%!important;
  width:max-content!important;
  max-width:calc(100% - 28px)!important;
  transform:translate(-50%,calc(-50% + 1px))!important;
}
#buttons03 a.cat-active .cat-v12-label.cat-v12-ja {
  transform:translate(-50%,-50%)!important;
}
@media(max-width:736px) {
  html:not([data-nav-baseline]) #buttons03 {
    gap:clamp(3px, 1vw, 7px)!important;
  }
  html:not([data-nav-baseline]) #buttons03 a {
    font-size:9.5px!important;
  }
}
@media(max-width:380px) {
  html:not([data-nav-baseline]) #buttons03 {
    gap:var(--space-1)!important;
  }
  html:not([data-nav-baseline]) #buttons03 a {
    font-size:9px!important;
  }
  #buttons03 a .cat-v12-svg {
    left:calc(50% + 6px)!important;
    width:calc(100% + 6px)!important;
  }
  #buttons03 a.cat-active .cat-v12-label {
    left:59%!important;
    max-width:calc(100% - 24px)!important;
  }
}

/* Final optical alignment — active cat label only.
   Text center follows the visible body space between eyes and rounded right end. */
#buttons03 a.cat-active .cat-v12-label{
  left:63%!important;
  max-width:calc(100% - 18px)!important;
}
@media(max-width:380px){
  #buttons03 a.cat-active .cat-v12-label{
    left:62%!important;
    max-width:calc(100% - 16px)!important;
  }
}

/* Selected-state optical centering + HOME-only 1px correction.
   Keep font sizes and the touch bounce exactly as they are. */
#buttons03 a.cat-active .cat-v12-label{
  /* Actual black body occupies approximately 0..68 of the 90-unit SVG.
     Left-side face takes approximately 0..20; midpoint of open body: 44. */
  left:55%!important;
  max-width:calc(100% - 18px)!important;
}
#buttons03 a.n01:not(.cat-active) .cat-v12-label{
  left:calc(43% + 1px)!important;
  top:calc(50% - 1px)!important;
}
@media(max-width:380px){
  #buttons03 a.cat-active .cat-v12-label{
    left:55%!important;
  }
}


/* Final approved visual offsets (x right+, y down+) */
#buttons03 a.n01:not(.cat-active) .cat-v12-label{translate:0px 0px!important}
#buttons03 a.n02:not(.cat-active) .cat-v12-label{translate:1px 0px!important}
#buttons03 a.n03:not(.cat-active) .cat-v12-label{translate:1.5px 0px!important}
#buttons03 a.n04:not(.cat-active) .cat-v12-label{translate:2px 0px!important}
#buttons03 a.n01.cat-active .cat-v12-label{translate:-2px -1px!important}
#buttons03 a.n02.cat-active .cat-v12-label{translate:-4px 0px!important}
#buttons03 a.n03.cat-active .cat-v12-label{translate:-2px 0px!important}
#buttons03 a.n04.cat-active .cat-v12-label{translate:-2px 0px!important}
