:root {
  color-scheme: dark;
  --bg: #080809;
  --bg-soft: #101011;
  --panel: #0d0d0f;
  --panel-strong: #222020;
  --line: rgba(241, 234, 223, 0.1);
  --text: #f1eadf;
  --muted: #b5aea4;
  --muted-dark: #776e68;
  --accent: #8f1f22;
  --accent-deep: #5d1518;
  --accent-soft: #b8955f;
  --gallery-gold: #b8955f;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  --max: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(184, 149, 95, 0.07), transparent 340px),
    radial-gradient(circle at top left, rgba(241, 234, 223, 0.035), transparent 330px),
    var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.8;
  letter-spacing: 0;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 18px 0;
  background: rgba(8, 8, 8, 0.86);
  backdrop-filter: blur(16px);
}

.brand,
.site-nav,
.button-row,
.member-actions,
.analysis-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  min-width: 0;
  text-decoration: none;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--accent);
  color: var(--accent-soft);
  font-size: 0.86rem;
}

.site-nav {
  gap: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-nav a,
.text-link,
.back-link {
  text-underline-offset: 0.28em;
  transition: color 160ms ease;
}

.site-nav a:hover,
.text-link:hover,
.back-link:hover {
  color: var(--text);
}

.section-band,
.content-section,
.members-section,
.cta-section,
.member-page,
.not-found {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: min(760px, calc(100svh - 12px));
  padding: 58px max(30px, calc((100vw - var(--max)) / 2)) 96px;
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.analysis-title h1,
.not-found h1 {
  margin: 10px 0 20px;
  font-size: clamp(2.5rem, 7vw, 5.7rem);
  line-height: 1.06;
  letter-spacing: 0;
}

.hero-sub,
.content-section p,
.cta-section p,
.section-heading p,
.analysis-title p,
.analysis-content p,
.not-found p {
  color: var(--muted);
}

.hero-sub {
  display: grid;
  gap: 4px;
  margin: 22px 0 34px;
  color: rgba(241, 234, 223, 0.76);
  font-size: clamp(0.96rem, 1.5vw, 1.1rem);
  line-height: 1.9;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.78);
}

.hero-sub p {
  margin: 0;
}

.stamp {
  display: inline-block;
  margin: 0;
  border: 1px solid rgba(143, 31, 34, 0.78);
  padding: 4px 10px;
  color: var(--accent-soft);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
  transform: rotate(-1deg);
}

.button-row,
.member-actions,
.analysis-actions {
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid transparent;
  padding: 11px 18px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  line-height: 1.35;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent);
  border-color: var(--accent-soft);
}

.button-primary:hover {
  background: #a7282b;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
}

.button-secondary:hover {
  border-color: var(--accent);
}

.button-small {
  min-height: 40px;
  padding: 8px 13px;
  font-size: 0.92rem;
}

.hero-media,
.member-image,
.analysis-image {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(143, 31, 34, 0.24), transparent),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 18px),
    var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  aspect-ratio: auto;
  border: 0;
  box-shadow: none;
}

.hero-media img,
.hero-media video,
.member-image img,
.analysis-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(242, 238, 232, 0.24);
  font-size: clamp(1rem, 3vw, 2.2rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 18px;
  text-align: center;
  white-space: nowrap;
}

.hero-media .image-fallback {
  font-size: clamp(1.5rem, 3vw, 2.8rem);
  letter-spacing: 0;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(8, 8, 9, 0.86) 0%, rgba(8, 8, 9, 0.62) 34%, rgba(8, 8, 9, 0.2) 70%),
    linear-gradient(180deg, rgba(8, 8, 9, 0.52) 0%, rgba(8, 8, 9, 0.18) 36%, rgba(8, 8, 9, 0.86) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100%, 760px);
  transform: translateY(-4vh);
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  color: var(--gallery-gold);
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(0.7rem, 1vw, 0.82rem);
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.72);
}

.hero-kicker::before {
  content: "";
  width: 40px;
  height: 1px;
  background: currentColor;
}

.hero-copy {
  margin: 0 0 8px;
  color: rgba(241, 234, 223, 0.84);
  font-family: "Noto Serif JP", serif;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  letter-spacing: 0.12em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.78);
}

.hero h1 {
  max-width: none;
  margin: 0;
  color: var(--text);
  font-family: "Noto Serif JP", serif;
  font-size: clamp(2.8rem, 7vw, 6.2rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.08;
  white-space: nowrap;
  text-shadow:
    0 2px 20px rgba(0, 0, 0, 0.84),
    0 20px 58px rgba(0, 0, 0, 0.62);
}

.hero .button-secondary {
  background: rgba(8, 8, 9, 0.28);
  border-color: rgba(184, 149, 95, 0.62);
  backdrop-filter: blur(10px);
}

.hero .button-secondary:hover {
  border-color: rgba(241, 234, 223, 0.78);
}

.hero-media img + .image-fallback,
.hero-media video + .image-fallback,
.member-portrait-image + .image-fallback,
.member-image img + .image-fallback,
.member-bromide.has-image .image-fallback,
.analysis-image img + .image-fallback {
  display: none;
}

.member-image::after,
.analysis-image::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(143, 31, 34, 0.42);
  pointer-events: none;
}

