/*
Theme Name: ComfyClub
Theme URI: https://comfyclub.jp
Description: ComfyClub 公式パートナーサイト
Author: BANRI LLC
Version: 1.1.0
*/

/* =============================================
   DESIGN TOKENS
============================================= */
:root {
  --lv1: #9b8fd4;
  --lv2: #b8aee8;
  --lv3: #d0c8f0;
  --lv4: #eceaf8;
  --lv5: #f5f4fc;
  --sk1: #88b8e0;
  --grad: linear-gradient(120deg, #9b8fd4 0%, #a8b8e4 45%, #88c4e0 100%);
  --grad-soft: linear-gradient(135deg, #eceaf8 0%, #d8edf8 100%);
  --text1: #1e1a38;
  --text2: #6058a0;
  --text3: #b0a8d0;
  --border: rgba(155,143,212,0.18);
  --border2: rgba(155,143,212,0.35);
  --white: #ffffff;
  --r: 14px;
  --r-lg: 20px;
  --site-max: 1200px;
  --content-max: 780px;
}

/* =============================================
   RESET / BASE
============================================= */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, 'Hiragino Sans', 'Noto Sans JP', sans-serif;
  background: var(--lv5);
  color: var(--text1);
  width: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  line-height: 1.7;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* =============================================
   LAYOUT WRAPPERS
============================================= */
.wrap {
  max-width: var(--site-max);
  margin: 0 auto;
  padding: 0 18px;
}
.wrap-narrow {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 18px;
}

/* =============================================
   HEADER
============================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.93);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.hd-inner {
  max-width: var(--site-max);
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px;
  gap: 16px;
}
.site-logo { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.logo-icon {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
}
.logo-icon svg { width: 18px; height: 18px; fill: #fff; }
.logo-text {
  font-size: 18px; font-weight: 800; letter-spacing: -0.4px;
  background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hd-badge {
  font-size: 10px; font-weight: 700; padding: 3px 10px; border-radius: 20px;
  border: 1px solid var(--border2); color: var(--lv1); background: var(--lv5);
  white-space: nowrap;
}

/* モバイルナビ */
.site-nav-wrap {
  overflow-x: auto; scrollbar-width: none;
  border-top: 1px solid var(--border);
}
.site-nav-wrap::-webkit-scrollbar { display: none; }
.site-nav {
  display: flex; gap: 2px; list-style: none;
  padding: 8px 14px 10px;
  max-width: var(--site-max); margin: 0 auto;
}
.site-nav a {
  white-space: nowrap; padding: 5px 14px;
  font-size: 13px; font-weight: 600;
  color: var(--text2); border-radius: 20px; transition: all 0.2s; display: block;
}
.site-nav a:hover,
.site-nav .current-menu-item > a { background: var(--lv4); color: var(--lv1); }

/* =============================================
   BREADCRUMB
============================================= */
.breadcrumb {
  background: var(--white); border-bottom: 1px solid var(--border);
}
.breadcrumb-inner {
  max-width: var(--site-max); margin: 0 auto; padding: 11px 18px;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.breadcrumb a,
.breadcrumb span { font-size: 11px; color: var(--text3); }
.breadcrumb a { color: var(--lv1); }
.breadcrumb .sep { font-size: 10px; }

/* =============================================
   HERO SLIDER
============================================= */
.hero-section { background: var(--white); }
.hero-wrap { width: 100%; overflow: hidden; }
.hero-track {
  display: flex;
  transition: transform 0.42s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.hero-slide {
  min-width: 100%; height: 280px;
  position: relative; overflow: hidden; flex-shrink: 0;
}
.hero-slide-bg { position: absolute; inset: 0; }
.hero-slide-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide-bg.no-img {
  background: linear-gradient(145deg,#e8e4f8 0%,#c8c0f0 30%,#a8b8e8 60%,#88c8e8 100%);
}
.slide-circles { position: absolute; inset: 0; overflow: hidden; }
.sc { position: absolute; border-radius: 50%; background: rgba(255,255,255,0.15); }
.sc1 { width: 220px; height: 220px; top: -60px; right: -40px; }
.sc2 { width: 120px; height: 120px; top: 60px; right: 100px; background: rgba(255,255,255,0.1); }
.sc3 { width: 70px; height: 70px; bottom: 40px; left: 50px; background: rgba(255,255,255,0.12); }
.slide-waves { position: absolute; bottom: 0; left: 0; right: 0; height: 80px; }
.slide-waves svg { width: 100%; height: 100%; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top,rgba(30,26,56,.55) 0%,rgba(30,26,56,.04) 55%,transparent 100%);
  padding: 20px 24px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.hero-overlay-inner {
  max-width: var(--site-max); margin: 0 auto; width: 100%;
}
.slide-tag {
  display: inline-block;
  background: rgba(255,255,255,0.28); border: 1px solid rgba(255,255,255,0.5);
  backdrop-filter: blur(6px);
  font-size: 10px; font-weight: 700; letter-spacing: 0.8px;
  padding: 3px 12px; border-radius: 20px;
  margin-bottom: 10px; width: fit-content; color: #fff;
}
.slide-title {
  font-size: 20px; font-weight: 800;
  line-height: 1.38; letter-spacing: -0.3px; color: #fff;
}
.slide-date { font-size: 11px; color: rgba(255,255,255,0.75); margin-top: 7px; }
.hero-dots {
  display: flex; justify-content: center; gap: 5px;
  padding: 12px 0 10px; background: var(--white);
}
.hdot {
  height: 4px; border-radius: 2px; border: none; cursor: pointer;
  background: var(--lv3); transition: all 0.3s; padding: 0; width: 18px;
}
.hdot.on { width: 30px; background: var(--lv1); }

/* =============================================
   DIVIDER
============================================= */
.hr { height: 1px; background: var(--border); }

/* =============================================
   SECTION
============================================= */
.sec { padding: 40px 0; }
.sec-bg { background: var(--lv5); }
.sec-inner {
  max-width: var(--site-max); margin: 0 auto; padding: 0 18px;
}
.sec-head { margin-bottom: 24px; }
.sec-label {
  display: inline-block;
  font-size: 9px; font-weight: 800; letter-spacing: 1.5px;
  color: var(--lv1); border-bottom: 2px solid var(--lv1);
  padding-bottom: 2px; margin-bottom: 8px;
}
.sec-title { font-size: 22px; font-weight: 800; letter-spacing: -0.3px; }
.sec-desc { font-size: 13px; color: var(--text2); line-height: 1.75; margin-top: 6px; }

/* =============================================
   LIVER FEED
============================================= */
.liver-row {
  display: flex; gap: 8px; overflow-x: auto;
  padding-bottom: 8px; margin-bottom: 20px; scrollbar-width: none;
}
.liver-row::-webkit-scrollbar { display: none; }
.lchip {
  display: flex; align-items: center; gap: 7px;
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 30px; padding: 5px 14px 5px 5px;
  white-space: nowrap; cursor: pointer; transition: all 0.2s;
}
.lchip.on { border-color: var(--lv1); background: var(--lv5); }
.lav {
  width: 28px; height: 28px; border-radius: 50%;
  font-size: 11px; font-weight: 700; color: #fff;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.lname { font-size: 12px; font-weight: 700; color: var(--text1); }
.live-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: #e03050; margin-left: 2px;
  animation: blink 1.5s infinite;
}
@keyframes blink { 0%,100%{opacity:1}50%{opacity:.2} }

/* X投稿グリッド */
.post-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.x-post {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r); padding: 16px;
}
.x-post-hd { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.x-av {
  width: 38px; height: 38px; border-radius: 50%;
  font-size: 14px; font-weight: 700; color: #fff;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.x-name { font-size: 13px; font-weight: 700; }
.x-handle { font-size: 11px; color: var(--text3); }
.x-time { font-size: 11px; color: var(--text3); margin-left: auto; }
.x-body { font-size: 13px; line-height: 1.75; }
.x-body a { color: var(--lv1); }
.x-img {
  margin-top: 10px; border-radius: 10px; height: 140px;
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.x-acts { display: flex; gap: 18px; margin-top: 11px; }
.xact { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text3); }
.xact svg { width: 13px; height: 13px; fill: var(--text3); }

/* =============================================
   GENRE GRID
============================================= */
.genre-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.gcard {
  display: flex; align-items: stretch;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r); overflow: hidden; transition: border-color 0.2s;
}
.gcard:hover { border-color: var(--border2); }
.gico {
  width: 76px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.gico svg { width: 30px; height: 30px; }
.gbody { padding: 14px 14px 14px 0; flex: 1; }
.gtag {
  display: inline-block; font-size: 9px; font-weight: 800; letter-spacing: 0.8px;
  background: var(--lv4); color: var(--lv1);
  padding: 2px 9px; border-radius: 8px; margin-bottom: 5px;
}
.gtitle { font-size: 14px; font-weight: 800; margin-bottom: 4px; }
.gdesc { font-size: 12px; color: var(--text2); line-height: 1.65; }

/* =============================================
   RECRUIT
============================================= */
.rec-wrap { max-width: 860px; margin: 0 auto; }
.rec-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
}
.rec-top {
  background: var(--grad); padding: 36px 28px 32px;
  position: relative; overflow: hidden;
}
.rec-circles { position: absolute; inset: 0; }
.rc { position: absolute; border-radius: 50%; background: rgba(255,255,255,0.15); }
.rc1 { width: 260px; height: 260px; top: -90px; right: -70px; }
.rc2 { width: 120px; height: 120px; bottom: -40px; left: 20px; }
.rec-top-inner { position: relative; z-index: 1; }
.rec-sub-tag {
  display: inline-block;
  background: rgba(255,255,255,0.22); border: 1px solid rgba(255,255,255,0.4);
  font-size: 10px; font-weight: 700; letter-spacing: 0.5px;
  padding: 3px 12px; border-radius: 20px; margin-bottom: 14px; color: #fff;
}
.rec-h { font-size: 28px; font-weight: 900; line-height: 1.3; color: #fff; margin-bottom: 10px; }
.rec-p { font-size: 13px; color: rgba(255,255,255,0.82); line-height: 1.8; }
.rec-body { padding: 24px 28px; }
.rpts { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 22px; }
.rpt {
  display: flex; gap: 14px; align-items: flex-start;
  border: 1px solid var(--border); border-radius: 12px; padding: 14px;
  background: var(--lv5);
}
.rpt-ico {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--grad); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.rpt-ico svg { width: 18px; height: 18px; fill: #fff; }
.rpt-lbl { font-size: 13px; font-weight: 700; margin-bottom: 3px; }
.rpt-desc { font-size: 12px; color: var(--text2); line-height: 1.6; }
.rec-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 16px; background: #0f0f0f;
  border: none; border-radius: 13px; color: #fff;
  font-size: 15px; font-weight: 800; cursor: pointer; font-family: inherit;
  transition: opacity 0.2s;
}
.rec-btn:hover { opacity: 0.82; }
.rec-btn svg { width: 18px; height: 18px; fill: #fff; }

/* =============================================
   ARTICLE CARDS（一覧・トップ）
============================================= */
.art-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.acard {
  display: flex; height: 90px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r); overflow: hidden; cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.acard:hover { border-color: var(--border2); box-shadow: 0 2px 12px rgba(155,143,212,0.12); }
.athumb {
  width: 90px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.athumb img { width: 90px; height: 90px; object-fit: cover; }
.athumb-noimg {
  width: 90px; height: 90px;
  background: linear-gradient(135deg,#ece8fa,#d0c4f0);
  display: flex; align-items: center; justify-content: center;
}
.athumb-noimg svg { width: 30px; height: 30px; fill: var(--lv1); opacity: 0.6; }
.ainfo { padding: 12px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.acat {
  font-size: 9px; font-weight: 800; letter-spacing: 0.8px;
  background: var(--lv4); color: var(--lv1);
  padding: 2px 9px; border-radius: 8px; display: inline-block; width: fit-content;
}
.atitle {
  font-size: 13px; font-weight: 700; line-height: 1.45;
  overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.ameta { font-size: 10px; color: var(--text3); }

/* APP DL */
.dl-wrap { max-width: 860px; margin: 0 auto; }
.dl-card {
  background: var(--grad); border-radius: var(--r-lg); padding: 32px 28px;
  position: relative; overflow: hidden;
}
.dl-circles { position: absolute; inset: 0; }
.dc { position: absolute; border-radius: 50%; background: rgba(255,255,255,0.12); }
.dc1 { width: 240px; height: 240px; top: -80px; right: -60px; }
.dc2 { width: 120px; height: 120px; bottom: -40px; left: -20px; }
.dl-inner { position: relative; z-index: 1; }
.dl-ico {
  width: 64px; height: 64px; border-radius: 18px;
  background: rgba(255,255,255,0.22); border: 1px solid rgba(255,255,255,0.4);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.dl-ico svg { width: 32px; height: 32px; fill: #fff; }
.dl-title { font-size: 22px; font-weight: 900; color: #fff; margin-bottom: 8px; }
.dl-desc { font-size: 13px; color: rgba(255,255,255,0.82); line-height: 1.8; margin-bottom: 20px; }
.dl-btns { display: flex; gap: 12px; }
.dl-btn {
  flex: 1; display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.35);
  border-radius: 13px; padding: 13px 16px;
  color: #fff; font-size: 13px; font-weight: 700; transition: background 0.2s;
}
.dl-btn svg { width: 24px; height: 24px; fill: #fff; flex-shrink: 0; }
.dl-btn:hover { background: rgba(255,255,255,0.26); }
.dl-sub { font-size: 9px; font-weight: 400; opacity: 0.78; display: block; }

/* MORE BTN */
.more-btn {
  width: 100%; margin-top: 16px; padding: 13px; background: transparent; cursor: pointer;
  border: 1.5px solid var(--border2); border-radius: 12px;
  color: var(--lv1); font-size: 13px; font-weight: 700;
  font-family: inherit; transition: background 0.2s;
}
.more-btn:hover { background: var(--lv5); }

/* =============================================
   SINGLE POST LAYOUT
============================================= */
.single-wrap {
  max-width: var(--site-max); margin: 0 auto; padding: 24px 18px;
}
.single-main { min-width: 0; }

/* 記事カード */
.art-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden; margin-bottom: 18px;
}
.eyecatch { width: 100%; overflow: hidden; }
.eyecatch img { width: 100%; height: 260px; object-fit: cover; }
.eyecatch-noimg {
  width: 100%; height: 220px;
  background: linear-gradient(145deg,#e8e4f8 0%,#c8c0f0 30%,#a8b8e8 60%,#88c8e8 100%);
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.eyecatch-noimg svg { width: 64px; height: 64px; fill: rgba(255,255,255,0.7); position: relative; z-index: 1; }
.art-meta { padding: 22px 22px 0; }
.art-cats { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.art-cat {
  font-size: 10px; font-weight: 800; letter-spacing: 0.6px;
  background: var(--lv4); color: var(--lv1); padding: 3px 10px; border-radius: 20px;
}
.art-title { font-size: 22px; font-weight: 900; line-height: 1.4; margin-bottom: 14px; }
.art-info {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 16px; border-bottom: 1px solid var(--border);
}
.art-author { display: flex; align-items: center; gap: 8px; }
.author-av {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--grad); display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #fff; overflow: hidden; flex-shrink: 0;
}
.author-av img { width: 30px; height: 30px; object-fit: cover; }
.author-name { font-size: 13px; font-weight: 600; color: var(--text2); }
.art-date { font-size: 12px; color: var(--text3); margin-left: auto; }
.art-read { font-size: 12px; color: var(--text3); }

/* 本文 */
.entry-content { padding: 22px 22px 24px; line-height: 1.9; font-size: 15px; }
.entry-content p { margin-bottom: 18px; }
.entry-content p:last-child { margin-bottom: 0; }
.entry-content h2 {
  font-size: 17px; font-weight: 800;
  background: var(--grad-soft); border-left: 3px solid var(--lv1);
  border-radius: 0 10px 10px 0; padding: 11px 16px; margin: 28px 0 16px;
}
.entry-content h3 {
  font-size: 15px; font-weight: 800; color: var(--lv1);
  border-bottom: 2px solid var(--lv3); padding-bottom: 6px; margin: 22px 0 14px;
}
.entry-content h4 { font-size: 15px; font-weight: 800; margin: 16px 0 10px; }
.entry-content ul, .entry-content ol { padding-left: 22px; margin-bottom: 18px; }
.entry-content li { margin-bottom: 7px; line-height: 1.75; }
.entry-content strong { font-weight: 800; color: var(--lv1); }
.entry-content a { color: var(--lv1); text-decoration: underline; }
.entry-content blockquote {
  background: var(--lv5); border-left: 3px solid var(--lv2);
  border-radius: 0 10px 10px 0; padding: 14px 18px;
  margin: 18px 0; font-size: 14px; color: var(--text2); line-height: 1.8;
}
.entry-content table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14px; }
.entry-content th {
  background: var(--lv4); color: var(--text2); font-weight: 700;
  padding: 10px 14px; border: 1px solid var(--border2); text-align: left;
}
.entry-content td { padding: 10px 14px; border: 1px solid var(--border); vertical-align: top; }
.entry-content tr:nth-child(even) td { background: #fafafe; }
.entry-content img { border-radius: 10px; margin: 14px 0; width: 100%; height: auto; }
.entry-content .note,
.entry-content .wp-block-notice {
  background: var(--lv5); border: 1px solid var(--border2);
  border-radius: 12px; padding: 16px 18px; margin: 18px 0;
  font-size: 13px; color: var(--text2); line-height: 1.75;
}
.entry-content .note-label {
  font-size: 10px; font-weight: 800; letter-spacing: 0.8px;
  color: var(--lv1); margin-bottom: 7px; display: block;
}

/* タグ */
.art-tags { padding: 0 22px 22px; display: flex; gap: 8px; flex-wrap: wrap; }
.art-tag {
  font-size: 12px; font-weight: 600; color: var(--text2);
  background: var(--lv5); border: 1px solid var(--border2);
  padding: 4px 13px; border-radius: 20px;
}

/* シェア */
.share-bar {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r); padding: 18px; margin-bottom: 18px;
}
.share-label { font-size: 11px; font-weight: 700; color: var(--text3); margin-bottom: 12px; letter-spacing: 0.5px; }
.share-btns { display: flex; gap: 10px; }
.share-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px 8px; border-radius: 10px;
  font-size: 13px; font-weight: 700; cursor: pointer; border: none; font-family: inherit;
}
.share-x { background: #000; color: #fff; }
.share-x svg { width: 14px; height: 14px; fill: #fff; }
.share-copy { background: var(--lv4); color: var(--lv1); border: 1px solid var(--border2) !important; }
.share-copy svg { width: 14px; height: 14px; fill: var(--lv1); }
.share-line { background: #06c755; color: #fff; }

/* 著者ボックス */
.author-box {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r); padding: 20px; margin-bottom: 18px;
  display: flex; gap: 16px; align-items: flex-start;
}
.author-box-av {
  width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0;
  background: var(--grad); display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800; color: #fff; overflow: hidden;
}
.author-box-av img { width: 56px; height: 56px; object-fit: cover; }
.author-box-name { font-size: 15px; font-weight: 800; margin-bottom: 5px; }
.author-box-role {
  font-size: 10px; font-weight: 700; letter-spacing: 0.5px;
  color: var(--lv1); background: var(--lv4);
  padding: 2px 9px; border-radius: 8px; display: inline-block; margin-bottom: 8px;
}
.author-box-bio { font-size: 13px; color: var(--text2); line-height: 1.75; }

/* 前後記事ナビ */
.post-nav {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r); overflow: hidden; margin-bottom: 18px;
}
.pnav-item { padding: 15px 18px; display: flex; align-items: center; gap: 12px; }
.pnav-item + .pnav-item { border-top: 1px solid var(--border); }
.pnav-dir { font-size: 10px; font-weight: 700; letter-spacing: 0.5px; color: var(--text3); margin-bottom: 4px; }
.pnav-title { font-size: 13px; font-weight: 700; line-height: 1.4; }
.pnav-arrow { font-size: 22px; color: var(--lv2); flex-shrink: 0; line-height: 1; }
.pnav-next .pnav-dir { text-align: right; }
.pnav-next .pnav-arrow { margin-left: auto; }
.pnav-thumb {
  width: 48px; height: 48px; border-radius: 8px; flex-shrink: 0; overflow: hidden;
  background: linear-gradient(135deg,#ece8fa,#d0c4f0);
}
.pnav-thumb img { width: 48px; height: 48px; object-fit: cover; }

/* 関連記事 */
.related-section { margin-bottom: 24px; }
.related-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.related-label { font-size: 9px; font-weight: 800; letter-spacing: 1.5px; color: var(--lv1); border-bottom: 2px solid var(--lv1); padding-bottom: 2px; }
.related-title { font-size: 18px; font-weight: 800; }
.related-cat {
  font-size: 11px; background: var(--lv4); color: var(--lv1);
  padding: 3px 12px; border-radius: 12px; font-weight: 600; margin-left: auto;
}
.related-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.rel-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r); display: flex; height: 88px; overflow: hidden;
  cursor: pointer; transition: border-color 0.2s;
}
.rel-card:hover { border-color: var(--border2); }
.rel-thumb {
  width: 88px; flex-shrink: 0; overflow: hidden;
  background: linear-gradient(135deg,#ece8fa,#d0c4f0);
  display: flex; align-items: center; justify-content: center;
}
.rel-thumb img { width: 88px; height: 88px; object-fit: cover; }
.rel-thumb-noimg svg { width: 28px; height: 28px; fill: var(--lv1); opacity: 0.6; }
.rel-info { padding: 12px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.rel-cat { font-size: 9px; font-weight: 800; background: var(--lv4); color: var(--lv1); padding: 2px 8px; border-radius: 8px; display: inline-block; width: fit-content; }
.rel-title { font-size: 13px; font-weight: 700; line-height: 1.42; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rel-meta { font-size: 10px; color: var(--text3); }

/* サイドバー */
.sidebar { min-width: 0; }
.sidebar-widget {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r); padding: 18px; margin-bottom: 16px;
}
.widget-title {
  font-size: 13px; font-weight: 800; color: var(--text1);
  border-left: 3px solid var(--lv1); padding-left: 10px; margin-bottom: 14px;
}
.widget-cats { display: flex; flex-direction: column; gap: 0; }
.widget-cat-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 0; border-bottom: 1px solid var(--border);
  font-size: 13px; color: var(--text2); transition: color 0.2s;
}
.widget-cat-item:last-child { border-bottom: none; }
.widget-cat-item:hover { color: var(--lv1); }
.widget-cat-count {
  font-size: 11px; background: var(--lv4); color: var(--lv1);
  padding: 1px 8px; border-radius: 8px; font-weight: 700;
}
.widget-recent { display: flex; flex-direction: column; gap: 10px; }
.widget-post { display: flex; gap: 10px; align-items: center; }
.widget-post-thumb {
  width: 54px; height: 54px; border-radius: 8px; flex-shrink: 0; overflow: hidden;
  background: linear-gradient(135deg,#ece8fa,#d0c4f0);
  display: flex; align-items: center; justify-content: center;
}
.widget-post-thumb img { width: 54px; height: 54px; object-fit: cover; }
.widget-post-thumb svg { width: 22px; height: 22px; fill: var(--lv1); opacity: 0.6; }
.widget-post-title { font-size: 12px; font-weight: 700; line-height: 1.45; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.widget-post-date { font-size: 10px; color: var(--text3); margin-top: 3px; }

/* =============================================
   PAGINATION
============================================= */
.pagination { display: flex; justify-content: center; gap: 8px; padding: 10px 0 32px; flex-wrap: wrap; }
.page-numbers {
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  background: var(--white); border: 1px solid var(--border); color: var(--text2);
}
.page-numbers.current { background: var(--grad); color: #fff; border-color: transparent; }

/* =============================================
   固定ページ
============================================= */
.page-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden; margin-bottom: 18px;
}
.page-hero {
  width: 100%; min-height: 180px;
  background: var(--grad);
  position: relative; overflow: hidden;
  display: flex; align-items: flex-end; padding: 28px 28px;
}
.page-hero-circles { position: absolute; inset: 0; }
.page-hero-title { font-size: 26px; font-weight: 900; color: #fff; position: relative; z-index: 1; line-height: 1.3; }
.page-content { padding: 24px 28px 28px; }

/* =============================================
   404
============================================= */
.not-found { text-align: center; padding: 80px 24px; }
.not-found-code { font-size: 100px; font-weight: 900; line-height: 1; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 16px; }
.not-found-title { font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.not-found-desc { font-size: 14px; color: var(--text2); margin-bottom: 28px; line-height: 1.75; }
.not-found-btn { display: inline-block; padding: 14px 32px; background: var(--grad); border-radius: 14px; color: #fff; font-size: 15px; font-weight: 800; }

/* =============================================
   FAB
============================================= */
.fab {
  position: fixed; bottom: 24px; right: 24px; z-index: 200;
  background: var(--grad); border: none; border-radius: 28px;
  padding: 13px 20px;
  display: flex; align-items: center; gap: 8px;
  color: #fff; font-size: 13px; font-weight: 800;
  box-shadow: 0 4px 20px rgba(155,143,212,0.42);
  cursor: pointer; font-family: inherit;
}
.fab svg { width: 16px; height: 16px; fill: #fff; }

/* =============================================
   FOOTER
============================================= */
.site-footer {
  background: var(--white); border-top: 1px solid var(--border); margin-top: 10px;
}
.footer-inner {
  max-width: var(--site-max); margin: 0 auto;
  padding: 32px 24px 40px;
}
.ft-logo { font-size: 16px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 16px; }
.ft-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 16px; list-style: none; }
.ft-links a { font-size: 12px; color: var(--text3); }
.ft-links a:hover { color: var(--lv1); }
.ft-copy { font-size: 11px; color: var(--text3); line-height: 1.8; }

/* =============================================
   TABLET: 768px+
============================================= */
@media (min-width: 768px) {

  .hero-slide { height: 360px; }

  .genre-grid { grid-template-columns: repeat(2, 1fr); }

  .art-grid { grid-template-columns: repeat(2, 1fr); }
  .acard { height: 100px; }
  .athumb, .athumb-noimg { width: 100px; height: 100px; }
  .athumb img { width: 100px; height: 100px; }
  .atitle { font-size: 14px; }

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

  .rpts { grid-template-columns: repeat(2, 1fr); }

  .related-grid { grid-template-columns: repeat(2, 1fr); }

  .dl-btns { max-width: 500px; }
}

/* =============================================
   DESKTOP: 1024px+
============================================= */
@media (min-width: 1024px) {

  /* ヘッダー */
  .site-nav-wrap { border-top: none; }
  .hd-inner { padding: 14px 24px; }
  .site-nav { padding: 0 24px; gap: 4px; }
  .site-nav a { font-size: 14px; padding: 6px 16px; }
  /* ロゴとナビを同一行に */
  .site-header .hd-inner {
    flex-wrap: nowrap;
  }
  .site-nav-wrap {
    flex: 1;
    border-top: none;
  }
  .site-nav {
    padding: 0;
    justify-content: flex-end;
  }

  /* ヒーロー */
  .hero-slide { height: 440px; }
  .slide-title { font-size: 28px; }
  .slide-tag { font-size: 11px; }

  /* セクション */
  .sec { padding: 56px 0; }
  .sec-title { font-size: 26px; }

  /* ジャンルグリッド */
  .genre-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .gico { width: 84px; }
  .gtitle { font-size: 15px; }
  .gdesc { font-size: 12px; }

  /* 記事グリッド */
  .art-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .acard { height: 120px; flex-direction: column; }
  .athumb { width: 100%; height: 120px; }
  .athumb img { width: 100%; height: 120px; }
  .athumb-noimg { width: 100%; height: 120px; }
  .ainfo { padding: 10px 12px; }
  .atitle { -webkit-line-clamp: 2; }

  /* ライバー投稿 */
  .post-grid { grid-template-columns: repeat(3, 1fr); }

  /* リクルート */
  .rec-top { padding: 44px 40px 40px; }
  .rec-h { font-size: 34px; }
  .rec-body { padding: 28px 40px; }
  .rpts { grid-template-columns: repeat(2, 1fr); }

  /* シングル: 2カラムレイアウト */
  .single-wrap {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
    align-items: start;
    padding: 28px 24px;
  }
  .single-main { min-width: 0; }
  .eyecatch img { height: 320px; }
  .eyecatch-noimg { height: 280px; }
  .art-title { font-size: 26px; }
  .entry-content { font-size: 16px; }
  .entry-content h2 { font-size: 19px; }
  .entry-content h3 { font-size: 16px; }

  /* 関連記事: 3カラム */
  .related-grid { grid-template-columns: repeat(3, 1fr); }
  .rel-card { flex-direction: column; height: auto; }
  .rel-thumb { width: 100%; height: 110px; }
  .rel-thumb img { width: 100%; height: 110px; }
  .rel-title { font-size: 13px; }

  /* 固定ページ */
  .page-hero { min-height: 220px; padding: 36px 36px; }
  .page-hero-title { font-size: 32px; }
  .page-content { padding: 28px 36px 36px; }

  /* フッター */
  .footer-inner {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 16px; padding: 32px 28px;
  }
  .ft-logo { margin-bottom: 0; }

  /* FAB非表示 (PCではナビがあるため) */
  .fab { display: none; }
}

/* =============================================
   LARGE: 1280px+
============================================= */
@media (min-width: 1280px) {
  .single-wrap { grid-template-columns: 1fr 320px; }
  .genre-grid { grid-template-columns: repeat(2, 1fr); }
}
```

/* ===== X タイムライン埋め込み追加スタイル ===== */

.live-badge {
  display: inline-block;
  font-size: 9px; font-weight: 800; letter-spacing: 0.8px;
  background: #e03050; color: #fff;
  padding: 1px 7px; border-radius: 8px;
  margin-left: 6px; vertical-align: middle;
  animation: blink 1.5s infinite;
}

.x-open-btn {
  display: flex; align-items: center; gap: 5px;
  margin-left: auto;
  font-size: 11px; font-weight: 700; color: var(--lv1);
  background: var(--lv4); border: 1px solid var(--border2);
  padding: 4px 10px; border-radius: 20px;
  transition: background 0.2s; white-space: nowrap;
}
.x-open-btn:hover { background: var(--lv3); }

.x-timeline-container {
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  min-height: 120px;
  background: var(--lv5);
}

/* ロード中アニメーション */
.x-loading {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 32px;
}
.x-loading-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--lv2);
  animation: x-bounce 1.2s ease-in-out infinite;
}
.x-loading-dot:nth-child(2) { animation-delay: 0.2s; }
.x-loading-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes x-bounce {
  0%,100% { transform: translateY(0); opacity: 0.5; }
  50%      { transform: translateY(-6px); opacity: 1; }
}

/* Twitter iframe のレスポンシブ調整 */
.x-timeline-container iframe {
  width: 100% !important;
  border: none !important;
}

/* タブレット以上：X投稿グリッド内のタイムラインを高さ固定 */
@media (min-width: 768px) {
  .x-timeline-container {
    max-height: 420px;
    overflow-y: auto;
  }
}