@font-face {
  font-family: "JiangChengJieXing";
  src:
    url("../public/assets/fuyuki/fonts/JiangChengJieXing-Fuyuki-Subset.woff2") format("woff2"),
    url("../public/assets/fuyuki/fonts/JiangChengJieXing-V1.3.ttf") format("truetype");
  font-display: swap;
}

:root {
  --fe-chrome-font: "JiangChengJieXing", "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", serif;
  --fe-chrome-ink: #6c667b;
  --fe-chrome-active: #c9678a;
  --fe-chrome-pink: #f39ab6;
  --fe-site-logo-width: clamp(132px, 14vw, 164px);
  --fe-site-header-gutter: 24px;
}

.fe-site-header,
.fe-site-header *,
.fe-site-logo,
.fe-site-logo *,
.fe-site-footer,
.fe-site-footer * { box-sizing: border-box; }

.fe-site-header {
  position: fixed;
  z-index: 60;
  top: 18px;
  left: 0;
  display: grid;
  width: 100%;
  grid-template-columns: var(--fe-site-logo-width) minmax(0, 1fr) var(--fe-site-logo-width);
  align-items: center;
  gap: clamp(7px, 1.25vw, 18px);
  padding: 0 var(--fe-site-header-gutter);
  pointer-events: none;
  visibility: hidden;
}

.fe-has-site-chrome .fe-site-header { visibility: visible; }

.fe-site-logo {
  display: flex;
  position: absolute;
  z-index: 61;
  top: 18px;
  left: var(--fe-site-header-gutter);
  width: var(--fe-site-logo-width);
  height: 52px;
  align-items: center;
  justify-content: flex-start;
  pointer-events: auto;
  visibility: hidden;
}

.fe-has-site-chrome .fe-site-logo { visibility: visible; }

.fe-site-logo img {
  display: block;
  width: 100%;
  max-width: 164px;
  height: 52px;
  object-fit: contain;
  object-position: left center;
}

.fe-site-nav-shell {
  display: grid;
  width: min(760px, calc(100% - 8px));
  max-width: 100%;
  min-width: 0;
  min-height: 64px;
  grid-column: 2;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 8px 18px;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 12px 35px rgba(91,101,141,.14), inset 0 0 0 1px rgba(242,172,194,.15);
  color: var(--fe-chrome-ink);
  font-family: var(--fe-chrome-font);
  backdrop-filter: blur(18px);
  pointer-events: auto;
  justify-self: center;
}

.fe-site-nav {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, .5vw, 8px);
}

.fe-site-nav a {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 44px;
  flex: 0 1 auto;
  align-items: center;
  justify-content: center;
  padding: 10px clamp(8px, .65vw, 10px) 12px;
  color: var(--fe-chrome-ink);
  font-family: var(--fe-chrome-font);
  font-size: clamp(14px, 1vw, 16px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .04em;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: color .25s ease;
}

.fe-site-nav a::after {
  position: absolute;
  right: 50%;
  bottom: 4px;
  left: 50%;
  height: 3px;
  border-radius: 3px;
  background: var(--fe-chrome-pink);
  content: "";
  transition: right .25s ease, left .25s ease;
}

.fe-site-nav a:hover,
.fe-site-nav a:focus-visible,
.fe-site-nav a[aria-current="page"] { color: var(--fe-chrome-active); }

.fe-site-nav a:hover::after,
.fe-site-nav a:focus-visible::after,
.fe-site-nav a[aria-current="page"]::after {
  right: 18%;
  left: 18%;
}

.fe-site-socials {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  margin-left: 14px;
  padding-left: 18px;
}

.fe-site-socials::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 1px;
  height: 26px;
  background: rgba(105,99,126,.18);
  content: "";
  transform: translateY(-50%);
}

