﻿:root {
  --accent: #a40000;
  --hero-red: #7b0b0b;
  --black: #050505;
  --text: #111111;
  --muted: #5d6170;
  --paper: #f4f3ef;
  --white: #ffffff;
  --line: #d8d4cc;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: #f1f3f6;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  line-height: 1.75;
}

body.is-nav-open {
  overflow: hidden;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 124px;
  padding: 24px 38px;
  color: var(--white);
  background: var(--black);
  border-bottom: 2px solid var(--accent);
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.logo__text {
  display: grid;
  gap: 3px;
}

.logo strong {
  color: #d00000;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1;
}

.logo small {
  display: none;
}

.site-nav {
  position: absolute;
  top: 124px;
  right: 0;
  left: 0;
  display: none;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 8px 38px 24px;
  color: var(--white);
  background: var(--black);
  border-bottom: 1px solid var(--accent);
  font-size: 18px;
  font-weight: 700;
}

.site-nav.is-open {
  display: flex;
}

.site-nav a {
  padding: 12px 0;
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: #f2b9b9;
}

.nav-toggle {
  display: block;
  width: 46px;
  height: 46px;
  padding: 8px;
  background: transparent;
  border: 0;
}

.nav-toggle span {
  display: block;
  width: 32px;
  height: 4px;
  margin: 5px 0;
  background: var(--white);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.hero {
  position: relative;
  height: 440px;
  min-height: 0;
  overflow: hidden;
  background: var(--paper);
}

.hero__image {
  position: absolute;
  inset: 0;
  background-image: url("mobile-hero-centered.png");
  background-position: center center;
  background-size: auto 440px;
  opacity: 0.46;
  filter: contrast(0.92) brightness(1.08);
  transform: scale(1.01);
  transition: transform 0.8s ease;
}

.hero.is-active .hero__image {
  transform: scale(1.04);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 82px 40px 0;
  pointer-events: none;
}

.hero h1 {
  margin-bottom: 22px;
  color: rgba(0, 0, 0, 0.64);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(52px, 15vw, 74px);
  font-weight: 500;
  line-height: 1.02;
}

.hero h1 span {
  display: block;
  color: rgba(123, 11, 11, 0.62);
  font-size: 1.16em;
  letter-spacing: 0.02em;
}

.hero__tagline,
.eyebrow {
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.hero__tagline {
  margin-bottom: 18px;
  color: rgba(164, 0, 0, 0.82);
  font-size: clamp(18px, 3.4vw, 24px);
}

.hero__line,
.card-line {
  display: block;
  width: 64px;
  height: 3px;
  background: var(--accent);
}

.hero__line {
  margin-bottom: 22px;
}

.hero__lead {
  width: min(92vw, 540px);
  margin: 0;
  color: rgba(0, 0, 0, 0.74);
  font-family: Georgia, "Times New Roman", "Noto Serif JP", serif;
  font-size: clamp(17px, 4.2vw, 22px);
  line-height: 1.8;
}

.hero__actions {
  display: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 13px 36px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.button--primary {
  color: var(--white);
  background: #c90000;
  box-shadow: 0 13px 25px rgba(150, 0, 0, 0.18);
}

.button--text {
  gap: 18px;
  min-height: auto;
  padding: 10px 0 16px;
  border-bottom: 1px solid var(--accent);
  color: #111111;
}

.section {
  width: calc(100% - 28px);
  margin: 0 auto;
  padding: 68px 0;
}

.about,
.prompt-archive,
.links {
  max-width: 920px;
}

.about,
.prompt-archive {
  text-align: center;
}

.category-section {
  padding-top: 0;
}

.category-grid,
.note-grid,
.link-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.category-card {
  position: relative;
  display: grid;
  grid-template-columns: 104px 1fr 24px;
  gap: 18px;
  align-items: end;
  min-height: 170px;
  padding: 30px 20px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover,
.link-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 45px rgba(0, 0, 0, 0.12);
}

.category-card img {
  width: 96px;
  height: 96px;
  object-fit: contain;
}

.category-card h3 {
  margin-bottom: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 9vw, 48px);
  line-height: 1.08;
}

.category-card p {
  margin: 18px 0 0;
  color: #242424;
  font-size: 15px;
}

.arrow {
  align-self: end;
  font-size: 40px;
  line-height: 1;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 26px;
}

.about > .eyebrow {
  color: var(--accent);
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
}

.section-icon {
  width: 96px;
  height: 96px;
  margin-left: -18px;
  object-fit: contain;
  opacity: 0.82;
}

.eyebrow {
  margin-bottom: 14px;
  font-size: 17px;
}

.section-kicker .eyebrow {
  margin-bottom: 0;
  font-size: clamp(38px, 4vw, 54px);
}

.section-title {
  max-width: 760px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(22px, 2.3vw, 30px);
  font-weight: 600;
  line-height: 1.45;
}

.about h2,
.section-heading h2,
.prompt-archive h2,
.links h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 8vw, 46px);
  line-height: 1.25;
}

.about p,
.note-card p,
.prompt-archive p,
.link-card p {
  color: var(--muted);
}

.note-card,
.link-card {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.note-label {
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.note-card h3 {
  margin-bottom: 12px;
  font-size: 22px;
}

.work-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.work-card--featured {
  width: 100%;
  max-width: 1100px;
  margin-right: auto;
  margin-left: 0;
}

.work-card {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.work-card h3 {
  position: relative;
  min-height: 0;
  margin-bottom: 22px;
  padding-bottom: 12px;
  color: #333;
  font-size: clamp(18px, 1.8vw, 23px);
  font-weight: 600;
  line-height: 1.5;
}

.work-card h3::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 52px;
  height: 2px;
  content: "";
  background: var(--accent);
}

.work-card p {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.9;
}

.video-frame {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 24px 0 18px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.76);
  background: #121212;
  border-left: 3px solid var(--accent);
  touch-action: pan-y;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  border: 0;
}

.video-swipe-layer {
  display: none;
}

.prompt-details {
  margin-top: 18px;
  color: var(--muted);
}

.prompt-details summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.prompt-details p {
  margin: 12px 0 0;
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
}

.film-scroll {
  grid-column: 1 / -1;
  grid-row: 1;
  display: flex;
  gap: 0;
  overflow: visible;
  padding-bottom: 0;
  transition: transform 350ms ease-out;
  will-change: transform;
  scrollbar-width: none;
}

.film-scroll.is-dragging {
  transition: none;
}

.film-scroll::-webkit-scrollbar {
  display: none;
}

.film-scroll .work-card {
  flex: 0 0 100%;
  min-width: 100%;
}

.film-scroll .reveal {
  opacity: 1;
  transform: none;
}

body.motion-ready .film-scroll .reveal:not(.is-visible) {
  opacity: 1;
  transform: none;
}

.film-carousel {
  position: relative;
  display: block;
  max-width: 1100px;
  margin-right: auto;
  margin-left: 0;
  overflow: hidden;
  overflow-x: hidden;
  touch-action: pan-y;
}

.film-nav {
  position: absolute;
  top: 54%;
  z-index: 12;
  display: grid;
  place-items: center;
  width: 54px;
  height: 112px;
  padding: 0;
  color: #222;
  font-size: 32px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(-50%);
  cursor: pointer;
  pointer-events: none;
  transition: opacity 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.film-carousel:hover .film-nav,
.film-nav:focus-visible {
  opacity: 1;
  pointer-events: auto;
}

.film-nav:hover {
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
  transform: translateY(-50%) scale(1.03);
}

.film-nav--prev {
  left: 18px;
}

.film-nav--next {
  right: 18px;
}

.film-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin: 12px auto 18px;
  padding: 0;
}
.film-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  background: rgba(20, 20, 20, 0.32);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.film-dot.is-active {
  width: 34px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.14);
}
.film-scroll .video-frame {
  margin-bottom: 0;
}

.film-scroll .prompt-details {
  margin-top: 0;
}


.prompt-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.prompt-list code {
  display: block;
  padding: 16px;
  color: #f1e8e8;
  background: #121212;
  border-left: 3px solid var(--accent);
  font-family: Consolas, "Courier New", monospace;
  white-space: normal;
}

.link-card {
  color: var(--white);
  background: var(--black);
  border-color: rgba(164, 0, 0, 0.75);
}

.link-card span {
  display: block;
  margin-bottom: 10px;
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
}

.link-card p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.76);
}

