@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（統合版）
************************************/

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700;900&display=swap');

/* ============================================
   0. Cocoonデフォルトの非表示・リセット
   ============================================ */
.header,
#header-container,
.mobile-header-menu-buttons,
.mobile-footer-menu-buttons,
.appeal,
#navi,
.navi {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

body {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

#container {
  padding-top: 0 !important;
  margin-top: 0 !important;
  overflow: visible !important;
}

/* ============================================
   1. カスタムヘッダー
   ============================================ */
#sy-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid #1a1a1a;
}

#sy-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
}

.sy-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.sy-logo {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 900;
  font-size: 18px;
  color: #1a1a1a;
  letter-spacing: -0.03em;
  text-decoration: none;
  border: 2.5px solid #FFD700;
  padding: 2px 8px;
  border-radius: 3px;
  transform: rotate(-3deg);
  display: inline-block;
}

.sy-logo:hover { background: #FFFDE7; }

.sy-subtitle {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #777;
  white-space: nowrap;
}

/* デスクトップナビ */
.sy-desktop-nav {
  display: none;
  margin-left: auto;
}

.sy-desktop-nav .sy-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

.sy-desktop-nav .sy-nav-list li a {
  display: block;
  padding: 8px 18px;
  color: #1a1a1a;
  text-decoration: none;
  font-size: 13px;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: color 0.2s;
}

.sy-desktop-nav .sy-nav-list li a:hover { color: #FFD700; }

/* ハンバーガー */
.sy-hamburger {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 20px;
  flex-shrink: 0;
}

.sy-hamburger span {
  display: block;
  height: 2px;
  background: #1a1a1a;
  border-radius: 1px;
  transition: all 0.3s;
}

.sy-hamburger.is-open span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.sy-hamburger.is-open span:nth-child(2) { opacity: 0; }
.sy-hamburger.is-open span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* スライドインメニュー */
#sy-mobile-nav {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100vh;
  background: #fff;
  z-index: 10000;
  transition: right 0.3s ease;
  overflow-y: auto;
  box-shadow: -2px 0 8px rgba(0,0,0,0.1);
}

#sy-mobile-nav.is-open { right: 0; }

#sy-mobile-nav .sy-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #eee;
}

#sy-mobile-nav .sy-nav-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 900;
  font-size: 14px;
  color: #1a1a1a;
}

#sy-mobile-nav .sy-nav-close {
  background: none;
  border: none;
  font-size: 28px;
  color: #999;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

#sy-mobile-nav .sy-mobile-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

#sy-mobile-nav .sy-mobile-list li a {
  display: block;
  padding: 14px 20px;
  color: #1a1a1a;
  text-decoration: none;
  font-size: 14px;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  border-bottom: 1px solid #f0f0f0;
}

#sy-mobile-nav .sy-mobile-list li a:hover { background: #FFFDE7; }

#sy-nav-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 9998;
  display: none;
}

#sy-nav-overlay.is-open { display: block; }

/* ============================================
   2. フッター
   ============================================ */
#footer {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

#sy-footer {
  background: #1a1a1a;
  border-top: 2px solid #FFD700;
}

#sy-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.sy-footer-logo-link {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 900;
  font-size: 18px;
  color: #1a1a1a;
  letter-spacing: -0.03em;
  background: #fff;
  box-shadow: 0 0 0 5px #FFD700;
  padding: 5px 10px;
  border-radius: 3px;
  transform: rotate(-3deg);
  display: inline-block;
  text-decoration: none;
}

.sy-footer-logo-link:hover { background: #FFFDE7; }
.sy-footer-logo { text-align: center; }

.sy-footer-subtitle {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #999;
  margin-top: 12px;
}

.sy-footer-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.sy-footer-links a {
  color: #999;
  text-decoration: none;
  font-size: 12px;
  padding: 4px 12px;
  border: 1px solid #444;
  transition: all 0.2s;
}

.sy-footer-links a:hover {
  color: #FFD700;
  border-color: #FFD700;
}

.sy-footer-copy {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 11px;
  color: #666;
}

/* ============================================
   3. 全体・本文
   ============================================ */
body {
  font-family: 'Noto Sans JP', sans-serif;
  color: #333;
  background: #fff !important;
}

.article {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  line-height: 1.9;
  color: #333;
}

#content-in {
  max-width: 1200px;
  margin: 0 auto;
}

/* ============================================
   4. 記事タイトル
   ============================================ */
.entry-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 22px !important;
  font-weight: 900 !important;
  color: #1a1a1a !important;
  line-height: 1.5 !important;
}

/* ============================================
   5. 見出し（h2 / h3 / h4）
   ============================================ */
