.site-frame-mount,
.site-frame-mount * {
  box-sizing: border-box;
}

.site-frame-mount {
  --site-body-padding-left: 0px;
  --site-body-padding-right: 0px;
  --site-viewport-width: calc(100% + var(--site-body-padding-left) + var(--site-body-padding-right));
  --site-viewport-offset: var(--site-body-padding-left);
  position: relative;
  z-index: 1000;
  width: 100%;
  color: #17131a;
  font-family: "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  text-align: left;
}

.site-frame-mount--header {
  margin-bottom: 28px;
}

.site-frame-mount--footer {
  margin-top: 64px;
}

.site-global-header,
.site-global-footer {
  width: var(--site-viewport-width);
  margin-left: calc(-1 * var(--site-viewport-offset));
}

/* 記事固有の絶対配置を、共通ヘッダーの下へずらす。 */
body > .site-frame-mount--header ~ .side-title,
body > .site-frame-mount--header ~ .side-characters {
  top: calc(var(--site-frame-header-offset, 0px) + 140px) !important;
}

.site-global-header {
  border-bottom: 1px solid #d8d0db;
  background: #fff;
  box-shadow: 0 4px 14px rgba(29, 17, 34, .08);
}

.site-global-header__brand-row {
  background: #fff url("ui/header-back.png") center / cover no-repeat;
}

.site-global-header__brand-row-inner,
.site-global-header__nav-row-inner {
  display: flex;
  width: min(100% - 40px, 1200px);
  margin: 0 auto;
  align-items: center;
}

.site-global-header__brand-row-inner {
  min-height: 110px;
  justify-content: space-between;
  gap: 24px;
}

.site-global-header__nav-row {
  border-top: 1px solid #000;
  background: #000;
}

.site-global-header__nav-row-inner {
  min-height: 62px;
  justify-content: space-between;
  gap: 24px;
}

.site-global-header__about {
  flex: 0 0 auto;
  margin: 0;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .06em;
  text-decoration: none;
  white-space: nowrap;
}

.site-global-header__about:hover,
.site-global-header__about:focus-visible {
  text-decoration: underline;
  text-underline-offset: .24em;
}

.site-global-header__about,
.site-global-nav a,
.site-global-nav__soon,
.site-global-menu-button {
  font-family: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  font-weight: 900;
}

.site-global-brand {
  display: block;
  flex: 0 1 380px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: inherit;
  background: #fff;
  box-shadow: 0 0 0 3px #fff;
  text-decoration: none;
}

.site-global-brand::before {
  --rainbow-1: #f52222;
  --rainbow-2: #ff8d19;
  --rainbow-3: #f4ee22;
  --rainbow-4: #25de32;
  --rainbow-5: #1ad9da;
  --rainbow-6: #263cff;
  --rainbow-7: #a31bea;
  content: "";
  position: absolute;
  z-index: -1;
  inset: -150% -45%;
  background:
    radial-gradient(circle, rgba(255,255,255,.5) 0, rgba(255,255,255,0) 18%, rgba(0,0,0,0) 72%, rgba(0,0,0,.28) 100%),
    repeating-conic-gradient(
      var(--rainbow-1) 0deg 18deg,
      var(--rainbow-2) 18deg 36deg,
      var(--rainbow-3) 36deg 54deg,
      var(--rainbow-4) 54deg 72deg,
      var(--rainbow-5) 72deg 90deg,
      var(--rainbow-6) 90deg 108deg,
      var(--rainbow-7) 108deg 126deg
    );
  animation: site-header-rainbow-colors .875s steps(1, end) infinite;
}

@keyframes site-header-rainbow-colors {
  0%, 100% {
    --rainbow-1: #f52222; --rainbow-2: #ff8d19; --rainbow-3: #f4ee22; --rainbow-4: #25de32;
    --rainbow-5: #1ad9da; --rainbow-6: #263cff; --rainbow-7: #a31bea;
  }
  14.285% {
    --rainbow-1: #ff8d19; --rainbow-2: #f4ee22; --rainbow-3: #25de32; --rainbow-4: #1ad9da;
    --rainbow-5: #263cff; --rainbow-6: #a31bea; --rainbow-7: #f52222;
  }
  28.571% {
    --rainbow-1: #f4ee22; --rainbow-2: #25de32; --rainbow-3: #1ad9da; --rainbow-4: #263cff;
    --rainbow-5: #a31bea; --rainbow-6: #f52222; --rainbow-7: #ff8d19;
  }
  42.857% {
    --rainbow-1: #25de32; --rainbow-2: #1ad9da; --rainbow-3: #263cff; --rainbow-4: #a31bea;
    --rainbow-5: #f52222; --rainbow-6: #ff8d19; --rainbow-7: #f4ee22;
  }
  57.142% {
    --rainbow-1: #1ad9da; --rainbow-2: #263cff; --rainbow-3: #a31bea; --rainbow-4: #f52222;
    --rainbow-5: #ff8d19; --rainbow-6: #f4ee22; --rainbow-7: #25de32;
  }
  71.428% {
    --rainbow-1: #263cff; --rainbow-2: #a31bea; --rainbow-3: #f52222; --rainbow-4: #ff8d19;
    --rainbow-5: #f4ee22; --rainbow-6: #25de32; --rainbow-7: #1ad9da;
  }
  85.714% {
    --rainbow-1: #a31bea; --rainbow-2: #f52222; --rainbow-3: #ff8d19; --rainbow-4: #f4ee22;
    --rainbow-5: #25de32; --rainbow-6: #1ad9da; --rainbow-7: #263cff;
  }
}

