/*
Theme Name: みんふうインフォメーション
Theme URI: https://minfuu.info
Author: みんふう
Description: 三味線・民謡教室「みんふう」の公式サイト。教室活動・出演情報を発信する。
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
License: Private
Text Domain: minfuu-info
*/

/* ========================================
   CSS カスタムプロパティ
======================================== */
:root {
  /* ── コアカラー ── */
  --ink:          #1A1715;   /* 墨色（最暗）*/
  --ink-soft:     #3A3330;   /* やや柔らかい墨 */
  --gold:         #B8922A;   /* 金（三味線の糸巻き・金属）*/
  --gold-light:   #E8C96A;   /* 淡金 */
  --gold-bg:      #FBF6EB;   /* 金の背景色 */
  --cream:        #F7F4EE;   /* 和紙クリーム */
  --white:        #FFFFFF;

  /* ── カテゴリーカラー ── */
  --cat-lesson:   #2E7D72;   /* 三味線教室：深い翠緑 */
  --cat-stage:    #9B2A2A;   /* 出演：舞台の緋色 */
  --cat-news:     #4A4A8A;   /* お知らせ：藍紫 */
  --cat-shop:     #5A7A3A;   /* みんふう楽器店：草緑 */
  --cat-minyo:    #7A5A2A;   /* 民謡教室：茶 */
  --cat-group:    #6A3A6A;   /* みんふうざ：紫 */
  --cat-misc:     #5A5A5A;   /* その他：グレー */

  /* ── テキスト ── */
  --text:         #1A1715;
  --text-sub:     #6A5F55;
  --text-muted:   #A89F95;

  /* ── ボーダー ── */
  --border:       #DED8CE;
  --border-light: #EDE8E0;

  /* ── フォント ── */
  --font-body:    'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  --font-serif:   'Noto Serif JP', 'Yu Mincho', '游明朝', Georgia, serif;

  /* ── レイアウト ── */
  --w-full:       1140px;
  --w-content:    740px;
  --sidebar-w:    272px;
  --radius:       4px;
  --radius-lg:    10px;

  /* ── シャドウ ── */
  --shadow:    0 2px 12px rgba(26,23,21,0.08);
  --shadow-lg: 0 6px 28px rgba(26,23,21,0.13);
}

/* ========================================
   リセット & ベース
======================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text);
  line-height: 1.8;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ========================================
   コンテナ
======================================== */
.container {
  max-width: var(--w-full);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ========================================
   ヘッダー
======================================== */
.site-header {
  background: var(--ink);
  position: sticky;
  top: 0;
  z-index: 300;
}

.site-header::after {
  content: '';
  display: block;
  height: 2px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--w-full);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 60px;
}

/* ─ ロゴ ─ */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-emblem {
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  flex-shrink: 0;
  letter-spacing: 0;
}

.logo-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.logo-name {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
}

.logo-tagline {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ─ ナビ ─ */
.site-nav {
  display: flex;
  align-items: center;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0;
}

.site-nav li a {
  display: block;
  padding: 0.45rem 0.85rem;
  font-size: 0.83rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.04em;
  transition: color 0.15s;
  border-radius: var(--radius);
}

.site-nav li a:hover {
  color: var(--gold-light);
}

/* ナビのCTAボタン */
.site-nav .nav-cta a,
.nav-cta > a {
  background: var(--gold);
  color: var(--ink) !important;
  border-radius: 2px;
  padding: 0.38rem 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: background 0.15s !important;
}

.site-nav .nav-cta a:hover,
.nav-cta > a:hover {
  background: var(--gold-light) !important;
  color: var(--ink) !important;
}

/* ─ ハンバーガー ─ */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0.5rem 0.6rem;
  flex-shrink: 0;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: rgba(255,255,255,0.75);
  transition: all 0.25s;
}

.menu-toggle.is-active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.menu-toggle.is-active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ========================================
   ページタイトルバー
======================================== */
.page-title-bar {
  background: var(--ink-soft);
  padding: 2rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.page-title-bar-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.page-title-bar .cat-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

.page-title-bar h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
}

.page-title-bar .post-date {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

/* ========================================
   パンくず
======================================== */
.breadcrumbs {
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  padding: 0.6rem 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.breadcrumbs ol {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem;
  max-width: var(--w-full);
  margin: 0 auto;
  padding: 0 1.5rem;
  list-style: none;
}

.breadcrumbs li::after { content: '/'; margin-left: 0.3rem; color: var(--border); }
.breadcrumbs li:last-child::after { content: none; }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--gold); }

