/* ============================================================
   blog.css — ブログ一覧・記事ページ専用スタイル
   Accent: Teal #0D9488 / #14B8A6
   ============================================================ */

/* ---- NAV active ---- */
.nav-menu a.active { color: #0D9488; font-weight: 700; }

/* ============================================================
   HERO
   ============================================================ */
.bl-hero {
  background: linear-gradient(135deg, #0F1923 0%, #1A3040 60%, #0B2B2B 100%);
  padding: 33px 24px 25px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.bl-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 25% 50%, rgba(13,148,136,.22) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 40%, rgba(20,184,166,.12) 0%, transparent 50%);
  pointer-events: none;
}

.bl-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
}

.bl-hero-eyebrow {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #14B8A6;
  border: 1px solid rgba(20,184,166,.4);
  border-radius: 20px;
  padding: 4px 16px;
  margin-bottom: 28px;
}

.bl-hero-title {
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -.03em;
  margin-bottom: 20px;
}

.bl-hero-title em {
  font-style: normal;
  background: linear-gradient(90deg, #14B8A6 0%, #34D399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bl-hero-lead {
  font-size: 15px;
  color: rgba(255,255,255,.65);
  line-height: 1.9;
}

/* ============================================================
   LIST SECTION
   ============================================================ */
.bl-list-section {
  background: #F2F6F8;
  padding: 72px 0 88px;
}

.bl-empty {
  text-align: center;
  color: #9CA3AF;
  font-size: 15px;
  padding: 80px 0;
}

/* ---- GRID ---- */
.bl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ---- CARD ---- */
.bl-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
}

.bl-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(13,148,136,.14);
}

.bl-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

/* サムネイル */
.bl-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #EEF3F6;
  position: relative;
  flex-shrink: 0;
}

.bl-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.bl-card:hover .bl-card-thumb img { transform: scale(1.05); }

.bl-card-cat {
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  color: #fff;
  background: #0D9488;
  padding: 3px 10px;
  border-radius: 20px;
}

/* カード本文 */
.bl-card-body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.bl-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.bl-card-date {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #9CA3AF;
}

.bl-card-no {
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: #C4D0D8;
  letter-spacing: .05em;
}

.bl-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #1E2A3B;
  line-height: 1.55;
  margin-bottom: 8px;
  letter-spacing: -.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bl-card-desc {
  font-size: 13px;
  color: #6B7280;
  line-height: 1.7;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 14px;
}

.bl-read-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #0D9488;
  margin-top: auto;
  transition: gap .2s;
}

.bl-card:hover .bl-read-more { gap: 8px; }

/* ============================================================
   PAGINATION
   ============================================================ */
.bl-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 64px;
}

.bl-page-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  font-size: 16px;
  color: #0D9488;
  background: #fff;
  border: 1px solid #C8DDE0;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
}

.bl-page-arrow:hover {
  background: #0D9488;
  color: #fff;
  border-color: #0D9488;
}

.bl-page-arrow--disabled {
  color: #D1D5DB;
  background: #F9FAFB;
  border-color: #E5E7EB;
  pointer-events: none;
}

.bl-page-nums {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bl-page-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  background: #fff;
  border: 1px solid #E5E7EB;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
}

.bl-page-num:hover {
  background: #F0FDFA;
  border-color: #0D9488;
  color: #0D9488;
}

.bl-page-num--current {
  background: #0D9488;
  color: #fff;
  border-color: #0D9488;
}

.bl-page-ellipsis {
  color: #9CA3AF;
  font-size: 14px;
  padding: 0 2px;
}

/* ============================================================
   ARTICLE PAGE
   ============================================================ */
.bl-article-wrap {
  background: #F0FAF8;
  padding: 52px 0 88px;
}