.site-global-brand img {
  display: block;
  position: relative;
  z-index: 1;
  width: min(380px, 56vw);
  max-width: none;
  height: auto;
  margin: 0;
  border: 0;
  object-fit: contain;
}

.site-global-socials {
  display: flex;
  margin: 0 0 3px auto;
  align-self: flex-end;
  align-items: center;
  gap: 12px;
}

.site-global-social {
  display: grid;
  width: 84px;
  height: 84px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.88);
  box-shadow: 0 2px 7px rgba(0,0,0,.22);
}

.site-global-social img {
  display: block;
  width: 80px;
  height: 80px;
  border: 0;
}

.site-global-nav {
  display: flex;
  width: auto;
  margin-left: auto;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.site-global-nav a,
.site-global-nav__soon {
  display: inline-flex;
  min-height: 44px;
  padding: 10px 16px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .04em;
  text-decoration: none;
  white-space: nowrap;
}

.site-global-nav a:hover,
.site-global-nav a:focus-visible {
  color: #fff;
  border-color: #625b64;
  background: #282329;
  outline: none;
}

.site-global-nav a[aria-current="page"] {
  color: #000;
  border-color: #fff;
  background: #fff;
  box-shadow: none;
}

.site-global-nav__soon {
  color: #aaa3ac;
  border: 1px dashed #6f6871;
  cursor: default;
}

.site-global-menu-button {
  display: none;
  min-width: 84px;
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid #282129;
  border-radius: 999px;
  color: #17131a;
  background: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .1em;
  cursor: pointer;
}

.site-global-footer {
  color: #272128;
  border-top: 1px solid #d8d0db;
  background: #fff;
}

.site-global-footer__inner {
  display: grid;
  width: min(100% - 40px, 1100px);
  min-height: 210px;
  margin: 0 auto;
  padding: 24px 0 22px;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px 40px;
}

.site-global-footer__brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 18px;
  color: inherit;
  text-decoration: none;
}

.site-global-footer__mascot {
  display: block;
  flex: 0 0 auto;
  width: 150px;
  height: 150px;
  object-fit: contain;
}

.site-global-footer__title {
  display: block;
  width: min(360px, 100%);
  max-width: 360px;
  height: auto;
  object-fit: contain;
}

.site-global-footer__copy {
  margin: 0;
  color: #756d77;
  font-size: 13px;
}

.site-global-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
}

.site-global-footer__links a {
  color: #272128;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.site-global-footer__links a:hover,
.site-global-footer__links a:focus-visible {
  color: #000;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-global-footer__copy {
  grid-column: 1 / -1;
  padding-top: 18px;
  border-top: 1px solid #e7e3e8;
}

@media (max-width: 760px) {
  .site-frame-mount--header {
    margin-bottom: 18px;
  }

  .site-global-header__brand-row-inner,
  .site-global-header__nav-row-inner {
    width: min(100% - 24px, 1200px);
  }

  .site-global-header__brand-row-inner {
    min-height: 74px;
    flex-wrap: wrap;
    gap: 8px 16px;
    padding: 7px 0;
  }

  .site-global-header__nav-row {
    display: none;
  }

  .site-global-header.is-menu-open .site-global-header__nav-row {
    display: block;
  }

  .site-global-header__nav-row-inner {
    min-height: 0;
    display: block;
  }

  .site-global-header__about {
    padding: 10px 0 2px;
  }

  .site-global-brand {
    flex-basis: auto;
  }

  .site-global-brand img {
    width: min(260px, 64vw);
  }

  .site-global-socials {
    order: 3;
    width: 100%;
    margin: -2px 0 2px;
    justify-content: flex-end;
    gap: 8px;
  }

  .site-global-social {
    width: 84px;
    height: 84px;
  }

  .site-global-social img {
    width: 80px;
    height: 80px;
  }

  .site-global-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-global-nav {
    display: grid;
    width: 100%;
    margin-left: 0;
    padding: 8px 0 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-global-nav a,
  .site-global-nav__soon {
    min-height: 42px;
    border-radius: 8px;
  }

  .site-global-footer__inner {
    width: min(100% - 32px, 1100px);
    grid-template-columns: 1fr;
  }

  .site-global-footer__brand {
    gap: 12px;
  }

  .site-global-footer__mascot {
    width: 120px;
    height: 120px;
  }

  .site-global-footer__title {
    width: min(320px, calc(100% - 132px));
  }

  .site-global-footer__links {
    justify-content: flex-start;
  }

  .site-global-footer__copy {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-global-brand::before {
    animation: none;
  }
}
