@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Space+Mono:ital,wght@0,400;0,700;1,400&family=Noto+Sans+JP:wght@300;400;700&display=swap');

:root {
  --bg: #b0e0e6;
  --black: #24140e;
  --accent: #24140e;
  --mid: #7ab8cc;
  --light: #d4eef7;
  --white: #ffffff;
  --font-display: 'Bebas Neue', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --font-body: 'Noto Sans JP', sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--black);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ── NOISE TEXTURE OVERLAY ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg);
  border-bottom: 2px solid var(--black);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 64px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 0.12em;
  color: var(--black);
  text-decoration: none;
  position: relative;
}

.nav-logo::after {
  content: '●';
  font-size: 0.4rem;
  color: var(--black);
  position: absolute;
  top: 6px;
  right: -10px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-hamburger {
  display: none;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--black);
  text-decoration: none;
  display: inline-block;
  /* 下線をbox-shadowで — レイアウト再計算ゼロ */
  box-shadow: inset 0 -1px 0 transparent;
  transition: box-shadow 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  box-shadow: inset 0 -1px 0 var(--black);
}

/* ── MAIN CONTENT ── */
main {
  flex: 1;
  position: relative;
  z-index: 1;
}

/* ── FOOTER ── */
footer {
  background-color: var(--black);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-align: center;
  padding: 1rem 2rem;
  position: relative;
  z-index: 1;
  white-space: nowrap;
}

@media (max-width: 480px) {
  footer {
    font-size: 0.5rem;
    letter-spacing: 0.03em;
    padding: 0.75rem 0.5rem;
  }
}

@media (max-width: 480px) {
  footer {
    font-size: 0.5rem;
    letter-spacing: 0.05em;
    padding: 0.75rem 0.5rem;
    white-space: nowrap;
  }
}

/* ── SECTION COMMON ── */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 0.5rem;
}

h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: 0.06em;
}

/* ── HERO ── */
.hero {
  min-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 2.5rem;
  position: relative;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(10,10,10,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10,10,10,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: none;
  margin-bottom: 1.5rem;
  opacity: 0.6;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 10rem);
  line-height: 0.92;
  letter-spacing: -0.01em;
  color: var(--black);
  margin-bottom: 2rem;
}

.hero-title span {
  display: block;
  -webkit-text-stroke: 2px var(--black);
  color: transparent;
}

.hero-sub {
  font-family: var(--font-body);
  font-size: 1rem;
  max-width: 420px;
  line-height: 1.8;
  opacity: 0.75;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--black);
  border: 2px solid var(--black);
  padding: 0.65rem 1.5rem;
  text-decoration: none;
  transition: background 0.25s, color 0.25s;
}

.btn:hover {
  background: transparent;
  color: var(--black);
}

.btn-outline {
  background: transparent;
  color: var(--black);
  margin-left: 1rem;
}

.btn-outline:hover {
  background: var(--black);
  color: var(--bg);
}

/* ── CORNER DECORATION ── */
.hero-deco {
  position: absolute;
  right: 2.5rem;
  bottom: 3rem;
  font-family: var(--font-display);
  font-size: clamp(8rem, 20vw, 18rem);
  color: transparent;
  -webkit-text-stroke: 1px rgba(10,10,10,0.12);
  pointer-events: none;
  line-height: 1;
  user-select: none;
}

/* ── PAGE HEADER ── */
.page-header {
  padding: 3rem 2.5rem 2rem;
  border-bottom: 2px solid var(--black);
  position: relative;
  overflow: hidden;
}

.page-header h1 {
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 1;
}

.page-header::after {
  content: attr(data-title);
  position: absolute;
  right: 2rem;
  bottom: -0.2em;
  font-family: var(--font-display);
  font-size: clamp(5rem, 14vw, 12rem);
  color: transparent;
  -webkit-text-stroke: 1px rgba(10,10,10,0.1);
  pointer-events: none;
  user-select: none;
  line-height: 1;
}

/* ── GRID LAYOUT ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

/* ── CARD ── */
.card {
  background: rgba(255,255,255,0.15);
  border: 2px solid var(--black);
  padding: 2rem;
  transition: background 0.25s;
  position: relative;
  overflow: hidden;
}

.card:hover {
  background: rgba(255,255,255,0.35);
}

.card-num {
  font-family: var(--font-display);
  font-size: 4rem;
  color: transparent;
  -webkit-text-stroke: 1px rgba(10,10,10,0.2);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.88rem;
  opacity: 0.72;
  line-height: 1.7;
}

/* ── TAG ── */
.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid var(--black);
  padding: 0.2rem 0.6rem;
  margin-right: 0.4rem;
  margin-bottom: 0.4rem;
}

/* ── WORKS ITEM ── */
.works-item {
  border: 2px solid var(--black);
  display: flex;
  flex-direction: column;
}

