@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** ポーカー東京ナビ カスタムCSS v2
** 配色: 落ち着いたネイビー + グリーンアクセント
**   メイン:    #2c3e50 (ネイビー)
**   アクセント: #27ae60 (グリーン - ポーカーテーブルのフェルト)
**   サブ:      #3498db (ブルー)
**   テキスト:  #2c3e50
**   背景:      #f5f6fa
************************************/

/* ============================================
   0. コンテンツ幅の拡張
   ============================================ */
.wrap {
  max-width: 1480px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.content-in.wrap {
  display: flex !important;
  justify-content: center !important;
}

.main {
  width: 100% !important;
  max-width: 1160px !important;
  flex-shrink: 0;
}

.sidebar {
  flex-shrink: 1;
  min-width: 260px;
}

/* サイドバーなし（1カラム）の場合 */
.no-sidebar .main {
  max-width: 960px !important;
  margin: 0 auto !important;
}

/* 記事本文の読みやすさ */
.entry-content {
  font-size: 16.5px;
  line-height: 1.85;
  padding: 0 2em;
}

/* 記事全体の内側余白 */
.article {
  padding: 2em 2.5em;
}

.article .article-header,
.article .article-footer {
  padding: 0 2.5em;
}

/* ============================================
   1. 全体 / ベース
   ============================================ */
body {
  background-color: #f5f6fa;
  color: #2c3e50;
  font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
}

#container {
  background-color: #f5f6fa;
}

/* ============================================
   2. ヘッダー
   ============================================ */
.site-header-logo,
#header,
.header,
#header-in,
.header-container,
.appeal {
  background: #2c3e50 !important;
}

#header .header-in {
  background: transparent !important;
}

.site-name-text,
.logo-header .site-name-text,
#header .site-name-text,
.header .site-name-text,
.site-name-text a,
.site-name-text-link,
a.site-name-text-link,
h1.logo a,
.logo-header a,
#header .logo a {
  color: #ffffff !important;
  font-weight: 700;
  font-size: 1.5em;
  letter-spacing: 0.03em;
}

.site-description,
#header .site-description,
.header .tagline {
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 0.85em;
}

/* ナビゲーション */
#navi,
.navi,
.mobile-menu-buttons,
#navi .navi-in,
.navi-in {
  background: #34495e !important;
  border-top: none;
  border-bottom: 3px solid #27ae60;
}

#navi a,
.navi a,
.navi-in a,
.menu-header a {
  color: #ecf0f1 !important;
  font-weight: 500;
  transition: all 0.2s ease;
}

#navi a:hover,
.navi a:hover,
.navi-in a:hover,
.menu-header a:hover {
  color: #ffffff !important;
  background-color: rgba(39, 174, 96, 0.2) !important;
}

#navi .sub-menu,
.navi .sub-menu {
  background: #34495e !important;
}

.mobile-menu-buttons .menu-button,
.mobile-menu-buttons .menu-button > a {
  color: #ffffff !important;
}

/* ============================================
   3. メインコンテンツエリア
   ============================================ */
.main,
.content,
#content {
  background-color: transparent;
}

.entry-card-wrap .entry-card,
.ect-vertical-card .entry-card-wrap .entry-card,
.article,
.article-body {
  background-color: #ffffff;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  border: 1px solid #e8e8e8;
}

.entry-card-wrap:hover .entry-card {
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
}

.entry-card-title {
  color: #2c3e50;
  font-weight: 700;
}

.cat-label {
  background-color: #27ae60 !important;
  color: #ffffff !important;
  border-radius: 3px;
  font-size: 0.75em;
}

/* ============================================
   4. 見出し（軽いデザイン）
   ============================================ */
/* h2: グリーンの左ボーダー + 薄い背景 */
.article h2,
.entry-content h2 {
  background: #f0f7f4;
  color: #2c3e50;
  border: none;
  border-left: 4px solid #27ae60;
  padding: 14px 20px;
  margin: 2.2em 0 1em;
  font-size: 1.35em;
  font-weight: 700;
  border-radius: 0 4px 4px 0;
  line-height: 1.5;
}