/* ========================================
   メインレイアウト（2カラム）
======================================== */
.site-main { flex: 1; padding: 2.5rem 0 4rem; }

.main-layout {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  gap: 2.5rem;
  align-items: start;
}

/* ========================================
   セクション見出し（共通）
======================================== */
.section-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.section-head h2 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.04em;
}

.section-head-en {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-bottom: 1px;
}

.section-head-more {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 600;
  white-space: nowrap;
  transition: opacity 0.15s;
}

.section-head-more:hover { opacity: 0.7; }

/* ========================================
   カテゴリーバッジ
======================================== */
.cat-badge {
  display: inline-block;
  padding: 0.15rem 0.65rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 2px;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.15s;
  white-space: nowrap;
}

.cat-badge:hover { opacity: 0.8; color: #fff; }
.cat-badge.lesson  { background: var(--cat-lesson); }
.cat-badge.stage   { background: var(--cat-stage); }
.cat-badge.news    { background: var(--cat-news); }
.cat-badge.shop    { background: var(--cat-shop); }
.cat-badge.minyo   { background: var(--cat-minyo); }
.cat-badge.group   { background: var(--cat-group); }
.cat-badge.misc    { background: var(--cat-misc); }

/* ========================================
   記事カード（標準・リスト型）
======================================== */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.post-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.15s;
}

.post-row:first-child { border-top: 1px solid var(--border-light); }

.post-row:hover { background: var(--gold-bg); }

.post-row-thumb {
  position: relative;
  overflow: hidden;
  background: var(--border-light);
}

.post-row-thumb img {
  width: 120px;
  height: 90px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.post-row:hover .post-row-thumb img { transform: scale(1.04); }

.post-row-nothumb {
  width: 120px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink-soft);
  flex-shrink: 0;
}

.post-row-nothumb-icon {
  width: 40px;
  height: 40px;
  opacity: 0.25;
}

.post-row-body {
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  justify-content: center;
}

.post-row-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.post-row-date {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.post-row-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-row:hover .post-row-title { color: var(--gold); }

.post-row-excerpt {
  font-size: 0.8rem;
  color: var(--text-sub);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─ カードグリッド型 ─ */
.post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border-light);
  border: 1px solid var(--border-light);
}

.post-card {
  background: var(--white);
  display: flex;
  flex-direction: column;
  transition: background 0.15s;
}

.post-card:hover { background: var(--gold-bg); }

.post-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.post-card-thumb {
  position: relative;
  overflow: hidden;
  background: var(--ink-soft);
  aspect-ratio: 16/10;
}

.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.post-card:hover .post-card-thumb img { transform: scale(1.05); }

.post-card-nothumb {
  aspect-ratio: 16/10;
  background: linear-gradient(160deg, var(--ink) 0%, var(--ink-soft) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-card-nothumb svg {
  width: 48px;
  height: 48px;
  opacity: 0.2;
}

.post-card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.post-card-date {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.post-card-title {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card:hover .post-card-title { color: var(--gold); }

/* ─ 注目記事（大型カード）─ */
.post-featured {
  position: relative;
  background: var(--ink);
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: inherit;
}

.post-featured-thumb {
  position: relative;
  aspect-ratio: 16/7;
  overflow: hidden;
}

.post-featured-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.6;
  transition: opacity 0.3s, transform 0.5s;
}

.post-featured:hover .post-featured-thumb img {
  opacity: 0.5;
  transform: scale(1.03);
}

.post-featured-nothumb {
  aspect-ratio: 16/7;
  background: linear-gradient(160deg, var(--ink) 0%, var(--ink-soft) 100%);
}

.post-featured-body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem 2rem;
  background: linear-gradient(to top, rgba(26,23,21,0.88) 0%, transparent 60%);
}

.post-featured-title {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.45;
  margin-top: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-featured-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.post-featured-date {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
}

/* ========================================
   ページネーション
======================================== */
.pagination {
  margin-top: 2rem;
}

.pagination .nav-links {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 0.5rem;
  font-size: 0.83rem;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-sub);
  background: var(--white);
  text-decoration: none;
  transition: all 0.15s;
}

.pagination a:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-bg);
}

.pagination .current {
  background: var(--ink);
  color: var(--gold);
  border-color: var(--ink);
}

/* ========================================
   アーカイブ見出し
======================================== */
.archive-heading {
  margin-bottom: 1.5rem;
}

.archive-heading-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3rem;
}

.archive-heading h1 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
}

.archive-heading-desc {
  font-size: 0.85rem;
  color: var(--text-sub);
  margin-top: 0.4rem;
  line-height: 1.7;
}

