﻿:root {
  --bg: #090704;
  --surface: rgba(17, 12, 7, 0.68);
  --text: #f7f1e4;
  --muted: #c7b899;
  --line: rgba(238, 193, 112, 0.3);
  --line-strong: rgba(245, 208, 140, 0.46);
  --accent: #c89d5d;
  --accent-2: #d8b37a;
  --max-width: 1180px;
  --topbar-h: 64px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow: hidden;
}

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

.site-shell {
  position: relative;
  width: 100%;
  height: 100%;
}

.bg-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.stage-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.06) brightness(0.22);
  transform: scale(1.08);
  transition: filter 0.85s ease, transform 0.85s ease;
}

.stage-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 14% 14%, rgba(231, 190, 118, 0.22), transparent 32%),
    radial-gradient(circle at 86% 8%, rgba(183, 132, 61, 0.26), transparent 34%),
    linear-gradient(145deg, rgba(8, 6, 4, 0.93), rgba(8, 6, 4, 0.62) 50%, rgba(8, 6, 4, 0.9));
  transition: background 0.85s ease;
}

.stage-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(186, 146, 78, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(186, 146, 78, 0.07) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.74), transparent 88%);
}

#fx-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.45;
}

.panel-transition {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at center, rgba(35, 24, 12, 0.45), rgba(6, 4, 2, 0.95));
  transition: opacity 0.28s ease;
}

.panel-transition.is-active {
  opacity: 1;
}

.transition-core {
  width: min(36vw, 240px);
  aspect-ratio: 1;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.16em;
  color: var(--accent-2);
  text-transform: uppercase;
  background: rgba(16, 11, 6, 0.7);
  box-shadow: 0 0 28px rgba(231, 190, 118, 0.16);
  transform: scale(0.86);
  animation: corePulse 0.75s ease;
}

.topbar {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 34px), var(--max-width));
  min-height: var(--topbar-h);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(14, 10, 6, 0.76);
  backdrop-filter: blur(14px);
  z-index: 30;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 30px;
  height: 30px;
}

.brand-text {
  font-family: "Noto Sans JP", sans-serif;
  letter-spacing: 0.03em;
  font-size: 1.02rem;
  font-weight: 700;
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #decba5;
  font-size: 0.9rem;
}

.nav a {
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.22s ease;
}

.nav a:hover::after,
.nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--text);
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
}

.dot-nav {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  display: grid;
  gap: 10px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(231, 190, 118, 0.64);
  background: rgba(18, 12, 8, 0.88);
  cursor: pointer;
  transition: transform 0.22s ease, background 0.22s ease;
}

.dot.is-active {
  transform: scale(1.25);
  background: var(--accent-2);
}

.panel-scroll {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

.panel {
  min-height: 100vh;
  scroll-snap-align: start;
  padding: calc(var(--topbar-h) + 40px) 20px 40px;
  display: flex;
  align-items: center;
  opacity: 0.35;
  transform: scale(0.985);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.panel.is-active {
  opacity: 1;
  transform: scale(1);
}

.panel-inner {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 18px;
  align-items: center;
}

.panel-copy,
.panel-visual {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  backdrop-filter: blur(7px);
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.42);
}

.panel-copy {
  padding: clamp(22px, 3.8vw, 44px);
}

.panel-visual {
  min-height: min(58vh, 520px);
  padding: clamp(16px, 3vw, 28px);
  position: relative;
  overflow: hidden;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-2);
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: "Barlow Condensed", sans-serif;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.02em;
}

.panel-hero h1 {
  font-size: clamp(2.35rem, 6vw, 5.2rem);
  line-height: 0.95;
  white-space: nowrap;
}

h2 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 0.95;
}

.panel-copy p {
  color: var(--muted);
  line-height: 1.9;
  max-width: 44ch;
}

.hero-visual {
  display: grid;
  align-content: start;
  gap: 10px;
}

.hero-stack {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 10px;
}

.focus-card {
  border: 1px solid rgba(238, 193, 112, 0.35);
  border-radius: 12px;
  background: rgba(17, 12, 7, 0.82);
  padding: 12px 14px;
}

.focus-card span {
  display: block;
  color: #cab387;
  font-size: 0.8rem;
}

.focus-card strong {
  display: block;
  margin-top: 6px;
  font-size: 1.05rem;
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.6;
}

.signal-bars {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  display: flex;
  align-items: end;
  gap: 6px;
  height: 74px;
}

.signal-bars i {
  display: block;
  width: 8px;
  height: var(--h);
  background: linear-gradient(180deg, rgba(216, 179, 122, 0.8), rgba(200, 157, 93, 0.76));
  border-radius: 999px;
  animation: barPulse 1.9s ease-in-out infinite;
}

.signal-bars i:nth-child(2) { animation-delay: -0.2s; }
.signal-bars i:nth-child(3) { animation-delay: -0.4s; }
.signal-bars i:nth-child(4) { animation-delay: -0.6s; }
.signal-bars i:nth-child(5) { animation-delay: -0.8s; }
.signal-bars i:nth-child(6) { animation-delay: -1s; }

.service-visual {
  display: grid;
  gap: 10px;
}

.service-visual article,
.info-card {
  border: 1px solid rgba(233, 191, 113, 0.28);
  border-radius: 12px;
  background: rgba(17, 12, 7, 0.74);
  padding: 14px;
}

.service-visual span {
  color: var(--accent-2);
  font-family: "Barlow Condensed", sans-serif;
}

.service-visual h3 {
  margin-top: 6px;
  font-size: 1.42rem;
}

.service-visual p {
  margin-top: 8px;
  color: #ccb992;
  line-height: 1.75;
}

.profile-title {
  display: grid;
  align-content: center;
}

