:root {
  --bg: #090909;
  --fg: #f4f1ec;
  --muted: #9e9a94;
  --soft: #d7d2cb;
  --line: rgba(244, 241, 236, 0.16);
  --line-strong: rgba(244, 241, 236, 0.3);
  --red: #d71f2a;
  --cyan: #6fd8e7;
  --warm: #d6a96a;
  --max: 1440px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html:lang(ja) {
  line-break: strict;
  overflow-wrap: anywhere;
  word-break: normal;
}

body {
  margin: 0;
  padding-bottom: 6.25rem;
  background:
    radial-gradient(circle at 74% 18%, rgba(215, 31, 42, 0.16), transparent 28rem),
    radial-gradient(circle at 13% 48%, rgba(111, 216, 231, 0.09), transparent 30rem),
    var(--bg);
  color: var(--fg);
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

:lang(ja) h1,
:lang(ja) h2,
:lang(ja) h3,
:lang(ja) p,
:lang(ja) a,
:lang(ja) strong,
:lang(ja) em {
  overflow-wrap: anywhere;
  word-break: normal;
}

a {
  color: inherit;
  text-decoration: none;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

button,
input,
textarea,
select {
  font: inherit;
}

.site-shell {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 1.1rem clamp(1rem, 3vw, 3rem);
  border-bottom: 1px solid transparent;
  background: rgba(9, 9, 9, 0.68);
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(9, 9, 9, 0.86);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: clamp(6.5rem, 8vw, 8.5rem);
  line-height: 0;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.6rem);
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
}

.nav a {
  transition: color 160ms ease;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--fg);
}

.lang-switch {
  display: inline-flex;
  gap: 0.45rem;
  margin-left: 0.25rem;
  padding-left: clamp(0.25rem, 1.2vw, 0.85rem);
  border-left: 1px solid var(--line);
}

.lang-switch a {
  color: var(--muted);
}

.lang-switch a[aria-current="true"] {
  color: var(--fg);
}

.menu-toggle {
  display: none;
}

.kicker {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section {
  padding: clamp(4rem, 8vw, 8rem) clamp(1rem, 3vw, 3rem);
  border-bottom: 1px solid var(--line);
}

.back-link {
  display: inline-block;
  color: var(--fg);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.text-link {
  color: var(--fg);
  border-bottom: 1px solid currentColor;
}

.track-play {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: max-content;
  max-width: 100%;
  border: 1px solid rgba(244, 241, 236, 0.34);
  border-radius: 999rem;
  padding: 0.58rem 0.82rem;
  background: rgba(5, 5, 5, 0.36);
  color: var(--fg);
  font: inherit;
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
}

.track-play::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 0.3rem solid transparent;
  border-bottom: 0.3rem solid transparent;
  border-left: 0.46rem solid currentColor;
}

.track-play.is-playing::before {
  width: 0.45rem;
  height: 0.58rem;
  border: 0;
  border-right: 0.14rem solid currentColor;
  border-left: 0.14rem solid currentColor;
}

.global-player {
  position: fixed;
  right: 50%;
  bottom: 1rem;
  z-index: 40;
  display: grid;
  grid-template-columns: auto minmax(10rem, 18rem) minmax(8rem, 18rem) auto auto;
  gap: 0.85rem;
  align-items: center;
  width: min(calc(100vw - 2rem), 48rem);
  border: 1px solid rgba(244, 241, 236, 0.18);
  background:
    linear-gradient(180deg, rgba(18, 18, 18, 0.94), rgba(7, 7, 7, 0.94)),
    radial-gradient(circle at 16% 0%, rgba(215, 31, 42, 0.18), transparent 14rem);
  box-shadow: 0 1.2rem 4rem rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(18px);
  padding: 0.72rem 0.8rem;
  transform: translateX(50%);
}

.global-player-youtube {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0.01;
  pointer-events: none;
}

.global-player-youtube iframe {
  display: none;
}

.global-player-toggle,
.global-player-close {
  appearance: none;
  position: relative;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(244, 241, 236, 0.22);
  border-radius: 999rem;
  background: rgba(244, 241, 236, 0.06);
  color: var(--fg);
  cursor: pointer;
}

.global-player-toggle span {
  width: 0;
  height: 0;
  border-top: 0.42rem solid transparent;
  border-bottom: 0.42rem solid transparent;
  border-left: 0.62rem solid currentColor;
  transform: translateX(0.08rem);
}

.global-player.is-playing .global-player-toggle span {
  width: 0.58rem;
  height: 0.74rem;
  border: 0;
  border-right: 0.18rem solid currentColor;
  border-left: 0.18rem solid currentColor;
  transform: none;
}

.global-player-close::before,
.global-player-close::after {
  content: "";
  position: absolute;
  width: 0.82rem;
  height: 1px;
  background: currentColor;
}

.global-player-close::before {
  transform: rotate(45deg);
}

.global-player-close::after {
  transform: rotate(-45deg);
}

.global-player-meta {
  display: grid;
  gap: 0.16rem;
  min-width: 0;
}

.global-player-meta strong,
.global-player-meta span,
.global-player-time {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.global-player-meta strong {
  color: var(--fg);
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.1;
  text-transform: uppercase;
}

.global-player-meta span,
.global-player-time {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}

.global-player-progress {
  width: 100%;
  accent-color: var(--fg);
}

.global-player.is-empty {
  display: none;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) minmax(14rem, auto) auto;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  padding: clamp(2rem, 5vw, 4.5rem) clamp(1rem, 3vw, 3rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-brand,
.footer-contact {
  display: grid;
  gap: 0.38rem;
  font-style: normal;
}

.footer-logo {
  display: block;
  width: clamp(13rem, 24vw, 21rem);
  height: auto;
}

.footer-brand strong {
  color: var(--fg);
  font-size: clamp(1.1rem, 2.2vw, 1.7rem);
  font-weight: 900;
  line-height: 0.95;
  text-transform: uppercase;
}

.footer-brand span,
.footer-contact span {
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-contact a {
  width: max-content;
  max-width: 100%;
  border-bottom: 1px solid rgba(244, 241, 236, 0.34);
  color: var(--fg);
  font-size: 0.9rem;
  font-weight: 750;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.6rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.58rem;
  min-height: 2.75rem;
  border: 1px solid rgba(244, 241, 236, 0.28);
  padding: 0.68rem 0.9rem;
  background: rgba(244, 241, 236, 0.07);
  color: var(--fg);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.footer-social a:hover {
  border-color: rgba(244, 241, 236, 0.5);
  background: rgba(244, 241, 236, 0.12);
  transform: translateY(-1px);
}

.footer-social a[aria-label*="YouTube"] {
  color: #ff3b3b;
}

.footer-social a[aria-label*="Apple"] {
  color: #f8f5ef;
}

.footer-social a[aria-label*="Spotify"] {
  color: #1ed760;
}

.footer-social svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
  flex: 0 0 auto;
  filter: drop-shadow(0 0 0.55rem color-mix(in srgb, currentColor 42%, transparent));
}

.footer-social span {
  color: var(--fg);
}

@media (max-width: 620px) {
  body {
    padding-bottom: 7.2rem;
  }

  .site-header {
    position: relative;
    display: grid;
  }

  .nav {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .global-player {
    bottom: 0.7rem;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.65rem;
    width: calc(100vw - 1rem);
    padding: 0.65rem;
  }

  .global-player-progress,
  .global-player-time {
    grid-column: 1 / -1;
  }

  .global-player-progress {
    order: 5;
  }

  .global-player-time {
    order: 6;
    justify-self: end;
  }

  .site-footer {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 1.25rem;
    padding-top: 2.5rem;
    padding-bottom: 8.5rem;
  }

  .footer-social {
    justify-content: flex-start;
  }

  .footer-social a {
    flex: 1 1 calc(50% - 0.6rem);
    justify-content: center;
  }
}
