@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=Jost:wght@300;400;500;600&family=Shippori+Mincho:wght@400;500;600&family=Zen+Kaku+Gothic+New:wght@400;500;700&display=swap");

:root {
  /* Approved dark color palette */
  --bg: #050a0f;
  --bg-mid: #0c1520;
  --text: #ded8cc;
  --muted: rgba(222, 216, 204, 0.5);
  --rule: rgba(222, 216, 204, 0.1);
  --accent: #b8d4db;

  /* Legacy layout mapping */
  --color-bg: var(--bg);
  --color-surface: var(--bg-mid);
  --color-surface-strong: #111d2b;
  --color-text: var(--text);
  --color-text-muted: var(--muted);
  --color-rule: var(--rule);
  --color-accent: var(--accent);
  --color-image-bg: #0a1017;
  --color-overlay: rgba(5, 10, 15, 0.6);
  --shadow-soft: 0 20px 40px rgba(0, 0, 0, 0.5);

  /* Font variables */
  --font-en-display: "Cormorant Garamond", serif;
  --font-ja-display: "Shippori Mincho", serif;
  --font-sans: "Jost", "Zen Kaku Gothic New", sans-serif;
  --font-serif: "Shippori Mincho", "Cormorant Garamond", serif;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
  background-color: var(--bg);
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 300; /* Body: Jost, font-weight 300 */
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg);
  background-image: linear-gradient(180deg, var(--bg) 0%, var(--bg-mid) 100%);
}

:lang(ja) body {
  font-family: "Zen Kaku Gothic New", "Jost", sans-serif;
}

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

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

button {
  font: inherit;
}

iframe {
  border: 0;
}

/* Header & site navigation styling */
.site-header,
.site-nav a,
.lang-switcher button {
  font-family: "Cormorant Garamond", "Shippori Mincho", serif !important;
}

.site-header {
  position: fixed; /* Transparent initially overlaid on top of content */
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1.5rem;
  padding: 1.6rem 2.5rem;
  background-color: transparent; /* Fully transparent initially */
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s ease, border-color 0.4s ease, padding 0.4s ease, backdrop-filter 0.4s ease;
}

/* Scrolled style */
.site-header.scrolled {
  background-color: rgba(12, 21, 32, 0.85); /* Solid/translucent bg-mid */
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
  padding: 1rem 2.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
}

.brand img {
  width: 148px;
  height: auto;
}

