/*
Theme Name: mayan compass underscores child
Template:   underscores
Author:     sumie goto
Description: 子テーマ
Version:    1.0.0
Text Domain: underscores-child
Last updated: Apr 27, 2026
*/

/* =============================================
   Media Query Breakpoints (参照用)
   ------------------------------------------
   PC      : min-width: 1025px（デフォルト / このファイルのベーススタイル）
   Tablet  : max-width: 1024px
   SP      : max-width: 600px
   ============================================= */


/* ==============================================
   0. FONTS & KEYFRAMES
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@400;500;700&display=swap');

@font-face {
  font-family: 'Font Awesome 5 Free';
  font-style: normal;
  font-weight: 900;
  font-display: block;
  src: url('./webfonts/fontawesome5/webfonts/fa-solid-900.woff2') format('woff2');
}
@font-face {
  font-family: 'Font Awesome 5 Brands';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url('./webfonts/fontawesome5/webfonts/fa-brands-400.woff2') format('woff2');
}

@keyframes spin { to { transform: rotate(360deg); } }


/* ==============================================
   1. DESIGN TOKENS
   ============================================= */

:root {
  --navy:        #1a2744;
  --navy-deep:   #0f1829;
  --gold:        #c8a84b;
  --gold-light:  #f5e6b8;
  --gold-pale:   #fdf4e3;
  --gold-dark:   #9e7e3a;
  --cream:       #fdfaf4;
  --text:        #2a2a2a;
  --text-mid:    #555;
  --text-light:  #888;
  --white:       #fff;
  --border:      #e8d9b0;
  --radius:      10px;
  --content-w:   680px;
}


/* ==============================================
   2. RESET / BASE
   ============================================= */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body,
input,
optgroup,
select,
textarea {
  background: var(--cream);
  font-family: 'Noto Serif JP', serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.8;
}

body {
  overflow-x: hidden;
}

button {
  line-height: 1;
}