/* h3: 細い左ボーダー */
.article h3,
.entry-content h3 {
  background: transparent;
  color: #2c3e50;
  border: none;
  border-left: 3px solid #3498db;
  padding: 6px 16px;
  margin: 1.8em 0 0.8em;
  font-size: 1.15em;
  font-weight: 700;
  line-height: 1.5;
}

/* h4: 下線のみ */
.article h4,
.entry-content h4 {
  color: #2c3e50;
  border-bottom: 2px solid #e8e8e8;
  padding-bottom: 6px;
  margin: 1.3em 0 0.6em;
  font-size: 1.05em;
  font-weight: 700;
}

.article h5,
.entry-content h5 {
  color: #34495e;
  font-weight: 700;
  margin: 1.2em 0 0.5em;
}

/* ============================================
   5. テーブル
   ============================================ */
.entry-content table,
.article table,
table.wp-block-table,
.scrollable-table table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.92em;
  line-height: 1.6;
  border: 1px solid #ddd;
  margin: 1.2em 0;
}

/* テーブルヘッダー: ネイビー系（濃すぎない） */
.entry-content table th,
.article table th,
table.wp-block-table th,
.scrollable-table table th {
  background-color: #34495e !important;
  color: #ffffff !important;
  font-weight: 600;
  padding: 10px 14px;
  border: 1px solid #2c3e50;
  text-align: left;
  white-space: nowrap;
  font-size: 0.95em;
}

.entry-content table td,
.article table td,
table.wp-block-table td,
.scrollable-table table td {
  padding: 9px 14px;
  border: 1px solid #e0e0e0;
  vertical-align: middle;
}

/* ストライプ */
.entry-content table tr:nth-child(even),
.article table tr:nth-child(even),
.scrollable-table table tr:nth-child(even) {
  background-color: #fafbfc;
}

.entry-content table tr:nth-child(odd),
.article table tr:nth-child(odd),
.scrollable-table table tr:nth-child(odd) {
  background-color: #ffffff;
}

/* ホバー */
.entry-content table tr:hover,
.article table tr:hover,
.scrollable-table table tr:hover {
  background-color: #edf7ed !important;
}

/* 横スクロール */
.scrollable-table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1em 0;
}

.scrollable-table table {
  min-width: 600px;
}

.scrollable-table::-webkit-scrollbar {
  height: 6px;
}

.scrollable-table::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.scrollable-table::-webkit-scrollbar-thumb {
  background: #bdc3c7;
  border-radius: 3px;
}

/* ============================================
   6. 目次(TOC)
   ============================================ */
.toc,
.toc-content,
#toc,
.table-of-contents {
  background-color: #ffffff !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 8px !important;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05) !important;
  padding: 20px 24px !important;
  margin: 1.5em auto !important;
}

.toc-title,
#toc-title {
  color: #2c3e50;
  font-weight: 700;
  font-size: 1.05em;
  border-bottom: 2px solid #27ae60;
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.toc a,
.toc-content a {
  color: #2c3e50 !important;
  text-decoration: none;
}

.toc a:hover,
.toc-content a:hover {
  color: #27ae60 !important;
}

.toc li {
  padding: 3px 0;
  line-height: 1.6;
}

/* ============================================
   7. リンク
   ============================================ */
.entry-content a,
.article a {
  color: #3498db;
  text-decoration: none;
  transition: color 0.2s ease;
}

.entry-content a:hover,
.article a:hover {
  color: #2980b9;
  text-decoration: underline;
}

/* ============================================
   8. 統計カード
   ============================================ */
.stats-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin: 1.5em 0;
}

.stats-card .stat-item {
  background: #ffffff;
  border: 2px solid #e8e8e8;
  color: #2c3e50;
  padding: 20px 16px;
  border-radius: 8px;
  text-align: center;
  transition: border-color 0.2s ease;
}

.stats-card .stat-item:hover {
  border-color: #27ae60;
}

.stats-card .stat-number {
  font-size: 2.2em;
  font-weight: 800;
  display: block;
  line-height: 1.2;
  color: #2c3e50;
}

.stats-card .stat-label {
  font-size: 0.8em;
  color: #7f8c8d;
  margin-top: 6px;
  display: block;
}

/* ============================================
   9. サイドバー
   ============================================ */
.sidebar {
  background-color: transparent;
}

.widget,
aside .widget {
  background-color: #ffffff;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  border: 1px solid #e8e8e8;
  padding: 16px;
  margin-bottom: 20px;
}