.links > p {
  margin-bottom: 28px;
  color: var(--muted);
}

.site-footer {
  padding: 30px 18px;
  color: rgba(255, 255, 255, 0.72);
  background: var(--black);
  border-top: 1px solid rgba(164, 0, 0, 0.75);
  text-align: center;
}

.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

body.motion-ready .reveal:not(.is-visible) {
  opacity: 0.18;
  transform: translateY(18px);
}

body.motion-ready .hero__content.reveal:not(.is-visible) {
  opacity: 1;
  transform: none;
}

@media (min-width: 921px) {
  .site-header {
    min-height: 104px;
    padding: 20px 105px 20px 48px;
  }

  .logo {
    gap: 17px;
  }

  .logo img {
    width: 62px;
    height: 62px;
  }

  .logo strong {
    font-size: 36px;
  }

  .logo small {
    display: block;
    color: var(--white);
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.24em;
    line-height: 1;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 60px;
    padding: 0;
    border: 0;
    font-size: 18px;
    font-weight: 400;
  }

  .site-nav a {
    padding: 0;
  }

  .hero {
    height: calc(100vh - 104px);
    min-height: 571px;
    max-height: 720px;
  }

  .hero__image {
    opacity: 1;
    filter: none;
    background-color: var(--paper);
    background-image: linear-gradient(90deg, rgba(244, 243, 239, 0.78) 0%, rgba(244, 243, 239, 0.42) 34%, rgba(244, 243, 239, 0.02) 68%), url("pc-hero-16x9-final-fit.png");
    background-position: center center, right center;
    background-size: cover, auto 100%;
    background-repeat: no-repeat, no-repeat;
  }

  .hero__content {
    width: 980px;
    padding: 100px 0 0;
    margin-left: 60px;
  }

  .hero h1 {
    margin-bottom: 26px;
    font-size: 96px;
    line-height: 1.08;
    text-shadow: 0 2px 18px rgba(244, 243, 239, 0.88);
  }

  .hero h1 span {
    color: var(--hero-red);
    font-size: 1.18em;
  }

  .hero__tagline {
    margin-bottom: 18px;
    font-size: 36px;
    text-shadow: 0 2px 14px rgba(244, 243, 239, 0.9);
  }

  .hero__line {
    margin-bottom: 24px;
  }

  .hero__lead {
    width: 680px;
    margin-bottom: 34px;
    font-size: 26px;
    line-height: 1.65;
    text-shadow: 0 2px 12px rgba(244, 243, 239, 0.92);
  }

  .hero__actions {
    display: flex;
    align-items: center;
    gap: 26px;
    pointer-events: auto;
  }

  .section {
    width: min(1180px, calc(100% - 36px));
    padding: 84px 0;
  }

  .category-grid,
  .note-grid,
  .link-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .work-grid--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .film-scroll {
    display: flex;
    overflow: visible;
    padding-bottom: 0;
  }

  .film-nav {
    display: grid;
  }

  .work-card--featured {
    max-width: 1100px;
  }

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

  .category-card {
    grid-template-columns: 86px 1fr 20px;
    gap: 22px;
    min-height: 220px;
    padding: 30px;
  }

  .category-card img {
    width: 86px;
    height: 86px;
  }

  .category-card h3 {
    font-size: clamp(34px, 3vw, 48px);
  }
}