/* ========================================
   記事本文
======================================== */
.single-article {
  background: var(--white);
  border: 1px solid var(--border-light);
}

.single-body {
  padding: 2rem 2.25rem;
}

.single-meta-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  padding-bottom: 1.25rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--border-light);
}

.single-date {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.single-content {
  font-size: 1rem;
  line-height: 2;
  color: var(--text);
}

.single-content h2 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  margin: 2.5rem 0 0.9rem;
  padding: 0.55rem 1rem;
  border-left: 3px solid var(--gold);
  background: var(--gold-bg);
}

.single-content h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 2rem 0 0.7rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}

.single-content h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 1.5rem 0 0.5rem;
  color: var(--ink-soft);
}

.single-content p { margin-bottom: 1.4rem; }

.single-content ul,
.single-content ol {
  margin: 0 0 1.4rem 1.4rem;
  list-style: revert;
}

.single-content li { margin-bottom: 0.4rem; }

.single-content a {
  color: var(--cat-lesson);
  text-decoration: underline;
  text-decoration-color: rgba(46,125,114,0.35);
  transition: text-decoration-color 0.15s;
}

.single-content a:hover { text-decoration-color: var(--cat-lesson); }

.single-content blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--border);
  background: var(--cream);
  color: var(--text-sub);
}

.single-content img {
  border-radius: var(--radius);
  margin: 1rem auto;
}

.single-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.single-content th {
  background: var(--gold-bg);
  color: var(--ink-soft);
  font-weight: 700;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--border);
  text-align: left;
}

.single-content td {
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--border-light);
  vertical-align: top;
}

.single-content tr:nth-child(even) td { background: var(--cream); }

.single-content pre {
  background: var(--ink);
  color: #E8DCC8;
  padding: 1.25rem;
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 0.87rem;
  line-height: 1.6;
  margin: 1.5rem 0;
}

.single-content code {
  background: var(--gold-bg);
  color: var(--ink-soft);
  padding: 0.1em 0.4em;
  border-radius: 2px;
  font-size: 0.87em;
}

.single-content pre code { background: none; color: inherit; padding: 0; }

/* ─ タグ ─ */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
}

.post-tag {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-size: 0.75rem;
  color: var(--text-sub);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}

.post-tag:hover { border-color: var(--gold); color: var(--gold); }

/* ─ 前後ナビ ─ */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 2rem;
  background: var(--border-light);
  border: 1px solid var(--border-light);
}

.post-nav-item {
  background: var(--white);
  padding: 1rem 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

.post-nav-item:hover { background: var(--gold-bg); }
.post-nav-item.next { text-align: right; }

.post-nav-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.25rem;
}

.post-nav-title {
  font-size: 0.87rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-nav-item:hover .post-nav-title { color: var(--gold); }

/* ─ 一覧に戻る ─ */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-sub);
  border: 1px solid var(--border);
  padding: 0.45rem 1rem;
  border-radius: var(--radius);
  text-decoration: none;
  margin-top: 1.5rem;
  transition: border-color 0.15s, color 0.15s;
}

.back-link:hover { border-color: var(--gold); color: var(--gold); }

/* ========================================
   サイドバー
======================================== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sidebar-widget {
  border: 1px solid var(--border-light);
  border-top: none;
  background: var(--white);
  padding: 1.25rem;
}

.sidebar-widget:first-child {
  border-top: 1px solid var(--border-light);
}

.sidebar-widget-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

/* プロフィール */
.sidebar-profile {
  text-align: center;
}

.sidebar-profile-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 0.75rem;
  border: 2px solid var(--gold);
}

.sidebar-profile-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-profile-icon-default {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
}

.sidebar-profile-name {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.sidebar-profile-desc {
  font-size: 0.78rem;
  color: var(--text-sub);
  line-height: 1.75;
  text-align: left;
}

/* SNS */
.sidebar-sns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.sidebar-sns a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius);
  color: #fff;
  text-decoration: none;
  transition: opacity 0.15s;
}

