/* Common service navigation: one definition for WbG, ATLAS and 私のゲーム史. */
.service-links{display:flex;align-items:center;gap:16px;min-width:0;flex-shrink:0;color:inherit}
.service-links .service-peer{position:relative;display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:8px 0;color:inherit;text-decoration:none;white-space:nowrap;font-family:system-ui,"Noto Sans JP",sans-serif;font-size:15px;font-weight:700;line-height:1.2;letter-spacing:0}
.service-peer svg{display:block;width:22px;height:22px;flex:none}
.service-peer+.service-peer{padding-left:16px;border-left:1px solid color-mix(in srgb,currentColor 22%,transparent)}
.service-peer::after{content:"";position:absolute;bottom:2px;left:0;right:0;height:2px;background:var(--peer-accent,var(--shu,var(--accent,#e03a1e)));transform:scaleX(0);transform-origin:left;transition:transform .2s}
.service-peer+.service-peer::after{left:16px}
.service-peer[aria-current="page"]::after,.service-peer:hover::after{transform:scaleX(1)}
.service-links .service-peer:focus-visible{outline:2px solid currentColor;outline-offset:3px}
.service-short{display:none}
.service-peer b{font-weight:400}
.service-legal{display:flex;flex-wrap:wrap;gap:8px 20px;padding-top:14px;font-size:11px;line-height:1.7}
.service-legal a{color:inherit;text-decoration:none;opacity:.65}
.service-legal a:hover{opacity:1;text-decoration:underline;text-underline-offset:4px}
.service-footer-links{margin:18px 0 0}
body[data-site-section] .site-header-inner{grid-template-columns:auto 1fr;gap:24px}
body[data-site-section] .site-primary-nav{justify-self:end}
body[data-peer-service="history"]{--peer-accent:#fddc00}
.bar[data-peer-header]{height:auto;min-height:64px;flex-wrap:wrap;row-gap:0}
.bar[data-peer-header]>.service-links{margin-right:auto}
@media(max-width:1100px){
  .service-full{display:none}.service-short{display:inline}
  .service-links .service-peer{font-size:14px;gap:7px}
  .service-links{gap:12px}.service-peer+.service-peer{padding-left:12px}.service-peer+.service-peer::after{left:12px}
}
@media(max-width:1000px){
  .bar[data-peer-header]>.service-links{flex-basis:100%;min-height:44px}
  .bar[data-peer-header]>.bar-profile{padding-bottom:6px}
  .bar[data-peer-header]>.bar-actions,.bar[data-peer-header]>.btn{margin-left:auto;margin-bottom:6px}
  .bar[data-peer-header] .chip{display:none}
}
@media(max-width:640px){
  .service-links{gap:8px}
  .service-links .service-peer{font-size:12px;gap:5px;min-height:44px}
  .service-peer svg{width:18px;height:18px}
  .service-links .service-peer+.service-peer{padding-left:8px}
  .service-peer+.service-peer::after{left:8px}
  body[data-site-section] .site-header .site-header-inner{display:flex;flex-wrap:wrap;gap:0;min-height:0;padding-top:0}
  body[data-site-section] .site-header .service-links{width:100%}
  body[data-site-section] .site-header .site-primary-nav{width:100%;margin:0;justify-content:space-around;gap:0;border-top:1px solid var(--line)}
  body[data-site-section] .site-header .site-primary-nav a{flex:1 1 0;justify-content:center;min-height:42px;font-size:.75rem}
  body[data-peer-service="atlas"]{--header-h:90px}
  body[data-peer-service="atlas"] .site-header[data-peer-header]{display:grid;grid-template-columns:1fr auto;grid-template-rows:44px 38px;height:90px;gap:0;padding:4px 16px}
  body[data-peer-service="atlas"] .site-header>.service-links{grid-column:1/-1;grid-row:1;z-index:2}
  body[data-peer-service="atlas"] .site-header>.menu-toggle{grid-column:2;grid-row:2;display:inline-flex;min-height:38px;padding:4px 0}
  body[data-peer-service="atlas"] .site-header>.site-nav{grid-row:2}
  .bar[data-peer-header]{padding-left:6px;padding-right:6px}
  .bar[data-peer-header] .name-input{font-size:14px}
}
@media(max-width:360px){
  .service-links{gap:6px}.service-links .service-peer+.service-peer{padding-left:6px}.service-peer+.service-peer::after{left:6px}
  .menu-toggle{flex-shrink:0;white-space:nowrap}
  body[data-peer-service="atlas"] .site-header[data-peer-header]{padding-left:12px;padding-right:12px}
}
@media(prefers-reduced-motion:reduce){.service-peer::after{transition:none}}
/* Retired WbG features on older generated pages; votes and other services stay active. */
body[data-peer-service="wbyg"] :is(.root-community-summary, .recent-comments-panel, .creator-review-panel, .creator-card-radar, [data-comment-toggle-button], [data-comment-preview], [data-comment-thread], [data-contact-form], .contact-form-card, a[href="#creator-review-section"], option[value="comment_count"]) {
  display: none !important;
}
