:root {
  --hg-footer-ink: #1a1a1a;
  --hg-footer-muted: #626264;
  --hg-footer-line: #d9d9d9;
  --hg-footer-blue: #0017c1;
  --hg-footer-blue-dark: #000082;
  --hg-footer-blue-pale: #e8f1ff;
  --hg-footer-yellow: #ffd43b;
}

.hg-site-header {
  position: relative;
  z-index: 20;
  width: 100%;
  border-bottom: 1px solid var(--hg-footer-line);
  background: rgba(255, 255, 255, .98);
  color: var(--hg-footer-ink);
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
}

.hg-site-header * { box-sizing: border-box; }
.hg-site-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; width: min(1160px, calc(100% - 48px)); min-height: 76px; margin-inline: auto; }
.hg-site-header-brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 11px; min-height: 44px; color: var(--hg-footer-ink); line-height: 1; text-decoration: none; }
.hg-site-header-brand img { display: block; width: 42px; height: 42px; }
.hg-site-header-brand > span { display: grid; gap: 5px; }
.hg-site-header-brand strong { font-size: 17px; }
.hg-site-header-brand small { color: var(--hg-footer-muted); font-size: 12px; font-weight: 700; }
.hg-site-header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; min-width: 0; }
.hg-site-header-collections, .hg-site-header-locale { display: flex; align-items: center; gap: 6px; }
.hg-site-header-collections a, .hg-site-header-locale a, .hg-site-header-locale button, .hg-site-header-locale span[aria-current="page"] { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 11px; border: 1px solid transparent; border-radius: 999px; color: var(--hg-footer-ink); background: transparent; font: inherit; font-weight: 800; line-height: 1; text-decoration: none; white-space: nowrap; }
.hg-site-header-collections a:hover, .hg-site-header-locale a:hover, .hg-site-header-locale button:hover { border-color: var(--hg-footer-blue); background: var(--hg-footer-blue-pale); color: var(--hg-footer-blue-dark); }
.hg-site-header-collections a[aria-current="page"], .hg-site-header-locale span[aria-current="page"], .hg-site-header-locale button[aria-pressed="true"] { border-color: var(--hg-footer-blue); background: var(--hg-footer-blue); color: #fff; }
.hg-site-header-locale { padding-left: 12px; border-left: 1px solid var(--hg-footer-line); }
.hg-site-header-locale button { cursor: pointer; }
.hg-site-header a:focus-visible, .hg-site-header button:focus-visible { outline: 4px solid var(--hg-footer-yellow); outline-offset: 3px; }
.hg-shell-ja { display: none; }
html[lang="ja"] .hg-shell-en { display: none; }
html[lang="ja"] .hg-shell-ja { display: inline; }
.hg-site-header-locale-short { display: none; }

@media (max-width: 760px) {
  .hg-site-header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 44px 50px;
    gap: 4px 8px;
    width: min(calc(100% - 24px), 1160px);
    min-height: 0;
    padding: 6px 0;
  }
  .hg-site-header-brand { grid-column: 1; grid-row: 1; min-width: 0; min-height: 44px; gap: 8px; }
  .hg-site-header-brand img { width: 34px; height: 34px; }
  .hg-site-header-brand strong { display: block; overflow: hidden; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
  .hg-site-header-brand small { display: none; }
  .hg-site-header-actions { display: contents; }
  .hg-site-header-collections {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    padding-top: 4px;
    border-top: 1px solid var(--hg-footer-line);
  }
  .hg-site-header-collections a[href="/"] { display: none; }
  .hg-site-header-locale {
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-end;
    gap: 4px;
    min-width: 0;
    padding-left: 0;
    border-left: 0;
  }
  .hg-site-header-collections a,
  .hg-site-header-locale a,
  .hg-site-header-locale button,
  .hg-site-header-locale span[aria-current="page"] {
    min-width: 44px;
    padding: 7px 10px;
    font-size: 12px;
  }
  .hg-site-header-locale-full { display: none; }
  .hg-site-header-locale-short { display: inline; }
}

@media (max-width: 360px) {
  .hg-site-header-inner { width: min(calc(100% - 20px), 1160px); }
  .hg-site-header-brand { gap: 6px; }
  .hg-site-header-brand img { width: 32px; height: 32px; }
  .hg-site-header-brand strong { font-size: 15px; }
  .hg-site-header-collections a { padding-inline: 8px; }
}

.hg-site-footer {
  clear: both;
  width: 100%;
  border-top: 1px solid var(--hg-footer-line);
  background: #f7f8fc;
  color: var(--hg-footer-ink);
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

.hg-site-footer * { box-sizing: border-box; }
.hg-site-footer-inner { width: min(1160px, calc(100% - 48px)); margin-inline: auto; padding: 30px 0 38px; }
.hg-site-footer-brand { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.hg-site-footer-brand a { display: inline-flex; align-items: center; gap: 10px; color: var(--hg-footer-ink); font-size: 17px; line-height: 1; text-decoration: none; }
.hg-site-footer-brand img { width: 38px; height: 38px; }
.hg-site-footer-brand p { margin: 0; color: var(--hg-footer-muted); font-weight: 700; }
.hg-site-footer-collections, .hg-site-footer-social, .hg-site-footer-info { display: flex; align-items: center; flex-wrap: wrap; }
.hg-site-footer-collections { gap: 10px 24px; margin-top: 22px; padding: 18px 0; border-top: 1px solid var(--hg-footer-line); border-bottom: 1px solid var(--hg-footer-line); }
.hg-site-footer-collections a, .hg-site-footer-info a { display: inline-flex; align-items: center; min-height: 44px; color: var(--hg-footer-ink); font-weight: 700; text-decoration: none; }
.hg-site-footer-collections a:hover, .hg-site-footer-info a:hover { color: var(--hg-footer-blue-dark); text-decoration: underline; }
.hg-site-footer-social { gap: 10px; margin-top: 20px; }
.hg-site-footer-social a { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 8px 13px; border: 1px solid var(--hg-footer-line); border-radius: 999px; background: #fff; color: var(--hg-footer-ink); font-weight: 700; line-height: 1; text-decoration: none; }
.hg-site-footer-social a:hover { border-color: var(--hg-footer-blue); background: var(--hg-footer-blue-pale); color: var(--hg-footer-blue-dark); }
.hg-site-footer-social span[aria-hidden="true"] { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--hg-footer-ink); color: #fff; font-size: 12px; font-weight: 800; line-height: 1; }
.hg-site-footer-social .youtube { background: #e62117 !important; }
.hg-site-footer-social .note { background: #2fbc8f !important; }
.hg-site-footer-info { gap: 4px 24px; margin-top: 16px; }
.hg-site-footer-info a { color: var(--hg-footer-muted); }
.hg-site-footer a:focus-visible { outline: 4px solid var(--hg-footer-yellow); outline-offset: 3px; border-radius: 4px; }
.hg-footer-ja { display: none; }
html[lang="ja"] .hg-footer-en { display: none; }
html[lang="ja"] .hg-footer-ja { display: inline; }

@media (max-width: 760px) {
  .hg-site-footer-inner { width: min(100% - 32px, 1160px); padding: 26px 0 32px; }
  .hg-site-footer-brand { display: block; }
  .hg-site-footer-brand p { margin-top: 10px; }
}

@media (max-width: 560px) {
  .hg-site-footer-collections, .hg-site-footer-info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .hg-site-footer-collections a, .hg-site-footer-info a { justify-content: center; padding: 8px; border: 1px solid var(--hg-footer-line); border-radius: 8px; background: #fff; text-align: center; }
  .hg-site-footer-social { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hg-site-footer-social a { justify-content: center; padding-inline: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .hg-site-footer * { scroll-behavior: auto !important; }
}
