/* =====================================================
   AI Bridge – FBL  main.css
   mock.html のスタイルをベースに WordPress 用スタイルを追加
===================================================== */

/* ========== Reset & Base ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Noto Sans JP', -apple-system, sans-serif;
  color: #0b1220;
  line-height: 1.7;
  background: #fff;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ========== Header ========== */
.header {
  position: fixed; top: 0; left: 0; width: 100%;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #e5e7eb;
  z-index: 50;
  transition: background .3s;
}
.header.scrolled {
  background: rgba(255,255,255,.98);
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
}
.header-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  height: 76px; display: flex; align-items: center; justify-content: space-between;
}
.header-left { display: flex; align-items: center; gap: 48px; }
.logo { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: #0b1220; }

/* ナビ */
.nav { display: flex; gap: 4px; height: 76px; align-items: stretch; }
.nav li { display: flex; }
.nav a {
  padding: 0 16px; align-self: stretch;
  display: flex; flex-direction: column; justify-content: center; gap: 2px;
  font-size: 13px; font-weight: 600; color: #0b1220;
  border-bottom: 2px solid transparent;
  transition: border-color .15s;
}
.nav a:hover { border-bottom-color: #3acde0; }
.nav-en {
  font-family: 'Inter', sans-serif; font-size: 9px; color: #6b7280;
  letter-spacing: .12em; text-transform: uppercase; line-height: 1; display: block;
}

/* ヘッダー右 CTA */
.header-right { display: flex; align-items: center; height: 76px; }
.cta-sub {
  padding: 0 18px; height: 100%; display: inline-flex; align-items: center;
  font-size: 13px; font-weight: 600; color: #374151;
  border-left: 1px solid #e5e7eb;
  transition: color .15s;
}
.cta-sub:hover { color: #0b1220; }
.cta-main {
  padding: 0 24px; height: 100%; display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; color: #fff; background: #0b1220;
  transition: background .15s;
}
.cta-main:hover { background: #1f2937; }

/* ハンバーガーボタン */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: none; border: none; cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block; width: 100%; height: 2px; background: #0b1220;
  border-radius: 2px; transition: transform .25s, opacity .25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* モバイルナビ */
.mobile-nav {
  display: none; flex-direction: column;
  background: #fff; border-top: 1px solid #e5e7eb;
  padding: 16px 24px 24px;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav ul { display: flex; flex-direction: column; gap: 0; }
.mobile-nav li a {
  display: block; padding: 14px 0;
  font-size: 15px; font-weight: 600; color: #0b1220;
  border-bottom: 1px solid #f3f4f6;
  transition: color .15s;
}
.mobile-nav li a:hover { color: #3acde0; }
.mobile-ext { font-size: 12px; }
.mobile-cta-btn {
  display: inline-block; margin-top: 16px; padding: 14px 24px;
  background: #0b1220; color: #fff !important;
  font-weight: 700; border-radius: 8px; text-align: center;
  border-bottom: none !important;
}
.mobile-cta-btn:hover { background: #1f2937!important; color: #fff!important; }

/* ========== Hero ========== */
.hero {
  padding: 156px 24px 100px;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -20%; right: -10%; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(58,205,224,.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { max-width: 1280px; margin: 0 auto; position: relative; z-index: 1; text-align: center; }
.hero-tag {
  display: inline-block; padding: 6px 16px; background: #ecfeff; color: #0891b2;
  font-size: 12px; font-weight: 600; border-radius: 999px; margin-bottom: 24px;
  border: 1px solid #a5f3fc;
}
.hero h1 { font-size: 52px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.3; margin-bottom: 24px; }
.hero h1 .accent { color: #3acde0; }
.hero p { font-size: 17px; color: #4b5563; max-width: 660px; margin: 0 auto 40px; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ========== Buttons ========== */
.btn-primary {
  padding: 16px 36px; background: #0b1220; color: #fff;
  font-weight: 600; font-size: 14px; border-radius: 8px;
  transition: background .15s; display: inline-flex; align-items: center; gap: 10px;
}
.btn-primary:hover { background: #1f2937; }
.btn-secondary {
  padding: 16px 36px; background: #fff; color: #0b1220;
  font-weight: 600; font-size: 14px; border-radius: 8px;
  border: 1px solid #e5e7eb; transition: background .15s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-secondary:hover { background: #f9fafb; }

/* ========== Stats ========== */
.stats {
  max-width: 1280px; margin: 0 auto; padding: 64px 24px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px;
  border-bottom: 1px solid #e5e7eb;
}
.stat { text-align: center; }
.stat-num {
  font-family: 'Inter', sans-serif; font-size: 56px; font-weight: 700;
  color: #0b1220; letter-spacing: -0.03em; line-height: 1;
}
.stat-num .plus { color: #3acde0; }
.stat-label { margin-top: 12px; font-size: 14px; color: #6b7280; font-weight: 500; }

/* ========== Section Common ========== */
.section-head { text-align: center; margin-bottom: 64px; }
.section-en {
  font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 600; color: #3acde0;
  letter-spacing: .15em; text-transform: uppercase; margin-bottom: 12px;
}
.section-title { font-size: 36px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 16px; }
.section-desc { color: #6b7280; max-width: 600px; margin: 0 auto; font-size: 15px; }

/* ========== Service ========== */
.service { max-width: 1280px; margin: 0 auto; padding: 100px 24px; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  padding: 36px 28px; background: #fff; border: 1px solid #e5e7eb; border-radius: 16px;
  transition: all .3s;
}
.service-card:hover {
  border-color: #3acde0;
  box-shadow: 0 12px 32px rgba(58,205,224,.12);
  transform: translateY(-4px);
}
.service-icon {
  width: 56px; height: 56px; border-radius: 12px; margin-bottom: 24px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #ecfeff 0%, #cffafe 100%);
  font-size: 28px;
}
.service-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 12px; }
.service-card p { font-size: 14px; color: #6b7280; line-height: 1.8; }
.service-link {
  margin-top: 20px; font-size: 13px; color: #0891b2; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap .15s;
}
.service-link:hover { gap: 10px; }

/* ========== Topics ========== */
.topics-bg { background: #f8fafc; padding: 100px 24px; }
.topics { max-width: 1280px; margin: 0 auto; }
.topics-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 48px; }
.topic-btn {
  padding: 24px 16px; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
  text-align: center; transition: all .2s; cursor: pointer; text-decoration: none;
  color: inherit; display: block;
}
.topic-btn:hover { border-color: #3acde0; transform: translateY(-2px); }
.topic-icon { font-size: 28px; margin-bottom: 8px; }
.topic-jp { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.topic-en { font-family: 'Inter', sans-serif; font-size: 10px; color: #6b7280; letter-spacing: .1em; }

/* ========== Blog Section ========== */
.blog-section { max-width: 1280px; margin: 0 auto; padding: 100px 24px; }
.blog-tabs {
  display: flex; justify-content: center; gap: 8px; margin-bottom: 48px;
  flex-wrap: wrap; border: none; background: none;
}
.blog-tab {
  padding: 8px 20px; background: #fff; border: 1px solid #e5e7eb;
  border-radius: 999px; font-size: 13px; font-weight: 600; color: #6b7280;
  cursor: pointer; transition: all .2s; font-family: inherit;
}
.blog-tab.active { background: #0b1220; color: #fff; border-color: #0b1220; }
.blog-tab:hover:not(.active) { border-color: #3acde0; color: #0b1220; }

/* noteバッジ */
.note-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; background: #41c9b4; color: #fff;
  font-size: 11px; font-weight: 700; border-radius: 4px; margin-bottom: 12px;
}

/* ブログカード */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.blog-card {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden;
  transition: all .2s; display: flex; flex-direction: column; color: inherit;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.08); }
.blog-thumb {
  aspect-ratio: 16 / 9; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 15px; padding: 16px; text-align: center;
}
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; }
.t1 { background: linear-gradient(135deg, #3acde0 0%, #0891b2 100%); }
.t2 { background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%); }
.t3 { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.t4 { background: linear-gradient(135deg, #10b981 0%, #047857 100%); }
.t5 { background: linear-gradient(135deg, #ec4899 0%, #be185d 100%); }
.t6 { background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%); }
.blog-body { padding: 20px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.blog-meta { display: flex; align-items: center; gap: 12px; font-size: 12px; color: #6b7280; margin-bottom: 12px; }
.blog-meta .date { font-family: 'Inter', sans-serif; font-weight: 500; }
.blog-cat { font-size: 11px; font-weight: 600; color: #0891b2; background: #ecfeff; padding: 2px 8px; border-radius: 4px; }
.blog-title { font-size: 15px; font-weight: 700; line-height: 1.6; color: #0b1220; }
.blog-link { margin-top: auto; padding-top: 16px; font-size: 12px; color: #3acde0; font-weight: 600; }
.view-all { text-align: center; margin-top: 56px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* フィルタリング用 */
.blog-card[hidden] { display: none; }

/* ========== CTA ========== */
.cta-section {
  background: linear-gradient(135deg, #0b1220 0%, #1e293b 100%);
  padding: 80px 24px; text-align: center; color: #fff;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; top: -50%; left: -10%; width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(58,205,224,.2) 0%, transparent 70%);
  pointer-events: none;
}
.cta-section h2 { font-size: 36px; font-weight: 800; margin-bottom: 16px; position: relative; }
.cta-section p { font-size: 16px; color: #cbd5e1; margin-bottom: 32px; position: relative; }
.cta-section .btn-primary { background: #3acde0; color: #0b1220; position: relative; }
.cta-section .btn-primary:hover { background: #67e8f9; }

/* ========== Footer ========== */
.footer { background: #0b1220; color: #9ca3af; padding: 64px 24px 32px; }
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-logo { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 12px; }
.footer-desc { font-size: 13px; line-height: 1.8; }
.footer-sns { display: flex; gap: 12px; margin-top: 16px; }
.footer-sns a { color: #9ca3af; transition: color .15s; }
.footer-sns a:hover { color: #3acde0; }
.footer-col-title { color: #fff; font-weight: 700; margin-bottom: 16px; font-size: 13px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 13px; transition: color .15s; }
.footer-col a:hover { color: #3acde0; }
.footer-bottom { border-top: 1px solid #1f2937; padding-top: 24px; font-size: 12px; text-align: center; color: #6b7280; }

/* ========== 内部ページ共通レイアウト ========== */
.page-main { padding-top: 76px; }
.content-wrap, .archive-wrap {
  max-width: 860px; margin: 0 auto; padding: 64px 24px 100px;
}
.archive-wrap { max-width: 1280px; }
.archive-header { text-align: center; margin-bottom: 64px; }

/* ========== 記事詳細 ========== */
.single-header { margin-bottom: 40px; }
.single-cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.single-title { font-size: 32px; font-weight: 800; line-height: 1.4; margin-bottom: 16px; letter-spacing: -0.02em; }
.single-meta { font-family: 'Inter', sans-serif; font-size: 13px; color: #6b7280; margin-bottom: 32px; }
.single-thumb { border-radius: 12px; overflow: hidden; margin-bottom: 48px; }
.single-thumb img { width: 100%; }

/* 記事本文 */
.entry-content { line-height: 1.9; }
.entry-content h2 { font-size: 24px; font-weight: 800; margin: 56px 0 20px; padding-left: 16px; border-left: 4px solid #3acde0; }
.entry-content h3 { font-size: 20px; font-weight: 700; margin: 40px 0 16px; }
.entry-content p { margin-bottom: 24px; }
.entry-content ul, .entry-content ol { padding-left: 24px; margin-bottom: 24px; }
.entry-content li { margin-bottom: 8px; }
.entry-content blockquote { border-left: 4px solid #e5e7eb; padding: 16px 24px; color: #6b7280; margin: 32px 0; background: #f8fafc; border-radius: 0 8px 8px 0; }
.entry-content img { border-radius: 8px; margin: 32px auto; }
.entry-content a { color: #0891b2; text-decoration: underline; }
.entry-content code { background: #f3f4f6; padding: 2px 6px; border-radius: 4px; font-size: .9em; }
.entry-content pre { background: #1e293b; color: #e2e8f0; padding: 24px; border-radius: 8px; overflow-x: auto; margin: 32px 0; }
.entry-content pre code { background: none; padding: 0; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 32px 0; }
.entry-content th, .entry-content td { padding: 12px 16px; border: 1px solid #e5e7eb; font-size: 14px; }
.entry-content th { background: #f8fafc; font-weight: 700; }

/* 記事ナビ */
.single-footer { margin-top: 64px; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 32px; }
.post-nav-prev, .post-nav-next {
  padding: 20px 24px; border: 1px solid #e5e7eb; border-radius: 12px;
  display: flex; flex-direction: column; gap: 8px; color: #0b1220;
  transition: border-color .2s, box-shadow .2s;
}
.post-nav-prev:hover, .post-nav-next:hover { border-color: #3acde0; box-shadow: 0 4px 16px rgba(58,205,224,.1); }
.post-nav-next { text-align: right; }
.post-nav-label { font-size: 11px; color: #6b7280; font-family: 'Inter', sans-serif; letter-spacing: .05em; }
.post-nav-title { font-size: 14px; font-weight: 700; line-height: 1.5; }
.back-to-list { text-align: center; }

/* ページタイトル */
.page-title { font-size: 36px; font-weight: 800; margin-bottom: 40px; letter-spacing: -0.02em; }
.page-thumb { border-radius: 12px; overflow: hidden; margin-bottom: 48px; }
.page-content { line-height: 1.9; }

/* ========== Pagination ========== */
.pagination { margin-top: 64px; text-align: center; }
.pagination .nav-links { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers {
  padding: 8px 16px; border: 1px solid #e5e7eb; border-radius: 8px;
  font-size: 14px; font-weight: 600; color: #0b1220; transition: all .15s;
}
.pagination .page-numbers:hover { border-color: #3acde0; color: #0891b2; }
.pagination .page-numbers.current { background: #0b1220; color: #fff; border-color: #0b1220; }
.no-posts { text-align: center; color: #6b7280; padding: 64px 0; font-size: 16px; }

/* アーカイブグリッド */
.archive-grid { margin-top: 0; }

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .topics-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  /* ヘッダー */
  .nav, .cta-sub { display: none; }
  .nav-toggle { display: flex; }
  .cta-main { padding: 0 16px; font-size: 12px; }

  /* Hero */
  .hero { padding: 120px 24px 64px; }
  .hero h1 { font-size: 30px; }
  .hero p { font-size: 15px; }

  /* Stats */
  .stats { grid-template-columns: 1fr; gap: 32px; padding: 48px 24px; }
  .stat-num { font-size: 44px; }

  /* Service */
  .service { padding: 64px 24px; }
  .service-grid { grid-template-columns: 1fr; }

  /* Topics */
  .topics-bg { padding: 64px 24px; }
  .topics-grid { grid-template-columns: repeat(2, 1fr); }

  /* Blog */
  .blog-section { padding: 64px 24px; }
  .blog-grid { grid-template-columns: 1fr; }
  .section-title, .cta-section h2 { font-size: 28px; }

  /* CTA */
  .cta-section { padding: 60px 24px; }

  /* Footer */
  .footer-top { grid-template-columns: 1fr; }

  /* 内部ページ */
  .single-title { font-size: 24px; }
  .post-nav { grid-template-columns: 1fr; }
  .page-title { font-size: 28px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 26px; }
  .topics-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-tabs { gap: 6px; }
  .blog-tab { padding: 6px 14px; font-size: 12px; }
}