.works-img {
  aspect-ratio: 4/3;
  background: var(--black);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.works-img .placeholder-text {
  font-family: var(--font-display);
  font-size: 3rem;
  color: rgba(173,216,230,0.2);
  letter-spacing: 0.1em;
}

.works-info {
  padding: 1.5rem;
  border-top: 2px solid var(--black);
}

.works-info h3 {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.works-info p {
  font-size: 0.82rem;
  opacity: 0.65;
  margin-bottom: 0.75rem;
}

/* ── SOUND ── */
.sound-track {
  border-bottom: 1px solid rgba(10,10,10,0.2);
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.track-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: transparent;
  -webkit-text-stroke: 1px rgba(10,10,10,0.25);
  min-width: 3rem;
  line-height: 1;
}

.track-info {
  flex: 1;
}

.track-title {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.track-desc {
  font-size: 0.78rem;
  opacity: 0.6;
  margin-top: 0.15rem;
}

.track-duration {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  opacity: 0.45;
}

/* ── STORE ── */
.product-item {
  border: 2px solid var(--black);
}

.product-img {
  aspect-ratio: 1;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: rgba(173,216,230,0.25);
  letter-spacing: 0.1em;
  text-align: center;
  padding: 1rem;
}

.product-info {
  padding: 1.25rem;
  border-top: 2px solid var(--black);
}

.product-name {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}

.product-price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

/* ── CONTACT FORM ── */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  opacity: 0.7;
}

input, textarea, select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--black);
  padding: 0.6rem 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--black);
  outline: none;
  transition: border-color 0.25s;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--mid);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

select option {
  background: var(--bg);
}

/* ── ABOUT ── */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 5rem;
}

.about-visual {
  aspect-ratio: 1;
  border: 2px solid var(--black);
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 6rem;
  color: rgba(173,216,230,0.12);
  letter-spacing: 0.05em;
  position: relative;
  overflow: hidden;
}

.about-visual::before {
  content: '';
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(173,216,230,0.15);
}

.about-text h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.about-text p {
  font-size: 0.95rem;
  line-height: 2;
  opacity: 0.78;
  margin-bottom: 1.2rem;
}

/* ── DIVIDER ── */
.divider {
  border: none;
  border-top: 2px solid var(--black);
  margin: 3rem 0;
}

/* ── SCROLL ANIMATION ── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav {
    padding: 0 1.25rem;
    height: 56px;
    position: relative;
  }

  .nav-logo-img {
    width: 80px !important;
    height: auto !important;
  }

  /* ハンバーガーボタン */
  .nav-hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
  }

  .nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--black);
    transition: all 0.3s;
  }

  /* メニューをドロップダウンに */
  .nav-links {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 2px solid var(--black);
    flex-direction: column;
    gap: 0;
    z-index: 200;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    border-bottom: 1px solid rgba(36,20,14,0.15);
  }

  .nav-links a {
    display: block;
    padding: 1rem 1.25rem;
    font-size: 11px;
  }

  .grid-2, .grid-3, .about-intro, .contact-wrap {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 3rem 1.25rem;
  }

  .hero {
    padding: 3rem 1.25rem;
  }

  .page-header {
    padding: 3rem 1.25rem 1.5rem;
  }
}

/* ── NAV LOGO IMAGE ── */
.nav-logo-img {
  width: 120px;
  height: auto;
  display: block;
  mix-blend-mode: multiply;
}

/* ── HERO IMAGE ── */
.hero-img {
  padding: 0;
  min-height: calc(100vh - 64px);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero-img-wrap {
  position: absolute;
  inset: 0;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.hero-img-overlay {
  position: absolute;
  inset: 0;
  background: none;
}

.hero-img-content {
  position: relative;
  z-index: 1;
  padding: 3rem 2.5rem 4rem;
  width: 100%;
  margin-top: auto;
}

.hero-img-content .hero-eyebrow {
  color: rgba(255,255,255,0.7);
}

.hero-img-content .hero-sub {
  color: rgba(255,255,255,0.85);
  opacity: 1;
}

.hero-img-content .btn {
  background: #f8f8f8;
  color: #228b22;
  border-color: #f8f8f8;
}

.hero-img-content .btn:hover {
  background: transparent;
  color: #f8f8f8;
  border-color: #f8f8f8;
}

.hero-img-content .btn-outline {
  background: transparent;
  color: #f8f8f8;
  border-color: #f8f8f8;
}

.hero-img-content .btn-outline:hover {
  background: #f8f8f8;
  color: #228b22;
}

@media (max-width: 768px) {
  .hero-img {
    min-height: 70vh;
  }

  .hero-photo {
    content: url('images/hero_sp.jpg');
    object-position: center top;
  }
  .hero-img-content { padding: 2rem 1.25rem 3rem; }

  /* ABOUTの製作者セクション縦並び */
  div[style*="display:flex"][style*="gap:1.5rem"] {
    flex-direction: column;
  }
}