/* ============================
   denki-labo.com カスタムCSS
   管理: 荀彧（デザイン改善）
   更新: 2026-05-06
   ============================ */

/* ===== 記事ページ最適化 ===== */
.entry-content {
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.8;
  font-size: 16px;
}

.entry-content h2 {
  border-left: 4px solid #10b981;
  padding-left: 12px;
  margin-top: 2em;
  margin-bottom: 0.8em;
  font-weight: 700;
  color: #1f2937;
}

.entry-content h3 {
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 6px;
  margin-top: 1.6em;
  margin-bottom: 0.6em;
  font-weight: 600;
  color: #374151;
}

.entry-content p {
  margin-bottom: 1.2em;
  color: #1f2937;
}

.entry-content ul, .entry-content ol {
  margin-bottom: 1.5em;
  padding-left: 1.8em;
}

.entry-content li {
  margin-bottom: 0.5em;
}

/* ===== CTA最適化（LINE誘導） ===== */
.denkilabo-cta {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
  margin: 40px auto;
  max-width: 600px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.denkilabo-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.denkilabo-cta a {
  color: #fff;
  font-weight: 700;
  font-size: 1.25em;
  text-decoration: none;
  display: inline-block;
}

.denkilabo-cta p {
  margin-top: 8px;
  font-size: 0.9em;
  opacity: 0.9;
}

/* ===== ヘッダー改善 ===== */
.site-header {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* ===== フッター改善 ===== */
.site-footer {
  background: #1f2937;
  color: #d1d5db;
  padding: 32px 0;
}

/* ===== パンくずリスト ===== */
.breadcrumb {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 16px;
}

/* ===== モバイル最適化 ===== */
@media (max-width: 768px) {
  .entry-content {
    padding: 0 20px;
    font-size: 15px;
  }
  
  .entry-content h2 {
    font-size: 1.4em;
    margin-top: 1.6em;
  }
  
  .entry-content h3 {
    font-size: 1.2em;
  }
  
  .denkilabo-cta {
    padding: 24px 20px;
    margin: 32px 16px;
  }
  
  .denkilabo-cta a {
    font-size: 1.1em;
  }
}

/* ===== タブレット最適化 ===== */
@media (min-width: 769px) and (max-width: 1024px) {
  .entry-content {
    padding: 0 24px;
  }
}

/* ===== Core Web Vitals最適化 ===== */
/* CLSを防ぐため画像の最小高さを設定 */
.entry-content img {
  height: auto;
  max-width: 100%;
}

/* LCP要素の優先表示 */
.entry-header {
  contain: layout;
}

/* ===== アクセシビリティ改善 ===== */
a:focus, button:focus {
  outline: 2px solid #10b981;
  outline-offset: 2px;
}

/* ===== 読みやすさ向上 ===== */
.entry-content a {
  color: #10b981;
  text-decoration: underline;
  text-decoration-color: rgba(16, 185, 129, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}

.entry-content a:hover {
  text-decoration-color: #10b981;
}