.profile-visual,
.contact-grid {
  display: grid;
  gap: 10px;
  align-content: start;
}

.info-card span {
  display: block;
  color: #c5b089;
  font-size: 0.82rem;
}

.info-card strong {
  display: block;
  margin-top: 6px;
  font-size: 1rem;
  line-height: 1.75;
  font-family: "Noto Sans JP", sans-serif;
}

.info-card p {
  margin: 7px 0 0;
  color: #cab892;
  line-height: 1.7;
  font-size: 0.95rem;
}

.purpose-visual {
  display: grid;
  align-content: start;
}

.domain-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.panel-contact .panel-inner {
  grid-template-columns: 1fr 0.96fr;
}

.cta {
  margin-top: 16px;
  display: inline-flex;
  min-height: 46px;
  padding: 0 20px;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(245, 208, 140, 0.6);
  background: rgba(26, 18, 10, 0.92);
  color: var(--accent-2);
  font-weight: 700;
}

.contact-visual {
  display: grid;
  align-content: start;
}

.pulse-ring {
  position: absolute;
  width: 58%;
  aspect-ratio: 1;
  border-radius: 999px;
  border: 1px solid rgba(232, 190, 110, 0.36);
  animation: ringPulse 3s ease-out infinite;
}

.pulse-ring.delay {
  animation-delay: -1.5s;
}

.panel-hint {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: #d5be92;
  text-transform: uppercase;
}

.panel-hint::after {
  content: "";
  display: block;
  margin: 8px auto 0;
  width: 1px;
  height: 28px;
  background: rgba(231, 190, 118, 0.52);
  animation: hintMove 1.8s linear infinite;
}

.site-shell[data-theme="services"] .stage-overlay {
  background:
    radial-gradient(circle at 16% 14%, rgba(241, 202, 129, 0.24), transparent 32%),
    radial-gradient(circle at 84% 10%, rgba(193, 139, 63, 0.28), transparent 34%),
    linear-gradient(145deg, rgba(10, 7, 4, 0.92), rgba(10, 7, 4, 0.6) 52%, rgba(10, 7, 4, 0.9));
}

.site-shell[data-theme="services"] .stage-video {
  filter: saturate(1.02) contrast(1.06) brightness(0.24);
  transform: scale(1.12);
}

.site-shell[data-theme="profile"] .stage-overlay {
  background:
    radial-gradient(circle at 20% 18%, rgba(247, 211, 145, 0.22), transparent 32%),
    radial-gradient(circle at 86% 8%, rgba(160, 114, 53, 0.24), transparent 34%),
    linear-gradient(145deg, rgba(12, 8, 5, 0.93), rgba(12, 8, 5, 0.62) 52%, rgba(12, 8, 5, 0.9));
}

.site-shell[data-theme="profile"] .stage-video {
  filter: saturate(1) contrast(1.06) brightness(0.23);
  transform: scale(1.1);
}

.site-shell[data-theme="purpose"] .stage-overlay {
  background:
    radial-gradient(circle at 16% 16%, rgba(245, 214, 157, 0.24), transparent 34%),
    radial-gradient(circle at 82% 10%, rgba(201, 148, 73, 0.26), transparent 34%),
    linear-gradient(145deg, rgba(14, 10, 6, 0.9), rgba(14, 10, 6, 0.6) 52%, rgba(14, 10, 6, 0.88));
}

.site-shell[data-theme="purpose"] .stage-video {
  filter: saturate(1.03) contrast(1.06) brightness(0.24);
  transform: scale(1.13);
}

.site-shell[data-theme="contact"] .stage-overlay {
  background:
    radial-gradient(circle at 20% 20%, rgba(246, 214, 152, 0.25), transparent 34%),
    radial-gradient(circle at 84% 14%, rgba(188, 134, 59, 0.26), transparent 36%),
    linear-gradient(145deg, rgba(11, 8, 5, 0.9), rgba(11, 8, 5, 0.58) 52%, rgba(11, 8, 5, 0.9));
}

.site-shell[data-theme="contact"] .stage-video {
  filter: saturate(1.05) contrast(1.06) brightness(0.26);
  transform: scale(1.11);
}

@keyframes corePulse {
  0% { transform: scale(0.82); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes ringPulse {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(1.2); opacity: 0; }
}

@keyframes hintMove {
  0% { opacity: 0.3; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(8px); }
  100% { opacity: 0.3; transform: translateY(0); }
}

@keyframes barPulse {
  0%, 100% { opacity: 0.55; transform: scaleY(0.84); }
  50% { opacity: 1; transform: scaleY(1); }
}

@media (max-width: 1080px) {
  .panel-inner,
  .panel-contact .panel-inner {
    grid-template-columns: 1fr;
  }

  .panel-visual {
    min-height: min(44vh, 390px);
  }

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

  .dot-nav {
    display: none;
  }
}

@media (max-width: 760px) {
  .topbar {
    width: calc(100% - 18px);
    top: 8px;
    min-height: 56px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .menu-toggle {
    display: inline-block;
    margin-left: auto;
    padding: 0;
  }

  .nav {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-top: 6px;
  }

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

  .panel {
    padding-top: 88px;
  }

  .panel-scroll {
    scroll-snap-type: y proximity;
    scroll-behavior: auto;
  }

  .panel-transition {
    display: none;
  }

  #fx-canvas {
    display: none;
  }

  .panel-copy,
  .panel-visual {
    border-radius: 14px;
  }

  .panel-hero h1 {
    white-space: normal;
    font-size: clamp(2.1rem, 13vw, 3.4rem);
  }

  h2 {
    font-size: clamp(2rem, 12vw, 2.9rem);
  }
}
