/* Gopran Design System - Warm Bauhaus Terracotta & Anthracite */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,600;0,9..144,700;1,9..144,600&family=IBM+Plex+Sans:wght@400;500;600;700&family=Noto+Sans+JP:wght@400;500;700&family=Noto+Serif+JP:wght@600;700&family=Space+Mono:wght@400;700&display=swap');

:root {
  --bg-base: #141312;
  --bg-canvas: #1e1b18;
  --bg-surface: #24201c;
  --bg-card: #2a2521;
  --border-rule: #38322c;
  --border-light: #4a423a;
  --border-accent: rgba(224, 99, 67, 0.35);
  --accent-terracotta: #e06343;
  --accent-ochre: #d97706;
  --accent-glow: rgba(224, 99, 67, 0.16);
  --text-main: #fbf9f5;
  --text-muted: #a8a29e;
  --text-dim: #78716c;
  --font-heading: 'Fraunces', 'Noto Serif JP', serif;
  --font-body: 'IBM Plex Sans', 'Noto Sans JP', sans-serif;
  --font-mono: 'Space Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-base);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-base);
  color: var(--text-main);
  overflow-x: hidden;
  position: relative;
}

/* Accessibility */
.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  background: var(--accent-terracotta);
  color: #ffffff;
  padding: 10px 18px;
  z-index: 9999;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 16px;
}
:focus-visible {
  outline: 2px solid var(--accent-terracotta);
  outline-offset: 3px;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: rgba(20, 19, 18, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-rule);
  z-index: 1000;
  display: flex;
  align-items: center;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.brand-logo {
  height: 38px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav-links a:hover {
  color: var(--accent-terracotta);
}
.header-cta {
  font-size: 0.84rem;
  padding: 8px 18px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  font-size: 0.96rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 46px;
  font-family: var(--font-body);
}
.btn-primary {
  background: var(--accent-terracotta);
  color: #ffffff;
  border: 1px solid var(--accent-terracotta);
}
.btn-primary:hover {
  background: #c85336;
  border-color: #c85336;
}
.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-light);
}
.btn-outline:hover {
  border-color: var(--accent-terracotta);
  color: var(--accent-terracotta);
}

/* Dimension Rules & Index Tags (V_GRAPHIC: 1) */
.dimension-rule {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--accent-ochre);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}
.dossier-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-terracotta);
  background: rgba(224, 99, 67, 0.1);
  border: 1px solid rgba(224, 99, 67, 0.3);
  padding: 3px 8px;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

/* Section Common */
.section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border-rule);
  position: relative;
}
.section-alt {
  background-color: var(--bg-canvas);
}
.section-header {
  margin-bottom: 40px;
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 12px;
}
.section-subtitle {
  color: var(--text-muted);
  font-size: 0.98rem;
  max-width: 760px;
}

/* Hero Section (V_HERO: 1 Monumental Top Headline + Panoramic Frame) */
.hero-section {
  padding-top: 96px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--border-rule);
}
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(1.85rem, 4.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}
.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 820px;
  line-height: 1.6;
  margin-bottom: 24px;
}
.hero-cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.hero-panoramic-wrapper {
  position: relative;
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  padding: 8px;
}
.hud-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 12px;
  background: #100f0e;
  border: 1px solid var(--border-rule);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}
.hud-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ff4d4f;
  font-weight: 700;
}
.hud-dot {
  width: 8px;
  height: 8px;
  background: #ff4d4f;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.3; }
  100% { opacity: 1; }
}
.hero-panoramic-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  max-height: 520px;
  overflow: hidden;
  background: #000;
}
.hero-panoramic-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.reticle {
  position: absolute;
  color: var(--accent-terracotta);
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1;
}
.reticle-tl { top: 8px; left: 8px; }
.reticle-tr { top: 8px; right: 8px; }
.reticle-bl { bottom: 8px; left: 8px; }
.reticle-br { bottom: 8px; right: 8px; }
.hud-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 12px;
  background: #100f0e;
  border: 1px solid var(--border-rule);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-ochre);
  flex-wrap: wrap;
  gap: 8px;
}

/* Dense Technical Matrix (Section 3) */
.dense-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-rule);
  background: var(--bg-surface);
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  text-align: left;
}
.spec-table th, .spec-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-rule);
  border-right: 1px solid var(--border-rule);
}
.spec-table th {
  background: var(--bg-card);
  color: var(--accent-terracotta);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 1px;
}
.spec-table tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.015);
}
.spec-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: #141312;
  border: 1px solid var(--border-rule);
  padding: 2px 6px;
  color: var(--accent-ochre);
}

/* Studio Setups 3 Cards */
.setups-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.setup-card {
  background: var(--bg-card);
  border: 1px solid var(--border-rule);
  padding: 24px;
  position: relative;
}
.setup-card::before {
  content: "+";
  position: absolute;
  top: -8px;
  left: -8px;
  color: var(--accent-terracotta);
  font-family: var(--font-mono);
  font-size: 14px;
}
.setup-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-terracotta);
  margin-bottom: 8px;
}
.setup-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--text-main);
}
.setup-list {
  list-style: none;
  font-size: 0.86rem;
  color: var(--text-muted);
}
.setup-list li {
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

/* Split Showcase Section */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.split-visual {
  border: 1px solid var(--border-rule);
  background: var(--bg-card);
  padding: 8px;
}
.split-media-frame {
  position: relative;
  aspect-ratio: 16/9;
  max-height: 380px;
  overflow: hidden;
}
.split-media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.split-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(20, 19, 18, 0.9);
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-ochre);
  border: 1px solid var(--border-rule);
}