.article h2 {
  background: #FFF8E1 !important;
  border: none !important;
  border-left: 5px solid #FFD700 !important;
  border-radius: 0 6px 6px 0 !important;
  padding: 14px 18px !important;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 19px !important;
  font-weight: 900 !important;
  color: #1a1a1a !important;
  margin: 2.2em 0 1em !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.article h3 {
  border: none !important;
  border-bottom: 4px solid #FFD700 !important;
  padding: 0 0 8px 14px !important;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 17px !important;
  font-weight: 900 !important;
  color: #1a1a1a !important;
  background: none !important;
  margin: 1.8em 0 0.8em !important;
  position: relative;
}

.article h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: #FFD700;
  border-radius: 50%;
}

.article h4 {
  border: none !important;
  border-left: 3px solid #FFD700 !important;
  padding: 2px 0 2px 12px !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  color: #1a1a1a !important;
  background: none !important;
  margin: 1.2em 0 0.6em !important;
}

/* ============================================
   6. カテゴリラベル
   ============================================ */
.cat-label {
  background: #FFD700 !important;
  color: #1a1a1a !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  padding: 3px 12px !important;
  border-radius: 3px !important;
  border: none !important;
}

/* ============================================
   7. 投稿メタ情報
   ============================================ */
.entry-date, .post-date, .update-date, .post-update {
  color: #999 !important;
  font-size: 13px !important;
}

.author-name { font-weight: 700; }

/* ============================================
   8. パンくずリスト
   ============================================ */
.breadcrumb {
  font-size: 12px !important;
  color: #999 !important;
  padding: 10px 0 !important;
  background: none !important;
  border: none !important;
}