.content-section,
.members-section,
.cta-section {
  padding: 86px 0;
  border-top: 1px solid rgba(143, 31, 34, 0.24);
}

.content-section {
  max-width: 780px;
}

.section-kicker {
  margin-bottom: 8px;
  color: var(--accent-soft);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h2 {
  margin: 0 0 20px;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.25;
  letter-spacing: 0;
}

.content-section p,
.cta-section p {
  margin: 0 0 16px;
  font-size: 1.04rem;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
}

.section-heading p {
  max-width: 360px;
  margin: 0;
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid rgba(241, 234, 223, 0.08);
  background: rgba(241, 234, 223, 0.08);
}

.member-card {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  min-width: 0;
  background: var(--panel);
  border: 0;
  color: var(--text);
  cursor: pointer;
  isolation: isolate;
  transform: translateZ(0);
  transition: border-color 420ms ease, filter 420ms ease, transform 420ms ease;
}

.member-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 1px solid rgba(241, 234, 223, 0.08);
  pointer-events: none;
}

.member-card img {
  -webkit-user-drag: none;
  user-select: none;
}

.member-card:focus-visible {
  outline: 2px solid var(--gallery-gold);
  outline-offset: 4px;
}

.member-card:hover,
.member-card:focus-visible,
.member-card:focus-within,
.member-card.is-active {
  border-color: rgba(184, 149, 95, 0.34);
}

.member-portrait,
.member-portrait-image,
.member-card-overlay {
  position: absolute;
  inset: 0;
}

.member-portrait {
  z-index: 0;
  display: block;
  background:
    linear-gradient(145deg, rgba(184, 149, 95, 0.08), transparent 44%),
    var(--panel);
}

.member-portrait-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  filter: saturate(0.86) contrast(1.04) brightness(0.9);
  transition: opacity 460ms ease, transform 620ms ease, filter 620ms ease;
}

.member-portrait-hover {
  opacity: 0;
}

.member-card:hover .member-portrait-image,
.member-card:focus-visible .member-portrait-image,
.member-card:focus-within .member-portrait-image,
.member-card.is-active .member-portrait-image {
  transform: scale(1.045);
  filter: saturate(0.95) contrast(1.08) brightness(0.86);
}

.member-card:hover .member-portrait-hover,
.member-card:focus-visible .member-portrait-hover,
.member-card:focus-within .member-portrait-hover,
.member-card.is-active .member-portrait-hover {
  opacity: 1;
}

.member-card-overlay {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(8, 8, 9, 0.2) 0%, rgba(8, 8, 9, 0.08) 40%, rgba(8, 8, 9, 0.72) 100%),
    radial-gradient(circle at 18% 12%, rgba(184, 149, 95, 0.14), transparent 32%);
  opacity: 0;
  transition: opacity 420ms ease;
}

.member-card-number,
.member-card-copy,
.member-card-actions {
  position: absolute;
  z-index: 2;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 360ms ease, transform 420ms ease;
}

.member-card-number {
  top: 18px;
  left: 18px;
  color: var(--text);
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.92),
    0 0 14px rgba(0, 0, 0, 0.82);
}

.member-card-copy {
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: grid;
  gap: 7px;
}

.member-card-name {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(1.18rem, 1.6vw, 1.42rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.34;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.72);
}

.member-card-tagline {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-card-actions {
  top: 16px;
  right: 16px;
  display: block;
  pointer-events: none;
}

.member-icon-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(184, 149, 95, 0.58);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.14), transparent 34%),
    rgba(8, 8, 9, 0.72);
  color: var(--text);
  text-decoration: none;
  backdrop-filter: blur(12px);
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.42),
    0 0 0 4px rgba(184, 149, 95, 0.08);
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.member-icon-button:hover,
.member-icon-button:focus-visible {
  border-color: rgba(184, 149, 95, 0.72);
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.18), transparent 34%),
    rgba(184, 149, 95, 0.18);
  color: var(--gallery-gold);
  outline: none;
  transform: translateY(-1px);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.5),
    0 0 0 5px rgba(184, 149, 95, 0.12);
}