.widget-title,
aside .widget-title {
  color: #2c3e50;
  font-weight: 700;
  border-bottom: 2px solid #27ae60;
  padding-bottom: 8px;
  margin-bottom: 12px;
  font-size: 0.95em;
}

/* ============================================
   10. フッター
   ============================================ */
#footer,
.footer,
footer {
  background: #2c3e50 !important;
  color: rgba(255, 255, 255, 0.7);
}

#footer a,
.footer a,
footer a {
  color: rgba(255, 255, 255, 0.8);
}

#footer a:hover,
.footer a:hover,
footer a:hover {
  color: #27ae60;
}

.copyright {
  color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   11. details/summary（折りたたみ）
   ============================================ */
details {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  margin: 1em 0;
  background: #ffffff;
}

details summary {
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 600;
  color: #2c3e50;
  background: #f5f6fa;
  border-radius: 6px;
  transition: background 0.2s;
}

details summary:hover {
  background: #edf7ed;
}

details[open] summary {
  border-bottom: 1px solid #e0e0e0;
  border-radius: 6px 6px 0 0;
}

details > *:not(summary) {
  padding: 0 16px;
}

/* ============================================
   12. その他
   ============================================ */
/* ボタン */
.btn,
.btn-wrap a {
  border-radius: 6px;
  font-weight: 600;
}

/* ブログカード */
.blogcard {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.blogcard:hover {
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

/* パンくず */
.breadcrumb {
  font-size: 0.85em;
  color: #7f8c8d;
}

.breadcrumb a {
  color: #3498db;
}

/* ページネーション */
.pagination .page-numbers.current {
  background-color: #27ae60;
  border-color: #27ae60;
  color: #ffffff;
}

.pagination .page-numbers:hover {
  background-color: #3498db;
  color: #ffffff;
  border-color: #3498db;
}

/* スクロールトップ */
.go-to-top-button,
#go-to-top a {
  background-color: #2c3e50 !important;
  color: #ffffff !important;
  border-radius: 50%;
}

.go-to-top-button:hover,
#go-to-top a:hover {
  background-color: #27ae60 !important;
}

/* 検索 */
.search-edit:focus {
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
  outline: none;
}

/* SNSシェア */
.sns-share-buttons a,
.share-button {
  border-radius: 6px;
}

.sns-share-buttons a .button-caption,
.sns-share-buttons a .share-count,
.sns-share-buttons .share-button .button-caption,
.sns-share-buttons .share-button .share-count,
.sns-share-message {
  color: #ffffff !important;
}

/* ============================================
   13. レスポンシブ
   ============================================ */
@media screen and (max-width: 1023px) {
  .site-name-text,
  .logo-header .site-name-text {
    font-size: 1.3em;
  }

  .main {
    max-width: 100% !important;
  }
}

@media screen and (max-width: 768px) {
  .article {
    padding: 1.5em 1.2em;
  }

  .entry-content {
    font-size: 15.5px;
    padding: 0 0.5em;
  }

  .article .article-header,
  .article .article-footer {
    padding: 0 0.5em;
  }

  .entry-content table,
  .article table,
  .scrollable-table table {
    font-size: 0.85em;
  }

  .entry-content table th,
  .entry-content table td,
  .article table th,
  .article table td {
    padding: 7px 10px;
  }

  .stats-card {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .stats-card .stat-number {
    font-size: 1.6em;
  }

  .article h2,
  .entry-content h2 {
    font-size: 1.15em;
    padding: 12px 16px;
  }
}

@media screen and (max-width: 480px) {
  .article {
    padding: 1em 0.8em;
  }

  .entry-content {
    padding: 0 0.3em;
  }

  .site-name-text,
  .logo-header .site-name-text {
    font-size: 1.1em;
  }

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

  .entry-content table,
  .article table,
  .scrollable-table table {
    font-size: 0.78em;
  }

  .entry-content table th,
  .entry-content table td {
    padding: 5px 7px;
  }

  .scrollable-table table {
    min-width: 480px;
  }

  .stats-card .stat-number {
    font-size: 1.4em;
  }

  .article h2,
  .entry-content h2 {
    font-size: 1.05em;
    padding: 10px 14px;
  }
}