.breadcrumb a { color: #666 !important; text-decoration: none !important; }
.breadcrumb a:hover { color: #1a1a1a !important; }

/* ============================================
   9. 記事カード
   ============================================ */
.entry-card-wrap {
  border-radius: 8px !important;
  overflow: hidden;
  border: 1px solid #eee !important;
  margin-bottom: 16px !important;
  background: #fff !important;
  transition: box-shadow 0.2s;
}

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

.entry-card-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px !important;
  font-weight: 900 !important;
  color: #1a1a1a !important;
  line-height: 1.5 !important;
}

.entry-card-snippet {
  font-size: 13px !important;
  color: #666 !important;
  line-height: 1.6 !important;
}

/* ============================================
   10. テーブル
   ============================================ */
.article table {
  border-collapse: collapse;
  width: 100%;
  margin: 16px 0;
  border-radius: 8px;
  overflow: hidden;
}

.article table thead tr { background: #FFD700 !important; }

.article table thead th {
  color: #1a1a1a !important;
  padding: 10px 12px;
  font-weight: 900;
  font-size: 14px;
}

.article table tbody tr:nth-child(even) { background: #FFFDE7; }

.article table tbody td {
  padding: 10px 12px;
  font-size: 14px;
  border-bottom: 1px solid #eee;
}

/* ============================================
   11. 目次（TOC）
   ============================================ */
.toc {
  border: 2px solid #FFD700 !important;
  border-radius: 8px !important;
  background: #fff !important;
}

.toc-title {
  background: #FFD700 !important;
  color: #1a1a1a !important;
  font-family: 'Noto Sans JP', sans-serif !important;
  font-weight: 900 !important;
  font-size: 15px !important;
  padding: 12px 16px !important;
}

.toc-title::after {
  content: ' ▼' !important;
  font-size: 11px !important;
}

.toc-checkbox:checked + .toc-title::after {
  content: ' ▲' !important;
}

.toc a {
  color: #1a1a1a !important;
  text-decoration: none !important;
  font-size: 14px !important;
}

.toc a:hover { color: #b8960c !important; }

/* ============================================
   12. リンク・ボタン
   ============================================ */
.article a {
  color: #1565C0;
  text-decoration: underline;
  text-decoration-color: rgba(21,101,192,0.3);
  text-underline-offset: 3px;
}

.article a:hover { text-decoration-color: #1565C0; }

.btn, .btn-wrap a {
  border-radius: 8px !important;
  font-weight: 900 !important;
  font-size: 15px !important;
  padding: 12px 24px !important;
  transition: all 0.2s !important;
}

.btn-wrap a {
  background: #FFD700 !important;
  color: #1a1a1a !important;
  border: none !important;
}

.btn-wrap a:hover { opacity: 0.85; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }

/* ============================================
   13. タグ
   ============================================ */
.tag-link {
  background: #f8f8f8 !important;
  color: #666 !important;
  border: 1px solid #ddd !important;
  border-radius: 20px !important;
  font-size: 12px !important;
  padding: 4px 12px !important;
  transition: all 0.2s;
}

.tag-link:hover { background: #FFFDE7 !important; border-color: #FFD700 !important; }

/* ============================================
   14. ページネーション
   ============================================ */
.pagination .page-numbers {
  border: 1px solid #ddd !important;
  color: #666 !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  background: #fff !important;
}

.pagination .current {
  background: #FFD700 !important;
  color: #1a1a1a !important;
  border-color: #FFD700 !important;
  font-weight: 900 !important;
}

.pagination a:hover { background: #FFFDE7 !important; border-color: #FFD700 !important; }

/* ============================================
   15. サイドバー
   ============================================ */
.sidebar { font-family: 'Noto Sans JP', sans-serif; }

.widget-title, .widget-title span {
  font-family: 'Noto Sans JP', sans-serif !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  color: #1a1a1a !important;
  border: none !important;
  padding: 0 0 8px !important;
  border-bottom: 3px solid #FFD700 !important;
  background: none !important;
}

/* ============================================
   16. 関連記事・ブログカード
   ============================================ */
.related-entry-heading {
  font-weight: 900 !important;
  border-bottom: 3px solid #FFD700 !important;
  padding-bottom: 8px;
  background: none !important;
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
}

.related-entry-card-title {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #1a1a1a !important;
}

.blogcard {
  border: 1px solid #eee !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

.blogcard:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.08) !important; }

/* ============================================
   17. 引用
   ============================================ */
.article blockquote {
  background: #f8f8f8 !important;
  border-left: 4px solid #FFD700 !important;
  border-radius: 0 8px 8px 0 !important;
  padding: 16px 20px !important;
  color: #555 !important;
  font-size: 15px;
}

.article blockquote::before, .article blockquote::after { color: #FFD700 !important; }

/* ============================================
   18. その他
   ============================================ */
.blank-box { border-radius: 8px !important; }
.information-box, .info-box { border-color: #FFD700 !important; background: #FFFDE7 !important; }
.ss-button { border-radius: 8px !important; }

.archive-title {
  text-align: center;
  font-size: 20px !important;
  font-weight: 900 !important;
  background: #FFF8E1 !important;
  padding: 16px 20px !important;
  border-radius: 8px !important;
  border-left: 5px solid #FFD700 !important;
  color: #1a1a1a !important;
  margin-bottom: 24px !important;
}

.marker-yellow { background: linear-gradient(transparent 60%, #FFD700 60%) !important; }
.eye-catch img { border-radius: 8px; }

.comment-btn {
  background: #FFD700 !important;
  color: #1a1a1a !important;
  border: none !important;
  border-radius: 8px !important;
  font-weight: 900 !important;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #aaa; }

/* ============================================
   19. 固定ページ
   ============================================ */
.page .entry-date,
.page .post-date,
.page .update-date,
.page .post-update,
.page .date-tags {
  display: none !important;
}

.page .entry-title {
  display: none !important;
}

/* ============================================
   20. ホームページ見出し上書き
   ============================================ */
.fp-hero h2 {
  font-size: 38px !important;
  font-weight: 900 !important;
  color: #1a1a1a !important;
  margin-bottom: 20px !important;
  letter-spacing: -0.02em;
  line-height: 1.4;
}

/* ============================================
   21. レスポンシブ（モバイル・タブレット）
   ============================================ */
@media screen and (max-width: 1023px) {
  .entry-title { font-size: 19px !important; }

  .article h2 {
    font-size: 17px !important;
    padding: 12px 14px !important;
  }

  .article { font-size: 15px; line-height: 1.85; }
  .sidebar { margin-top: 40px; }

  /* ヘッダー */
  #sy-header-inner { padding: 0 14px; height: 60px; }
  .sy-hamburger { display: flex; }
  .sy-desktop-nav { display: none !important; }

  /* コンテンツの左右余白をヘッダーに合わせる */
  .main {
    padding: 20px 14px !important;
  }
}

@media screen and (max-width: 768px) {
  .fp-hero h2 { font-size: 28px !important; }
  .fp-hero p { font-size: 16px; }
  .fp-hero-desc { font-size: 15px; }
}

/* ============================================
   22. レスポンシブ（デスクトップ）
   ============================================ */
@media screen and (min-width: 1024px) {
  /* ヘッダー */
  #sy-header-inner { height: 64px; padding: 0 24px; }
  .sy-subtitle { font-size: 12px; }
  .sy-hamburger { display: none !important; }
  .sy-desktop-nav { display: block !important; }
  #sy-mobile-nav, #sy-nav-overlay { display: none !important; }

  /* フッター */
  #sy-footer-inner { padding: 64px 24px 40px; }

  /* コンテンツの左右余白をヘッダーに合わせる */
  .main {
    padding: 20px 24px !important;
  }
}