.member-icon-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.member-card:hover .member-card-overlay,
.member-card:hover .member-card-number,
.member-card:hover .member-card-copy,
.member-card:hover .member-card-actions,
.member-card:focus-visible .member-card-overlay,
.member-card:focus-visible .member-card-number,
.member-card:focus-visible .member-card-copy,
.member-card:focus-visible .member-card-actions,
.member-card:focus-within .member-card-overlay,
.member-card:focus-within .member-card-number,
.member-card:focus-within .member-card-copy,
.member-card:focus-within .member-card-actions,
.member-card.is-active .member-card-overlay,
.member-card.is-active .member-card-number,
.member-card.is-active .member-card-copy,
.member-card.is-active .member-card-actions {
  opacity: 1;
  transform: translateY(0);
}

.member-card:hover .member-card-actions,
.member-card:focus-visible .member-card-actions,
.member-card:focus-within .member-card-actions,
.member-card.is-active .member-card-actions {
  pointer-events: auto;
}

.list-message {
  flex: 0 0 min(100%, 520px);
  margin: 0;
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--muted);
}

.list-message.is-error {
  border-color: rgba(201, 77, 79, 0.7);
  color: var(--text);
}

.cta-section {
  padding-bottom: 110px;
}

.cta-inner {
  background:
    linear-gradient(100deg, rgba(143, 31, 34, 0.22), transparent 58%),
    var(--panel);
  border: 1px solid var(--line);
  padding: clamp(28px, 6vw, 54px);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 34px 0 44px;
  color: var(--muted-dark);
  border-top: 1px solid var(--line);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-social a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(241, 234, 223, 0.18);
  background: rgba(255, 255, 255, 0.035);
  opacity: 0.78;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.footer-social a:hover,
.footer-social a:focus-visible {
  border-color: rgba(241, 234, 223, 0.42);
  background: rgba(255, 255, 255, 0.07);
  opacity: 1;
  outline: none;
  transform: translateY(-1px);
}

.footer-social img {
  width: 19px;
  height: 19px;
  object-fit: contain;
}

.member-page {
  padding: 42px 0 96px;
}

.back-link {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--muted);
}

.analysis-shell {
  background: rgba(24, 23, 23, 0.72);
  border: 1px solid var(--line);
}

.analysis-header {
  display: grid;
  grid-template-columns: minmax(260px, 0.48fr) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: clamp(22px, 5vw, 46px);
  border-bottom: 1px solid var(--line);
}

.analysis-image {
  aspect-ratio: 1 / 1;
  box-shadow: none;
}

.analysis-title h1 {
  font-size: clamp(2.1rem, 5vw, 4.5rem);
}

.analysis-content {
  max-width: 820px;
  padding: clamp(24px, 5vw, 54px);
}

.analysis-content h2 {
  margin-top: 0;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
}

.analysis-content p {
  margin: 0 0 18px;
}

.analysis-actions {
  padding: 0 clamp(24px, 5vw, 54px) clamp(24px, 5vw, 54px);
}

.not-found {
  display: grid;
  align-content: center;
  min-height: calc(100svh - 86px);
  padding: 48px 0;
}

@media (max-width: 900px) {
  .analysis-header {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 680px;
    padding: 58px 24px 72px;
  }

  .hero-content {
    width: min(100%, 620px);
  }

  .hero-kicker {
    margin-bottom: 24px;
  }

  .members-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading {
    display: block;
  }
}

@media (max-width: 640px) {
  .site-header {
    width: min(100% - 24px, var(--max));
    align-items: flex-start;
    padding: 14px 0;
  }

  .brand {
    font-size: 0.94rem;
  }

  .site-nav {
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    font-size: 0.84rem;
  }

  .section-band,
  .content-section,
  .members-section,
  .cta-section,
  .member-page,
  .not-found,
  .site-footer {
    width: min(100% - 24px, var(--max));
  }

  .site-footer {
    align-items: flex-start;
  }

  .not-found h1 {
    font-size: clamp(2.25rem, 14vw, 3.25rem);
  }

  .button {
    width: 100%;
  }

  .hero {
    min-height: 620px;
    padding: 46px 18px 58px;
  }

  .hero-content {
    transform: translateY(-2vh);
  }

  .hero-kicker {
    gap: 10px;
    margin-bottom: 18px;
    letter-spacing: 0.2em;
  }

  .hero-kicker::before {
    width: 28px;
  }

  .hero-sub {
    margin-bottom: 26px;
  }

  .hero h1 {
    font-size: clamp(2.15rem, 10vw, 3.4rem);
  }

  .members-grid {
    grid-template-columns: 1fr;
  }

  .member-card {
    max-width: 420px;
    width: 100%;
  }

  .content-section,
  .members-section,
  .cta-section {
    padding: 62px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .member-card,
  .member-portrait-image,
  .member-card-overlay,
  .member-card-number,
  .member-card-copy,
  .member-card-actions,
  .member-icon-button {
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}
