/* ============================================================
   TechCompass - 共通スタイル
   ブランドカラー: Teal × Dark
   ============================================================ */

:root {
  --teal:        #0d9488;
  --teal-light:  #ccfbf1;
  --teal-dark:   #0a7a6e;
  --dark:        #111111;
  --dark-2:      #1f2937;
  --gray-border: #e5e7eb;
  --text:        #1a1a1a;
  --text-muted:  #6b7280;
  --radius-md:   10px;
  --container:   720px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Hiragino Sans',
    'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.75;
  font-size: 16px;
}
a { color: inherit; text-decoration: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }

/* ---- Global Nav ---- */
#global-nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--dark);
  padding: 0 28px;
  display: flex; justify-content: space-between; align-items: center;
  height: 60px;
}
.nav-logo { color: #fff; font-size: 16px; font-weight: 700; letter-spacing: 0.02em; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: #9ca3af; font-size: 14px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: #fff; }

.btn-nav {
  background: var(--teal); color: #fff;
  padding: 8px 20px; border-radius: 6px;
  font-size: 13px; font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s;
}
.btn-nav:hover { background: var(--teal-dark); }

/* ハンバーガー (モバイル) */
.nav-hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: #9ca3af; border-radius: 2px;
  transition: all 0.2s;
}

#nav-mobile {
  display: none;
  position: fixed; top: 60px; left: 0; right: 0;
  background: var(--dark);
  padding: 16px 28px 24px;
  flex-direction: column; gap: 0;
  border-top: 1px solid #222;
  z-index: 99;
}
#nav-mobile.open { display: flex; }
#nav-mobile a {
  color: #9ca3af; font-size: 15px; font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid #222;
  transition: color 0.2s;
}
#nav-mobile a:hover { color: #fff; }
#nav-mobile .btn-nav {
  margin-top: 12px; text-align: center;
  border-bottom: none; padding: 10px 20px;
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}

/* ---- Global Footer ---- */
#global-footer {
  background: #0a0a0a;
  color: var(--text-muted);
  padding: 28px;
  border-top: 1px solid var(--dark-2);
}
.footer-inner {
  max-width: var(--container); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  font-size: 12px;
}
.footer-links { display: flex; gap: 20px; }
#global-footer a { color: #6b7280; }
#global-footer a:hover { color: #9ca3af; }

@media (max-width: 520px) {
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}

/* ---- ボタン ---- */
.btn-primary {
  display: inline-block;
  background: var(--teal); color: #fff;
  padding: 16px 36px; border-radius: 8px;
  font-size: 15px; font-weight: 700;
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--teal-dark); }

.btn-ghost {
  display: inline-block;
  background: transparent; color: #fff;
  padding: 15px 32px; border-radius: 8px;
  font-size: 15px; font-weight: 600;
  border: 1.5px solid rgba(255,255,255,0.35);
  transition: border-color 0.2s, background 0.2s;
}
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.06); }

/* ---- セクション共通 ---- */
section { padding: 80px 0; }
.section-alt { background: #f9fafb; }

.section-tag {
  display: block; font-size: 11px; font-weight: 700;
  color: var(--teal); letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(20px, 3vw, 24px);
  font-weight: 800; margin-bottom: 36px; line-height: 1.4;
}

/* ---- ページヘッダー (内部ページ共通) ---- */
.page-header {
  background: #f0fdfa;
  padding: 64px 28px 56px;
  text-align: center;
}
.page-tag {
  display: inline-block;
  color: var(--teal); font-size: 12px; font-weight: 700; letter-spacing: 0.06em;
  border: 1px solid #99f6e4; background: #f0fdfa;
  padding: 4px 12px; border-radius: 20px;
  margin-bottom: 20px;
}
.page-header h1 {
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 800; margin-bottom: 16px; line-height: 1.4;
}
.page-header p { font-size: 15px; color: #4b5563; max-width: 480px; margin: 0 auto; }

/* ---- 未確定項目プレースホルダー ---- */
.placeholder-text {
  color: #f59e0b;
  background: #fef9c3;
  border: 1px dashed #fde68a;
  border-radius: 4px;
  padding: 0 6px;
  font-size: 0.9em;
}