a, a:visited {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

ul, ol {
  margin: 0;
  list-style: none;
}

/* 親テーマ上書き */
.post,
.page {
  margin: 0;
}
.page-content,
.entry-content,
.entry-summary {
  margin: 0;
}


/* 表示切り替えユーティリティ（PC デフォルト） */
.mode_sp { display: none; }
.mode_tb { display: none; }


/* ==============================================
   3. GLOBAL HEADER / NAV
   ============================================= */

.site-header {
  background: var(--navy-deep);
  border-bottom: 1px solid rgba(200,168,75,0.2);
  position: sticky;
  top: 0;
  z-index: 200;
}
.site-header a            { color: #fff; }
.site-header a:visited,
.post-cat-badge a:visited { color: inherit; }

.site-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-mark {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(200,168,75,0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  animation: spin 20s linear infinite;
}
.logo-text {
  font-family: 'Noto Serif JP', serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.04em;
}
.logo-text span { color: var(--gold); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.site-nav a {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  transition: color 0.15s;
  letter-spacing: 0.04em;
}
.site-nav a:hover,
.site-nav a.current,
.site-nav a.current-menu-item { color: var(--gold); }

.nav-cta {
  background: var(--gold) !important;
  color: var(--navy-deep) !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  padding: 7px 16px;
  border-radius: 6px;
  transition: background 0.15s !important;
}
.nav-cta:hover { background: #dbb955 !important; }

/* ハンバーガーボタン（SP で表示） */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: rgba(255,255,255,0.7);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* 親テーマ nav 無効化 */
.main-navigation ul { display: none; }


/* ==============================================
   4. BREADCRUMB
   ============================================= */

.breadcrumb-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 10px 24px;
}
.breadcrumb {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  list-style: none;
}
.breadcrumb li {
  font-size: 12px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 6px;
}
.breadcrumb li a            { color: var(--text-light); transition: color 0.15s; }
.breadcrumb li a:hover      { color: var(--gold-dark); }
.breadcrumb li + li::before { content: '/'; opacity: 0.4; }
.breadcrumb li:last-child   { color: var(--text-mid); font-weight: 500; }


/* ==============================================
   5. BLOG TOP — HERO & CATEGORY TABS
   ============================================= */

.blog-hero {
  background: var(--navy-deep);
  padding: 64px 24px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 55% at 50% 0%,  rgba(200,168,75,0.16) 0%, transparent 65%),
    radial-gradient(ellipse 35% 50% at 90% 100%, rgba(200,168,75,0.07) 0%, transparent 55%);
  pointer-events: none;
}
.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: rgba(200,168,75,0.75);
  text-transform: uppercase;
  display: block;
  margin-bottom: 20px;
}
.blog-hero h1 {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(24px, 5vw, 38px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.55;
  margin-bottom: 14px;
}
.blog-hero h1 em { font-style: normal; color: var(--gold); }
.blog-hero p {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  max-width: 480px;
  margin: 0 auto 32px;
  line-height: 1.9;
}

/* カテゴリタブ */
.cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.cat-tab,
a.cat-tab:visited {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 6px 16px;
  border-radius: 50px;
  border: 1px solid rgba(200,168,75,0.3);
  color: rgba(255,255,255,0.6);
  background: transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.cat-tab.active,
.cat-tab:hover {
  background: rgba(200,168,75,0.15);
  border-color: var(--gold);
  color: var(--gold);
}


/* ==============================================
   6. BLOG TOP — LAYOUT & FEATURED POST
   ============================================= */

.blog-body {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

.featured-post {
  grid-column: 1 / 2;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  transition: box-shadow 0.2s, transform 0.2s;
  margin-bottom: 12px;
}
.featured-post:hover {
  box-shadow: 0 8px 32px rgba(26,39,68,0.1);
  transform: translateY(-2px);
}
.featured-thumb {
  background: var(--navy-deep);
  min-height: 240px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size:cover;
  background-repeat: no-repeat;
  background-position: center center;
}
.featured-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 40% 50%, rgba(200,168,75,0.2) 0%, transparent 70%);
}
.thumb-symbol {
  font-size: 64px;
  position: relative;
  z-index: 1;
  opacity: 0.85;
}
.featured-body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.post-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.post-date {
  font-size: 12px;
  color: var(--text-light);
  margin-left: auto;
}
.featured-body h2 {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(17px, 2.5vw, 21px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.6;
  margin-bottom: 12px;
}
.featured-body h2 a:hover { color: var(--gold-dark); }
.featured-body .excerpt {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.85;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-dark);
  letter-spacing: 0.04em;
  transition: gap 0.15s;
}
.read-more:hover  { gap: 10px; }
.read-more::after { content: '→'; }


/* ==============================================
   7. POST GRID & CARD（共通）
   ============================================= */

.section-label-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.section-label-row .slabel {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--gold-dark);
  text-transform: uppercase;
  white-space: nowrap;
}
.section-label-row .sline {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.post-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.post-card:hover {
  box-shadow: 0 6px 24px rgba(26,39,68,0.09);
  transform: translateY(-2px);
}

.card-thumb {
  background: var(--navy-deep);
  height: 140px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 55% at 50% 40%, rgba(200,168,75,0.18) 0%, transparent 70%);
}
.card-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.card-thumb-symbol {
  font-size: 48px;
  color: var(--gold);
  position: relative;
  z-index: 1;
  opacity: 0.85;
}
.card-thumb-symbol i {
  font-family: 'Font Awesome 5 Free' !important;
  font-weight: 900 !important;
}

.card-body { padding: 18px 18px 16px; }
.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.badge-new {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  background: var(--gold);
  color: var(--navy-deep);
  padding: 3px 9px;
  border-radius: 4px;
}
.badge-cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: var(--gold-pale);
  color: var(--gold-dark);
  padding: 3px 10px;
  border-radius: 4px;
  border: 1px solid var(--border);
}
/* タグアーカイブ用バッジ */
.badge-tag {
  font-size: 11px;
  font-weight: 700;
  background: rgba(200,168,75,0.12);
  color: var(--gold-dark);
  padding: 3px 10px;
  border-radius: 4px;
  border: 1px solid rgba(200,168,75,0.3);
}

.card-body h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.6;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-body h3 a:hover { color: var(--gold-dark); }
.card-body .card-excerpt {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 10px;
  margin-top: auto;
}
.card-date { font-size: 11px; color: var(--text-light); }
.card-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-dark);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.15s;
}
.card-link:hover  { gap: 7px; }
.card-link::after { content: '→'; }

/* 記事なし */
.no-posts {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 24px;
  background: var(--white);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}
.no-posts p { font-size: 15px; color: var(--text-light); }


/* ==============================================
   8. PAGINATION
   ============================================= */

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
}
.page-btn {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 14px;
  color: var(--text-mid);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  font-family: 'Noto Sans JP', sans-serif;
  text-decoration: none;
}
.page-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.page-btn:hover:not(.active) {
  border-color: var(--gold);
  color: var(--gold-dark);
}


