/* =====================================================
   FabLab Oita — style.css
   共通スタイル / 全ページで読み込む
===================================================== */

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

:root {
  --bg:        #f2f2f2;
  --bg-dark:   #0a0a0a;
  --text:      #1a1a1a;
  --muted:     #888;
  --lighter:   #aaa;
  --border:    #ddd;
  --white:     #fff;
  --error:     #c0392b;
  --font-mono: 'Space Mono', monospace;
  --font-body: 'Noto Sans JP', sans-serif;
}

html {
  scroll-behavior: smooth;
  max-width: 1500px;
  margin: 0 auto;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

/* =====================
   NAV
===================== */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 3rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
}
.nav-logo {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  color: var(--text);
  text-decoration: none;
}
.nav-logo span { color: var(--lighter); }
.nav-logo img { width: 60px; height: auto; display: block; }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 200;
}
.nav-burger span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}
.nav-burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* =====================
   SECTION COMMON
===================== */
.section {
  padding: 4.5rem 3rem;
  border-bottom: 1px solid var(--border);
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2.5rem;
}
.section-num {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--lighter);
  letter-spacing: 0.15em;
  margin-bottom: 0.3rem;
}
.section-title {
  font-family: var(--font-mono);
  font-size: 1.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
}
.section-more {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--lighter);
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s;
}
.section-more:hover { color: var(--text); }
.section-desc {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 0.75rem;
}

/* =====================
   FOOTER
===================== */
.footer {
  padding: 2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
}
.footer-logo {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--lighter);
  letter-spacing: 0.12em;
}
.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--lighter);
}

/* =====================
   RESPONSIVE / HAMBURGER
===================== */
@media (max-width: 768px) {
  .nav { padding: 1rem 1.5rem; }
  .nav-burger { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    z-index: 150;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1rem; letter-spacing: 0.15em; }
  .section { padding: 3rem 1.5rem; }
  .footer { padding: 1.5rem; flex-direction: column; gap: 0.5rem; text-align: center; }
}