/* 2カラムレイアウト */
.bl-article-layout {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

.bl-article-main {
  flex: 1;
  min-width: 0;
  max-width: 720px;
  background: #fff;
  border-radius: 16px;
  padding: 40px 48px;
  box-shadow: 0 2px 16px rgba(0,0,0,.05);
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.bl-sidebar {
  width: 280px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  scrollbar-width: none;
}

.bl-sidebar::-webkit-scrollbar { display: none; }

/* ---- ウィジェット共通 ---- */
.bl-sw {
  background: #F8FAFB;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #E8EEF2;
}

.bl-sw-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #0D9488;
  font-family: 'Outfit', sans-serif;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #E0EBEA;
}

/* ---- 目次 ---- */
.bl-toc-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 4px;
}

.bl-toc-list::-webkit-scrollbar { width: 4px; }
.bl-toc-list::-webkit-scrollbar-track { background: #EEF3F5; border-radius: 4px; }
.bl-toc-list::-webkit-scrollbar-thumb { background: #0D9488; border-radius: 4px; }

.bl-toc-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #374151;
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 6px;
  line-height: 1.5;
  transition: background .15s, color .15s;
}

.bl-toc-item:hover {
  background: #E8F5F4;
  color: #0D9488;
}

.bl-toc-num {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: #0D9488;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ---- プロフィール ---- */
.bl-sw--profile { background: #fff; }

.bl-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.bl-profile-av {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #CCEBE9;
}

.bl-profile-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bl-profile-name {
  font-size: 15px;
  font-weight: 700;
  color: #1E2A3B;
}

.bl-profile-role {
  font-size: 11px;
  color: #0D9488;
  font-weight: 600;
}

.bl-profile-desc {
  font-size: 12px;
  color: #6B7280;
  line-height: 1.7;
  margin-top: 4px;
  text-align: left;
}

/* ---- 新着・関連記事リスト ---- */
.bl-sw-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bl-sw-item { list-style: none; }

.bl-sw-link {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
}

.bl-sw-thumb {
  width: 60px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  background: #DDE8EF;
}

.bl-sw-thumb--empty {
  background: linear-gradient(135deg, #DDE8EF, #C4D8E4);
}

.bl-sw-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.bl-sw-date {
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: #9CA3AF;
}

.bl-sw-ttl {
  font-size: 12px;
  font-weight: 600;
  color: #1E2A3B;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .15s;
}

.bl-sw-link:hover .bl-sw-ttl { color: #0D9488; }

/* ---- カテゴリ ---- */
.bl-cat-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bl-cat-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #0D9488;
  background: #E8F5F4;
  border: 1px solid #B2DEDA;
  border-radius: 20px;
  padding: 4px 12px;
  text-decoration: none;
  transition: background .15s, color .15s;
}

.bl-cat-tag:hover { background: #0D9488; color: #fff; border-color: #0D9488; }

.bl-cat-cnt {
  font-size: 10px;
  background: #0D9488;
  color: #fff;
  border-radius: 10px;
  padding: 0 5px;
  line-height: 1.6;
  transition: background .15s;
}

.bl-cat-tag:hover .bl-cat-cnt { background: rgba(255,255,255,.3); }

/* ---- サイドバーCTA ---- */
.bl-sw--cta {
  background: linear-gradient(135deg, #0D2B2B 0%, #134E4A 100%);
  border-color: transparent;
  text-align: center;
}

.bl-sw--cta .bl-sw-title { color: #14B8A6; border-color: rgba(20,184,166,.3); }

.bl-sw-cta-label {
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .15em;
  color: #14B8A6;
  margin-bottom: 8px;
}

.bl-sw-cta-text {
  font-size: 13px;
  color: rgba(255,255,255,.85);
  line-height: 1.7;
  margin-bottom: 16px;
}

.bl-sw-cta-btn {
  display: block;
  background: linear-gradient(90deg, #0D9488, #14B8A6);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity .2s;
}

.bl-sw-cta-btn:hover { opacity: .85; }

/* パンくず */
.bl-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #9CA3AF;
  margin-bottom: 40px;
}

.bl-breadcrumb a {
  color: #0D9488;
  font-weight: 600;
  text-decoration: none;
}

.bl-breadcrumb a:hover { text-decoration: underline; }

.bl-breadcrumb-sep { color: #D1D5DB; }

/* 記事ヘッダー */
.bl-article-header { margin-bottom: 32px; }

.bl-article-cat {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  color: #fff;
  background: #0D9488;
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.bl-article-title {
  font-size: clamp(22px, 3.5vw, 36px);
  font-weight: 900;
  color: #1E2A3B;
  line-height: 1.4;
  letter-spacing: -.02em;
  margin-bottom: 16px;
}

.bl-article-date {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #9CA3AF;
}

/* サムネイル */
.bl-article-fig {
  margin: 0 0 44px;
  border-radius: 12px;
  overflow: hidden;
}

.bl-article-fig img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---- 記事本文 ---- */
.bl-article-body {
  font-size: 16px;
  color: #1E2A3B;
  line-height: 2;
}

.bl-article-body h2 {
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 700;
  color: #1E2A3B;
  margin: 52px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #0D9488;
  letter-spacing: -.01em;
  scroll-margin-top: 88px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.bl-article-body h2::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3C!-- アンテナ --%3E%3Crect x='12' y='1' width='4' height='5' rx='1' fill='%2314B8A6'/%3E%3Ccircle cx='14' cy='1.5' r='2' fill='%230D9488'/%3E%3C!-- 頭部 --%3E%3Crect x='2' y='6' width='24' height='19' rx='4' fill='%230D9488'/%3E%3C!-- 耳ボルト --%3E%3Ccircle cx='2' cy='14' r='2' fill='%2314B8A6'/%3E%3Ccircle cx='26' cy='14' r='2' fill='%2314B8A6'/%3E%3C!-- 目 --%3E%3Ccircle cx='10' cy='13' r='3.5' fill='white'/%3E%3Ccircle cx='18' cy='13' r='3.5' fill='white'/%3E%3Ccircle cx='10.8' cy='13.8' r='1.5' fill='%230D9488'/%3E%3Ccircle cx='18.8' cy='13.8' r='1.5' fill='%230D9488'/%3E%3Ccircle cx='10' cy='11' r='.8' fill='white' opacity='.7'/%3E%3Ccircle cx='18' cy='11' r='.8' fill='white' opacity='.7'/%3E%3C!-- 口グリル --%3E%3Crect x='8' y='19' width='12' height='3.5' rx='1.75' fill='white' opacity='.75'/%3E%3Cline x1='11.5' y1='19' x2='11.5' y2='22.5' stroke='%230D9488' stroke-width='.9'/%3E%3Cline x1='14' y1='19' x2='14' y2='22.5' stroke='%230D9488' stroke-width='.9'/%3E%3Cline x1='16.5' y1='19' x2='16.5' y2='22.5' stroke='%230D9488' stroke-width='.9'/%3E%3C/svg%3E") no-repeat center / contain;
}

.bl-article-body h2:first-child { margin-top: 0; }

.bl-article-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: #374151;
  margin: 36px 0 12px;
  padding-left: 14px;
  border-left: 3px solid #14B8A6;
}

.bl-article-body p {
  margin-bottom: 16px;
}

.bl-article-body ul,
.bl-article-body ol {
  padding-left: 1.6em;
  margin-bottom: 24px;
}

.bl-article-body ul { list-style: disc; }
.bl-article-body ol { list-style: decimal; }

.bl-article-body li {
  margin-bottom: 8px;
  line-height: 1.8;
}

.bl-article-body strong { font-weight: 700; }

/* 記事下ナビ */
.bl-article-nav {
  margin-top: 72px;
  padding-top: 32px;
  border-top: 1px solid #E5E7EB;
}

.bl-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #0D9488;
  text-decoration: none;
  transition: gap .2s;
}

.bl-back-link:hover { gap: 10px; }

/* ============================================================
   CTA SECTION
   ============================================================ */
.bl-cta-section {
  background: linear-gradient(135deg, #0F2027 0%, #134E4A 50%, #0F2027 100%);
  padding: 96px 24px;
  text-align: center;
}

.bl-cta-inner { max-width: 600px; margin: 0 auto; }

.bl-cta-label {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #14B8A6;
  margin-bottom: 16px;
}

.bl-cta-title {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -.01em;
}

.bl-cta-sub {
  font-size: 14px;
  color: rgba(255,255,255,.65);
  margin-bottom: 40px;
  line-height: 1.8;
}

.bl-cta-btn {
  display: inline-block;
  background: linear-gradient(90deg, #0D9488, #14B8A6);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 16px 40px;
  border-radius: 8px;
  text-decoration: none;
  letter-spacing: .03em;
  transition: opacity .2s, transform .2s;
}

.bl-cta-btn:hover { opacity: .9; transform: translateY(-2px); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .bl-sidebar { width: 240px; }
}

@media (max-width: 900px) {
  .bl-grid { grid-template-columns: repeat(2, 1fr); }

  .bl-article-layout { flex-direction: column; }
  .bl-article-main {
    max-width: 100%;
    background: #fff;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
  }
  .bl-article-wrap .container {
    padding: 0;
  }
  .bl-sidebar { width: 100%; }
  .bl-toc-list { max-height: 200px; }
}

@media (max-width: 600px) {
  .bl-grid { grid-template-columns: 1fr; }
  .bl-hero { padding: 64px 20px 56px; }

  /* カードを横並びレイアウトに切り替え */
  .bl-card { height: auto; }
  .bl-card-link { flex-direction: row; }
  .bl-card-thumb {
    width: 120px;
    min-width: 120px;
    aspect-ratio: unset;
    height: auto;
    align-self: stretch;
  }
  .bl-card-body { padding: 12px 14px 14px; }
  .bl-card-title { font-size: 13px; -webkit-line-clamp: 3; }
  .bl-card-desc { display: none; }

  .bl-article-wrap { padding: 0 !important; background: #fff; }
  .bl-article-wrap .container { padding: 0 !important; }
  .bl-article-main { padding: 0 !important; }
  .bl-article-header { padding: 16px 16px 0; }
  .bl-article-fig { margin: 0 0 24px; border-radius: 0; }
  .bl-article-body { font-size: 15px; padding: 0 16px; }
  .bl-article-nav { margin-top: 40px; padding: 24px 16px 0; }
  .bl-adjacent { margin: 32px 16px 24px; }
  .bl-breadcrumb { padding: 16px 16px 0; margin-bottom: 20px; }
  .bl-sidebar { padding: 0 16px; }
  .bl-article-body h2 { font-size: 18px; }
  .bl-article-body h3 { font-size: 16px; }
}

/* ============================================================
   最近の記事（前後ナビ）
   ============================================================ */

.bl-adjacent {
  margin: 48px 0 32px;
}

.bl-adjacent-title {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  border-left: 4px solid #0D9488;
  padding-left: 10px;
  margin-bottom: 16px;
}

.bl-adjacent-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.bl-adjacent-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.bl-adjacent-card:hover {
  border-color: #0D9488;
  box-shadow: 0 2px 8px rgba(13,148,136,.15);
}

.bl-adjacent-card--next {
  flex-direction: row-reverse;
  text-align: right;
}

.bl-adjacent-thumb {
  width: 72px;
  height: 54px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.bl-adjacent-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.bl-adjacent-label {
  font-size: 11px;
  color: #0D9488;
  font-weight: 600;
}

.bl-adjacent-ttl {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 600px) {
  .bl-adjacent-grid { grid-template-columns: 1fr; }
  .bl-adjacent-card--next { flex-direction: row; text-align: left; }
}