/* ==============================================
   9. SIDEBAR & WIDGETS
   ============================================= */

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ウィジェット共通 */
.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.widget-head {
  background: var(--navy-deep);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.widget-head .w-icon .fas ,.widget-head .w-icon .fab { font-size: 14px; color: #fff; }
.widget-head .w-icon.fire .fas { color: orangered; }
.widget-head .w-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
}
.widget-body { padding: 18px; }

/* CTA ウィジェット */
.widget-cta {
  background: linear-gradient(135deg, #1a3a5c 0%, #2a5298 100%);
  border-color: rgba(200,168,75,0.25);
}
.widget-cta .widget-head {
  background: rgba(0,0,0,0.25);
  border-bottom: 1px solid rgba(200,168,75,0.2);
}
.widget-cta .widget-body { padding: 20px; }
.widget-cta .cta-catch {
  font-family: 'Noto Serif JP', serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.6;
  margin-bottom: 10px;
}
.widget-cta .cta-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  line-height: 1.75;
  margin-bottom: 16px;
}
.widget-cta .cta-btn {
  display: block;
  width: 100%;
  padding: 13px;
  background: var(--gold);
  color: var(--navy-deep);
  font-size: 13px;
  font-weight: 700;
  font-family: 'Noto Sans JP', sans-serif;
  text-align: center;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: background 0.15s, transform 0.12s;
  text-decoration: none;
}
.widget-cta .cta-btn:hover { background: #dbb955; transform: translateY(-1px); }
.widget-note {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  text-align: center;
  margin-top: 10px;
}

/* カテゴリーリスト */
.cat-list { list-style: none; padding: 0; margin: 0; }
.cat-list li { border-bottom: 1px solid rgba(232,217,176,0.3); }
.cat-list li:last-child { border-bottom: none; }
.cat-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 4px;
  font-size: 13px;
  color: var(--text-mid);
  transition: color 0.15s, padding-left 0.15s;
}
.cat-list a:hover     { color: var(--gold-dark); padding-left: 6px; }
.cat-list a.current   { color: var(--gold-dark); font-weight: 700; }
.cat-list .count {
  font-size: 11px;
  background: var(--gold-pale);
  color: var(--gold-dark);
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

/* 人気記事 */
.popular-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.popular-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 4px 0;
}
.pop-num {
  font-family: 'Noto Serif JP', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  min-width: 20px;
  opacity: 0.6;
}
.pop-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.5;
  transition: color 0.15s;
}
.popular-item a:hover .pop-title { color: var(--gold-dark); }

/* 目次 */
.toc-box {
  background: var(--gold-pale);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.toc-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.toc-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.toc-list li { font-size: 13px; }
.toc-list a {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 5px 0;
  color: var(--text-mid);
  border-bottom: 1px solid rgba(200,168,75,0.2);
  line-height: 1.5;
  transition: color 0.15s;
}
.toc-list a:hover      { color: var(--gold-dark); }
.toc-list a::before    { content: '▶'; color: var(--gold); font-size: 9px; flex-shrink: 0; margin-top: 4px; }

/* LINE ウィジェット */
.line-widget-container { padding: 18px; text-align: center; }
.line-desc { font-size: 12px; color: var(--text-light); line-height: 1.75; margin-bottom: 14px; }
.line-qr-area {
  margin-bottom: 15px;
  padding: 10px;
  background: #fff;
  border: 1px solid #eee;
  display: inline-block;
}
.line-qr-area img { width: 120px; height: 120px; display: block; margin: 0 auto 5px; }
.line-qr-area p   { font-size: 10px; color: #999; margin: 0; }
.line-widget-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  background: #06C755;
  color: var(--white)!important;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Noto Sans JP', sans-serif;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.12s;
}
.line-widget-btn:hover { background: #04a847; transform: translateY(-1px); }


/* ==============================================
   10. SORT BAR（アーカイブ）
   ============================================= */

.sort-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.sort-bar-left           { font-size: 13px; color: var(--text-light); }
.sort-bar-left strong    { color: var(--text-mid); font-weight: 700; }
.sort-tabs               { display: flex; gap: 6px; }
.sort-tab {
  font-size: 12px;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.15s;
  font-family: 'Noto Sans JP', sans-serif;
  text-decoration: none;
}
.sort-tab.active,
.sort-tab:hover { border-color: var(--gold); color: var(--gold-dark); background: var(--gold-pale); }


/* ==============================================
   11. CATEGORY / ARCHIVE HERO
   ============================================= */

/* カテゴリーアーカイブ（category.php） */
.cat-hero {
  background: var(--navy-deep);
  position: relative;
  overflow: hidden;
  padding: 64px 24px 56px;
}
.cat-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 55% at 50% 0%,  rgba(200,168,75,0.18) 0%, transparent 65%),
    radial-gradient(ellipse 30% 50% at 90% 100%, rgba(200,168,75,0.07) 0%, transparent 55%);
  pointer-events: none;
}
.cat-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.cat-hero-info {}
.cat-eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.cat-eyebrow-line { width: 32px; height: 1px; background: rgba(200,168,75,0.5); }
.cat-eyebrow-text {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: rgba(200,168,75,0.75);
  text-transform: uppercase;
}
.cat-hero-title { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.cat-icon-badge {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: rgba(200,168,75,0.12);
  border: 1px solid rgba(200,168,75,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  flex-shrink: 0;
}
.cat-name {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(26px, 4.5vw, 38px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  letter-spacing: 0.02em;
}
.cat-description {
  font-size: 15px;
  color: rgba(255,255,255,0.65);
  line-height: 1.9;
  margin-bottom: 24px;
  max-width: 480px;
}
.cat-meta-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cat-count-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(200,168,75,0.12);
  border: 1px solid rgba(200,168,75,0.28);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
}
.cat-count-badge strong { color: var(--gold); font-size: 15px; font-weight: 700; }

/* カテゴリーナビ（右カラム） */
.cat-hero-nav {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(200,168,75,0.15);
  border-radius: 14px;
  padding: 24px;
}
.cat-hero-nav-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: rgba(200,168,75,0.6);
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cat-hero-nav-title::after { content: ''; flex: 1; height: 1px; background: rgba(200,168,75,0.15); }
.cat-nav-list { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.cat-nav-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s;
  gap: 10px;
}
.cat-nav-item a:hover           { background: rgba(200,168,75,0.08); border-color: rgba(200,168,75,0.2); }
.cat-nav-item--active a         { background: rgba(200,168,75,0.14); border-color: rgba(200,168,75,0.35); }
.cat-nav-left                   { display: flex; align-items: center; gap: 10px; }
.cat-nav-emoji                  { font-size: 16px; }
.cat-nav-name                   { font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.7); line-height: 1.3; }
.cat-nav-item--active .cat-nav-name { color: var(--gold); font-weight: 700; }
.cat-nav-count {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.06);
  padding: 2px 8px;
  border-radius: 10px;
  flex-shrink: 0;
}
.cat-nav-item--active .cat-nav-count { background: rgba(200,168,75,0.15); color: var(--gold); }