@media (max-width: 520px) {
  .site-header {
    padding: 24px 38px;
  }

  .hero__content {
    padding: 82px 40px 0;
  }
}

@media (max-width: 768px) {
  #music-works,
  #film-works,
  #gear-works,
  #contact {
    scroll-margin-top: 170px;
  }

  .section {
    width: 100%;
    padding-left: 18px;
    padding-right: 18px;
  }

  .site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .logo {
    display: flex;
    align-items: center;
    max-width: calc(100% - 72px);
    min-width: 0;
    overflow: hidden;
  }

  .logo img {
    width: 68px;
    height: auto;
    flex-shrink: 0;
  }

  .logo__text {
    min-width: 0;
    overflow: hidden;
  }

  .logo__text strong {
    font-size: clamp(28px, 7.5vw, 40px);
    white-space: nowrap;
  }

  .logo__text small {
    font-size: 11px;
    letter-spacing: 0.16em;
    white-space: nowrap;
  }

  .nav-toggle {
    z-index: 20;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    margin-left: auto;
  }

  .note-card,
  .work-card {
    padding-left: 18px;
    padding-right: 18px;
  }

  .work-card {
    padding-right: 0;
    padding-left: 0;
  }

  .video-frame {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    aspect-ratio: 16 / 9;
    box-sizing: border-box;
  }

  .work-card--featured {
    max-width: 100%;
  }

  .film-carousel {
    display: block;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .film-scroll {
    grid-column: 1 / -1;
    grid-row: 1;
    padding-left: 0;
    padding-right: 0;
    gap: 0;
  }

  .film-scroll .work-card {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    padding-right: 0;
    padding-left: 0;
    overflow: hidden;
  }

  .film-scroll .work-card h3 {
    min-height: 70px;
    margin-bottom: 14px;
  }

  .film-scroll .work-card > p {
    min-height: 82px;
    margin-bottom: 18px;
  }

  .film-scroll .video-frame {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-top: 0;
    margin-right: 0;
    margin-left: 0;
    aspect-ratio: 16 / 9;
  }

  .section-icon {
    width: 78px;
    height: 78px;
    margin-left: -14px;
  }

  .section-kicker .eyebrow {
    font-size: clamp(36px, 9vw, 44px);
    line-height: 1.1;
  }

  .section-title {
    margin-bottom: 14px;
    color: var(--ink);
    font-size: clamp(19px, 5.2vw, 23px);
    font-weight: 600;
    line-height: 1.45;
  }

  .film-nav {
    display: none;
  }

  .video-swipe-layer {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 2;
    display: block;
    width: 24%;
    background: transparent;
    touch-action: pan-y;
  }

  .video-swipe-layer--left {
    left: 0;
  }

  .video-swipe-layer--right {
    right: 0;
  }

  .video-swipe-layer.is-tap-passthrough {
    pointer-events: none;
  }

  .film-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin: 12px auto 18px;
    padding: 0;
  }