.site-nav,
.site-tools,
.footer-links {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.site-nav {
  flex-wrap: wrap;
  justify-content: center;
  justify-self: center;
}

.site-nav a,
.footer-links a {
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-links a {
  color: var(--color-text-muted);
  transition: color 0.3s ease;
}

.section-link,
.card-link,
.button-link {
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: none;
  font-weight: 500;
}

.site-nav a:hover,
.footer-links a:hover,
.section-link:hover,
.card-link:hover,
.button-link:hover,
.link-card:hover strong {
  color: var(--accent);
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-tools {
  justify-self: end;
}

.lang-switcher button {
  border: 0;
  background: transparent;
  padding: 0.2rem 0.4rem;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.3s ease;
}

.lang-switcher button.active {
  color: var(--text);
  font-weight: 500;
}

.lang-switcher button:disabled {
  opacity: 0.25;
  cursor: not-allowed;
  pointer-events: none;
}

.lang-switcher .sep {
  color: var(--rule);
}

main {
  padding-bottom: 5rem;
}

/* Page load animations */
@keyframes fadeInSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-brand .intro-kicker,
.hero-brand h1,
.hero-brand .hero-subtitle {
  opacity: 0;
  animation: fadeInSlideUp 1.2s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
}

.hero-brand .intro-kicker {
  animation-delay: 0.2s;
}

.hero-brand h1 {
  animation-delay: 0.4s;
}

.hero-brand .hero-subtitle {
  animation-delay: 0.6s;
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1.2s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Hero Section */
.hero {
  margin-bottom: 5rem;
}

.hero-media {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 520px;
  overflow: hidden;
  background: var(--bg);
}

.page-home .hero-media,
.page-project .hero-media {
  aspect-ratio: auto;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 10, 15, 0.15) 0%, rgba(5, 10, 15, 0.45) 50%, rgba(5, 10, 15, 0.85) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 0;
  transition: opacity 1.6s ease-in-out;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

/* Optional subtle Ken Burns scale animation if prefers-reduced-motion is not enabled */
@media (prefers-reduced-motion: no-preference) {
  .hero-slide {
    transform: scale(1.06);
    transition: opacity 1.6s ease-in-out, transform 6.5s ease-out;
  }
  .hero-slide.is-active {
    transform: scale(1);
  }
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 2rem 4rem;
  align-items: flex-end;
  padding: 6rem 2.5rem 4.5rem; /* Increased top padding due to fixed transparent header */
  max-width: 1320px;
  margin: 0 auto;
  pointer-events: none;
}

.hero-brand,
.hero-description {
  pointer-events: auto;
  color: #ffffff;
}

.hero-brand {
  margin-bottom: 0.5rem;
}

.hero-brand .intro-kicker {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.8rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-brand h1 {
  color: #ffffff;
  font-size: clamp(2.8rem, 6.2vw, 5.5rem);
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  margin: 0 0 0.8rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.hero-brand .hero-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 1.8vw, 1.4rem);
  margin: 0;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
}

.hero-description {
  margin-bottom: 0.5rem;
  max-width: 44rem;
}

.hero-description p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.02rem;
  line-height: 1.8;
  margin: 0 0 1.2rem;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
}

.hero-description p:last-of-type {
  margin-bottom: 0;
}

.hero-description .button-row {
  margin-top: 1.6rem;
}

.hero-content .button-link {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-content .button-link:hover {
  color: var(--color-text);
  border-color: #ffffff;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.hero-content .button-link--ghost {
  color: rgba(255, 255, 255, 0.85);
  border-color: transparent;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.hero-content .button-link--ghost:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.hero-caption {
  position: absolute;
  right: 2.5rem;
  top: 2.5rem;
  bottom: auto;
  left: auto;
  z-index: 2;
  color: rgba(255, 255, 255, 0.65);
  text-align: right;
  pointer-events: none;
}

.hero-caption .eyebrow {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.3rem;
}

.hero-caption p:last-child {
  margin-bottom: 0;
}

.section-block,
.site-footer {
  padding-left: 2.5rem;
  padding-right: 2.5rem;
}

.intro-kicker,
.eyebrow,
.card-label,
.detail-item span {
  margin: 0 0 0.75rem;
  font-family: "Jost", sans-serif;
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.hero h1,
.section-head h2,
.subsection-head h3 {
  margin: 0;
  font-family: var(--font-en-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

:lang(ja) .hero h1,
:lang(ja) .section-head h2,
:lang(ja) .subsection-head h3 {
  font-family: var(--font-ja-display);
}

.hero h1 {
  font-size: clamp(3.1rem, 7vw, 6rem);
}

.section-head h2 {
  font-size: clamp(2.3rem, 4vw, 3.4rem);
}

.subsection-head h3,
.feature-card h3,
.project-overview h3,
.preview-card strong,
.work-card strong,
.detail-panel h3,
.link-card strong {
  font-family: var(--font-serif);
  font-weight: 400;
}

:lang(ja) .subsection-head h3,
:lang(ja) .feature-card h3,
:lang(ja) .project-overview h3,
:lang(ja) .preview-card strong,
:lang(ja) .work-card strong,
:lang(ja) .detail-panel h3,
:lang(ja) .link-card strong {
  font-family: var(--font-ja-display);
}

.hero-copy,
.author-copy {
  max-width: 48rem;
}

.hero-copy p,
.feature-card p,
.project-overview p,
.section-copy,
.author-copy p,
.link-card p {
  margin: 0 0 1rem;
  color: var(--color-text-muted);
}

.hero-copy p:last-child,
.section-copy:last-child,
.feature-card p:last-of-type,
.author-copy p:last-child,
.link-card p:last-child {
  margin-bottom: 0;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.45rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(17, 17, 17, 0.22);
  color: var(--color-text-muted);
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.button-link--ghost {
  border-color: transparent;
  color: var(--color-text-muted);
  padding-left: 0;
  padding-right: 0;
}

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

.fact-tiles-container {
  padding: 3.5rem 2.5rem 0;
  max-width: 1320px;
  margin: 0 auto;
}

.fact-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 0;
}

.fact-tile,
.detail-panel,
.link-card,
.project-overview-copy {
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid var(--color-rule);
  box-shadow: none;
  backdrop-filter: none;
}

.fact-tile {
  padding: 1.4rem 1.6rem;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  border-radius: 4px;
}

.fact-tile span {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.fact-tile strong {
  display: block;
  font-size: 0.98rem;
  line-height: 1.45;
}

.section-block {
  margin-bottom: 5rem;
}

.section-block--muted {
  padding-top: 2.1rem;
  padding-bottom: 2.3rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.18));
  border-top: 1px solid var(--color-rule);
  border-bottom: 1px solid var(--color-rule);
}

.section-shell {
  max-width: 1320px;
  margin: 0 auto;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.35rem;
}

.section-link,
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--color-text-muted);
}

.card-link {
  align-self: flex-start;
}

.section-copy {
  max-width: 54rem;
  margin-bottom: 1.6rem;
}

.portfolio-gallery {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-top: 1.5rem;
}

.gallery-featured {
  position: relative;
  overflow: hidden;
  background: var(--color-image-bg);
  box-shadow: var(--shadow-soft);
}

.gallery-featured a {
  display: block;
}

.gallery-featured img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.gallery-featured:hover img {
  transform: scale(1.02);
}

.gallery-featured-caption {
  padding-top: 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--color-rule);
  padding-bottom: 0.6rem;
}

.gallery-featured-caption strong {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.25rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.gallery-card {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.gallery-card a {
  display: block;
  overflow: hidden;
  background: var(--color-image-bg);
  box-shadow: var(--shadow-soft);
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.gallery-card:hover img {
  transform: scale(1.02);
}

.gallery-card figcaption {
  padding-top: 0.75rem;
}

.gallery-card strong {
  display: block;
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.08rem;
  line-height: 1.4;
}

.gallery-cta {
  display: flex;
  justify-content: center;
  margin-top: 0.5rem;
}

.gallery-cta .button-link {
  min-width: 18rem;
}

.work-card a,
.feature-card > a,
.embed-shell {
  display: block;
  overflow: hidden;
  background: var(--color-image-bg);
  box-shadow: var(--shadow-soft);
}

.work-card img,
.feature-card img {
  transition: transform 0.55s ease;
}

.work-card a:hover img,
.feature-card > a:hover img {
  transform: scale(1.02);
}

.preview-card figcaption,
.work-card figcaption {
  padding-top: 0.75rem;
}

.preview-card strong,
.work-card strong {
  display: block;
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.4;
}

.work-card--primary strong {
  font-size: 1.28rem;
}

.work-card--primary .work-meta {
  margin-top: 0.28rem;
}

.selected-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.work-card {
  margin: 0;
}

.work-card a {
  display: block;
  overflow: hidden;
  background: var(--color-image-bg);
  box-shadow: var(--shadow-soft);
}

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.work-card--primary {
  grid-column: 1 / -1;
}

.work-card--primary a {
  aspect-ratio: 3 / 2;
}

.work-card--secondary {
  grid-column: span 6;
}

.work-card--secondary a {
  aspect-ratio: 3 / 2;
}

.work-card--tertiary {
  grid-column: span 4;
}

.work-card--tertiary a {
  aspect-ratio: 4 / 3;
}

.work-meta {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.cards-grid {
  display: grid;
  gap: 1.4rem;
  align-items: start;
}

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

.cards-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* 水平カードレイアウト */
.cards-grid--horizontal {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.2rem;
}

.feature-card--horizontal {
  display: flex;
  flex-direction: row;
  gap: 2.5rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--color-rule);
  align-items: center;
  align-self: stretch;
}

.feature-card--horizontal > a,
.feature-card--horizontal.feature-card--poster > a,
.feature-card--horizontal.feature-card--book > a {
  position: relative;
  display: block;
  flex: 0 0 42%;
  max-width: 460px;
  aspect-ratio: 4 / 5.2;
  background: var(--color-image-bg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.feature-card--horizontal img,
.feature-card--horizontal.feature-card--poster img,
.feature-card--horizontal.feature-card--book img {
  position: absolute;
  top: 1.5rem;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  width: auto;
  height: auto;
  margin: auto;
  aspect-ratio: auto !important;
  object-fit: contain;
  background: transparent;
  transition: transform 0.55s ease;
}

.feature-card--horizontal > a:hover img,
.feature-card--horizontal.feature-card--poster > a:hover img,
.feature-card--horizontal.feature-card--book > a:hover img {
  transform: scale(1.02);
}

.feature-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.feature-card-body h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.4rem;
  line-height: 1.4;
}

.feature-card-body p {
  margin: 0 0 0.8rem;
  color: var(--color-text-muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.feature-card-body p:last-of-type {
  margin-bottom: 0;
}

.subsection-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.subsection-head--spaced {
  margin-top: 2rem;
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--color-rule);
  align-self: start;
}

.feature-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.feature-card--poster > a,
.feature-card--book > a {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--color-image-bg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.feature-card--poster img,
.feature-card--book img {
  position: absolute;
  top: 1.2rem;
  bottom: 1.2rem;
  left: 1.2rem;
  right: 1.2rem;
  width: auto;
  height: auto;
  margin: auto;
  aspect-ratio: auto !important;
  object-fit: contain;
  background: transparent;
}

.cards-grid--two .feature-card--poster > a,
.cards-grid--two .feature-card--book > a {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5.4;
  background: var(--color-image-bg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.cards-grid--two .feature-card--poster img,
.cards-grid--two .feature-card--book img {
  position: absolute;
  top: 1rem;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  width: auto;
  height: auto;
  margin: auto;
  aspect-ratio: auto !important;
  object-fit: contain;
  background: transparent;
}

.feature-card--embed {
  gap: 0.65rem;
}

.feature-card--embed p:not(.card-label) {
  font-size: 0.93rem;
}

.feature-card--media > a {
  aspect-ratio: 16 / 9;
}

.feature-card--media img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}




.embed-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #dcd7cd;
  border: 1px solid var(--color-rule);
  box-shadow: none;
}

.embed-shell--audio {
  background: #ede8df;
}

.embed-shell iframe {
  position: absolute;
}

.embed-shell--video iframe {
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  transform: none;
}

.embed-shell--audio iframe {
  top: 50%;
  left: 50%;
  width: 100%;
  height: 120px;
  transform: translate(-50%, -50%);
}

.game-mark {
  width: min(100%, 8.5rem);
  height: auto;
  margin-top: 0.1rem;
}

.author-grid {
  display: grid;
  grid-template-columns: minmax(16rem, 0.45fr) minmax(0, 1fr);
  gap: 1.8rem 2.4rem;
  align-items: start;
}

.author-portrait {
  margin: 0;
}

.author-portrait img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}

.detail-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.8rem;
  align-items: start;
}

.detail-panel {
  padding: 1.3rem 1.25rem;
}

.detail-panel h3 {
  margin-bottom: 1rem;
}

.timeline-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.timeline-list li {
  display: grid;
  grid-template-columns: 3.7rem minmax(0, 1fr);
  gap: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--color-rule);
}

.timeline-list li:first-child {
  padding-top: 0;
  border-top: 0;
}

.timeline-list span {
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.timeline-list strong {
  display: block;
  font-size: 0.98rem;
  line-height: 1.5;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.links-grid--five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.link-card {
  display: grid;
  gap: 0.65rem;
  padding: 1.2rem 1.15rem;
}

.link-card strong {
  font-size: 1.12rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
  border-top: 1px solid var(--color-rule);
}

.site-footer p {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

@media (max-width: 1120px) {
  .site-header {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .hero-content,
  .fact-tiles-container,
  .section-block,
  .site-footer {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .hero-caption {
    left: 1.5rem;
    right: 1.5rem;
  }

  .hero-content {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 2rem;
  }

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

  .fact-tiles,
  .detail-panels,
  .links-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .links-grid--five {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .selected-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1.2rem;
  }

  .work-card--primary {
    grid-column: 1 / -1;
  }

  .work-card--secondary {
    grid-column: span 3;
  }

  .work-card--tertiary {
    grid-column: span 2;
  }

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

  .cards-grid--three .feature-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .site-header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.8rem 1.5rem;
    padding: 1rem 1.5rem;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .site-tools {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    width: auto;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 0.2rem;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .hero-media {
    height: auto;
    min-height: auto;
    aspect-ratio: 1 / 1.1;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: flex-end;
    padding: 3rem 1.5rem;
  }

  .hero-brand h1 {
    font-size: 2.8rem;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .feature-card--horizontal {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
  }

  .feature-card--horizontal > a {
    flex: none;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 4 / 5.2;
  }
}

@media (max-width: 680px) {
  html {
    font-size: 14px;
  }

  .site-header {
    padding-left: 1rem;
    padding-right: 1rem;
    gap: 1rem;
  }

  .site-nav,
  .site-tools,
  .footer-links {
    gap: 0.7rem 1rem;
    flex-wrap: wrap;
  }

  .site-nav {
    flex-wrap: nowrap;
  }

  .site-nav a,
  .footer-links a {
    font-size: 0.76rem;
  }

  .section-link,
  .card-link,
  .button-link {
    font-size: 0.74rem;
  }

  .hero-content,
  .fact-tiles-container,
  .section-block,
  .site-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-media {
    aspect-ratio: 1 / 1.25;
  }

  .hero-content {
    padding: 2.2rem 1rem;
  }

  .hero-brand h1 {
    font-size: 2.2rem;
  }

  .hero-caption {
    left: 1rem;
    right: 1rem;
    top: 1.5rem;
    bottom: auto;
    text-align: right;
  }

  .fact-tiles-container {
    padding-top: 2rem;
  }

  .fact-tiles,
  .gallery-grid,
  .cards-grid--two,
  .cards-grid--three,
  .detail-panels,
  .links-grid {
    grid-template-columns: 1fr;
  }

  .fact-tiles {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    gap: 1rem;
  }

  .gallery-cta .button-link {
    min-width: 100%;
  }

  .links-grid--five {
    grid-template-columns: 1fr;
  }

  .selected-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .work-card--primary,
  .work-card--secondary,
  .work-card--tertiary {
    grid-column: auto;
  }

  .work-card img,
  .gallery-card img,
  .feature-card img {
    aspect-ratio: 3 / 2;
  }

  .work-card--primary a,
  .work-card--secondary a,
  .work-card--tertiary a {
    aspect-ratio: 3 / 2;
  }



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

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-delay: 0s !important;
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
    scroll-behavior: auto !important;
  }
  
  .hero-slide {
    transform: none !important;
    transition: opacity 0.1s ease-in-out !important;
  }
  
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .hero-brand .intro-kicker,
  .hero-brand h1,
  .hero-brand .hero-subtitle {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

/* ==========================================================================
   Top Page Styles (Ashes and Snow Theme - Dark Theme Adaptation)
   ========================================================================== */
body.page-home {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-serif);
  margin: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}



body.page-home .hero--home {
  position: relative;
  width: 100%;
  height: 100svh;
  margin-bottom: 0;
  overflow: hidden;
}

body.page-home .hero--home .hero-media {
  width: 100%;
  height: 100%;
  min-height: 100%;
  background: #020508;
  position: relative;
}

body.page-home .hero--home .hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5, 10, 15, 0.45) 0%,
    rgba(5, 10, 15, 0.25) 60%,
    rgba(5, 10, 15, 0.85) 100%
  );
  z-index: 1;
}

body.page-home .hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 2.5s ease-in-out, transform 10s ease-out;
  filter: sepia(35%) contrast(90%) brightness(70%);
}

body.page-home .hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

body.page-home .hero--home .hero-content {
  position: absolute;
  left: 50%;
  top: 50%;
  bottom: auto;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0;
  z-index: 2;
  pointer-events: none;
}

body.page-home .hero--home .hero-brand {
  margin: 0;
  pointer-events: auto;
}

body.page-home .hero--home .hero-brand .hero-message {
  font-family: var(--font-serif);
  font-size: clamp(0.95rem, 1.8vw, 1.25rem);
  font-weight: 300;
  line-height: 2.1;
  letter-spacing: 0.08em;
  color: var(--text);
  max-width: 680px;
  margin: 0 auto;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.75);
}

:lang(ja) body.page-home .hero--home .hero-brand .hero-message {
  font-family: var(--font-ja-display);
  line-height: 2.3;
}

body.page-home .hero--home .hero-brand .hero-statement {
  font-family: var(--font-en-display);
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  font-weight: 500;
  letter-spacing: 0.25em;
  color: var(--accent);
  margin: 0 auto 2.5rem auto;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.75);
}

.scroll-indicator {
  position: absolute;
  bottom: 4%;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 50px;
  background: rgba(222, 216, 204, 0.25);
  z-index: 2;
  overflow: hidden;
}

.scroll-indicator::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--text);
  animation: scroll-line 2.5s cubic-bezier(0.15, 0.85, 0.35, 1) infinite;
}

@keyframes scroll-line {
  0% {
    transform: translateY(-100%);
  }
  70%, 100% {
    transform: translateY(100%);
  }
}

.works-section {
  padding: 10rem 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

.works-section .section-title,
.biography-section .section-title {
  font-family: var(--font-en-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 300;
  letter-spacing: 0.18em;
  text-align: center;
  margin-bottom: 7rem;
  text-transform: uppercase;
  color: var(--accent);
  position: relative;
}

.works-section .section-title::after,
.biography-section .section-title::after {
  content: "";
  position: absolute;
  bottom: -1.8rem;
  left: 50%;
  transform: translateX(-50%);
  width: 35px;
  height: 1px;
  background: var(--rule);
}

.works-list {
  display: flex;
  flex-direction: column;
}

.work-item {
  display: grid;
  grid-template-columns: 1.5fr 3fr 150px;
  align-items: center;
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  transition: all 0.4s ease;
  color: var(--text);
}

.work-item:first-child {
  border-top: 1px solid var(--rule);
}

.work-item:hover {
  background-color: rgba(184, 212, 219, 0.03);
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.work-num {
  font-family: var(--font-en-display);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.work-cats {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.work-cat-en {
  font-family: var(--font-en-display);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--text);
}

.work-cat-ja {
  font-family: var(--font-ja-display);
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.work-desc {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--muted);
  margin: 0;
  padding-right: 2.5rem;
}

.work-action {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-align: right;
  transition: transform 0.3s ease, color 0.3s ease;
}

.work-item:hover .work-action {
  transform: translateX(6px);
  color: var(--accent);
}

@media (max-width: 900px) {
  .work-item {
    grid-template-columns: 1.3fr 2.2fr 120px;
    padding: 3rem 0;
  }
}

@media (max-width: 768px) {
  .work-item {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    padding: 2.5rem 0;
  }
  .work-item:hover {
    padding-left: 0.8rem;
    padding-right: 0.8rem;
  }
  .work-num {
    font-size: 1.3rem;
  }
  .work-desc {
    padding-right: 0;
  }
  .work-action {
    text-align: left;
    margin-top: 0.3rem;
  }
}

.biography-section {
  padding: 8rem 3rem 10rem;
  background-color: var(--bg-mid);
}

.biography-section .container {
  max-width: 1000px;
  margin: 0 auto;
}

.biography-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 6rem;
  align-items: start;
}

.biography-text p {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 2.1;
  color: var(--muted);
  margin: 0 0 2.2rem 0;
  text-align: justify;
}

.biography-text p:last-child {
  margin-bottom: 0;
}

.biography-timeline {
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
  border-left: 1px solid var(--rule);
  padding-left: 2.5rem;
  margin-top: 0.5rem;
}

.timeline-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -2.85rem;
  top: 0.55rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.timeline-year {
  font-family: var(--font-en-display);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--accent);
  line-height: 1;
}

.timeline-event {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .biography-grid {
    gap: 4rem;
  }
}

@media (max-width: 768px) {
  .biography-grid {
    grid-template-columns: 1fr;
    gap: 5rem;
  }
  .biography-timeline {
    margin-top: 2rem;
  }
}

body.page-home .site-footer {
  background-color: var(--bg);
  border-top: 1px solid var(--rule);
  padding: 5rem 3rem;
}

body.page-home .footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

body.page-home .site-footer .copyright {
  font-family: var(--font-en-display);
  font-size: 1rem;
  color: var(--muted);
  margin: 0;
  letter-spacing: 0.1em;
}

body.page-home .site-footer .social-links {
  display: flex;
  gap: 2.5rem;
}

body.page-home .site-footer .social-links a {
  font-family: var(--font-en-display);
  font-size: 0.98rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  transition: color 0.3s ease;
  text-decoration: none;
}

body.page-home .site-footer .social-links a:hover {
  color: var(--accent);
}

@media (max-width: 768px) {
  body.page-home .footer-container {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  body.page-home .site-footer .social-links {
    gap: 1.8rem;
  }
}

/* ==========================================================================
   FILM Page Specific Styles
   ========================================================================== */
.film-hero {
  padding-top: 5rem;
  padding-bottom: 2rem;
  text-align: center;
}

.section-head-film {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 3rem;
}

.film-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 500;
  letter-spacing: 0.05em;
  margin: 0 0 0.5rem;
  color: var(--color-text);
  line-height: 1.1;
}

.film-subtitle {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
  margin: 0;
}

.film-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem 2rem;
  margin-bottom: 4rem;
}

@media (max-width: 960px) {
  .film-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .film-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.film-card {
  display: flex;
  flex-direction: column;
  background: transparent;
}

.film-thumb-link {
  display: block;
  width: 100%;
  text-decoration: none;
}

.film-thumb-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-image-bg);
  box-shadow: var(--shadow-soft);
  border-radius: 4px;
}

.film-thumb-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.play-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(8, 13, 17, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.4s ease;
  pointer-events: none;
}

.play-icon {
  color: #ffffff;
  font-size: 2.5rem;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  padding-left: 0.3rem;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.film-card:hover .film-thumb-wrapper img {
  transform: scale(1.04);
}

.film-card:hover .play-overlay {
  background-color: rgba(8, 13, 17, 0.4);
}

.film-card:hover .play-icon {
  opacity: 1;
  transform: scale(1);
}

.film-details {
  padding-top: 1.2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.film-type {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 600;
}

.film-card-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.4;
  margin: 0 0 0.7rem;
  color: var(--color-text);
}

.film-description {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin: 0;
  flex-grow: 1;
}

.film-link {
  align-self: flex-start;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  font-weight: 500;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-rule);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.film-link:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

/* ==========================================================================
   Echoes of BLUE Page Specific Styles
   ========================================================================== */
.echoes-opening {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  text-align: center;
  background-image: transparent; /* 背景グラデーションを透明にする */
  background-color: transparent;
  padding: 8rem 2.5rem 6rem;
  box-sizing: border-box;
  overflow: hidden;
}

.opening-content {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  animation: fadeInSlideUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.echoes-opening .opening-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-top: 0;
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

.echoes-opening .opening-kicker {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3.2vw, 2.2rem);
  font-weight: 400;
  letter-spacing: 0.28em;
  color: var(--color-text);
  margin-top: 0;
  margin-bottom: 1.8rem;
  line-height: 1.6;
  text-indent: 0.28em;
}

:lang(ja) .echoes-opening .opening-kicker {
  font-family: var(--font-ja-display);
}

.echoes-opening .opening-title {
  font-family: var(--font-en-display);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.1;
  color: var(--color-text);
  margin-top: 0;
  margin-bottom: 1rem;
}

:lang(ja) .echoes-opening .opening-title {
  font-family: var(--font-ja-display);
  font-size: clamp(1.8rem, 4.5vw, 3.4rem);
  letter-spacing: 0.1em;
}

.echoes-opening .opening-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(0.9rem, 1.8vw, 1.25rem);
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--color-text);
  margin-top: 0;
  margin-bottom: 4rem;
  line-height: 1.8;
}

:lang(ja) .echoes-opening .opening-subtitle {
  font-family: var(--font-ja-display);
  letter-spacing: 0.18em;
}

.opening-text-block {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  border-top: 1px solid var(--color-rule);
  padding-top: 3.5rem;
}

.concept-block,
.story-block {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.block-label {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: var(--color-accent);
  margin-top: 0;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

.block-text {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--color-text);
  margin: 0;
  max-width: 680px;
  text-align: justify;
  font-weight: 300;
}

:lang(ja) .block-text {
  font-family: "Zen Kaku Gothic New", sans-serif;
  letter-spacing: 0.03em;
}

/* 縦スクロールページ（FILM, CREATIVE）用の縦棒スクロールヒント */
.page-film .opening-scroll-hint,
.page-echoes .opening-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  z-index: 2;
}

.page-film .opening-scroll-hint::before,
.page-echoes .opening-scroll-hint::before {
  content: '';
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(222, 216, 204, 0.1) 0%, rgba(222, 216, 204, 0.8) 100%);
  animation: scroll-hint-vertical-pulse 2s ease-in-out infinite;
}

/* 横線用要素 (.hint-arrow, .hint-text) がHTMLに残っていても非表示にする */
.page-film .opening-scroll-hint .hint-arrow,
.page-echoes .opening-scroll-hint .hint-arrow,
.page-film .opening-scroll-hint .hint-text,
.page-echoes .opening-scroll-hint .hint-text {
  display: none !important;
}

@keyframes scroll-hint-vertical-pulse {
  0% {
    transform: translateY(-8px);
    opacity: 0.1;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateY(8px);
    opacity: 0.1;
  }
}

/* Echoes Showcase & Grid Layouts */
.echoes-showcase {
  display: flex;
  flex-direction: column;
  gap: 6rem;
  margin-top: 3rem;
  margin-bottom: 7rem;
}

.showcase-item {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 4rem;
  align-items: center;
}

/* 偶数番目のアイテムは画像とテキストを反転（PCのみ） */
.showcase-item:nth-child(even) .card-img-wrapper,
.showcase-item:nth-child(even) .card-image-grid,
.showcase-item:nth-child(even) .card-image-grid-3 {
  grid-column: 7 / 13;
}
.showcase-item:nth-child(even) .card-info {
  grid-column: 1 / 6;
  grid-row: 1;
}

.showcase-item:nth-child(odd) .card-img-wrapper,
.showcase-item:nth-child(odd) .card-image-grid,
.showcase-item:nth-child(odd) .card-image-grid-3 {
  grid-column: 1 / 7;
}
.showcase-item:nth-child(odd) .card-info {
  grid-column: 8 / 13;
}

/* 各画像のアスペクト比指定 */
.item--animation .card-img-wrapper,
.item--game .card-img-wrapper,
.item--animation .grid-item,
.item--game .grid-item {
  aspect-ratio: 16 / 9;
}
.item--soundtrack .card-img-wrapper {
  aspect-ratio: 1 / 1;
  max-width: 440px;
  justify-self: center;
}

/* 音楽（奇数番目）が1:1のため少し中央に寄せるための調整 */
.item--soundtrack.showcase-item:nth-child(odd) .card-img-wrapper {
  grid-column: 2 / 7;
}
.item--soundtrack.showcase-item:nth-child(odd) .card-info {
  grid-column: 8 / 13;
}



/* カード共通 */
.echoes-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.card-img-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: var(--color-image-bg);
  box-shadow: var(--shadow-soft);
  border-radius: 4px;
  margin-bottom: 1.25rem;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-img-wrapper a {
  display: block;
  width: 100%;
  height: 100%;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 画像表示グリッド (2x2) */
.card-image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.grid-item {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: var(--color-image-bg);
  box-shadow: var(--shadow-soft);
  border-radius: 4px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.grid-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
}

.grid-item:hover img {
  transform: scale(1.03);
}

.showcase-item:hover .card-img-wrapper,
.echoes-card:hover .card-img-wrapper {
  transform: translateY(-5px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
}

.showcase-item:hover img,
.echoes-card:hover img {
  transform: scale(1.03);
}

.card-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-info .card-label {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.card-info .card-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--color-text);
  margin-top: 0;
  margin-bottom: 0.8rem;
}

.card-info .card-desc {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--color-text-muted);
  margin-top: 0;
  margin-bottom: 1.25rem;
  flex: 1;
}

.card-info .card-link {
  align-self: flex-start;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid var(--color-rule);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.card-info .card-link:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

/* 小説3冊並びグリッド (1x3) */
.card-image-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  max-width: 100%;
  width: 100%;
  justify-self: center;
}

.item--novels .grid-item {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: var(--color-image-bg);
  box-shadow: var(--shadow-soft);
  border-radius: 4px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.item--novels .grid-item a {
  display: block;
  width: 100%;
  height: 100%;
}

.item--novels .grid-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.item--novels .grid-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

.item--novels .grid-item:hover img {
  transform: scale(1.03);
}

@media (max-width: 1024px) {
  .echoes-opening {
    padding: 6rem 2rem 4rem;
  }

  .echoes-opening .opening-kicker {
    margin-bottom: 1.4rem;
  }

  .echoes-opening .opening-subtitle {
    margin-bottom: 3rem;
  }

  .opening-text-block {
    gap: 2.5rem;
    padding-top: 2.5rem;
  }

  .echoes-showcase {
    gap: 4.5rem;
  }

  .showcase-item {
    gap: 2.5rem;
  }


}

@media (max-width: 840px) {
  .showcase-item {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .showcase-item:nth-child(even) .card-img-wrapper,
  .showcase-item:nth-child(odd) .card-img-wrapper,
  .showcase-item:nth-child(even) .card-image-grid,
  .showcase-item:nth-child(odd) .card-image-grid,
  .showcase-item:nth-child(even) .card-image-grid-3,
  .showcase-item:nth-child(odd) .card-image-grid-3,
  .showcase-item:nth-child(even) .card-info,
  .showcase-item:nth-child(odd) .card-info {
    grid-column: span 12;
  }

  .item--soundtrack .card-img-wrapper {
    max-width: 320px;
  }


}

@media (max-width: 640px) {
  .echoes-opening {
    padding: 5rem 1.5rem 3rem;
  }

  .echoes-opening .opening-kicker {
    margin-bottom: 1.2rem;
  }

  .echoes-opening .opening-subtitle {
    margin-bottom: 2.5rem;
  }

  .opening-text-block {
    gap: 2rem;
    padding-top: 2rem;
  }

  .block-text {
    font-size: 0.9rem;
    line-height: 1.8;
  }

  .echoes-showcase {
    gap: 3.5rem;
  }


}

/* ==========================================================================
   Shared Active Navigation Link State
   ========================================================================== */
.site-nav a.active {
  color: var(--color-accent);
  font-weight: 500;
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 4px;
}

/* ==========================================================================
   Opening Section Background Media (GALLERY, FILM, CREATIVE)
   ========================================================================== */
.opening-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.opening-media-item {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35; /* うっすら見せるための透明度を 0.35 に調整 */
  transition: opacity 1s ease;
}

.opening-overlay {
  position: absolute;
  inset: 0;
  /* 上部はナビゲーションが見えやすいよう少し暗めに、下部はコンテンツに溶け込むようさらに暗く */
  background: linear-gradient(180deg, rgba(5, 10, 15, 0.2) 0%, rgba(5, 10, 15, 0.5) 50%, rgba(5, 10, 15, 0.8) 100%);
  z-index: 1;
}

/* テキストコンテンツが背面に隠れないように z-index を調整 */
.gallery-opening .opening-text,
.echoes-opening .opening-content {
  position: relative;
  z-index: 2;
}