/* archive.php 共通ヒーロー */
.archive-hero {
  background: var(--navy-deep);
  position: relative;
  overflow: hidden;
  padding: 64px 24px 56px;
}
.archive-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 55% at 50% 0%,  rgba(200,168,75,0.18) 0%, transparent 65%),
    radial-gradient(ellipse 30% 50% at 90% 100%, rgba(200,168,75,0.07) 0%, transparent 55%);
  pointer-events: none;
}
.archive-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.archive-hero--tag .archive-hero-inner {
  grid-template-columns: 1fr;
  max-width: 720px;
  text-align: left;
}
.archive-eyebrow        { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.archive-eyebrow-line   { width: 32px; height: 1px; background: rgba(200,168,75,0.5); }
.archive-eyebrow-text   { font-size: 11px; font-weight: 700; letter-spacing: 0.22em; color: rgba(200,168,75,0.75); text-transform: uppercase; }
.archive-hero-title     { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.archive-icon-badge {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: rgba(200,168,75,0.12);
  border: 1px solid rgba(200,168,75,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  flex-shrink: 0;
}
.archive-hero--tag .archive-icon-badge {
  font-size: 26px;
  font-weight: 700;
  color: var(--gold);
  background: rgba(200,168,75,0.1);
}
.archive-term-name {
  font-size: clamp(26px, 4.5vw, 38px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  letter-spacing: 0.02em;
}
.archive-description         { font-size: 15px; color: rgba(255,255,255,0.65); line-height: 1.9; margin-bottom: 24px; max-width: 480px; }
.archive-description p       { margin-bottom: 8px; color: rgba(255,255,255,0.65); font-size: 15px; }
.archive-meta-row            { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.archive-count-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(200,168,75,0.12);
  border: 1px solid rgba(200,168,75,0.28);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
}
.archive-count-badge strong  { color: var(--gold); font-size: 15px; font-weight: 700; }
.related-tags-row            { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.related-tags-label          { font-size: 12px; color: rgba(255,255,255,0.45); }

/* archive カテゴリーナビ（右カラム） */
.archive-hero-nav {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(200,168,75,0.15);
  border-radius: 14px;
  padding: 24px;
}
.archive-hero-nav-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: rgba(200,168,75,0.6);
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.archive-hero-nav-title::after { content: ''; flex: 1; height: 1px; background: rgba(200,168,75,0.15); }


/* ==============================================
   12. ARCHIVE BODY LAYOUT
   ============================================= */

.archive-body {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}


/* ==============================================
   13. TAG CLOUD
   ============================================= */

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag-cloud a,
.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px !important;
  line-height: 1;
  padding: 6px 13px;
  border-radius: 50px;
  background: var(--white);
  color: var(--text-mid);
  border: 1px solid var(--border);
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    transform 0.12s ease,
    box-shadow 0.15s ease;
}
.tag-cloud a:hover,
.tag-chip:hover {
  background: var(--gold-pale);
  color: var(--gold-dark);
  border-color: var(--gold);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(200,168,75,0.18);
}
.tag-cloud a.current-tag,
.tag-chip--active {
  background: var(--gold-pale);
  color: var(--gold-dark);
  border-color: var(--gold);
  font-weight: 700;
  border-left-width: 3px;
  padding-left: 11px;
  pointer-events: none;
}
.tag-cloud a.tag-1 { opacity: 0.55; }
.tag-cloud a.tag-2 { opacity: 0.70; }
.tag-cloud a.tag-3 { opacity: 0.85; }
.tag-cloud a.tag-4 { opacity: 0.95; }
.tag-cloud a.tag-5 { font-weight: 700; border-color: rgba(200,168,75,0.45); color: var(--navy); }
.tag-cloud a:hover { opacity: 1 !important; }
.tag-cloud a:focus-visible,
.tag-chip:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.tag-cloud.is-loading   { opacity: 0.5; pointer-events: none; }
.tag-cloud--collapsed {
  max-height: 120px;
  overflow: hidden;
  position: relative;
}
.tag-cloud--collapsed::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40px;
  background: linear-gradient(transparent, var(--white));
  pointer-events: none;
}
.tag-cloud-toggle {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 7px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
  color: var(--text-light);
  cursor: pointer;
  font-family: 'Noto Sans JP', sans-serif;
  transition: border-color 0.15s, color 0.15s;
  text-align: center;
}
.tag-cloud-toggle:hover { border-color: var(--gold); color: var(--gold-dark); }


/* ==============================================
   14. POST HERO（single.php）
   ============================================= */

.post-hero {
  background: var(--navy-deep);
  padding: 56px 24px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.post-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 55% at 50% 0%,  rgba(200,168,75,0.18) 0%, transparent 65%),
    radial-gradient(ellipse 30% 45% at 85% 100%, rgba(200,168,75,0.07) 0%, transparent 55%);
  pointer-events: none;
}
.post-hero-inner { position: relative; max-width: var(--content-w); margin: 0 auto; }
.post-cat-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  background: rgba(200,168,75,0.15);
  color: var(--gold);
  border: 1px solid rgba(200,168,75,0.3);
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.post-hero .title-sub {
  font-size: clamp(1.2rem, 4.5vw, 1.4rem);
  font-weight: 200;
  color: var(--white);
}

.post-hero h1 {
  font-size: clamp(20px, 4.5vw, 30px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.6;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}
.post-hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.post-hero-meta .pmeta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}
.pmeta-icon { font-size: 13px; }
.post-hero-thumb {
  max-width: 680px;
  margin: 32px auto 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(200,168,75,0.2);
}
.thumb-placeholder {
  background: linear-gradient(135deg, #1a2f4a 0%, #0f1829 100%);
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-size: contain;
  background-position: center center;
  background-repeat:no-repeat;
}
.thumb-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 55% at 50% 45%, rgba(200,168,75,0.22) 0%, transparent 70%);
}
.thumb-symbol { font-size: 80px; position: relative; z-index: 1; opacity: 0.85; color: var(--gold); }


/* ==============================================
   15. SINGLE — POST LAYOUT & ARTICLE BODY
   ============================================= */

.post-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 52px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 52px;
  align-items: start;
}
.post-content { min-width: 0; }

