/* 3D迷路 — GitHub Pages */

:root {
  --ink: #14110e;
  --ink-soft: #2a231c;
  --parchment: #e8dcc8;
  --parchment-dim: #cbbda6;
  --stone: #6b5e4e;
  --torch: #e08a3c;
  --torch-deep: #b85f1f;
  --fog: rgba(20, 17, 14, 0.55);
  --line: rgba(232, 220, 200, 0.16);
  --max: 1120px;
  --font-display: "Zen Old Mincho", "Hiragino Mincho ProN", serif;
  --font-body: "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--parchment);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.75;
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--torch);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--parchment);
}

/* ----- Nav ----- */

.site-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem clamp(1.25rem, 4vw, 2.5rem);
}

.site-nav a {
  color: var(--parchment-dim);
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.site-nav a:hover {
  color: var(--parchment);
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--parchment) !important;
  letter-spacing: 0.12em;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

/* ----- Hero (service intro) ----- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.04);
  animation: hero-drift 28s ease-in-out infinite alternate;
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(20, 17, 14, 0.35) 0%, rgba(20, 17, 14, 0.15) 35%, rgba(20, 17, 14, 0.82) 70%, var(--ink) 100%),
    radial-gradient(ellipse 80% 50% at 70% 30%, rgba(224, 138, 60, 0.18), transparent 55%);
  animation: veil-pulse 8s ease-in-out infinite alternate;
}

.hero-content {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: 0 0 clamp(3.5rem, 10vh, 6rem);
}

.hero-brand {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 11vw, 6.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.08em;
  color: var(--parchment);
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.45);
  opacity: 0;
  animation: rise-in 1s ease 0.15s forwards;
}

.hero-lead {
  margin: 0 0 1.75rem;
  max-width: 28ch;
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: var(--parchment-dim);
  opacity: 0;
  animation: rise-in 1s ease 0.35s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  opacity: 0;
  animation: rise-in 1s ease 0.55s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

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

.btn-primary {
  background: var(--torch);
  color: var(--ink);
  border-color: var(--torch);
}

.btn-primary:hover {
  background: #f0a050;
  color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: var(--parchment);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--parchment-dim);
  color: var(--parchment);
}

/* ----- Sections ----- */

.section {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-label {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--torch);
}

.section h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.35;
}

.section p {
  margin: 0 0 1rem;
  max-width: 42rem;
  color: var(--parchment-dim);
}

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

.feature-list {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 720px) {
  .feature-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.feature-list li {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.feature-list h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.feature-list p {
  margin: 0;
  font-size: 0.95rem;
}

.showcase {
  margin-top: 2.5rem;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.showcase img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.05);
}

/* ----- Privacy page ----- */

.page-header {
  position: relative;
  padding: 7rem 0 3rem;
  background:
    radial-gradient(ellipse 70% 80% at 10% 0%, rgba(224, 138, 60, 0.12), transparent 50%),
    linear-gradient(180deg, var(--ink-soft), var(--ink));
  border-bottom: 1px solid var(--line);
}

.page-header .inner {
  width: min(100% - 2.5rem, 720px);
  margin: 0 auto;
}

.page-header h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.page-header .meta {
  margin: 0;
  font-size: 0.9rem;
  color: var(--stone);
}

.prose {
  width: min(100% - 2.5rem, 720px);
  margin: 0 auto;
  padding: 3rem 0 5rem;
}

.prose h2 {
  margin: 2.5rem 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--parchment);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  color: var(--parchment-dim);
}

.prose ul {
  padding-left: 1.25rem;
  margin: 0 0 1rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.prose strong {
  color: var(--parchment);
  font-weight: 500;
}

/* ----- Footer ----- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem clamp(1.25rem, 4vw, 2.5rem) 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: center;
  color: var(--stone);
  font-size: 0.85rem;
}

.site-footer nav {
  display: flex;
  gap: 1.25rem;
}

.site-footer a {
  color: var(--parchment-dim);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--torch);
}

/* ----- Motion ----- */

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-drift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.5%, -1%, 0);
  }
}

@keyframes veil-pulse {
  from {
    opacity: 1;
  }
  to {
    opacity: 0.88;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-media img {
    transform: none;
  }
}