.film-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  background: rgba(20, 20, 20, 0.32);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.film-dot.is-active {
  width: 34px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.14);
}
.film-scroll .video-frame {
  margin-bottom: 0;
}

.film-scroll .prompt-details {
  margin-top: 0;
}


  .film-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    background: rgba(20, 20, 20, 0.32);
    border: 0;
    border-radius: 999px;
  }

  .film-dot.is-active {
    width: 34px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.14);
  }

  .work-card h3 {
    min-height: 0;
    margin-bottom: 16px;
    padding-bottom: 10px;
    color: #333;
    font-size: clamp(17px, 4.6vw, 20px);
    font-weight: 600;
    line-height: 1.5;
  }

  .note-card p,
  .work-card p,
  .prompt-copy,
  .prompt-list code {
    font-size: 14.5px;
    font-weight: 400;
    line-height: 1.85;
  }

  details summary {
    font-size: 13.5px;
    font-weight: 600;
  }

  .video-frame iframe {
    width: 100%;
    height: 100%;
  }
}

@media (max-width: 420px) {
  .logo img {
    width: 58px;
  }

  .logo__text strong {
    font-size: clamp(22px, 7vw, 34px);
  }

  .logo__text small {
    font-size: 9px;
    letter-spacing: 0.12em;
  }
}

#music-works,
#film-works,
#gear-works,
#contact {
  scroll-margin-top: 150px;
}

@media (max-width: 768px) {
  #music-works,
  #film-works,
  #gear-works,
  #contact {
    scroll-margin-top: 170px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
