@charset "UTF-8";

/* AFTERDARK sitewide visual system
   Preserve the black-and-gold identity while making spacing, type and image behavior explicit. */
:root {
  --bg: #11120f;
  --panel: #1b1d18;
  --ink: #eeeae0;
  --muted: #b7b6aa;
  --gold: #d1bc8b;
  --line: #34372e;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Arial, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --content-max: 1280px;
  --page-gutter: clamp(36px, 7.5vw, 96px);
  --section-space: clamp(72px, 8vw, 112px);
}

html {
  scroll-padding-top: 96px;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: -0.01em;
}

.wrap {
  width: min(var(--content-max), calc(100% - var(--page-gutter)));
}

.header {
  min-height: 90px;
  height: 90px;
  gap: clamp(24px, 3vw, 48px);
}

.logo {
  flex-shrink: 0;
}

.nav {
  gap: clamp(20px, 2.5vw, 34px);
  white-space: nowrap;
}

.nav a,
.btn,
.filter,
.page-jumps a {
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, filter .2s ease;
}

.btn {
  min-height: 48px;
  padding: 13px 22px;
  line-height: 1.2;
}

.section {
  padding: var(--section-space) 0;
}

.section-top {
  margin-bottom: 36px;
}

h1,
h2,
h3,
p,
dl,
ul,
ol {
  overflow-wrap: break-word;
}

h2 {
  line-height: 1.35;
}

.intro,
.detail-head p,
.seo-section > p,
.seo-columns p,
.related > p,
.guide-head > p {
  line-height: 1.9;
}

/* PC hero: text on the left, complete source image on the right. */
@media (min-width: 641px) {
  .hero {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    column-gap: clamp(36px, 5vw, 72px);
    min-height: clamp(600px, calc(100svh - 90px), 760px);
    padding: clamp(36px, 5vw, 64px) 0 clamp(64px, 7vw, 96px);
    align-items: stretch;
  }

  .hero-copy {
    align-self: center;
    max-width: 560px;
    padding: 0;
  }

  .hero > picture:not(.mobile-welcome) {
    display: block;
    position: relative;
    align-self: stretch;
    min-width: 0;
    height: clamp(560px, calc(100svh - 160px), 700px);
    min-height: 560px;
    overflow: hidden;
    background: var(--panel);
  }

  .hero > picture:not(.mobile-welcome)::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(17, 18, 15, .04), rgba(17, 18, 15, .3));
  }

  .hero > picture:not(.mobile-welcome) img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: var(--panel);
    filter: brightness(.82);
  }

  .image-caption {
    right: clamp(18px, 2.2vw, 30px);
    bottom: clamp(22px, 3vw, 34px);
    left: auto;
    width: min(44%, 560px);
  }

  .vertical {
    right: clamp(-28px, -2.2vw, -18px);
  }

  /* Detail covers and galleries retain the complete user-provided frame on PC. */
  .detail-cover,
  .partyone-page .photo-cover .detail-cover {
    width: 100%;
    height: auto;
    max-height: 720px;
    object-fit: contain;
    object-position: center;
    background: var(--panel);
  }

  .gallery button,
  .partyone-page .photo-gallery button {
    aspect-ratio: auto;
  }

  .gallery img,
  .partyone-page .photo-gallery img {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    background: var(--panel);
  }

  .detail-head {
    padding: clamp(40px, 5vw, 64px) 0 clamp(32px, 4vw, 48px);
  }
}

@media (max-width: 1000px) and (min-width: 641px) {
  :root {
    --page-gutter: 48px;
  }

  .hero {
    column-gap: 32px;
  }

  .hero > picture:not(.mobile-welcome) {
    height: 560px;
    min-height: 560px;
  }

  .image-caption {
    width: 48%;
  }
}

@media (max-width: 640px) {
  :root {
    --page-gutter: 36px;
  }

  html {
    scroll-padding-top: 78px;
  }

  body {
    font-size: 14px;
  }

  .header {
    height: 76px;
    min-height: 76px;
  }

  .section {
    padding: 58px 0;
  }

  .section-top {
    margin-bottom: 25px;
  }

  .btn {
    min-height: 44px;
    padding: 12px 19px;
  }

  .detail-head {
    padding: 28px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav a,
  .btn,
  .filter,
  .page-jumps a {
    transition: none;
  }
}