/* 6 Core Pillars */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.pillar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-rule);
  padding: 24px;
}
.pillar-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  color: var(--accent-terracotta);
}
.pillar-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-main);
}
.pillar-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* 5-Stage Pipeline */
.pipeline-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 30px;
}
.pipeline-step {
  background: var(--bg-card);
  border: 1px solid var(--border-rule);
  padding: 18px 14px;
  position: relative;
}
.step-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-terracotta);
  margin-bottom: 6px;
}
.step-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.step-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Boundaries Table */
.boundaries-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.boundary-box {
  background: var(--bg-card);
  border: 1px solid var(--border-rule);
  padding: 24px;
}
.boundary-box.included {
  border-top: 3px solid #10b981;
}
.boundary-box.excluded {
  border-top: 3px solid #ef4444;
}
.boundary-head {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 14px;
}
.boundary-box.included .boundary-head { color: #10b981; }
.boundary-box.excluded .boundary-head { color: #ef4444; }
.boundary-list {
  list-style: none;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.boundary-list li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

/* FAQ Accordion */
.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 900px;
}
.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-rule);
}
.faq-summary {
  padding: 18px 22px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-main);
  user-select: none;
}
.faq-summary::-webkit-details-marker {
  display: none;
}
.faq-summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--accent-terracotta);
  font-size: 18px;
}
.faq-item[open] .faq-summary::after {
  content: "-";
}
.faq-body {
  padding: 0 22px 20px 22px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  border-top: 1px dashed var(--border-rule);
  margin-top: 10px;
  padding-top: 14px;
}

/* Form Styles */
.form-container {
  background: var(--bg-card);
  border: 1px solid var(--border-rule);
  padding: 36px;
  max-width: 820px;
  margin: 0 auto;
}
.form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-main);
}
.form-label .req {
  color: var(--accent-terracotta);
  margin-left: 4px;
  font-size: 0.78rem;
}
.form-control {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-base);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  border-radius: 2px;
  transition: border-color 0.2s ease;
}
.form-control:focus {
  border-color: var(--accent-terracotta);
  outline: none;
}
.form-help {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 4px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.review-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-rule);
  padding: 20px;
  margin-bottom: 24px;
}
.review-row {
  display: flex;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.88rem;
}
.review-label {
  width: 160px;
  color: var(--text-muted);
  font-weight: 600;
  flex-shrink: 0;
}
.review-val {
  color: var(--text-main);
  word-break: break-all;
}
.notice-box {
  background: #100f0e;
  border: 1px solid var(--border-rule);
  padding: 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 20px;
}
.consent-wrapper {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 24px;
  font-size: 0.84rem;
  color: var(--text-muted);
}
.consent-wrapper input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--accent-terracotta);
  width: 18px;
  height: 18px;
  cursor: pointer;
}
.form-success-box {
  display: none;
  background: rgba(224, 99, 67, 0.08);
  border: 1px solid var(--accent-terracotta);
  padding: 36px;
  text-align: center;
}
.success-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--accent-terracotta);
  margin-bottom: 12px;
}
.success-desc {
  color: var(--text-main);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Footer */
.site-footer {
  background: #0e0d0c;
  border-top: 1px solid var(--border-rule);
  padding: 60px 0 30px 0;
  font-size: 0.86rem;
  color: var(--text-muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-title {
  font-size: 0.95rem;
  color: var(--text-main);
  font-weight: 700;
  margin-bottom: 14px;
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 8px;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--accent-terracotta);
}
.footer-bottom {
  border-top: 1px solid var(--border-rule);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(16, 15, 14, 0.98);
  border-top: 1px solid var(--border-accent);
  padding: 16px 24px;
  z-index: 9999;
  display: flex;
  justify-content: center;
}
.cookie-content {
  max-width: 1100px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cookie-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.cookie-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.cookie-actions .btn {
  padding: 8px 18px;
  min-height: 38px;
  font-size: 0.85rem;
}

/* Mandatory Mobile 640px Fold Guarantee (@media max-width: 768px) */
@media (max-width: 768px) {
  .site-header {
    height: 56px;
    padding: 0 16px;
  }
  .nav-links {
    display: none;
  }
  .hero-section {
    padding-top: 76px;
    padding-bottom: 24px;
  }
  .hero-title {
    font-size: clamp(1.55rem, 5.5vw, 1.85rem);
    line-height: 1.28;
    margin-bottom: 10px;
  }
  .hero-desc {
    font-size: 0.86rem;
    line-height: 1.45;
    margin-bottom: 14px;
  }
  .hero-cta-group {
    margin-bottom: 14px;
    gap: 10px;
  }
  .hero-cta-group .btn {
    min-height: 44px;
    padding: 10px 18px;
    font-size: 0.9rem;
    width: 100%;
  }
  .hero-panoramic-wrapper {
    padding: 4px;
  }
  .hud-top-bar, .hud-bottom-bar {
    font-size: 0.65rem;
    padding: 4px 8px;
  }
  .hero-panoramic-frame {
    max-height: 220px;
    aspect-ratio: 16/9;
    width: 100%;
  }
  .setups-grid, .pillars-grid, .boundaries-grid, .split-layout {
    grid-template-columns: 1fr;
  }
  .pipeline-steps {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .form-container {
    padding: 20px 16px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .cookie-content {
    flex-direction: column;
    gap: 12px;
  }
  .cookie-actions {
    width: 100%;
    justify-content: stretch;
  }
  .cookie-actions .btn {
    flex: 1;
  }
}

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