:root {
  --text-main: #13202b;
  --title-color: #ffffff;
  --title-shadow: 0 2px 16px rgba(0, 0, 0, 0.48);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  position: relative;
  overflow: hidden;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Heiti SC", sans-serif;
  color: var(--text-main);
  background: #eef3f8;
}

.bg-layer,
.overlay-layer {
  position: fixed;
  inset: 0;
}

.bg-layer {
  z-index: 0;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 50% 50%;
  transition: filter 180ms ease;
}

.overlay-layer {
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg,
      rgba(0, 0, 0, 0.64) 0%,
      rgba(0, 0, 0, 0.42) 12%,
      rgba(0, 0, 0, 0.18) 24%,
      rgba(0, 0, 0, 0.04) 34%,
      rgba(0, 0, 0, 0) 44%),
    linear-gradient(0deg,
      rgba(0, 0, 0, 0.62) 0%,
      rgba(0, 0, 0, 0.36) 12%,
      rgba(0, 0, 0, 0.14) 24%,
      rgba(0, 0, 0, 0.03) 34%,
      rgba(0, 0, 0, 0) 44%);
}

.top-bar {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 3;
  width: 100%;
  padding: 22px 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.site-title {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Heiti SC", sans-serif;
  font-size: clamp(30px, 5vw, 54px);
  letter-spacing: 0.06em;
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--title-color);
  text-shadow: var(--title-shadow);
}

.sns-links {
  display: flex;
  gap: 10px;
}

.sns-links.mobile {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 3;
  display: none;
}

.sns-link {
  width: 44px;
  height: 44px;
  display: block;
}

.sns-link img {
  width: 44px;
  height: 44px;
  display: block;
}

.photo-tooltip {
  position: fixed;
  left: 24px;
  bottom: 30px;
  z-index: 4;
  max-width: min(88vw, 620px);
  font-size: clamp(13px, 1.7vw, 15px);
  line-height: 1.42;
  color: #ffffff;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.66);
  opacity: 0;
  transform: none;
  pointer-events: none;
  transition: opacity 140ms ease;
}

.photo-tooltip.has-text {
  opacity: 1;
}

@media (max-width: 860px) {
  .top-bar {
    padding: 18px 18px;
  }

  .sns-links.desktop {
    display: none;
  }

  .sns-links.mobile {
    display: flex;
  }

  .photo-tooltip {
    left: 18px;
    right: 18px;
    bottom: 84px;
    max-width: none;
  }
}