/* ============================================================
   blog.css — ブログ一覧・記事ページ専用スタイル
   CYCOS JAPAN デザインシステム準拠
   Accent: #e67e22 / Navy: #2c3e50
   ============================================================ */

/* ============================================================
   CONTAINER（中央寄せ共通）
   ============================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

/* ============================================================
   HERO
   ============================================================ */
.bl-hero {
  background: linear-gradient(135deg, #0d1b2a 0%, #152540 60%, #0f2035 100%);
  padding: 100px 24px 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-top: 73px; /* fixed header offset */
}

.bl-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 25% 50%, rgba(230,126,34,.12) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 40%, rgba(230,126,34,.07) 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-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #e67e22;
  border: 1px solid rgba(230,126,34,.4);
  border-radius: 20px;
  padding: 4px 16px;
  margin-bottom: 24px;
}

.bl-hero-title {
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  letter-spacing: -.01em;
  margin-bottom: 16px;
}

.bl-hero-title em {
  font-style: normal;
  color: #e67e22;
}

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

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

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

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

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

.bl-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(230,126,34,.15);
}

.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: #e8ecf0;
  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-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  color: #fff;
  background: #e67e22;
  padding: 3px 10px;
  border-radius: 20px;
}

/* カード本文 */
.bl-card-body {
  padding: 12px 14px 16px;
  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-size: 11px;
  font-weight: 600;
  color: #9CA3AF;
}

.bl-card-no {
  font-size: 10px;
  font-weight: 700;
  color: #c8d0d8;
  letter-spacing: .05em;
}

.bl-card-title {
  font-size: 13px;
  font-weight: 700;
  color: #2c3e50;
  line-height: 1.5;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.bl-read-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #e67e22;
  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: #e67e22;
  background: #fff;
  border: 1px solid #dce0e4;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
}

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

.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-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: #fff5ee;
  border-color: #e67e22;
  color: #e67e22;
}

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

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

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

/* 2カラムレイアウト */
.bl-article-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  max-width: 1100px;
  margin: 0 auto;
}

.bl-article-main {
  flex: 1;
  min-width: 0;
  max-width: 740px;
  background: #fff;
  border-radius: 12px;
  padding: 40px 48px;
  box-shadow: 0 2px 14px rgba(44,62,80,.07);
}

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

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

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

.bl-sw-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #e67e22;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e8ecf0;
}

/* ---- 目次 ---- */
.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: #e67e22; 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: #fff5ee;
  color: #e67e22;
}

.bl-toc-num {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: #e67e22;
  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 #fde8d4;
}

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

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

.bl-profile-role {
  font-size: 11px;
  color: #e67e22;
  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-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.bl-sw-date {
  font-size: 10px;
  font-weight: 600;
  color: #9CA3AF;
}

.bl-sw-ttl {
  font-size: 12px;
  font-weight: 600;
  color: #2c3e50;
  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: #e67e22; }

/* ---- カテゴリ ---- */
.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: #e67e22;
  background: #fff5ee;
  border: 1px solid #fad4b0;
  border-radius: 20px;
  padding: 4px 12px;
  text-decoration: none;
  transition: background .15s, color .15s;
}

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

.bl-cat-cnt {
  font-size: 10px;
  background: #e67e22;
  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, #0d1b2a 0%, #152540 100%);
  border-color: transparent;
  text-align: center;
}

.bl-sw--cta .bl-sw-title { color: #e67e22; border-color: rgba(230,126,34,.25); }

.bl-sw-cta-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .15em;
  color: #e67e22;
  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: #e67e22;
  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: #e67e22;
  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-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  color: #fff;
  background: #e67e22;
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.bl-article-title {
  font-size: clamp(22px, 3.5vw, 34px);
  font-weight: 700;
  color: #2c3e50;
  line-height: 1.45;
  margin-bottom: 16px;
}

.bl-article-date {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #9CA3AF;
}

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

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

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

.bl-article-body h2 {
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 700;
  color: #2c3e50;
  margin: 52px 0 16px;
  padding: 14px 18px;
  background: #f4f6f8;
  border-left: 4px solid #e67e22;
  border-radius: 0 6px 6px 0;
  letter-spacing: -.01em;
  scroll-margin-top: 90px;
  line-height: 1.4;
}

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

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

.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: #e67e22;
  text-decoration: none;
  transition: gap .2s;
}

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

/* ============================================================
   最近の記事（前後ナビ）
   ============================================================ */
.bl-adjacent {
  margin: 48px 0 32px;
}

.bl-adjacent-title {
  font-size: 16px;
  font-weight: 700;
  color: #2c3e50;
  border-left: 4px solid #e67e22;
  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: #e67e22;
  box-shadow: 0 2px 8px rgba(230,126,34,.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: #e67e22;
  font-weight: 600;
}

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

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  .bl-grid { grid-template-columns: repeat(3, 1fr); }
}

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

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

  .bl-article-layout { flex-direction: column; }
  .bl-article-main {
    max-width: 100%;
    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: 767px) {
  .bl-grid { grid-template-columns: 1fr !important; gap: 16px; }
  .bl-hero { padding: 80px 20px 56px; }

  .bl-card { height: auto; }
  .bl-card-link { flex-direction: column; }
  .bl-card-thumb {
    width: 100%;
    min-width: unset;
    aspect-ratio: 16/9;
    height: auto;
    align-self: auto;
  }
  .bl-card-body { padding: 14px 16px 16px; }
  .bl-card-title { font-size: 14px; -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: 17px; }
  .bl-article-body h3 { font-size: 15px; }

  .bl-adjacent-grid { grid-template-columns: 1fr; }
  .bl-adjacent-card--next { flex-direction: row; text-align: left; }
}
