@charset "UTF-8";
/*
Theme Name: Graffiti Knights Blog
Description: 自サイト共通デザイン + ブログ専用スタイル（修正版V2.2 Clean）
Author: 鹿角時計
Version: 2.2
*/

/* --- 0. 変数・ブログ専用設定 --- */
:root {
  --blog-accent: #f39800; /* ブログテーマカラー（オレンジ） */
  --line-color: #06c755;
  --bg-hover: #fffaf0;    /* ホバー時の薄い背景色 */
  --text-main: #333;
}

/* 本サイトの背景色を強制上書きする場合のみ記述 */
body {
  background-color: #f4f4f4;
}

/* --- 1. レイアウト構造 (Blog Specific) --- */
.blog-specific-main-wrapper {
  width: 100%;
  box-sizing: border-box;
}

.blog-specific-container {
  padding: 40px 0;
  max-width: 1200px;
  margin: 0 auto;
}

.blog-specific-layout-flex {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 0 20px;
}

@media (min-width: 769px) {
  .blog-specific-layout-flex {
    flex-direction: row;
  }
  .blog-specific-content-area {
    flex: 1;
    min-width: 0; /* Flexアイテムのはみ出し防止 */
  }
  .blog-specific-sidebar {
    width: 300px;
    position: sticky;
    top: 20px;
    height: fit-content;
  }
}

/* --- 2. 記事カード (一覧ページ) --- */
.blog-specific-content-area .post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.blog-specific-content-area .blog-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #eee;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  display: block;
  color: #333;
  margin-bottom: 20px;
}

.blog-specific-content-area .blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.blog-specific-content-area .blog-thumb-box {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #eee; 
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 記事番号バッジ */
.thumb-number {
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 0 0 5px 0;
  z-index: 3;
  font-family: 'Zen Antique', serif;
}

.blog-specific-content-area .blog-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s ease;
}

.blog-specific-content-area .blog-card:hover .blog-thumb {
  transform: scale(1.05);
}

.blog-specific-content-area .blog-text {
  padding: 15px;
}

.blog-specific-content-area .blog-date {
  font-size: 12px;
  color: #888;
  margin-bottom: 5px;
  display: block;
}

.blog-specific-content-area .blog-title {
  font-size: 16px;
  margin: 0 0 10px;
  line-height: 1.4;
  font-weight: bold;
}

.blog-specific-content-area .blog-excerpt {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

/* Noteバッジ */
.note-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #222;
  color: #fff;
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 4px;
  z-index: 2;
}

/* --- 3. 記事詳細 (Single) --- */
.blog-specific-content-area .single-container {
  background: #fff;
  padding: 40px;
  border-radius: 8px;
  border: 1px solid #eee;
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
  margin-bottom: 40px;
}

.blog-specific-content-area .single-header {
  text-align: center;
  margin-bottom: 40px;
  border-bottom: 1px solid #eee;
  padding-bottom: 20px;
}

.blog-specific-content-area .single-date {
  color: #888;
  font-family: 'Zen Antique', serif;
  display: block;
  margin-bottom: 10px;
}

.blog-specific-content-area .single-title {
  font-size: 28px;
  line-height: 1.4;
  margin-bottom: 15px;
}

/* カテゴリー表示 */
.blog-specific-content-area .single-category {
  line-height: 1.8;
}
.blog-specific-content-area .single-category a {
  display: inline-block;
  color: #fff;
  background: #333;
  padding: 4px 10px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 12px;
  white-space: nowrap;
  margin: 3px 2px;
  line-height: 1.2;
}

/* アイキャッチ画像 */
.blog-specific-content-area .single-featured-image {
  text-align: center;
  margin-bottom: 40px;
  width: 100%;
}
.blog-specific-content-area .single-featured-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 記事本文スタイル */
.blog-specific-content-area .post-content {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.blog-specific-content-area .post-content h2 {
  font-size: 24px;
  border-left: 5px solid var(--blog-accent);
  padding-left: 15px;
  margin: 40px 0 20px;
}
.blog-specific-content-area .post-content h3 {
  font-size: 20px;
  border-bottom: 1px dashed #ccc;
  padding-bottom: 10px;
  margin: 30px 0 20px;
}
.blog-specific-content-area .post-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px 0;
}
.blog-specific-content-area .post-content a {
  word-break: break-all;
  display: inline;
  color: var(--blog-accent);
}

/* 記事内ナビ */
.simple-post-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
  margin-bottom: 25px;
  font-size: 12px;
  font-family: sans-serif;
}
.simple-post-nav a {
  text-decoration: none;
  color: #666;
  border: 1px solid #ccc;
  padding: 6px 12px;
  border-radius: 4px;
  background: #fff;
  transition: all 0.2s;
  display: inline-block;
}
.simple-post-nav a:hover {
  background: var(--blog-accent);
  color: #fff;
  border-color: var(--blog-accent);
}

