/* ===== Cool & Category-Defined Blog Style ===== */
.blog-hero {
  background: var(--hero-bg);
  padding: 110px 0 45px;
  color: #fff;
}

.blog-hero h1 {
  font-size: clamp(2.2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.blog-hero p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.98rem;
  max-width: 620px;
  margin: 0 auto;
}

.blog-main-section, .article-section {
  background: #F8FAFC;
}

/* レイアウト幅制限 */
.blog-layout, .article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 36px;
  max-width: 1080px;
  margin: 0 auto;
}

@media (max-width: 860px) {
  .blog-layout, .article-layout {
    grid-template-columns: 1fr;
  }
}

/* 著者紹介エリア */
.author-profile-box {
  background: #FFFFFF;
  border: 1px solid rgba(49, 113, 184, 0.15);
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 32px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.author-profile-inner {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

@media (max-width: 640px) {
  .author-profile-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

.author-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, #EFF8FF 0%, #D6EDFB 100%);
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 2.2rem;
}

.author-info-body {
  flex: 1;
}

.author-title-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(49, 113, 184, 0.08);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.author-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}

.author-name span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-sub);
  margin-left: 8px;
}

.author-bio {
  font-size: 0.88rem;
  color: var(--text-sub);
  line-height: 1.7;
}

.author-avatar-svg {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(49, 113, 184, 0.12);
  overflow: hidden;
}

.author-avatar-svg svg {
  width: 100%;
  height: 100%;
}

/* カテゴリーフィルターバー */
.category-filter-bar {
  max-width: 1080px;
  margin: -20px auto 32px;
  background: #FFFFFF;
  border: 1px solid rgba(49, 113, 184, 0.12);
  border-radius: 12px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.filter-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.05em;
  margin-right: 6px;
}

.filter-tab {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  color: var(--text-sub);
  background: #F1F5F9;
  transition: all 0.2s;
  text-decoration: none;
}

.filter-tab:hover, .filter-tab.active {
  background: var(--primary);
  color: #FFFFFF;
}

.filter-tab span {
  font-size: 0.75rem;
  opacity: 0.8;
}

/* カテゴリー別タグ・バッジ定義 */
.card-tag-group {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.card-tag {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.tag-aio { background: #E0F2FE; color: #0284C7; }
.tag-rpa { background: #F0FDFA; color: #0D9488; }
.tag-label { background: #FEF3C7; color: #D97706; }
.tag-spec { background: #EEF2FF; color: #4F46E5; }

.section-title-cool {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 20px;
  letter-spacing: 0.05em;
  display: flex;
  flex-direction: column;
}

.section-title-cool span {
  font-size: 0.8rem;
  color: var(--text-sub);
  font-weight: 500;
}

.cool-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 22px 24px;
  margin-bottom: 20px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.cool-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(49, 113, 184, 0.1);
  border-color: rgba(49, 113, 184, 0.3);
}

.border-aio { border-top: 3px solid #0284C7; }
.border-rpa { border-top: 3px solid #0D9488; }
.border-spec { border-top: 3px solid #4F46E5; }

.cool-card h3 {
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 8px;
}

.cool-card h3 a {
  color: var(--text);
  text-decoration: none;
}

.cool-card h3 a:hover {
  color: var(--primary);
}

.cool-card p {
  font-size: 0.88rem;
  color: var(--text-sub);
  line-height: 1.65;
  margin-bottom: 14px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-sub);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 10px;
}

.link-arrow {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.archive-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.archive-item {
  display: block;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  padding: 16px 20px;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.archive-item:hover {
  background: #F1F5F9;
  border-color: var(--primary);
}

.archive-header {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-sub);
  margin-bottom: 6px;
}

.archive-item h4 {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 700;
  margin-bottom: 4px;
}

.archive-item p {
  font-size: 0.83rem;
  color: var(--text-sub);
  line-height: 1.5;
}

/* サイドバー Widget & ロゴ潰れ防止指定 */
.sidebar-widget {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  padding: 20px 22px;
  margin-bottom: 20px;
}

.widget-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 12px;
}

.sidebar-logo-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  display: block;
}

.widget-cta {
  background: linear-gradient(145deg, #EFF8FF 0%, #D6EDFB 100%);
  border: 1px solid rgba(49, 113, 184, 0.2);
  text-align: center;
}

.widget-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding-bottom: 8px;
}

.widget-category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget-category-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.83rem;
  color: var(--text-sub);
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  text-decoration: none;
  transition: color 0.2s, font-weight 0.2s;
}

.widget-category-list li a.active, .widget-category-list li a:hover {
  color: var(--primary);
  font-weight: 700;
}

.cat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
}

.dot-aio { background: #0284C7; }
.dot-rpa { background: #0D9488; }
.dot-label { background: #D97706; }
.dot-spec { background: #4F46E5; }

.breadcrumb {
  font-size: 0.78rem;
  color: var(--text-sub);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
}

.article-body {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  padding: 32px 28px;
}

.article-header h1 {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text);
  margin-top: 8px;
  margin-bottom: 20px;
  line-height: 1.4;
}

.article-summary-box {
  background: linear-gradient(135deg, rgba(49, 113, 184, 0.04) 0%, rgba(143, 211, 245, 0.1) 100%);
  border: 1px solid rgba(49, 113, 184, 0.18);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0 32px;
}

.summary-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 10px;
}

.article-summary-box ul {
  padding-left: 18px;
  list-style: disc;
}

.article-summary-box li {
  font-size: 0.88rem;
  line-height: 1.65;
  margin-bottom: 6px;
  color: var(--text);
}

.article-body h2 {
  font-size: 1.2rem;
  color: var(--text);
  border-left: 3px solid var(--primary);
  padding-left: 10px;
  margin: 32px 0 14px;
}

.article-body h3 {
  font-size: 1.05rem;
  color: var(--primary);
  margin: 20px 0 10px;
}

.article-body p {
  font-size: 0.9rem;
  color: var(--text-sub);
  line-height: 1.8;
  margin-bottom: 16px;
}

.article-notice {
  background: #F8FAFC;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 16px 20px;
  font-size: 0.8rem;
  color: var(--text-sub);
  line-height: 1.6;
  margin-top: 40px;
}

/* プロフィール写真（正方形・シャープな角丸仕上げ） */
.author-avatar-img-wrap {
  width: 100px;
  height: 100px;
  border-radius: 12px; /* きれいな正方形枠（角丸仕上げ） */
  border: 2px solid var(--primary);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(49, 113, 184, 0.15);
  background: #FFFFFF;
}

.author-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 画像のアスペクト比を維持して正方形内にフィット */
  display: block;
}