.fe-site-socials a {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 50%;
  background: #f5f3f7;
  color: #4f4b5f;
  font-family: var(--fe-chrome-font);
  text-decoration: none;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.fe-site-socials a:hover,
.fe-site-socials a:focus-visible {
  background: #fff0f5;
  color: var(--fe-chrome-active);
  transform: translateY(-2px);
}

.fe-site-socials span { font: 700 18px/1 var(--fe-chrome-font); }
.fe-site-socials img { display: block; width: 19px; height: 19px; }

.fe-site-menu,
.fe-site-mobile-nav { display: none; }

.fe-site-mobile-nav,
.fe-site-mobile-nav a,
.fe-site-mobile-socials,
.fe-site-mobile-socials a,
.fe-site-mobile-socials span { font-family: var(--fe-chrome-font); }

.fe-site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 510px);
  grid-template-areas:
    "brand nav"
    "meta back";
  align-items: start;
  gap: 18px 36px;
  padding: 70px max(5vw, 28px) 36px;
  border-radius: 52px 52px 0 0;
  background: #58536f;
  color: #fff;
  font-family: var(--fe-chrome-font);
}

.fe-site-footer h2 {
  margin: 0;
  color: #fff;
  font-family: var(--fe-chrome-font);
  font-size: 23px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: .04em;
}

.fe-site-footer__brand p {
  margin: 9px 0 0;
  color: rgba(255,255,255,.72);
  font-family: var(--fe-chrome-font);
  font-size: 14px;
  line-height: 1.6;
}

.fe-site-footer__brand { grid-area: brand; }

.fe-site-footer nav {
  grid-area: nav;
  display: flex;
  max-width: 510px;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 13px 22px;
}

.fe-site-footer nav a,
.fe-site-footer__meta,
.fe-site-footer__meta a {
  font-family: var(--fe-chrome-font);
  text-decoration: none;
}

.fe-site-footer nav a {
  color: rgba(255,255,255,.82);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .03em;
}

