/* ========================================
   Hoobase LP — Design System & Base
   Tone: 深さ・静けさ・信頼
   ======================================== */

:root {
  --bg: #060608;
  --bg-elevated: #0c0c10;
  --text: #eeeef0;
  --text-muted: #6e6e78;
  --accent: #ff5216;
  --accent-glow: rgba(255, 82, 22, 0.15);
  --warm: #ff9f6c;
  --surface: rgba(255, 255, 255, 0.025);
  --surface-hover: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(255, 82, 22, 0.2);
  --font-display: "Outfit", "Zen Kaku Gothic New", sans-serif;
  --font-body: "Zen Kaku Gothic New", sans-serif;
  --max-w: 960px;
  --space-section: clamp(80px, 10vh, 130px);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Grain overlay for film-like texture */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 128px;
}

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

/* Typography */
h1, h2 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.4;
}

p { color: var(--text-muted); margin-bottom: 0; }

.label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 20px;
  padding: 4px 12px;
  border: 1px solid var(--border-accent);
  border-radius: 100px;
  background: rgba(255, 82, 22, 0.05);
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 72px;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
}

.logo-img {
  height: 38px;
  width: auto;
}

.header-cta {
  font-size: 12px;
  font-weight: 600;
  padding: 7px 20px;
  background: rgba(255, 82, 22, 0.1);
  border: 1px solid var(--border-accent);
  border-radius: 100px;
  color: var(--accent);
  letter-spacing: 0.02em;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.header-cta:hover {
  background: rgba(255, 82, 22, 0.18);
  border-color: rgba(255, 82, 22, 0.4);
  box-shadow: 0 0 20px rgba(255, 82, 22, 0.08);
}

header.header-scrolled {
  background: rgba(6, 6, 8, 0.95);
  border-bottom-color: rgba(255, 82, 22, 0.08);
}

/* Sections base */
section {
  padding: var(--space-section) 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}

h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 20px; }

section > p {
  font-size: clamp(15px, 1.8vw, 18px);
  max-width: 640px;
  line-height: 1.8;
}

/* CTA Button */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--warm) 100%);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  padding: 15px 36px;
  letter-spacing: 0.01em;
  border-radius: 100px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cta-button::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--accent), var(--warm));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s;
}
.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(255, 82, 22, 0.25), 0 2px 12px rgba(255, 82, 22, 0.15);
}
.cta-button:hover::before { opacity: 1; }
.cta-note {
  font-size: 12px;
  font-weight: 400;
  opacity: 0.6;
}

/* Reveal animations */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
[data-reveal-child] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
[data-reveal-child].is-visible {
  opacity: 1;
  transform: none;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
  position: relative;
}
footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

/* Responsive */
@media (max-width: 768px) {
  :root { --space-section: 80px; }
  section { padding-left: 20px; padding-right: 20px; }
}