.sidebar-sns a:hover { opacity: 0.8; color: #fff; }
.sns-yt  { background: #FF0000; }
.sns-ig  { background: #C13584; }
.sns-fb  { background: #1877F2; }
.sns-line{ background: #06C755; }
.sns-x   { background: #000; }

/* カテゴリー */
.sidebar-cat-list li {
  border-bottom: 1px solid var(--border-light);
}

.sidebar-cat-list li:last-child { border-bottom: none; }

.sidebar-cat-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.85rem;
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s;
}

.sidebar-cat-list li a:hover { color: var(--gold); }

.sidebar-cat-count {
  font-size: 0.72rem;
  color: var(--text-muted);
  background: var(--cream);
  padding: 0.1rem 0.45rem;
  border-radius: 2px;
  border: 1px solid var(--border-light);
}

/* 最近の投稿 */
.sidebar-recent li {
  border-bottom: 1px solid var(--border-light);
}

.sidebar-recent li:last-child { border-bottom: none; }

.sidebar-recent li a {
  display: flex;
  gap: 0.65rem;
  padding: 0.65rem 0;
  text-decoration: none;
  color: inherit;
  align-items: flex-start;
}

.sidebar-recent-thumb {
  width: 52px;
  height: 52px;
  overflow: hidden;
  border-radius: var(--radius);
  flex-shrink: 0;
  background: var(--border-light);
}

.sidebar-recent-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-recent-title {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sidebar-recent li a:hover .sidebar-recent-title { color: var(--gold); }

.sidebar-recent-date {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* 検索 */
.sidebar-search {
  display: flex;
  gap: 0.4rem;
}

.sidebar-search input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.45rem 0.65rem;
  font-size: 0.83rem;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  outline: none;
  transition: border-color 0.15s;
}

.sidebar-search input:focus { border-color: var(--gold); background: var(--white); }

.sidebar-search button {
  background: var(--ink);
  color: var(--gold);
  border: none;
  border-radius: var(--radius);
  padding: 0.45rem 0.8rem;
  font-size: 0.83rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
  font-family: var(--font-body);
}

.sidebar-search button:hover { background: var(--ink-soft); }

/* タグ */
.sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.sidebar-tags a, .tagcloud a {
  display: inline-block;
  font-size: 0.75rem !important;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-sub);
  text-decoration: none;
  transition: all 0.15s;
}

.sidebar-tags a:hover, .tagcloud a:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-bg);
}

/* ウィジェット（WP標準） */
.widget {
  border: 1px solid var(--border-light);
  border-top: none;
  background: var(--white);
  padding: 1.25rem;
}

.widget:first-of-type { border-top: 1px solid var(--border-light); }

.widget-title {
  font-size: 0.68rem !important;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

/* ========================================
   FAQ ショートコード
======================================== */
.faq-list {
  border: 1px solid var(--border);
  margin: 1.25rem 0;
}

.faq__title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 2rem 0 1rem;
  padding: 0.55rem 1rem;
  border-left: 3px solid var(--cat-news);
  background: var(--gold-bg);
}

.faq-item { border-bottom: 1px solid var(--border-light); }
.faq-item:last-child { border-bottom: none; }

.faq-item__q {
  background: var(--gold-bg);
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  font-weight: 700;
  font-size: 0.93rem;
  position: relative;
}

.faq-item__q::before {
  content: 'Q';
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-weight: 900;
  font-family: var(--font-serif);
}

.faq-item__a {
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  font-size: 0.9rem;
  line-height: 1.8;
  position: relative;
  background: var(--white);
}

.faq-item__a::before {
  content: 'A';
  position: absolute;
  left: 0.9rem;
  top: 0.75rem;
  color: var(--cat-lesson);
  font-weight: 900;
  font-family: var(--font-serif);
}

/* ========================================
   HowTo ショートコード
======================================== */
.howto {
  border: 1px solid var(--border);
  margin: 1.5rem 0;
  background: var(--white);
}

.howto__title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  padding: 0.85rem 1.25rem;
  background: var(--ink);
  color: var(--gold-light);
}

.howto__steps {
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
}

.howto-step {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.howto-step__num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.howto-step__name {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.howto-step__text {
  font-size: 0.85rem;
  color: var(--text-sub);
  line-height: 1.7;
}

/* ========================================
   固定ページ
======================================== */
.page-body {
  background: var(--white);
  border: 1px solid var(--border-light);
  padding: 2rem 2.25rem;
}

.page-body .single-content { font-size: 1rem; line-height: 2; }

/* ========================================
   404・検索なし
======================================== */
.error-wrap {
  padding: 4rem 0;
  text-align: center;
}

.error-num {
  font-family: var(--font-serif);
  font-size: 5rem;
  font-weight: 900;
  color: var(--border);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.error-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.error-desc {
  font-size: 0.88rem;
  color: var(--text-sub);
  margin-bottom: 2rem;
  line-height: 1.8;
}

/* ========================================
   フッター
======================================== */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  margin-top: auto;
}

.footer-top {
  padding: 3rem 0 2.5rem;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-brand-name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  text-decoration: none;
}

.footer-brand-name:hover { color: var(--gold-light); }

.footer-brand-desc {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.85;
  margin-bottom: 1rem;
}

.footer-col-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-col-list li { border-bottom: 1px solid rgba(255,255,255,0.05); }
.footer-col-list li:last-child { border-bottom: none; }
.footer-col-list li a {
  display: block;
  padding: 0.4rem 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-col-list li a:hover { color: var(--gold-light); }

/* フッターウィジェット */
.footer-widget { color: rgba(255,255,255,0.7); }
.footer-widget .footer-col-label { /* 流用 */ }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copy { font-size: 0.72rem; color: rgba(255,255,255,0.3); }

.footer-bottom-links {
  display: flex;
  gap: 1.25rem;
}

.footer-bottom-links a {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-bottom-links a:hover { color: var(--gold); }

/* ページトップ */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 42px;
  height: 42px;
  background: var(--ink);
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.2s;
  z-index: 100;
}

.back-to-top.is-visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-3px); }

/* ========================================
   ユーティリティ
======================================== */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* ========================================
   レスポンシブ
======================================== */
@media (max-width: 960px) {
  .main-layout { grid-template-columns: 1fr; }
  .footer-top  { grid-template-columns: 1fr 1fr; }
  .post-grid   { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --sidebar-w: 0; }

  .header-inner { height: 52px; padding: 0 1rem; }

  .logo-tagline { display: none; }

  .site-nav {
    position: fixed;
    inset: 0;
    background: rgba(26,23,21,0.97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
    z-index: 290;
  }

  .site-nav.is-open { opacity: 1; pointer-events: auto; }

  .site-nav ul { flex-direction: column; gap: 0; width: 100%; max-width: 280px; }

  .site-nav li a {
    font-size: 1rem;
    color: rgba(255,255,255,0.75);
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    border-radius: 0;
    display: block;
  }

  .site-nav li a:hover { color: var(--gold-light); background: rgba(255,255,255,0.04); }

  .site-nav .nav-cta a,
  .nav-cta > a {
    margin-top: 1rem;
    border-radius: var(--radius);
    text-align: center;
    display: block;
  }

  .menu-toggle { display: flex; z-index: 295; position: relative; }

  .post-row { grid-template-columns: 90px 1fr; }
  .post-row-thumb img { width: 90px; height: 68px; }
  .post-row-nothumb  { width: 90px; height: 68px; }

  .single-body  { padding: 1.25rem; }
  .page-body    { padding: 1.25rem; }
  .post-nav     { grid-template-columns: 1fr; }
  .post-nav-item.next { text-align: left; }

  .page-title-bar { padding: 1.5rem 0; }

  .footer-top { grid-template-columns: 1fr; gap: 1.5rem; padding: 2rem 0 1.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 0.5rem; }
}

/* ================================================
   Contact Form 7
   ================================================ */

.wpcf7 {
  margin-top: 1rem;
}

.wpcf7 .wpcf7-form-control-wrap {
  display: block;
  margin-bottom: 1.25rem;
}

.wpcf7 label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-sub);
  margin-bottom: 0.4rem;
  letter-spacing: 0.04em;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 textarea,
.wpcf7 select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color 0.18s;
  outline: none;
  box-sizing: border-box;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 input[type="url"]:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184,146,42,0.12);
}

.wpcf7 textarea {
  min-height: 160px;
  resize: vertical;
}

.wpcf7 input[type="checkbox"],
.wpcf7 input[type="radio"] {
  accent-color: var(--gold);
  width: 1rem;
  height: 1rem;
  margin-right: 0.4rem;
  vertical-align: middle;
}

.wpcf7 input[type="submit"] {
  display: inline-block;
  background: var(--ink);
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 0.85rem 2.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background 0.18s, color 0.18s;
}

.wpcf7 input[type="submit"]:hover {
  background: var(--gold);
  color: var(--ink);
}

.wpcf7 .wpcf7-not-valid-tip {
  font-size: 0.8rem;
  color: #9B2A2A;
  margin-top: 0.3rem;
  display: block;
}

.wpcf7 .wpcf7-response-output {
  margin-top: 1.5rem;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  border: none !important;
}

.wpcf7 .wpcf7-mail-sent-ok {
  background: #EAF4F0;
  color: #2E7D72;
}

.wpcf7 .wpcf7-validation-errors,
.wpcf7 .wpcf7-mail-sent-ng,
.wpcf7 .wpcf7-acceptance-missing {
  background: #FAF0F0;
  color: #9B2A2A;
}
