/*
Theme Name: Cocoon Child
Theme URI: https://wp-cocoon.com/
Description: Cocoon Child Theme
Author: わいひら
Author URI: https://nelog.jp/
Template: cocoon-master
Version: 1.1.3
*/

/* =============================================
   cmskblog.com Cocoon Child - UI/UX改善CSS
   参考：人気ブロガーのデザイン（シンプル・読みやすさ重視）
   ============================================= */

/* --- 基本リセット・フォント改善 --- */
body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", sans-serif !important;
  font-size: 16px !important;
  line-height: 1.9 !important;
  color: #333 !important;
  background-color: #f8f8f8 !important;
  background-image: none !important;
}

/* グリッド背景を完全に除去 */
body::before,
body::after,
#wrap::before,
#wrap::after,
.site-body::before,
.site-body::after {
  background-image: none !important;
  display: none !important;
}

#wrap,
.site-body,
.content-area,
.main,
#main {
  background-image: none !important;
  background-color: transparent !important;
}

/* #container のグリッドパターンを除去（15px格子） */
#container,
.container {
  background-image: none !important;
  background: #f8f8f8 !important;
}

/* tagline・sns エリアのグリッドも除去 */
.tagline,
.sns-follow-buttons {
  background-image: none !important;
  background: transparent !important;
}

/* --- ヘッダーをスリム化 --- */
#header,
.site-header {
  background: #fff !important;
  border-bottom: 2px solid #e74c3c !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
  padding: 10px 0 !important;
  min-height: unset !important;
}

.header-container,
.header-in {
  max-width: 1100px !important;
  margin: 0 auto !important;
  padding: 8px 20px !important;
}

.site-name-text,
.site-name a,
#header .site-name {
  font-size: 22px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
}

.site-description,
.tagline,
.catch {
  font-size: 12px !important;
  color: #888 !important;
  margin-top: 2px !important;
}

/* ヘッダー画像の高さ制限 */
.header-image img,
.header-wrap img {
  max-height: 80px !important;
  object-fit: contain !important;
}

/* --- ナビゲーションを1行に収める --- */
#navi,
.navi,
.global-nav,
.header-navi {
  background: #fff !important;
  border-top: 1px solid #eee !important;
}

.navi-in,
.global-nav-in,
.navi ul,
.header-navi ul {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  max-width: 1100px !important;
  margin: 0 auto !important;
  padding: 0 10px !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: none !important;
}

.navi-in::-webkit-scrollbar,
.global-nav-in::-webkit-scrollbar {
  display: none !important;
}

.navi ul li a,
.navi-in > ul > li > a,
.global-nav ul li a {
  font-size: 13px !important;
  padding: 12px 14px !important;
  white-space: nowrap !important;
  display: block !important;
  color: #444 !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  transition: color 0.2s !important;
}

.navi ul li a:hover,
.global-nav ul li a:hover {
  color: #e74c3c !important;
  background: transparent !important;
}

/* --- メインコンテンツエリア --- */
#contents,
.contents,
.site-content {
  max-width: 1100px !important;
  margin: 0 auto !important;
  padding: 30px 20px !important;
  background: transparent !important;
}

/* 記事エリアを読みやすく */
.main,
#main,
.content-main {
  max-width: 760px !important;
  background: #fff !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06) !important;
  padding: 30px !important;
  margin-bottom: 30px !important;
}

/* --- 記事リスト（一覧ページ） --- */
.entry-card,
.card,
.archive-entry-card {
  background: #fff !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07) !important;
  border: none !important;
  overflow: hidden !important;
  transition: transform 0.2s, box-shadow 0.2s !important;
  margin-bottom: 20px !important;
}

.entry-card:hover,
.card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12) !important;
}

.entry-card-title,
.card-title {
  font-size: 17px !important;
  font-weight: 700 !important;
  line-height: 1.6 !important;
  color: #222 !important;
}

/* --- 記事本文の読みやすさ改善 --- */
.entry-content,
.article,
.article-body {
  font-size: 16px !important;
  line-height: 2.0 !important;
  color: #333 !important;
}

.entry-content h2 {
  font-size: 22px !important;
  font-weight: 700 !important;
  border-left: 5px solid #fff !important;
  border-bottom: none !important;
  padding: 12px 18px !important;
  margin: 40px 0 20px !important;
  background: #1a3a6e !important;
  color: #fff !important;
  border-radius: 6px !important;
  line-height: 1.5 !important;
}