/* リード文 */
.entry-lead {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.95;
  color: var(--text);
  padding: 22px 24px;
  background: var(--gold-pale);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 36px;
}

/* 見出し */
.entry-body h2 {
  font-size: clamp(18px, 3vw, 22px);
  font-weight: 700;
  line-height: 1.55;
  margin: 44px 0 16px;
  padding-left: 14px;
  border-left: 4px solid var(--gold);
}
.entry-body h3 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
  margin: 30px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

/* 本文 */
.entry-body p          {  line-height: 1.95; margin-bottom: 18px; }
.entry-body strong     { font-weight: 700; color: var(--text); }

/* リスト */
.point-box ul,
.entry-body ul {
  list-style: none;
  padding: 0;
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.point-box ul li,
.entry-body ul li {
  padding-left: 22px;
  position: relative;
  font-size: 14px;
  color: var(--text);
  line-height: 1.75;
}
.point-box ul li::before  { content: '\f00c'; position: absolute; left: 2px; color: var(--gold); font-weight: 700;--_fa-family: var(--fa-family, var(--fa-style-family, "Font Awesome 7 Free"));font-family: var(--_fa-family); }
.entry-body ul li::before { content: '\f0da'; position: absolute; left: 2px; color: var(--gold); font-size: 10px; top: 6px; 
--_fa-family: var(--fa-family, var(--fa-style-family, "Font Awesome 7 Free"));font-family: var(--_fa-family);}
.entry-body ol {
  padding-left: 22px;
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.entry-body ol li { font-size: 1.1rem; color: var(--text); line-height: 1.75; padding-left: 4px; }

/* ポイントボックス */
.point-box {
  background: var(--gold-pale);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 28px 0;
}
.point-box-title { font-size: inherit; font-weight: 700; letter-spacing: 0.08em; color: var(--gold-dark); margin-bottom: 12px; }

/* テーブル */
.entry-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
  border-radius: var(--radius);
  overflow: hidden;
}
.entry-body table th {
  background: var(--navy);
  color: var(--gold-light);
  font-weight: 700;
  padding: 11px 14px;
  text-align: left;
  font-size: 13px;
  letter-spacing: 0.03em;
}
.entry-body table td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  color: var(--text-mid);
  vertical-align: top;
  line-height: 1.7;
}
.entry-body table tr:nth-child(even) td { background: var(--gold-pale); }