/* シェアボタン */
.blog-specific-content-area .share-area {
  margin-top: 50px;
  text-align: center;
  padding: 30px;
  background: var(--bg-hover);
  border-radius: 10px;
  border: 1px dashed var(--blog-accent);
}
.blog-specific-content-area .share-label {
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--blog-accent);
}
.blog-specific-content-area .share-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.blog-specific-content-area .share-btn {
  padding: 10px 20px;
  border-radius: 5px;
  color: #fff !important;
  text-decoration: none;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: opacity 0.3s;
}
.x-btn { background: #333; }
.fb-btn { background: #1877f2; }
.line-btn { background: var(--line-color); }
.copy-btn { background: var(--blog-accent); }
.share-btn:hover { opacity: 0.8; }

/* 記事下 前後ナビゲーション */
.blog-specific-content-area .post-navigation {
  display: flex;
  margin-top: 40px;
  border: 1px solid #eee;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}
.blog-specific-content-area .nav-link {
  flex: 1;
  transition: background 0.3s;
}
.blog-specific-content-area .nav-link:hover {
  background: var(--bg-hover);
}
.blog-specific-content-area .nav-link a {
  padding: 20px;
  display: block;
  text-decoration: none;
  color: #333;
}
.blog-specific-content-area .nav-link.next {
  border-left: 1px solid #eee;
  text-align: right;
}
.nav-arrow {
  display: block;
  font-size: 11px;
  color: var(--blog-accent);
  font-weight: bold;
}
.nav-title {
  display: block;
  margin-top: 5px;
  font-size: 14px;
  font-weight: bold;
}

/* --- 4. サイドバー・ウィジェット --- */
.blog-specific-sidebar .widget {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}
.blog-specific-sidebar .widget-title {
  font-family: 'Zen Antique', serif;
  border-bottom: 2px solid var(--blog-accent);
  margin-bottom: 15px;
  padding-bottom: 5px;
  font-size: 16px;
  margin-top: 0;
}

/* アーカイブ（年別・月別） */
.year-trigger {
  width: 100%;
  text-align: left;
  padding: 12px 15px;
  background: #fff;
  border: 1px solid #ddd;
  margin-bottom: 5px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  border-radius: 5px;
  font-weight: bold;
}
.year-trigger:hover {
  background: var(--bg-hover);
  border-color: var(--blog-accent);
  color: var(--blog-accent);
}
.count-badge {
  font-size: 12px;
  background: #eee;
  color: #555;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: auto;
  margin-right: 10px;
}
.month-list {
  display: none;
  padding: 10px;
  list-style: none;
  background: #f9f9f9;
  margin-bottom: 10px;
  border-radius: 5px;
  border: 1px solid #eee;
}
.month-list li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 15px;
  background: #fff;
  border: 1px solid #eee;
  margin-bottom: 5px;
  text-decoration: none;
  color: #555;
  font-size: 13px;
  border-radius: 20px;
  transition: all 0.3s;
}
.month-list li a:hover {
  background: var(--blog-accent);
  color: #fff;
  border-color: var(--blog-accent);
}

/* タグクラウド */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag-item {
  display: inline-block;
  padding: 6px 12px;
  background: #fff;
  border: 1px solid var(--blog-accent);
  color: var(--blog-accent);
  border-radius: 20px;
  text-decoration: none;
  font-size: 12px;
  transition: all 0.3s;
  white-space: nowrap;
  margin-bottom: 5px;
}
.tag-item:hover {
  background: var(--blog-accent);
  color: #fff;
}
.hidden-tag { display: none !important; }
.btn-more-tags {
  width: 100%;
  margin-top: 10px;
  padding: 8px;
  background: #fff;
  border: 1px dashed var(--blog-accent);
  color: var(--blog-accent);
  border-radius: 5px;
  cursor: pointer;
  font-size: 12px;
}

/* Note・YouTubeリスト */
.note-list { list-style: none; padding: 0; margin: 0; }
.note-item a.note-link-inner {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 5px;
  text-decoration: none;
  color: #333;
  margin-bottom: 10px;
  transition: background 0.3s;
}
.note-item a.note-link-inner:hover {
  background: var(--bg-hover);
  border-color: var(--blog-accent);
}
.note-thumb-box {
  flex-shrink: 0;
  width: 80px;
  height: 60px;
  overflow: hidden;
  border-radius: 4px;
  background: #eee;
}
.note-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.note-text-box {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.note-date { font-size: 11px; color: #888; margin-bottom: 4px; }
.note-item-title { font-size: 13px; line-height: 1.4; font-weight: bold; }
.btn-note-more {
  display: block; text-align: center; margin-top: 15px; padding: 8px;
  background: #333; color: #fff; text-decoration: none; font-size: 12px; border-radius: 5px;
}
.yt-subscribe-btn {
  display: block;
  background: #ff0000;
  color: #fff !important;
  text-align: center;
  padding: 12px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
}

/* --- 5. ページネーション --- */
.blog-pagination {
  margin-top: 40px;
  text-align: center;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
}
.blog-pagination .page-numbers {
  display: inline-block;
  padding: 10px 15px;
  margin: 0;
  border: 1px solid #ddd;
  background: #fff;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
}
.blog-pagination .current,
.blog-pagination .page-numbers:hover {
  background: var(--blog-accent);
  color: #fff;
  border-color: var(--blog-accent);
}
.blog-pagination .dots {
  border: none;
  background: transparent;
  padding: 10px 5px;
}

/* --- 6. その他ブログ専用パーツ --- */
.pickup-section { margin-bottom: 40px; }
.pickup-label {
  font-family: 'Zen Antique', serif;
  font-size: 20px;
  border-bottom: 3px solid var(--blog-accent);
  display: inline-block;
  margin-bottom: 20px;
  padding-right: 20px;
}
.pickup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.pickup-card {
  position: relative;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  text-decoration: none;
  color: #333;
  transition: transform 0.3s;
}
.pickup-card:hover { transform: translateY(-5px); }
.pickup-badge {
  position: absolute;
  top: 0; left: 0;
  background: var(--blog-accent);
  color: #fff;
  font-size: 12px; font-weight: bold;
  padding: 5px 10px; z-index: 2;
  border-radius: 0 0 8px 0;
}

/* 記事一覧ページ用 */
.list-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--blog-accent);
  padding-bottom: 10px;
}
.list-page-title {
  font-size: 20px;
  font-family: 'Zen Antique', serif;
  margin: 0;
}
.simple-article-list { list-style: none; padding: 0; margin: 0; }
.simple-article-list li { border-bottom: 1px solid #eee; }
.simple-article-list li a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 10px; text-decoration: none; color: #333;
  transition: background 0.2s;
}
.simple-article-list li a:hover { background: var(--bg-hover); }
.list-num {
  font-family: 'Zen Antique', serif;
  color: var(--blog-accent);
  font-weight: bold;
  margin-right: 15px;
  min-width: 60px;
}
.list-title { flex: 1; font-size: 14px; }
.list-date { font-size: 11px; color: #888; margin-left: 10px; white-space: nowrap; }
.sidebar-list-btn {
  display: block; background: #fff; border: 1px solid #333;
  color: #333; text-align: center; padding: 10px; margin-bottom: 10px;
  text-decoration: none; border-radius: 5px; font-size: 13px;
  transition: all 0.3s;
}
.sidebar-list-btn:hover { background: #333; color: #fff; }

/* 検索フォーム */
.search-form input[type="text"] {
  border: 1px solid #ddd; padding: 8px; border-radius: 5px;
}
.search-form input[type="submit"] {
  background: var(--blog-accent); color: #fff; border: none; padding: 8px 15px; border-radius: 5px;
}

/* パンくずリスト */
.breadcrumb { font-size: 12px; color: #888; }
.breadcrumb a { color: #666; text-decoration: none; }
.breadcrumb a:hover { color: var(--blog-accent); text-decoration: underline; }

/* ページタイトル */
.page-title-flex { max-width: 1200px; margin: 0 auto; padding: 20px; }
.title-line {
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 2px solid #e0e0e0; padding-bottom: 5px; margin-bottom: 20px;
}
.page-title { font-size: 32px; margin: 0; font-family: 'Zen Antique', serif; }
.Symbol { height: 80px; width: auto; }

/* --- 7. スマホ対応 (Responsive) --- */
@media screen and (max-width: 500px) {
  /* レイアウト調整 */
  .blog-specific-container { padding: 20px 0 !important; }
  .blog-specific-layout-flex { padding: 0 10px !important; }
  
  /* カードサイズ調整 */
  .blog-specific-content-area .post-grid, .pickup-grid { display: block !important; }
  .blog-specific-content-area .blog-card, .pickup-card {
    width: 100% !important; margin-bottom: 20px !important;
  }
  
  /* ページネーション縮小 */
  .blog-pagination .page-numbers { padding: 6px 10px; font-size: 12px; }
  
  /* タイトルサイズ */
  .page-title { font-size: 24px; }
  .Symbol { height: 50px; }
}

/* --- 8. その他 (管理バー非表示など) --- */
#wpadminbar { display: none !important; }
html { margin-top: 0 !important; }