.fe-site-footer a:hover,
.fe-site-footer a:focus-visible { color: #ffc4d7; }

.fe-site-footer__meta {
  grid-area: meta;
  color: rgba(255,255,255,.62);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.fe-site-footer__meta > p { margin: 0; }

.fe-site-footer__records {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 8px;
}

.fe-site-footer__records a {
  color: rgba(255,255,255,.56);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
}

.fe-site-footer__back-top {
  grid-area: back;
  align-self: end;
  justify-self: end;
  color: rgba(255,255,255,.78);
  font-family: var(--fe-chrome-font);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .04em;
  text-decoration: none;
  white-space: nowrap;
}

.fe-site-footer__back-top::after {
  display: inline-block;
  margin-left: 7px;
  color: #ffc4d7;
  content: "↑";
}

.fe-has-site-chrome .news-page { padding-top: 128px; }

@media (min-width: 767.01px) and (max-width: 1040px) {
  .fe-site-header { gap: clamp(6px, 1vw, 10px); }
  .fe-site-nav-shell { min-height: 58px; padding-right: clamp(10px, 1.35vw, 14px); padding-left: clamp(10px, 1.35vw, 14px); }
  .fe-site-nav { gap: clamp(5px, .6vw, 7px); }
  .fe-site-nav a { min-height: 40px; padding-right: clamp(5px, .7vw, 7px); padding-left: clamp(5px, .7vw, 7px); font-size: clamp(13px, 1.35vw, 14px); letter-spacing: .01em; }
  .fe-site-socials { gap: 4px; margin-left: clamp(10px, 1.2vw, 13px); padding-left: clamp(14px, 1.7vw, 18px); }
  .fe-site-socials::before { height: 22px; }
  .fe-site-socials a { width: clamp(32px, 3.5vw, 36px); height: clamp(32px, 3.5vw, 36px); flex-basis: clamp(32px, 3.5vw, 36px); }
}

@media (min-width: 767.01px) and (max-width: 860px) {
  .fe-site-nav-shell { padding-right: 8px; padding-left: 8px; }
  .fe-site-nav { gap: 4px; }
  .fe-site-nav a { padding-right: 4px; padding-left: 4px; font-size: 12.5px; }
  .fe-site-socials { gap: 3px; margin-left: 9px; padding-left: 14px; }
  .fe-site-socials a { width: 32px; height: 32px; flex-basis: 32px; }
}

@media (max-width: 767px) {
  .fe-site-header {
    top: 16px;
    grid-template-columns: 1fr auto;
    justify-content: end;
    gap: 12px;
    padding: 0 16px;
  }

  .fe-site-logo { top: 16px; left: 16px; width: 132px; height: 44px; }
  .fe-site-logo img { width: 132px; height: 44px; }
  .fe-site-nav-shell { display: none; }

  .fe-site-menu {
    position: relative;
    z-index: 2;
    display: grid;
    grid-column: 2;
    width: 52px;
    height: 52px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255,244,248,.94);
    box-shadow: 0 10px 30px rgba(65,72,96,.12);
    cursor: pointer;
    pointer-events: auto;
  }

  .fe-site-menu span {
    position: absolute;
    width: 19px;
    height: 2px;
    border-radius: 99px;
    background: #dc779b;
    transition: transform .25s ease;
  }

  .fe-site-menu span:first-child { transform: translateY(-5px); }
  .fe-site-menu span:last-child { transform: translateY(5px); }
  .fe-site-menu[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
  .fe-site-menu[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

  .fe-site-mobile-nav {
    position: fixed;
    z-index: 1;
    inset: 0;
    display: flex;
    visibility: hidden;
    width: 100%;
    height: 100svh;
    min-height: 100svh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    overflow-y: auto;
    padding: 104px 0 34px;
    background: rgba(250,249,252,.97);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-16px);
    transition: opacity .25s ease, visibility .25s ease, transform .25s ease;
  }

  .fe-site-menu[aria-expanded="true"] + .fe-site-mobile-nav {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .fe-site-mobile-grid {
    display: grid;
    width: min(calc(100% - 24px), 520px);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border: 1px solid rgba(105,99,126,.18);
    border-radius: 10px;
    overflow: hidden;
  }

  .fe-site-mobile-grid > a {
    position: relative;
    display: grid;
    min-width: 0;
    min-height: 48px;
    place-items: center;
    padding: 8px 6px 11px;
    border-right: 1px solid rgba(105,99,126,.18);
    border-bottom: 1px solid rgba(105,99,126,.18);
    background: transparent;
    color: #55596f;
    font-family: var(--fe-chrome-font);
    font-size: clamp(16px, 4.6vw, 19px);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: .04em;
    text-decoration: none;
    transition: color .2s ease, background .2s ease;
  }

  .fe-site-mobile-grid > a:nth-child(3n) { border-right: 0; }
  .fe-site-mobile-grid > a:nth-last-child(-n + 3) { border-bottom: 0; }

  .fe-site-mobile-grid > a::after {
    position: absolute;
    right: 50%;
    bottom: 8px;
    left: 50%;
    height: 3px;
    border-radius: 3px;
    background: var(--fe-chrome-pink);
    content: "";
    transition: right .25s ease, left .25s ease;
  }

  .fe-site-mobile-grid > a:hover,
  .fe-site-mobile-grid > a:focus-visible,
  .fe-site-mobile-grid > a[aria-current="page"] {
    background: rgba(255,235,243,.88);
    color: var(--fe-chrome-active);
  }

  .fe-site-mobile-grid > a:hover::after,
  .fe-site-mobile-grid > a:focus-visible::after,
  .fe-site-mobile-grid > a[aria-current="page"]::after { right: calc(50% - 13px); left: calc(50% - 13px); }

  .fe-site-mobile-socials {
    display: flex;
    width: min(calc(100% - 24px), 520px);
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(105,99,126,.18);
  }

  .fe-site-mobile-socials a {
    display: flex;
    min-width: 118px;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 16px;
    border: 1px solid rgba(105,99,126,.18);
    border-radius: 8px;
    background: rgba(255,255,255,.45);
    color: #55596f;
    font-family: var(--fe-chrome-font);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .03em;
    text-decoration: none;
  }

  .fe-site-mobile-socials img {
    display: block;
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
  }

  .fe-site-mobile-socials__icon {
    display: inline-grid;
    width: 19px;
    height: 19px;
    place-items: center;
    font-family: var(--fe-chrome-font);
    font-size: 17px;
    line-height: 1;
  }

  .fe-site-mobile-socials a:hover,
  .fe-site-mobile-socials a:focus-visible { background: rgba(255,235,243,.68); color: var(--fe-chrome-active); }

  .fe-site-footer {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "nav"
      "meta"
      "back";
    gap: 26px;
    padding: 52px 24px 30px;
    border-radius: 36px 36px 0 0;
  }

  .fe-site-footer nav { justify-content: flex-start; }
  .fe-site-footer__back-top { justify-self: end; }
}

@media (prefers-reduced-motion: reduce) {
  .fe-site-header *,
  .fe-site-footer * { transition-duration: .01ms; }
}
