/* ============================================================
   SHARED STYLES — SNS Manager Documentation
   全ページ共通のデザイントークン・ヘッダー・フッター・ユーティリティ
   ============================================================ */

/* ── Design Tokens ── */
:root {
  --ink:       #111118;
  --ink-mid:   #44444e;
  --ink-soft:  #88889a;
  --paper:     #fafaf8;
  --paper2:    #f3f3ee;
  --accent:    #ff4b36;
  --accent-d:  #d93220;
  --accent-bg: #fff1ef;
  --green:     #1baa6d;
  --blue:      #3b82f6;
  --border:    rgba(17,17,24,0.1);
  --shadow-sm: 0 2px 12px rgba(17,17,24,0.08);
  --shadow-md: 0 8px 40px rgba(17,17,24,0.12);
  --r:         16px;
  --serif:     'Shippori Mincho B1', serif;
  --sans:      'Noto Sans JP', sans-serif;
  --mono:      'DM Mono', monospace;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }

/* ── Scroll Progress ── */
#progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: var(--accent);
  z-index: 300;
  transition: width 0.08s linear;
}

/* ── Header ── */
header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(250,250,248,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 0 5%;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.logo {
  font-family: var(--serif);
  font-size: 18px; font-weight: 800;
  color: var(--ink);
  display: flex; align-items: center; gap: 8px;
}
.logo-mark {
  width: 28px; height: 28px;
  background: var(--accent);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: #fff;
  font-family: var(--mono);
  font-weight: 500;
}
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  font-size: 13px; color: var(--ink-mid);
  font-weight: 500; transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-cta {
  background: var(--ink); color: #fff !important;
  padding: 8px 18px; border-radius: 100px;
  font-size: 13px; font-weight: 700;
  transition: background .2s;
}
.nav-cta:hover { background: var(--accent) !important; }

/* ── Hamburger ── */
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }

/* ── Footer ── */
footer {
  background: #0c0c10;
  color: rgba(255,255,255,.4);
  padding: 40px 0 28px;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 5%;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.footer-logo {
  font-family: var(--serif);
  font-size: 15px; font-weight: 800;
  color: #fff;
  display: flex; align-items: center; gap: 8px;
  text-decoration: none;
}
.footer-logo .logo-mark-sm {
  width: 24px; height: 24px;
  background: var(--accent);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: #fff;
  font-family: var(--mono);
}
.footer-links { display: flex; gap: 20px; }
.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,.4);
  text-decoration: none;
  transition: color .2s;
}
.footer-links a:hover { color: rgba(255,255,255,.8); }
.footer-copy {
  font-size: 12px; width: 100%;
  text-align: center; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.06);
  margin-top: 12px;
}

/* ── Reveal Animation ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Common Label ── */
.label {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-bg);
  padding: 4px 12px; border-radius: 100px;
  border: 1px solid rgba(255,75,54,.15);
  margin-bottom: 16px;
}

/* ── Common Info Box ── */
.info-box {
  display: flex; gap: 12px;
  padding: 16px 20px; border-radius: 12px;
  margin: 16px 0; font-size: 13.5px; line-height: 1.7;
}
.info-box.warn { background: #fffbeb; border: 1.5px solid #fcd34d; color: #92400e; }
.info-box.tip  { background: #ecfdf5; border: 1.5px solid #6ee7b7; color: #065f46; }
.info-box.note { background: #eff6ff; border: 1.5px solid #93c5fd; color: #1e3a5f; }
.info-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }

/* ── Responsive ── */
@media(max-width:768px) {
  .hamburger { display: block; }
  .nav-links {
    display: none !important;
    position: absolute; top: 60px; left: 0; right: 0;
    background: rgba(250,250,248,.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 20px 5%; gap: 0;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 40px rgba(17,17,24,0.12);
    z-index: 100; list-style: none;
  }
  .nav-links.open { display: flex !important; }
  .nav-links li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }
  .nav-links li:last-child { border: none; }
  .nav-cta { display: inline-block; margin-top: 8px; text-align: center; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 12px; }
}