/* 2カラム比較 */
.compare-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 24px 0;
}
.col-bad  { background: #fdf2f2; border: 1px solid #f0c0c0; border-radius: var(--radius); padding: 18px; }
.col-good { background: #f2fdf5; border: 1px solid #b0e0be; border-radius: var(--radius); padding: 18px; }
.col-label              { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; margin-bottom: 10px; }
.col-bad .col-label     { color: #c62828; }
.col-good .col-label    { color: #2e7d32; }
.compare-cols ul        { list-style: none; padding: 0; gap: 6px; }
.compare-cols ul li     { font-size: 13px; padding-left: 18px; position: relative; color: var(--text); line-height: 1.7; }
.col-bad ul li::before  { content: '✕'; position: absolute; left: 0; color: #e57373; font-size: 11px; }
.col-good ul li::before { content: '◎'; position: absolute; left: 0; color: #4caf50; font-size: 11px; }

/* ステップカード */
.step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 24px 0;
}
.step-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px;
}
.step-num   { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; color: var(--gold-dark); margin-bottom: 8px; }
.step-title { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 6px; line-height: 1.5; }
.step-body  { font-size: 12px; color: var(--text-light); line-height: 1.7; }

/* 記事固有：3層テーブル風ビジュアル */
.layer-visual { margin: 24px 0; display: flex; flex-direction: column; gap: 6px; }
.layer-item { display: flex; align-items: stretch; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }
.layer-depth { width: 72px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; writing-mode: horizontal-tb; text-align: center; padding: 12px 8px; line-height: 1.4; }
.layer-item--outer .layer-depth { background: rgba(200,168,75,0.12); color: var(--gold-dark); }
.layer-item--inner .layer-depth { background: rgba(200,168,75,0.2); color: var(--gold-dark); }
.layer-item--deep .layer-depth { background: rgba(200,168,75,0.32); color: #7a5c1e; }
.layer-body { flex: 1; padding: 14px 18px; background: var(--white); }
.layer-name { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.layer-desc { font-size: 13px; color: var(--text-mid); line-height: 1.7; }
.layer-word { display: inline-block; font-size: 11px; font-weight: 700; background: var(--gold-pale); color: var(--gold-dark); border: 1px solid var(--border); padding: 2px 10px; border-radius: 4px; margin-top: 4px; }

/* 記事固有：天気×体質ボックス */
.analogy-box { background: var(--navy-deep); border: 1px solid rgba(200,168,75,0.25); border-radius: 12px; padding: 24px 28px; margin: 28px 0; position: relative; overflow: hidden; }
.analogy-box::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 55% at 30% 50%, rgba(200,168,75,0.1) 0%, transparent 70%); pointer-events: none; }
.analogy-box > * { position: relative; }
.analogy-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 0.18em; color: rgba(200,168,75,0.65); text-transform: uppercase; margin-bottom: 12px; }
.analogy-title { font-family: 'Noto Serif JP', serif; font-size: 17px; font-weight: 700; color: var(--white); line-height: 1.55; margin-bottom: 16px; }
.analogy-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.analogy-col { background: rgba(255,255,255,0.05); border: 1px solid rgba(200,168,75,0.18); border-radius: 8px; padding: 16px; }
.analogy-col-icon { font-size: 24px; margin-bottom: 8px; }
.rain .analogy-col-icon { color:blue}
.dna .analogy-col-icon { color:blueviolet}
.analogy-col-label { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; color: var(--gold); margin-bottom: 6px; }
.analogy-col-title { font-size: 14px; font-weight: 700; color: var(--white); margin-bottom: 6px; line-height: 1.4; }
.analogy-col-body { font-size: 12px; color: rgba(255,255,255,0.6); line-height: 1.7; }
.analogy-arrow { display: flex; align-items: center; justify-content: center; }
.analogy-arrow-icon { font-size: 20px; color: var(--gold); opacity: 0.5; }

/* 記事固有：3つの理由カード */
.reason-list { display: flex; flex-direction: column; gap: 16px; margin: 24px 0; }
.reason-card { display: flex; gap: 16px; align-items: flex-start; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.reason-num { font-family: 'Noto Serif JP', serif; font-size: 28px; font-weight: 700; color: var(--gold); line-height: 1; min-width: 32px; opacity: 0.7; flex-shrink: 0; margin-top: 2px; }
.reason-body {}
.reason-title { font-size:1.2rem; font-weight: 700; color: var(--navy); line-height: 1.5; margin-bottom: 6px; }
.reason-text { font-size: inherit; color: var(--text-mid); line-height: 1.8; }
.reason-text strong { color: var(--text); font-weight: 700; }

/* 記事固有：3層テーブル風ビジュアル */
.layer-visual { margin: 24px 0; display: flex; flex-direction: column; gap: 6px; }
.layer-item { display: flex; align-items: stretch; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }
.layer-depth { width: 72px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; writing-mode: horizontal-tb; text-align: center; padding: 12px 8px; line-height: 1.4; }
.layer-item--outer .layer-depth { background: rgba(200,168,75,0.12); color: var(--gold-dark); }
.layer-item--inner .layer-depth { background: rgba(200,168,75,0.2); color: var(--gold-dark); }
.layer-item--deep .layer-depth { background: rgba(200,168,75,0.32); color: #7a5c1e; }
.layer-body { flex: 1; padding: 14px 18px; background: var(--white); }
.layer-name { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.layer-desc { font-size: 13px; color: var(--text-mid); line-height: 1.7; }
.layer-word { display: inline-block; font-size: 11px; font-weight: 700; background: var(--gold-pale); color: var(--gold-dark); border: 1px solid var(--border); padding: 2px 10px; border-radius: 4px; margin-top: 4px; }

/* 強調テキスト */
.emphasis-text {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  padding: 22px 16px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  line-height: 1.7;
  margin: 28px 0;
}

/* 記事内CTA */
.in-article-cta {
  background: linear-gradient(135deg, #1a3a5c 0%, #2a5298 100%);
  border-radius: 12px;
  padding: 28px;
  margin: 40px 0;
  position: relative;
  overflow: hidden;
}

.in-article-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(200,168,75,0.13) 0%, transparent 70%);
  pointer-events: none;
}
.in-article-cta > * { position: relative; }
.iac-title  { font-family: 'Noto Serif JP', serif; font-size: 17px; font-weight: 700; color: var(--white); line-height: 1.6; margin-bottom: 10px; }
.iac-body   { font-size: 13px; color: rgba(255,255,255,0.65); line-height: 1.85; margin-bottom: 16px; }
.iac-body ul           { list-style: none; padding: 0; gap: 5px; margin-bottom: 0; }
.iac-body ul li        { color: rgba(255,255,255,0.75); font-size: 13px; padding-left: 18px; position: relative; line-height: 1.65; }
.iac-body ul li::before{ content: '✦'; position: absolute; left: 0; color: var(--gold); font-size: 9px; top: 5px; }
.iac-btn {
  display: inline-block;
  background: var(--gold);
  color: var(--navy-deep);
  font-size: 14px;
  font-weight: 700;
  font-family: 'Noto Sans JP', sans-serif;
  padding: 13px 28px;
  border-radius: 8px;
  transition: background 0.15s, transform 0.12s;
  border: none;
  cursor: pointer;
  text-decoration: none;
}
a.iac-btn:visited{color: var(--navy-deep);}
.iac-btn:hover { background: #dbb955; transform: translateY(-1px); }
.iac-note { font-size: 11px; color: rgba(255,255,255,0.3); margin-top: 10px; }

/* 記事タグ */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 40px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.post-tags a {
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-mid);
  transition: border-color 0.15s, color 0.15s;
}
.post-tags a::before    { content: '#'; }
.post-tags a:hover      { border-color: var(--gold); color: var(--gold-dark); }

/* 著者ボックス */
.author-box {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 32px 0;
}
.author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  border: 2px solid rgba(200,168,75,0.3);
}
.author-name { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.author-bio  { font-size: 13px; color: var(--text-light); line-height: 1.75; }

/* 前後記事ナビ */
.navigation.post-navigation .nav-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 36px 0;
}
.navigation.post-navigation .nav-links a {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  transition: border-color 0.15s, box-shadow 0.15s;
  display: block;
}
.navigation.post-navigation .nav-links a:hover {
  border-color: var(--gold);
  box-shadow: 0 3px 14px rgba(200,168,75,0.12);
}
.navigation.post-navigation .nav-dir   { font-size: 11px; color: var(--text-light); margin-bottom: 6px; display: flex; align-items: center; gap: 4px; }
.navigation.post-navigation .nav-title { font-size: 13px; font-weight: 700; color: var(--navy); line-height: 1.5; }

/* 関連記事 */
.related-section { margin-top: 48px; }
.related-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold-dark);
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.related-title::after  { content: ''; flex: 1; height: 1px; background: var(--border); }
.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.related-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.related-card:hover    { box-shadow: 0 5px 20px rgba(26,39,68,0.08); transform: translateY(-2px); }
.related-thumb {
  background: var(--navy-deep);
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  position: relative;
}
.related-thumb::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 55% at 50% 50%, rgba(200,168,75,0.16) 0%, transparent 70%); }
.related-thumb span    { position: relative; z-index: 1; }
.related-body          { padding: 14px 14px 12px; }
.related-cat           { font-size: 10px; font-weight: 700; color: var(--gold-dark); margin-bottom: 6px; letter-spacing: 0.06em; }
.related-body h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 読了プログレスバー */
.read-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: var(--gold);
  width: 0%;
  transition: width 0.1s linear;
  z-index: 300;
}