.entry-content h3 {
  font-size: 19px !important;
  font-weight: 700 !important;
  border-left: 4px solid #f39c12 !important;
  padding: 6px 12px !important;
  margin: 30px 0 15px !important;
  background: #fffbf0 !important;
  border-radius: 0 4px 4px 0 !important;
}

.entry-content h4 {
  font-size: 17px !important;
  font-weight: 700 !important;
  color: #444 !important;
  border-bottom: 2px dashed #ddd !important;
  padding-bottom: 6px !important;
  margin: 25px 0 12px !important;
}

.entry-content p {
  margin-bottom: 18px !important;
  line-height: 2.0 !important;
}

.entry-content img {
  border-radius: 8px !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
  max-width: 100% !important;
  height: auto !important;
}

/* --- 記事タイトル（個別記事ページ） --- */
.entry-title,
.article-title,
h1.entry-title {
  font-size: 26px !important;
  font-weight: 700 !important;
  line-height: 1.6 !important;
  color: #222 !important;
  margin-bottom: 15px !important;
  padding-bottom: 15px !important;
  border-bottom: 3px solid #e74c3c !important;
}

/* --- サイドバー --- */
#sidebar,
.sidebar {
  background: transparent !important;
}

.widget,
.widget-area > .widget {
  background: #fff !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06) !important;
  padding: 20px !important;
  margin-bottom: 20px !important;
  border: none !important;
}

.widget-title,
.widgettitle {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #fff !important;
  background: #e74c3c !important;
  padding: 8px 14px !important;
  margin: -20px -20px 15px !important;
  border-radius: 8px 8px 0 0 !important;
}

/* --- フッター --- */
#footer,
.site-footer {
  background: #2d2d2d !important;
  color: #ccc !important;
  padding: 40px 20px 20px !important;
  margin-top: 50px !important;
}

.footer-in,
.footer-container {
  max-width: 1100px !important;
  margin: 0 auto !important;
}

.footer-copy,
.copyright {
  font-size: 13px !important;
  text-align: center !important;
  color: #aaa !important;
  margin-top: 20px !important;
  padding-top: 20px !important;
  border-top: 1px solid #444 !important;
}

/* --- パンくずリスト --- */
.breadcrumb,
#breadcrumb {
  background: #f5f5f5 !important;
  border-radius: 6px !important;
  padding: 8px 16px !important;
  font-size: 13px !important;
  margin-bottom: 20px !important;
  color: #888 !important;
}

/* --- 引用ブロック --- */
.entry-content blockquote {
  border-left: 5px solid #e74c3c !important;
  background: #fff8f8 !important;
  padding: 16px 20px !important;
  margin: 20px 0 !important;
  border-radius: 0 8px 8px 0 !important;
  font-style: normal !important;
  color: #555 !important;
}

/* --- 目次 (Table of Contents) --- */
.toc,
#toc,
.ez-toc-container,
.table-of-contents {
  background: #fff9f0 !important;
  border: 2px solid #f39c12 !important;
  border-radius: 10px !important;
  padding: 20px 24px !important;
  margin: 30px 0 !important;
}

.toc-title,
.ez-toc-title {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #f39c12 !important;
  margin-bottom: 10px !important;
}

/* --- スマホ対応 (834px以下) --- */
@media screen and (max-width: 834px) {
  .entry-title, h1.entry-title {
    font-size: 20px !important;
  }

  .main, #main, .content-main {
    padding: 20px 15px !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .entry-content h2 {
    font-size: 18px !important;
  }

  .entry-content h3 {
    font-size: 16px !important;
  }

  #header .site-name-text,
  #header .site-name a {
    font-size: 18px !important;
  }

  .navi ul li a,
  .global-nav ul li a {
    font-size: 12px !important;
    padding: 10px 10px !important;
  }

  #contents, .contents {
    padding: 15px 10px !important;
  }
}

/* --- スマホ対応 (480px以下) --- */
@media screen and (max-width: 480px) {
  body {
    font-size: 15px !important;
  }

  .entry-title, h1.entry-title {
    font-size: 18px !important;
  }

  .entry-content {
    font-size: 15px !important;
  }

  .entry-content h2 {
    font-size: 17px !important;
  }
}


