/* ====== NBS Project Page · Common Stylesheet ====== */
:root {
  --hb-gold: #BFA24B;
  --hb-gold-light: #D4B85F;
  --hb-gold-deep: #A07650;
  --hb-black: #0A0A0A;
  --hb-bg: #FAFAF8;
  --hb-bg-card: #FFFFFF;
  --hb-bg-section: #F4F2EC;
  --hb-bg-row-alt: #FBFAF6;
  --hb-gray-900: #1A1A1A;
  --hb-gray-700: #4A4A4A;
  --hb-gray-500: #8A8A8A;
  --hb-gray-300: #D5D5D0;
  --hb-gray-200: #E5E5E0;
  --hb-gray-100: #EEEEE8;
  --hb-teal: #2D7A7A;
  --hb-navy: #1E3A5F;
  --hb-slate: #6B7FA0;
  --hb-hubspot: #FF7A59;
  --status-good: #2D7A4F;
  --status-good-bg: #E0F0E5;
  --status-warn: #B68A2B;
  --status-warn-bg: #F4E8C8;
  --status-pending: #6B7891;
  --status-pending-bg: #E2E6EC;
  --status-bad: #C04A4A;
  --status-bad-bg: #F4DADA;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Noto Sans JP', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { background: var(--hb-bg); color: var(--hb-gray-900); font-family: var(--font-body); font-weight: 400; line-height: 1.7; font-size: 14px; -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; padding: 24px 0; }
a { color: var(--hb-gold-deep); }
a:hover { color: var(--hb-gold); }

.topbar {
  position: sticky; top: 0; z-index: 10;
  max-width: 1080px; margin: 0 auto 24px;
  padding: 12px 28px;
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(6px);
  border: 1px solid var(--hb-gray-200);
  border-radius: 9999px;
  display: flex; align-items: center; justify-content: space-between;
}
.topbar-brand {
  font-family: var(--font-heading); font-weight: 900; font-size: 16px;
  background: linear-gradient(135deg, var(--hb-gold), var(--hb-gold-deep));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.topbar-nav { display: flex; gap: 18px; align-items: center; }
.topbar-link { font-family: var(--font-mono); font-size: 11.5px; color: var(--hb-gray-700); text-decoration: none; letter-spacing: 0.04em; }
.topbar-link:hover { color: var(--hb-gold-deep); }
.topbar-back { font-family: var(--font-mono); font-size: 11.5px; color: var(--hb-gold-deep); text-decoration: none; letter-spacing: 0.04em; }

.page {
  max-width: 1080px; margin: 0 auto;
  padding: 56px 56px 72px;
  background: var(--hb-bg-card);
  border: 1px solid var(--hb-gray-200);
  border-radius: 4px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.04);
}

/* HEADER */
.proj-header {
  display: grid; grid-template-columns: 1fr auto; gap: 24px;
  margin-bottom: 28px; padding-bottom: 24px;
  border-bottom: 2px solid var(--hb-black);
}
.proj-pillar {
  display: inline-block; font-family: var(--font-mono);
  font-size: 11px; padding: 4px 10px;
  border-radius: 12px; letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.proj-pillar.p01 { background: rgba(45, 122, 122, 0.1); color: var(--hb-teal); }
.proj-pillar.p02 { background: rgba(255, 122, 89, 0.1); color: var(--hb-hubspot); }
.proj-pillar.p03 { background: rgba(30, 58, 95, 0.1); color: var(--hb-navy); }
.proj-pillar.p04 { background: rgba(107, 74, 139, 0.12); color: #6B4A8B; }
.proj-title {
  font-family: var(--font-heading); font-weight: 900; font-size: 38px;
  line-height: 1.15; color: var(--hb-black); letter-spacing: 0.01em; margin-bottom: 8px;
}
.proj-sub { font-family: var(--font-body); font-size: 13.5px; color: var(--hb-gray-700); line-height: 1.7; }
.proj-meta { text-align: right; }
.proj-status-badge {
  display: inline-block; padding: 4px 12px;
  font-family: var(--font-heading); font-weight: 700; font-size: 11px;
  border-radius: 12px; letter-spacing: 0.06em; margin-bottom: 10px;
}
.proj-status-badge.done { background: var(--status-good-bg); color: var(--status-good); }
.proj-status-badge.progress { background: var(--status-warn-bg); color: var(--status-warn); }
.proj-status-badge.pending { background: var(--status-pending-bg); color: var(--status-pending); }

.proj-meta-grid { font-size: 12px; color: var(--hb-gray-700); line-height: 1.8; }
.proj-meta-grid dt { display: inline-block; font-family: var(--font-mono); font-size: 10.5px; color: var(--hb-gray-500); letter-spacing: 0.04em; min-width: 60px; }
.proj-meta-grid dd { display: inline-block; margin-left: 6px; }
.proj-meta-grid br + dt { margin-top: 2px; }

/* INTRO */
.proj-intro {
  background: rgba(45, 122, 122, 0.08);
  border-left: 3px solid var(--hb-teal);
  border-radius: 6px; padding: 14px 20px; margin-bottom: 32px;
}
.proj-intro-h { font-family: var(--font-heading); font-weight: 700; font-size: 13px; color: var(--hb-teal); margin-bottom: 6px; }
.proj-intro-p { font-size: 12.5px; line-height: 1.85; }
.proj-intro-p strong { color: var(--hb-black); }

/* PROGRESS BAR */
.proj-progress-row {
  display: flex; align-items: center; gap: 14px;
  margin-top: 10px;
}
.proj-progress-bar {
  flex: 1; height: 8px; background: var(--hb-gray-200);
  border-radius: 4px; overflow: hidden;
}
.proj-progress-bar-fill {
  height: 100%; background: linear-gradient(90deg, var(--hb-gold), var(--hb-gold-deep));
  border-radius: 4px;
}
.proj-progress-pct {
  font-family: var(--font-heading); font-weight: 900; font-size: 20px;
  color: var(--hb-gold-deep); min-width: 60px; text-align: right;
}

/* SECTION */
.section { margin-bottom: 36px; }
.section-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--hb-gray-200); }
.section-num { font-family: var(--font-heading); font-weight: 900; font-size: 22px; color: var(--hb-gold-deep); line-height: 1; }
.section-title { font-family: var(--font-heading); font-weight: 800; font-size: 20px; color: var(--hb-black); flex: 1; }
.section-sub { font-family: var(--font-mono); font-size: 11px; color: var(--hb-gray-500); letter-spacing: 0.04em; }

/* TASKS */
.task-list { list-style: none; }
.task-item {
  display: grid; grid-template-columns: 80px 1fr auto; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--hb-gray-200);
  align-items: center;
}
.task-item:last-child { border-bottom: none; }
.task-status {
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  padding: 3px 9px; border-radius: 12px; letter-spacing: 0.04em;
  text-align: center;
}
.task-status.done { background: var(--status-good-bg); color: var(--status-good); }
.task-status.progress { background: var(--status-warn-bg); color: var(--status-warn); }
.task-status.pending { background: var(--status-pending-bg); color: var(--status-pending); }
.task-status.attention { background: var(--status-bad-bg); color: var(--status-bad); }
.task-text { font-size: 13px; color: var(--hb-gray-900); }
.task-text strong { color: var(--hb-black); }
.task-due { font-family: var(--font-mono); font-size: 10.5px; color: var(--hb-gray-500); }

