/*
Theme Name: 中古PC手帖 v3
Template: cocoon-master
Version: 1.0.10
Text Domain: gadget-nav-v3
*/
:root{--paper:#eef1f3;--ink:#141a1e;--accent:#0e84a8;--bright:#22a7cc;--muted:#55636c;--line:#b9c6cd;--panel:#dde5ea;--mono:ui-monospace,SFMono-Regular,Consolas,monospace;--serif:"Yu Mincho","Hiragino Mincho ProN","Noto Serif JP",serif}
body { font-family:"Hiragino Kaku Gothic ProN","Yu Gothic",sans-serif; }

#footer { --muse-footer-ink: #141a1e; --muse-footer-paper: #eef1f3; --muse-footer-line: #b9c6cd; }
#footer.footer-container {
  margin: 0;
  color: var(--muse-footer-ink);
  background: var(--muse-footer-paper);
  border-top: 1px solid var(--muse-footer-line);
}
#footer .muse-footer-bottom {
  box-sizing: border-box;
  width: min(100%, 1180px);
  margin-inline: auto;
  padding: 28px clamp(20px, 4vw, 48px) 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 28px;
  align-items: center;
}
#footer .muse-footer-bottom a { color: inherit; }
#footer .muse-footer-name {
  justify-self: start;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
}
#footer .muse-footer-nav ul {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end;
  gap: 0 18px; margin: 0; padding: 0; list-style: none;
}
#footer .muse-footer-nav li { margin: 0; padding: 0; list-style: none; }
#footer .muse-footer-nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  line-height: 1.5; font-size: .875rem;
  text-underline-offset: .2em;
}
#footer .muse-footer-credit { grid-column: 1/-1; font-size: .75rem; }
@media (max-width: 820px) {
  #footer .muse-footer-bottom { grid-template-columns: 1fr; gap: 6px; padding: 20px; }
  #footer .muse-footer-nav ul { justify-content: flex-start; column-gap: 16px; }
}

/* Landing-page pagination must fit a text label as well as page numbers. */
body.muse-v3-home .muse-archive .navigation.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .4rem;
}

body.muse-v3-home .muse-archive .navigation.pagination .page-numbers {
  box-sizing: border-box;
  display: inline-flex;
  width: auto;
  min-width: 44px;
  height: auto;
  min-height: 44px;
  margin: 0;
  padding: .35rem .7rem;
  align-items: center;
  justify-content: center;
  line-height: 1.3;
  white-space: nowrap;
  writing-mode: horizontal-tb;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: none;
}

body.muse-v3-home .muse-archive .navigation.pagination a.page-numbers:hover {
  background: color-mix(in srgb, var(--ink) 8%, var(--paper));
  border-color: var(--ink);
}

body.muse-v3-home .muse-archive .navigation.pagination a.page-numbers:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

body.muse-v3-home .muse-archive .navigation.pagination .page-numbers.current {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}

body.muse-v3-home .muse-archive .navigation.pagination .page-numbers.dots {
  min-width: auto;
  padding-inline: .35rem;
  border-color: transparent;
}

#footer .muse-footer-name {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* Cocoon skins may give .header white text for their dark headers. */
body.muse-v3-home.wp-child-theme-beauty-nav-v3 .v3guide .header,
body.muse-v3-home.wp-child-theme-beauty-nav-v3 .v3guide .header .brand,
body.muse-v3-home.wp-child-theme-beauty-nav-v3 .v3guide .header nav a,
body.muse-v3-home.wp-child-theme-beauty-nav-v3 .v3guide .header button {
  color: var(--ink);
}

body.muse-v3-home.wp-child-theme-beauty-nav-v3 .v3guide .header .brand span {
  color: var(--muted);
}

body.muse-v3-home.wp-child-theme-beauty-nav-v3 .v3guide .header button {
  border-color: #a56d7f;
}

body.muse-v3-home.wp-child-theme-beauty-nav-v3 .v3guide .header a:focus-visible,
body.muse-v3-home.wp-child-theme-beauty-nav-v3 .v3guide .header button:focus-visible,
body.wp-child-theme-beauty-nav-v3 .page-top a:focus-visible {
  outline: 2px solid var(--accent-dark);
  outline-offset: 2px;
}

body.wp-child-theme-beauty-nav-v3 .page-top a {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  background: var(--light);
  color: var(--ink);
  font-size: .8125rem;
}

body.wp-child-theme-beauty-nav-v3 .page-top a:hover {
  color: var(--accent-dark);
}

@media (max-width: 640px) {
  body.muse-v3-home.wp-child-theme-beauty-nav-v3 .v3guide .header nav {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0 14px;
    font-size: .8125rem;
  }

  body.muse-v3-home.wp-child-theme-beauty-nav-v3 .v3guide .header nav a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
  }

  body.muse-v3-home.wp-child-theme-beauty-nav-v3 .v3guide .header button {
    min-height: 44px;
    font-size: .75rem;
  }
}


/* Keep the Cocoon wrappers inside the viewport when a site has custom widths. */
body.wp-theme-cocoon-master :is(#header-in, #navi-in, #content-in, #footer-in),
body.wp-theme-cocoon-master #main {
  box-sizing: border-box;
  max-width: 100%;
}

body.muse-v3-home.wp-child-theme-beauty-nav-v3 .v3guide .hero h1 {
  text-wrap: balance;
}

@media (max-width: 480px) {
  body.muse-v3-home.wp-child-theme-beauty-nav-v3 .v3guide .hero h1 {
    font-size: clamp(21px, 6.6vw, 30px);
    letter-spacing: .01em;
  }
}


/* Cocoon's 320px thumbnails must also fit narrower padded list cards. */
@media (max-width: 480px) {
  body.wp-theme-cocoon-master #main .entry-card-thumb,
  body.wp-theme-cocoon-master #main .entry-card-thumb-image {
    max-width: 100%;
  }

  body.wp-theme-cocoon-master #main .entry-card-thumb-image {
    height: auto;
  }
}

