:root {
  color-scheme: light;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #080808;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
p {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 0.25em;
}

a:focus-visible {
  outline: 2px solid #00c1cc;
  outline-offset: 6px;
}

.skip-link {
  position: fixed;
  z-index: 2;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  color: #fff;
  background: #000;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.hero {
  position: relative;
  width: 100%;
  min-height: 520px;
  aspect-ratio: 3174 / 1560;
  isolation: isolate;
}

.hero-art {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  user-select: none;
}

.hero-desktop {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

.hero-character,
.hero-sign {
  display: none;
}

.hero-content {
  position: absolute;
  top: 39.5%;
  left: 0;
  width: 100%;
  padding-inline: 24px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(26px, 2.42vw, 52px);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.07em;
}

.hero h1 time {
  white-space: nowrap;
}

.farewell-message {
  margin-top: clamp(40px, 4.9vw, 106px);
  font-size: clamp(18px, 1.67vw, 34px);
  font-weight: 400;
  line-height: 2.15;
  letter-spacing: 0.08em;
}

.farewell-message span {
  display: block;
}

.scroll-link {
  position: absolute;
  bottom: clamp(18px, 1.65vw, 36px);
  left: 50%;
  display: flex;
  min-width: 100px;
  min-height: 56px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: clamp(14px, 1.2vw, 22px);
  letter-spacing: 0.1em;
  transform: translateX(-50%);
}

.scroll-link:hover svg {
  transform: translateY(3px);
}

.scroll-link svg {
  transition: transform 160ms ease;
}

.notice {
  padding-block: clamp(56px, 4.6vw, 100px) clamp(64px, 5.3vw, 112px);
  color: #c6c6c6;
  background: #000;
}

.notice:focus {
  outline: none;
}

.notice-inner {
  width: 59.2%;
  max-width: 1200px;
  margin-inline: auto;
}

.notice h2 {
  margin-bottom: clamp(36px, 3.2vw, 68px);
  color: #00c1cc;
  font-size: clamp(20px, 1.48vw, 30px);
  font-weight: 400;
  line-height: 1.7;
  text-align: center;
}

.notice-body {
  font-size: clamp(16px, 1.17vw, 23px);
  line-height: 2.05;
  overflow-wrap: break-word;
}

.greeting {
  margin-bottom: 4px;
}

.notice-details {
  margin-top: 24px;
}

.notice strong {
  color: #dedede;
  font-weight: 600;
}

.closing {
  margin-top: 24px;
}

.signature {
  margin-top: 28px;
  color: #bdbdbd;
  font-size: clamp(15px, 1.13vw, 22px);
  line-height: 1.8;
  text-align: right;
}

.footer {
  padding: 34px 32px 14px;
  color: #d9d9d9;
  background: #333;
}

.footer-inner {
  max-width: 1400px;
  width: 77%;
  margin-inline: auto;
}

.footer-main {
  display: flex;
  min-height: 56px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 26px;
  border-bottom: 1px solid #505050;
}

.footer-logo {
  width: 106px;
  height: auto;
  margin-top: 1px;
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-style: normal;
  line-height: 1.9;
}

.footer-contact p {
  white-space: nowrap;
}

.footer-contact a:hover,
.footer-legal a:hover {
  color: #fff;
  text-decoration: underline;
}

.wechat-id {
  user-select: all;
  -webkit-user-select: all;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 3px 8px;
  padding-top: 14px;
  color: #b5b5b5;
  font-size: 11px;
  line-height: 1.8;
  text-align: center;
}

.public-security {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

@media (min-width: 768px) and (max-width: 1100px) {
  .hero-content {
    top: 29%;
  }

  .farewell-message {
    margin-top: 38px;
  }

  .notice-inner {
    width: 76%;
  }

  .footer-inner {
    width: 100%;
  }

  .footer-contact {
    gap: 18px;
    font-size: 13px;
  }
}

@media (max-width: 767px) {
  .hero {
    height: 740px;
    height: min(760px, 100svh);
    min-height: 680px;
    aspect-ratio: auto;
  }

  .hero-desktop {
    display: none;
  }

  .hero-character,
  .hero-sign {
    position: absolute;
    display: block;
    height: auto;
  }

  .hero-character {
    bottom: 8px;
    left: 0;
    width: clamp(220px, 58vw, 280px);
  }

  .hero-sign {
    right: 9%;
    bottom: 20px;
    width: clamp(64px, 16vw, 88px);
  }

  .hero-content {
    top: 0;
    padding: clamp(60px, 10svh, 96px) 20px 0;
  }

  .hero h1 {
    font-size: clamp(25px, 5.6vw, 32px);
    line-height: 1.65;
    letter-spacing: 0.05em;
  }

  .hero h1 > span,
  .hero h1 > time {
    display: block;
  }

  .farewell-message {
    margin-top: 28px;
    font-size: clamp(16px, 4.15vw, 21px);
    line-height: 2.15;
    letter-spacing: 0.02em;
  }

  .scroll-link {
    bottom: 22px;
    left: 64%;
    min-width: 88px;
    gap: 7px;
    font-size: 13px;
  }

  .scroll-link svg {
    width: 24px;
    height: 16px;
  }

  .notice {
    padding: 48px 24px 52px;
  }

  .notice-inner {
    width: 100%;
    max-width: 560px;
  }

  .notice h2 {
    max-width: 24em;
    margin: 0 auto 30px;
    font-size: 20px;
    line-height: 1.8;
    text-wrap: pretty;
  }

  .notice-body {
    font-size: 16px;
    line-height: 2;
  }

  .greeting {
    margin-bottom: 10px;
  }

  .notice-details {
    margin-top: 24px;
  }

  .notice-details p + p {
    margin-top: 16px;
  }

  .signature {
    margin-top: 30px;
    font-size: 15px;
    line-height: 1.9;
  }

  .footer {
    padding: 30px 24px 22px;
  }

  .footer-inner {
    width: 100%;
    max-width: 560px;
  }

  .footer-main {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding-bottom: 24px;
  }

  .footer-logo {
    width: 112px;
  }

  .footer-contact {
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 14px;
  }

  .footer-legal {
    flex-direction: column;
    gap: 6px;
    padding-top: 20px;
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .scroll-link svg {
    transition: none;
  }
}