/* ==============================================
   16. FOOTER
   ============================================= */

.site-footer {
  background: var(--navy-deep);
  border-top: 1px solid rgba(200,168,75,0.15);
  padding: 48px 24px 32px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .fb-logo {
  font-family: 'Noto Serif JP', serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}
.footer-brand .fb-logo span { color: var(--gold); }
.footer-brand p             { font-size: 13px; color: rgba(255,255,255,0.45); line-height: 1.85; }
.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-col ul             { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul a           { font-size: 13px; color: rgba(255,255,255,0.5); transition: color 0.15s; }
.footer-col ul a:hover     { color: var(--gold); }
.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p           { font-size: 12px; color: rgba(255,255,255,0.25); }
.footer-links              { display: flex; gap: 20px; }
.footer-links a            { font-size: 12px; color: rgba(255,255,255,0.3); transition: color 0.15s; }
.footer-links a:hover      { color: rgba(255,255,255,0.6); }


/* ==============================================
   MEDIA QUERIES
   ============================================= */

/* ──────────────────────────────────────────────
   TABLET  max-width: 1024px
   ────────────────────────────────────────────── */
@media (max-width: 1024px) {

  .mode_tb { display: block !important; }
  .mode_sp { display: none !important; }

  /* カテゴリーヒーロー：右カラムナビ非表示 */
  .cat-hero-inner,
  .archive-hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .cat-hero-nav,
  .archive-hero-nav   { display: none; }

  /* ブログ・アーカイブ：2カラム → 1カラム */
  .blog-body,
  .archive-body,
  .post-layout {
    grid-template-columns: 1fr;
    padding: 40px 20px 64px;
    gap: 40px;
  }
  .sidebar       { order: 2; }

  /* フィーチャー記事：横並び → 縦 */
  .featured-post         { grid-template-columns: 1fr; }
  .featured-thumb        { min-height: 180px; }

  /* ステップカード：3列 → 2列 */
  .step-grid { grid-template-columns: 1fr 1fr; }

  /* フッター：3列 → 2列 */
  .footer-inner { grid-template-columns: 1fr 1fr; }

}

/* ──────────────────────────────────────────────
   SMARTPHONE  max-width: 600px
   ────────────────────────────────────────────── */
@media (max-width: 600px) {

  .mode_sp { display: block !important; }
  .mode_tb { display: block !important; }
  .mode_pc { display: none !important; }

  /* フォントサイズ */
  body, input, optgroup, select, textarea { font-size: 1.2rem; }

  /* ナビ：ハンバーガーメニュー化 */
  .site-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px; left: 0; right: 0;
    background: var(--navy-deep);
    padding: 16px 24px 20px;
    gap: 16px;
    border-bottom: 1px solid rgba(200,168,75,0.15);
    z-index: 199;
  }
  .site-nav.open { display: flex; }
  .site-nav a    { font-size: 14px; }
  .nav-toggle    { display: flex; }

  /* ヒーロー */
  .post-hero       { padding: 40px 20px 36px; }
  .cat-hero        { padding: 44px 20px 40px; }
  .archive-hero    { padding: 44px 20px 40px; }
  .cat-name,
  .archive-term-name { font-size: 26px; }
  .thumb-placeholder { height: 220px; }

  /* グリッド：1カラム */
  .post-grid          { grid-template-columns: 1fr; }
  .compare-cols       { grid-template-columns: 1fr; }
  .step-grid          { grid-template-columns: 1fr; }
  .related-grid       { grid-template-columns: 1fr; }
  .navigation.post-navigation .nav-links { grid-template-columns: 1fr; }

  /* フィーチャー */
  .featured-body   { padding: 22px 18px; }

  /* ソートバー */
  .sort-bar        { flex-direction: column; align-items: flex-start; }

  /* LINE QR（SP非表示） */
  .line-qr-area    { display: none; }

  /* アーカイブ */
  .archive-hero-inner { display: block; }

  /* フッター：1カラム */
  .footer-inner    { grid-template-columns: 1fr; }

}