/* CARDS GRID */
.card-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.card-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.asset-card {
  background: var(--hb-bg-card); border: 1px solid var(--hb-gray-200);
  border-top: 3px solid var(--hb-gold); border-radius: 4px;
  padding: 14px 16px; text-decoration: none; color: inherit;
  display: block; transition: all 0.15s;
}
.asset-card:hover { border-color: var(--hb-gold); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.04); }
.asset-card-tag {
  display: inline-block; font-family: var(--font-mono); font-size: 10px;
  padding: 2px 8px; border-radius: 12px;
  background: var(--hb-bg-section); color: var(--hb-gray-700);
  letter-spacing: 0.04em; margin-bottom: 8px;
}
.asset-card-tag.figma { background: rgba(162, 89, 255, 0.1); color: #6D2FCC; }
.asset-card-tag.gdoc { background: rgba(66, 133, 244, 0.1); color: #1A5FCB; }
.asset-card-tag.gsheet { background: rgba(15, 157, 88, 0.1); color: #0B7C42; }
.asset-card-tag.gslide { background: rgba(244, 180, 0, 0.1); color: #B58300; }
.asset-card-tag.notion { background: rgba(0, 0, 0, 0.06); color: var(--hb-gray-900); }
.asset-card-tag.local { background: rgba(191, 162, 75, 0.12); color: var(--hb-gold-deep); }
.asset-card-title { font-family: var(--font-heading); font-weight: 700; font-size: 13px; color: var(--hb-black); margin-bottom: 4px; line-height: 1.35; }
.asset-card-desc { font-size: 11.5px; line-height: 1.6; color: var(--hb-gray-700); }
.asset-card-meta { font-family: var(--font-mono); font-size: 10px; color: var(--hb-gray-500); margin-top: 6px; }

/* MILESTONES */
.milestones { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.milestone {
  display: grid; grid-template-columns: 110px 1fr auto; gap: 14px; align-items: center;
  background: var(--hb-bg-card); border: 1px solid var(--hb-gray-200);
  border-radius: 4px; padding: 10px 14px;
}
.milestone.done { background: rgba(45, 122, 79, 0.05); border-color: rgba(45, 122, 79, 0.3); }
.milestone-date { font-family: var(--font-mono); font-size: 11px; color: var(--hb-gold-deep); font-weight: 600; }
.milestone-text { font-size: 13px; color: var(--hb-gray-900); }
.milestone-text strong { color: var(--hb-black); }
.milestone-badge { font-family: var(--font-mono); font-size: 10px; padding: 3px 9px; border-radius: 12px; }
.milestone.done .milestone-badge { background: var(--status-good-bg); color: var(--status-good); }
.milestone-badge.progress { background: var(--status-warn-bg); color: var(--status-warn); }
.milestone-badge.pending { background: var(--status-pending-bg); color: var(--status-pending); }

/* CTA LINK ROW */
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px;
  background: var(--hb-bg-card); border: 1px solid var(--hb-gray-300);
  border-radius: 9999px; font-size: 12.5px; font-weight: 600;
  color: var(--hb-black); text-decoration: none; transition: all 0.15s;
}
.cta:hover { border-color: var(--hb-gold); color: var(--hb-gold-deep); }
.cta.primary {
  background: linear-gradient(135deg, var(--hb-gold), var(--hb-gold-deep));
  color: #fff; border-color: transparent;
}

/* FOOTER */
.proj-footer {
  margin-top: 48px; padding-top: 20px;
  border-top: 2px solid var(--hb-black);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  font-family: var(--font-mono); font-size: 11px; color: var(--hb-gray-500);
}
.proj-footer strong { color: var(--hb-gold-deep); font-weight: 700; }

/* EMPTY STATE */
.empty-note {
  background: var(--hb-bg-section); border: 1px dashed var(--hb-gray-300);
  border-radius: 6px; padding: 16px 20px;
  font-size: 12.5px; color: var(--hb-gray-700); line-height: 1.7;
}
.empty-note strong { color: var(--hb-black); }
