@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/

/* -------------------------------------------
   Global Styles (共通スタイル)
------------------------------------------- */

/* 変数定義とベース設定 */
:root {
  /* ▼ Libraryのメインカラー（鮮やかな青） */
  --accent-color: #0066FF; 
  --accent-hover: #0052cc; 

  /* ▼ 元の緑（サブカラー・グラデーション用として保持） */
  --accent-green: #00c853;

  /* ▼ (任意) 青から緑へのグラデーション定義 */
  --main-gradient: linear-gradient(135deg, var(--accent-color), var(--accent-green));

  --text-main: #171717;
  --bg-color: #ffffff;
}

/* stickyを効かせるため、bodyのoverflowを制御 */
body {
  overflow-x: visible !important; 
  overflow-y: scroll !important; 
}

   スクロールロック用のクラスを追加 */
body {
  overflow-x: hidden; 
  width: 100%;
}

/* 背景スクロール固定用クラス */
body.fp-noscroll {
  overflow: hidden !important;
  height: 100%; /* iOS対策 */
}


.fp-wrapper {
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  width: 100%;
  overflow: visible !important; 
}

/* テキスト選択色 */
.fp-wrapper ::selection {
  background: var(--accent-color);
  color: #fff;
}

.fp-wrapper * {
  box-sizing: border-box;
}

.fp-wrapper a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s, color 0.3s;
}

.fp-wrapper button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* コンテナ共通 */
.fp-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 768px) {
  .fp-container { padding: 0 20px; }
}

/* -------------------------------------------
   Header (共通ヘッダー)
------------------------------------------- */
.fp-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 0;
  transition: background-color 0.3s, backdrop-filter 0.3s;
}

.fp-header.scrolled {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #f0f0f0;
}

.fp-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.fp-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.05em;
}
.fp-logo:hover {
  color: var(--accent-green) !important;
}

.fp-logo img {
  max-height: 40px;
  width: auto;
}
.fp-logo:hover img {
  filter: brightness(0) saturate(100%) invert(56%) sepia(97%) saturate(2385%) hue-rotate(95deg) brightness(96%) contrast(101%) !important;
}

.fp-header-right {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 100%;
}

/* -------------------------------------------
   Navigation (PC Menu)
------------------------------------------- */
.fp-nav {
  display: block;
  height: 100%;
}

.fp-nav > ul {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
  align-items: center;
  justify-content: flex-end;
}

.fp-nav > ul > li {
  margin: 0;
  position: relative;
  height: 100%; 
  display: flex;
  align-items: center;
}

.fp-nav > ul > li > a {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #171717;
  text-decoration: none;
  transition: all 0.3s;
  white-space: nowrap;
  display: block;
  border-bottom: 2px solid transparent; 
}
.fp-nav > ul > li > a:hover {
  color: var(--accent-color) !important;
}

/* Sub Menu (PC) */
.fp-nav ul.sub-menu {
  display: block;
  position: absolute;
  top: 100%; 
  left: -10px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  min-width: 200px;
  padding: 12px 0;
  border: none;
  border-radius: 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
  z-index: 110;
  height: auto;
  flex-direction: column;
  align-items: flex-start;
}

.fp-nav li:hover > ul.sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.fp-nav ul.sub-menu li {
  width: 100%;
  height: auto;
  padding: 0 24px;
  display: block;
  margin: 0;
}

.fp-nav ul.sub-menu a {
  position: relative;
  padding: 12px 0;
  color: #171717;
  font-size: 0.8rem;
  font-weight: 500;
  text-align: left;
  display: inline-block;
  width: auto;
  text-decoration: none;
  border-bottom: none;
}

.fp-nav ul.sub-menu a:hover {
  color: var(--accent-color) !important;
  background: transparent;
  padding-left: 0;
}

/* -------------------------------------------
   Search Button & Overlay
------------------------------------------- */
.fp-search-btn {
  background: transparent;
  border: none;
  color: #171717;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s;
}
.fp-search-btn:hover { color: var(--accent-color); }
.fp-search-btn svg { width: 20px; height: 20px; }

.fp-search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.fp-search-overlay.active { opacity: 1; visibility: visible; }

/* 閉じるボタン (共通) */
.fp-search-close,
.fp-menu-close-btn {
  position: absolute;
  top: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  padding: 8px; /* PC */
  background: transparent;
  border: none;
  cursor: pointer;
  color: #171717;
  transition: transform 0.3s;
  font-size: 24px; /* PC icon font size */
}
.fp-search-close:hover { transform: rotate(90deg); }

.fp-search-container {
  width: 100%;
  max-width: 600px;
  padding: 0 24px;
  text-align: center;
}
.fp-search-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #a3a3a3;
  margin-bottom: 24px;
}
.fp-search-container form { position: relative; width: 100%; }
.fp-search-container input[type="search"],
.fp-search-container input[type="text"] {
  width: 100%;
  border: none;
  border-bottom: 2px solid #e5e5e5;
  background: transparent;
  font-size: 2rem;
  font-weight: 700;
  padding: 16px 0;
  outline: none;
  transition: border-color 0.3s;
}
.fp-search-container input[type="search"]:focus,
.fp-search-container input[type="text"]:focus {
  border-bottom-color: #171717;
}

/* -----------------------------
   Footer (共通フッター)
----------------------------- */
.fp-footer {
  background: #000;
  color: #fff;
  padding: 80px 0 40px;
}
.fp-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 40px;
}
@media (min-width: 1024px) {
  .fp-footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; }
}

.fp-ft-col h4 {
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  color: #737373;
  margin-bottom: 24px;
  text-transform: uppercase;
}

/* Footer Menu */
.fp-ft-menu { list-style: none; padding: 0; margin: 0; }
.fp-ft-menu > li { margin-bottom: 24px; }
.fp-ft-menu a {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #d4d4d4;
  transition: color 0.3s;
  text-decoration: none;
  white-space: nowrap;
  display: block;
}
.fp-ft-menu a:hover { color: var(--accent-color) !important; }

/* Footer Sub Menu */
.fp-ft-menu ul.sub-menu, .fp-ft-menu ul.children {
  list-style: none !important;
  padding-left: 12px;
  margin: 8px 0 0 0;
}
.fp-ft-menu ul.sub-menu li, .fp-ft-menu ul.children li {
  margin-bottom: 8px;
}
.fp-ft-menu ul.sub-menu a, .fp-ft-menu ul.children a {
  font-weight: 400;
  font-size: 0.8rem;
  color: #a3a3a3;
}

.fp-ft-col a[style*="border-radius"]:hover {
  background: var(--accent-color) !important;
  color: #fff !important;
}

.fp-copy {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #525252;
  text-align: center;
}
@media (min-width: 768px) { .fp-copy { text-align: left; } }

/* Footer Bottom Menu */
.fp-footer-bottom-menu {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.fp-footer-bottom-menu a {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #525252;
  text-decoration: none;
  transition: color 0.3s;
}
.fp-footer-bottom-menu a:hover { color: var(--accent-color) !important; }

/* Footer Social */
.fp-social-container { display: flex; gap: 16px; }

/* リンク（丸い枠）のデザイン */
.fp-social-link {
  /* 通常時の背景（薄いグレー または 透明） */
  background: rgba(255,255,255,0.1) !important; 
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s ease !important;
  text-decoration: none;
  overflow: hidden;
}

/* ホバー時の背景（緑） */
.fp-social-link:hover {
  background: var(--accent-color) !important;
  opacity: 1 !important;
  transform: translateY(-2px); /* 少し浮き上がる演出 */
}

/* アイコン画像（SVG）のデザイン */
.fp-social-icon-img {
  width: 22px; height: 22px;
  object-fit: contain;
  transition: none !important; /* 色の変化なし */
}

/* アイコンを強制的に「真っ白」にするフィルタ */
.fp-social-link .fp-social-icon-img.svg-icon,
.fp-social-link:hover .fp-social-icon-img.svg-icon {
  filter: brightness(0) invert(1) !important;
}

/* -----------------------------
   Article Grid & Cards (共通)
----------------------------- */
.fp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px 30px;
  margin-bottom: 80px;
}
@media (min-width: 768px) { .fp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .fp-grid { grid-template-columns: repeat(3, 1fr); } }

.fp-article {
  height: 100%;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
}
.fp-article > div:last-child { flex: 1; display: flex; flex-direction: column; }

.fp-art-img-wrap {
  position: relative;
  
  /* ★修正: 4/3 から 16/9 に変更 */
  aspect-ratio: 16/9;
  
  overflow: hidden;
  background: #f5f5f5;
  margin-bottom: 12px;
  
  /* ★追加: 角丸をつける (12pxくらいがバランス良いです) */
  border-radius: 12px; 
}

.fp-art-img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: transform 0.7s, filter 0.5s;
}
.fp-article:hover .fp-art-img { transform: scale(1.05); filter: grayscale(0%); }

.fp-art-meta {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #a3a3a3;
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.fp-art-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 12px 0;
  letter-spacing: 0.08em;
}
.fp-readmore {
  margin-top: auto;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  border-bottom: 1px solid transparent;
  width: fit-content;
  transition: border-color 0.3s, color 0.3s;
  color: #000 !important;
}
.fp-article:hover .fp-readmore {
  border-color: var(--accent-color) !important;
  color: var(--accent-color) !important;
}

.fp-art-cat-container {
  position: absolute; bottom: 12px; left: 12px;
  display: flex; flex-wrap: wrap; gap: 6px; z-index: 2; margin-bottom: 0;
}
.fp-art-cat-tag {
  background: #000 !important;
  color: #fff !important;
  padding: 4px 10px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border: none !important;
  transition: all 0.2s ease;
}
.fp-article:hover .fp-art-cat-tag { background: var(--accent-color) !important; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==============================================
   Mobile & Responsive Styles (共通)
============================================== */
.sp-only, .fp-mobile-menu { display: none; }
.fp-mobile-sidebar-trigger { display: none; }

@media (max-width: 960px) {
  .fp-nav.pc-only { display: none; }
  .fp-menu-btn.sp-only {
    display: flex; align-items: center; justify-content: center;
    background: transparent; border: none; padding: 8px; cursor: pointer; color: #171717;
  }
  .fp-menu-btn.sp-only svg { width: 28px; height: 28px; }
  .fp-header-right { gap: 16px; }

  /* Mobile Menu Drawer */
  .fp-mobile-menu {
    display: block; position: fixed; inset: 0;
    width: 100%; height: 100dvh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; flex-direction: column;
    padding: 120px 40px 60px;
    overflow-y: auto;
  }
  .fp-mobile-menu.active { transform: translateX(0); }
  .fp-mobile-menu-inner { width: 100%; max-width: 400px; margin: 0 auto; height: 100%; }

  /* Mobile Menu List */
  #fp-mobile-nav-container ul {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 0;
    text-align: left;
  }
  #fp-mobile-nav-container ul li { margin: 0; width: 100%; }
  
  #fp-mobile-nav-container ul li a {
    font-size: 0.85rem; font-weight: 700; letter-spacing: 0.1em;
    color: #171717; text-decoration: none;
    display: block; padding: 24px 0 !important;
    border-bottom: 1px solid #f0f0f0;
  }

  /* Mobile Sub Menu */
  #fp-mobile-nav-container ul.sub-menu {
    display: block; margin-top: 0;
    background: transparent;
    padding: 0 0 16px 20px;
    border-radius: 0; gap: 0;
  }
  #fp-mobile-nav-container ul.sub-menu a {
    font-size: 0.75rem; font-weight: 700; color: #171717;
    padding: 16px 0 !important;
    border-bottom: none;
  }
  #fp-mobile-nav-container ul.sub-menu a:hover { color: var(--accent-color); }

  /* Mobile Logo & Close Button */
  .fp-mobile-logo-area {
    position: absolute; top: 30px; left: 40px; z-index: 1002;
  }
  .fp-mobile-logo-area .fp-logo { font-size: 1.5rem; }
  
  .fp-menu-close-btn, .fp-search-close {
    top: 30px; right: 40px;
    width: 44px; height: 44px; margin: 0; padding: 0;
    color: transparent; border: none; z-index: 1001;
  }
  .fp-search-close svg { display: none; }

  /* Close Icon (X Shape) */
  .fp-menu-close-btn::before, .fp-menu-close-btn::after,
  .fp-search-close::before, .fp-search-close::after {
    content: ''; position: absolute;
    top: 50%; left: 50%;
    width: 24px; height: 2px;
    background-color: #171717;
    transition: all 0.3s ease;
  }
  .fp-menu-close-btn::before, .fp-search-close::before { transform: translate(-50%, -50%) rotate(45deg); }
  .fp-menu-close-btn::after, .fp-search-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
  
  .fp-menu-close-btn:hover, .fp-search-close:hover { background: transparent; transform: none; }
  .fp-menu-close-btn:hover::before, .fp-menu-close-btn:hover::after,
  .fp-search-close:hover::before, .fp-search-close:hover::after {
    background-color: var(--accent-color);
    transform: translate(-50%, -50%) rotate(135deg);
  }
}

@media (max-width: 768px) {
  /* Footer Mobile */
  .fp-footer { padding: 60px 0 30px; }
  .fp-footer-bottom-menu { flex-direction: column; gap: 12px; align-items: flex-start; }
  .fp-footer .fp-container > div:last-child {
    flex-direction: column-reverse; align-items: center; gap: 30px;
  }
  .fp-copy { text-align: center; }
  .fp-footer-bottom-menu { align-items: center; }

  /* Search Overlay Mobile */
  .fp-search-container input[type="search"],
  .fp-search-container input[type="text"] {
    font-size: 1.1rem; padding: 10px 0;
  }
  .fp-search-label { margin-bottom: 16px; font-size: 0.65rem; }

  /* スマホでスクロールして中央に来た記事のアクティブ化 */
  .fp-article.in-view .fp-art-img {
    filter: grayscale(0%);
    transform: scale(1.02);
  }
  .fp-article.in-view .fp-art-cat-tag {
    background: var(--accent-color) !important;
  }
  .fp-article.in-view .fp-readmore {
    border-color: var(--accent-color) !important;
    color: var(--accent-color) !important;
  }
}

/* ==============================================
   Archive & Single Page Specifics
============================================== */

/* Layout with Sidebar */
.fp-main-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  margin-bottom: 100px;
}
@media (min-width: 1024px) {
  .fp-main-layout {
    grid-template-columns: 1fr 320px; /* メインとサイドバー */
  }
}

/* Archive Header */
.fp-archive-header {
  padding-top: 160px;
  padding-bottom: 60px;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 60px;
}
.fp-archive-title {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0;
}
.fp-archive-meta {
  margin-top: 16px;
  color: #737373;
  font-size: 0.9rem;
}

/* Single Post Header */
.fp-single-header {
  padding-top: 160px;
  padding-bottom: 60px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
.fp-single-cats {
  display: flex; gap: 12px; justify-content: center; margin-bottom: 24px;
}
.fp-single-cat-tag {
  display: inline-block;
  background: #000;
  color: #fff !important;
  padding: 6px 16px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none !important;
  transition: background-color 0.3s, color 0.3s;
}

.fp-single-cat-tag:hover {
  background: var(--accent-color) !important;
  color: #fff !important;
  opacity: 1;
}

.fp-single-title {
  font-size: 2.5rem; font-weight: 900; line-height: 1.3; margin: 0 0 24px 0;
}
.fp-single-meta {
  color: #737373; font-size: 0.9rem; font-weight: 700; letter-spacing: 0.1em;
}

/* Single Post Content */
.fp-post-content {
  font-size: 1.05rem;
  line-height: 1.9;
  color: #333;
}
/* Cocoon content styling overrides */
.fp-post-content h2 {
  font-size: 1.8rem; font-weight: 900; margin: 60px 0 30px;
  padding-bottom: 16px; border-bottom: 2px solid #000;
}
.fp-post-content h3 {
  font-size: 1.4rem; font-weight: 700; margin: 40px 0 20px;
  border-left: 6px solid var(--accent-color); padding-left: 16px;
}
.fp-post-content p { margin-bottom: 24px; }
.fp-post-content img { max-width: 100%; height: auto; border-radius: 4px; }

/* Pagination */
.pagination {
  display: flex; justify-content: center; align-items: center; gap: 16px; margin: 80px 0;
}
.pagination .page-numbers {
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  background: #f5f5f5; 
  color: #171717;
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  border-radius: 0;
  transition: all 0.3s ease;
  text-decoration: none;
}

.pagination .page-numbers:not(.current):hover {
  background: var(--accent-color);
  color: #fff;
}

.pagination .page-numbers.current {
  background: #171717 !important;
  color: #fff !important;
  border-color: #171717 !important;
}

.pagination .prev, .pagination .next {
  border: none !important;
  width: 48px !important;
  height: 48px !important;
  padding: 0 !important;
  background: #f5f5f5 !important;
}

.pagination .prev:hover, .pagination .next:hover {
  background: var(--accent-color) !important;
  color: #fff !important;
}

/* -----------------------------
   Sidebar Styles
----------------------------- */
.fp-sidebar {
  font-size: 0.9rem;
  height: 100%; 
  overflow: visible !important;
}

@media (min-width: 1024px) {
  .fp-sidebar-inner {
    position: static;
    height: 100%; 
    overflow: visible;
  }
  
  .fp-sidebar-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 100px;
    z-index: 10;
  }
  
  .fp-sidebar-normal {
    margin-bottom: 40px;
  }
}

/* ウィジェット共通 */
.widget { margin-bottom: 40px; }
.widget-title {
  font-size: 0.85rem; font-weight: 900; letter-spacing: 0.1em;
  border-bottom: 2px solid #000; padding-bottom: 12px; margin-bottom: 24px;
}

/* タグクラウドのデザイン */
.widget_tag_cloud .tagcloud,
.widget .tagcloud {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin-top: 0 !important;
}

.widget_tag_cloud .tagcloud a,
.widget .tagcloud a {
  display: inline-block !important;
  width: auto !important;
  flex: 0 0 auto !important;
  background: #f5f5f5;
  color: #555;
  padding: 6px 12px;
  font-size: 0.75rem !important;
  font-weight: 700;
  border-radius: 20px;
  margin: 0 !important;
  transition: all 0.3s;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.2;
}
.widget_tag_cloud .tagcloud a:hover,
.widget .tagcloud a:hover {
  background: #f5f5f5;
  color: var(--accent-color);
}

/* リスト系ウィジェット */
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget ul li {
  border-bottom: none !important;
  padding: 6px 0 !important;
}
.widget ul li a {
  display: block; color: #333; font-weight: 500;
  display: flex; justify-content: space-between;
  transition: color 0.3s, background-color 0.3s;
  border: none !important;
}
.widget ul li a:hover {
  color: var(--accent-color);
  background-color: transparent !important;
}

/* Cocoon人気記事ランキングの調整 */
.widget_popular_entries .popular-entry-card {
  margin-bottom: 16px;
  border: none;
}

@media (max-width: 960px) {
  /* スマホ用サイドバー（高さ60%固定版） */
  .fp-sidebar {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 9999;
    background: rgba(0,0,0,0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
  }
  
  .fp-sidebar.active {
    display: block;
    opacity: 1;
    visibility: visible;
  }

  .fp-sidebar-inner {
    position: absolute;
    bottom: 0 !important; left: 0 !important;
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: block;
  }
  
  .fp-sidebar.active .fp-sidebar-inner {
    transform: translateY(0);
  }

  .fp-sidebar-scroll-area {
    width: 100% !important;
    margin: 0 !important;
    height: 60vh !important;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #fff;
    border-radius: 20px 20px 0 0;
    padding: 30px 24px 0 24px !important;
    position: relative;
    text-align: left;
    border: none !important;
  }

  .fp-sidebar-close-btn {
    position: absolute;
    bottom: 100%;
    right: 20px;
    margin-bottom: 12px;
    width: 40px; height: 40px;
    padding: 0;
    background: transparent !important;
    border: none !important;
    color: #fff !important;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    z-index: 2147483647; 
    pointer-events: auto;
    opacity: 1 !important;
    visibility: visible !important;
  }
  
  .fp-sidebar-close-btn svg {
    width: 32px; height: 32px;
    stroke-width: 2.5;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.5));
  }

/* ------------------------------------------------
   スマホ用固定ボタン（FILTER/INDEX）のデザイン
------------------------------------------------ */
.fp-mobile-sidebar-trigger {
  /* ボタン本体はクリック判定用の透明な箱として配置 */
  position: fixed; bottom: 24px; right: 24px;
  z-index: 900;
  
  width: 130px; height: 50px;
  
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: transparent !important; border: none; cursor: pointer;
  
  /* 文字設定 */
  color: #fff !important;
  font-weight: 700; font-size: 0.85rem; letter-spacing: 0.1em;
  
  /* 影なし（擬似要素につける） */
  box-shadow: none;
  
  /* 文字のフェード */
  transition: color 0.1s;
}

/* =================================================================
   1. シート部分 (青丸 <-> 白シート) ::after
   ここがアニメーションの主役です
================================================================= */
.fp-mobile-sidebar-trigger::after {
  content: '';
  /* ★重要: fixedにして画面基準で動かす */
  position: fixed; 
  
  /* --- 閉じた状態（初期） --- */
  bottom: 24px; right: 24px;
  width: 130px; height: 50px;
  border-radius: 50px;
  background: var(--accent-color); /* 青 */
  
  /* 影 */
  box-shadow: 0 0 20px rgba(0, 102, 255, 0.5);
  
  /* 文字の後ろ */
  z-index: -1;
  
  /* Safari対策 */
  transform: translate3d(0,0,0);
  
  /* --- 閉じる時のアニメーション（縦 -> 横） --- */
  /* 1. 高さ/下位置/色/角丸 が先に戻る */
  /* 2. 幅/右位置 が後から戻る (0.35s遅延) */
  transition: 
    height 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
    bottom 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
    background-color 0.4s ease,
    border-radius 0.4s ease,
    
    width 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s,
    right 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s;
}

/* 押している間 */
.fp-mobile-sidebar-trigger:active::after {
  transform: scale(0.95);
  box-shadow: 0 0 5px rgba(0, 102, 255, 0.9);
}

/* =================================================================
   2. 暗幕部分 ::before
================================================================= */
.fp-mobile-sidebar-trigger::before {
  content: '';
  position: fixed; top: 0; left: 0; width: 100vw; height: 120vh;
  background: rgba(0,0,0,0.6);
  z-index: -2; /* シートの後ろ */
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}

/* =================================================================
   ★展開時（クラスがついた時）の変身処理
================================================================= */
.fp-mobile-sidebar-trigger.expanded {
  color: transparent !important; /* 文字消去 */
  pointer-events: none; /* クリック無効 */
  z-index: 9990; /* サイドバー(9999)より後ろ */
}

/* --- 開く時のアニメーション（横 -> 縦） --- */
.fp-mobile-sidebar-trigger.expanded::after {
  /* 1. 白背景にする */
  background: #ffffff;
  box-shadow: none;
  
  /* 2. 最終形状（Safari対策で下にはみ出させる） */
  bottom: -10vh; 
  right: 0;
  width: 100%; 
  height: 80vh; 
  border-radius: 20px 20px 0 0;
  
  /* --- アニメーション設定 --- */
  /* 1. 幅/右位置 が先に広がる */
  /* 2. 高さ/下位置/色/角丸 が後から伸びる (0.25s遅延) */
  transition: 
    width 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
    right 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
    
    height 0.3s cubic-bezier(0.25, 1, 0.5, 1) 0.25s,
    bottom 0.3s cubic-bezier(0.25, 1, 0.5, 1) 0.25s,
    border-radius 0.3s cubic-bezier(0.25, 1, 0.5, 1) 0.25s,
    background-color 0.1s linear 0.1s; /* 色は広がる瞬間に白く */
}
 
/* 暗幕表示 */
.fp-mobile-sidebar-trigger.expanded::before {
  opacity: 1; transition-delay: 0.1s;
}

/* アイコン消去 */
.fp-mobile-sidebar-trigger.expanded i,
.fp-mobile-sidebar-trigger.expanded svg {
  opacity: 0; transition: opacity 0.1s;
}


/* ------------------------------------------------
   サイドバー出現アニメーションの調整
------------------------------------------------ */
@media (max-width: 960px) {
  /* コンテナ */
  .fp-sidebar {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    
    /* ★最前面 (9999) */
    z-index: 9999;
    
    /* 背景透明 */
    background: transparent !important;
    
    visibility: hidden;
  }
  .fp-sidebar.active { display: block; visibility: visible; }

  /* インナー（文字エリア） */
  .fp-sidebar-inner {
    position: absolute; bottom: 0; width: 100%;
    
    /* 中央揃え */
    left: 0; right: 0; margin: 0 auto;
    
    background: transparent !important;
    
    /* 初期位置 */
    transform: translateY(20px); opacity: 0; visibility: hidden;
    transition: all 0.3s ease;
  }
  
  /* 表示時 */
  .fp-sidebar.active .fp-sidebar-inner {
    transform: translateY(0); opacity: 1; visibility: visible;
    
    /* ★重要: 縦に伸び終わるまで待つ (0.25s + 0.3s = 0.55s くらい) */
    transition: opacity 0.4s ease 0.5s, transform 0.4s ease 0.5s, visibility 0s 0.5s;
  }

  /* スクロールエリア */
  .fp-sidebar-scroll-area {
    background: transparent !important; border: none !important;
    /* パディング調整 */
    padding: 30px 24px 80px 24px !important;
    width: 100%; height: 70vh; overflow-y: auto;
  }

  /* 閉じるボタン */
  .fp-sidebar-close-btn {
    position: absolute; bottom: 70vh; right: 20px;
    width: 40px; height: 40px; margin-bottom: 10px;
    
    color: #fff !important; 
    background: rgba(0,0,0,0.2) !important;
    border: 1px solid rgba(255,255,255,0.3) !important;
    border-radius: 50%;
    
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transform: scale(0.8);
    transition: all 0.3s ease;
  }
  .fp-sidebar.active .fp-sidebar-close-btn {
    opacity: 1; transform: scale(1);
    transition-delay: 0.6s; /* 文字より少し遅れて出す */
  }
}
/* ------------------------------------------------
   ★追加: iOS Safari 透過対策 (記事の内容)
   ボタンとは独立した見えない壁を作ります
------------------------------------------------ */
/* ステータスバー透過防止 */
.for-status-bars {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none; /* クリックを邪魔しない */
  height: 5px;
  width: 100%;
  background-color: #000;
  mix-blend-mode: lighten;
  z-index: 2147483647; /* 最前面 */
}

/* タブバー透過防止 */
.for-tab-bars {
  position: fixed;
  bottom: 0; left: 0;
  pointer-events: none; /* クリックを邪魔しない */
  height: 4px;
  width: 100%;
  background-color: #000;
  mix-blend-mode: lighten;
  z-index: 2147483647; /* 最前面 */
}
}

@media (max-width: 768px) {
  .fp-archive-header, .fp-single-header { padding-top: 120px; padding-bottom: 40px; }
  .fp-archive-title, .fp-single-title { font-size: 1.8rem; }
  .fp-post-content { font-size: 1rem; }
  .fp-post-content h2 { font-size: 1.5rem; margin: 40px 0 20px; }
  .fp-post-content h3 { font-size: 1.2rem; }
}

/* -----------------------------
   Table of Contents (目次ウィジェット)
----------------------------- */
.widget_toc .toc, .toc {
  border: none !important; 
  background: transparent !important;
  padding: 0 !important; 
  margin: 0 !important; 
  box-shadow: none !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.toc-title {
  font-size: 0.85rem; font-weight: 900; letter-spacing: 0.1em;
  color: #171717; border-bottom: 2px solid #000;
  padding-bottom: 12px !important; margin-bottom: 24px !important;
}

.toc-content,
.toc-content ul,
.toc-content li {
  list-style: none !important; 
  margin: 0 !important; 
  padding: 0 !important;
  width: 100% !important;
  display: block !important;
}

.toc-content ul ul {
  padding-left: 20px !important;
  width: auto !important;
}
.toc-content ul ul ul {
  padding-left: 0 !important;
}

.toc-content a {
  display: block !important;
  width: 100% !important; 
  box-sizing: border-box !important;
  color: #171717 !important;
  font-size: 0.9rem !important;
  font-weight: 500;
  text-decoration: none !important;
  padding: 6px 0 !important;
  border-left: 3px solid transparent !important;
  padding-left: 0 !important;
  transition: all 0.2s ease;
  line-height: 1.4;
}

.toc-content a.toc-active {
  color: #171717 !important;
  font-weight: 700 !important;
  border-left-color: #171717 !important;
  padding-left: 12px !important;       
}

.toc-content a:hover {
  color: var(--accent-color) !important;
}

.toc-content .toc-number {
  color: inherit; margin-right: 8px; font-weight: inherit;
}

/* PC用修正 */
@media (min-width: 961px) {
  .fp-sidebar-close-btn {
    display: none !important;
  }
  
  .fp-sidebar-inner,
  .fp-sidebar-scroll-area {
    height: 100% !important;
    overflow: visible !important;
    display: block !important;
    background: transparent !important;
    padding: 0 !important;
    width: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    margin: 0 !important;
  }

  .fp-sidebar-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 120px;
    z-index: 1;
    max-height: calc(100vh - 120px) !important;
    overflow-y: auto !important;
    padding-right: 10px;
    scrollbar-width: thin;
  }
  
  .toc-title {
    position: sticky !important;
    top: 0 !important;
    z-index: 10 !important;
    background: #fff !important;
    margin-top: 0 !important;
    padding-top: 10px !important;
    padding-bottom: 12px !important;
  }

  .fp-sidebar-sticky::-webkit-scrollbar { width: 6px; }
  .fp-sidebar-sticky::-webkit-scrollbar-track { background: transparent; }
  .fp-sidebar-sticky::-webkit-scrollbar-thumb { background-color: #ccc; border-radius: 4px; }
}

/* スマホメニューの「色の濁り・濃さ」除去 */
#fp-mobile-nav-container a,
#fp-mobile-nav-container a:link,
#fp-mobile-nav-container a:visited {
  color: #171717 !important;
  transition: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

#fp-mobile-nav-container a:hover,
#fp-mobile-nav-container a:active,
#fp-mobile-nav-container a:focus {
  color: #00c853 !important;
  opacity: 1 !important;
  background-color: transparent !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

/* 404ページ & 共通ボタン用スタイル修正 */

.fp-btn {
  /* --- ベース配置 --- */
  display: inline-flex;
  align-items: center;
  gap: 12px;
  
  /* --- 形と色 --- */
  background: var(--accent-color) !important; /* 青 */
  color: #fff !important;
  padding: 16px 40px;
  border-radius: 100vh;
  border: none;
  
  /* --- テキスト --- */
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-decoration: none !important;
  cursor: pointer;
  
  /* --- 通常時のエフェクト --- */
  /* ぼかし範囲20px */
  box-shadow: 0 0 20px rgba(0, 102, 255, 0.5);
  transform: scale(1);
  
  /* --- アニメーション設定（重要！） --- */
  transition: box-shadow 0.5s ease-out, transform 0.5s ease !important;
}

/* --- ホバー時の挙動 --- */
.fp-btn:hover {
  background: var(--accent-color) !important;
  color: #fff !important;
  transition: transform 0.5s ease;
  transform: scale(1.05);
  
  /* ぼかしをキュッと集める */
  box-shadow: 0 0 5px rgba(0, 102, 255, 0.9);
}

/* 矢印アイコンのアニメーション */
/* ここは親の !important が効かないことがあるので、念のため個別に指定 */
.fp-btn svg {
  transition: transform 0.3s ease !important;
}
.fp-btn:hover svg {
  transform: translateX(4px);
}

.fp-404-area {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  background: #fff;
}

.fp-404-visual {
  font-size: 10rem;
  font-weight: 900;
  line-height: 1;
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.05em;
  color: #171717;
  position: relative;
  margin-bottom: 10px;
  animation: glitch-skew 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite both;
}

.fp-404-visual::before,
.fp-404-visual::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
}

.fp-404-visual::before {
  left: 2px;
  text-shadow: -2px 0 #ff00c1;
  clip-path: inset(0 0 0 0);
  animation: glitch-anim-1 2s infinite linear alternate-reverse;
}

.fp-404-visual::after {
  left: -2px;
  text-shadow: -2px 0 #00fff9;
  clip-path: inset(0 0 0 0);
  animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

.fp-404-head {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.fp-404-msg {
  color: #737373;
  margin-bottom: 40px;
  line-height: 1.8;
  font-size: 0.9rem;
}

.fp-404-search {
  margin-bottom: 40px;
  width: 100%;
  max-width: 320px;
}
.fp-404-search form { position: relative; }
.fp-404-search input[type="text"],
.fp-404-search input[type="search"] {
  background: #f5f5f5;
  border: none;
  border-radius: 50px;
  padding: 14px 24px;
  width: 100%;
  font-size: 0.9rem;
  outline: none;
  transition: background 0.3s;
}
.fp-404-search input:focus {
  background: #eee;
}

@keyframes glitch-skew {
  0% { transform: skew(0deg); }
  20% { transform: skew(-2deg); }
  40% { transform: skew(2deg); }
  60% { transform: skew(-1deg); }
  80% { transform: skew(1deg); }
  100% { transform: skew(0deg); }
}
@keyframes glitch-anim-1 {
  0% { clip-path: inset(80% 0 0 0); }
  20% { clip-path: inset(20% 0 60% 0); }
  40% { clip-path: inset(50% 0 10% 0); }
  60% { clip-path: inset(10% 0 80% 0); }
  80% { clip-path: inset(90% 0 5% 0); }
  100% { clip-path: inset(30% 0 30% 0); }
}
@keyframes glitch-anim-2 {
  0% { clip-path: inset(10% 0 50% 0); }
  20% { clip-path: inset(70% 0 10% 0); }
  40% { clip-path: inset(30% 0 60% 0); }
  60% { clip-path: inset(80% 0 5% 0); }
  80% { clip-path: inset(0 0 90% 0); }
  100% { clip-path: inset(50% 0 20% 0); }
}

@media (max-width: 768px) {
  .fp-404-visual { font-size: 6rem; }
}

/* -------------------------------------------
   記事本文の見出しデザイン (青テーマ適用版)
   場所: .entry-content h2 などのあたり
------------------------------------------- */

/* ベースのリセット */
.entry-content h2, .entry-content h3, .entry-content h4,
.entry-content h5, .entry-content h6 {
  border: none; background: none; padding: 0; margin: 0; position: relative;
}

/* H2: 装飾は鮮やかな青、文字は落ち着いた青 */
.entry-content h2 {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.4;
  margin: 60px 0 30px !important;
  padding: 10px 10px 15px 16px !important;
  
  /* ★修正: 文字色を「落ち着いた青」に変更 */
  color: #0047AB !important; /* Deep Sky Blue / Cobalt Blue あたり */
  
  /* 線は鮮やかな青のまま */
  border-bottom: 2px solid var(--accent-color) !important;
  border-left: 8px solid var(--accent-color) !important;
  
  background: transparent;
}

/* H3: 装飾のみ青（文字は黒） */
.entry-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 40px 0 24px !important;
  padding: 12px 16px !important;
  
  /* ★変更: 文字は黒のまま */
  color: #171717 !important;
  
  /* ★変更: 左の太線を青に */
  border-left: 5px solid var(--accent-color) !important;
  
  /* ★変更: 背景を「ごく薄い青」にして統一感を出す */
  /* (もしグレーのままが良ければ #f9f9f9 にしてください) */
  background: rgba(0, 102, 255, 0.05) !important;
  
  border-radius: 0 4px 4px 0;
}

/* H4: 下線のみ青（控えめに） */
.entry-content h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 32px 0 20px !important;
  padding: 6px 0 8px 12px !important;
  
  /* 下線を薄い青に変更 */
  border-bottom: 1px solid rgba(0, 102, 255, 0.3) !important;
  /* 左のアクセントも青に */
  border-left: 3px solid var(--accent-color) !important;
}

/* H5, H6 (変更なし) */
.entry-content h5 {
  font-size: 1rem; font-weight: 700;
  margin: 24px 0 16px !important; padding-bottom: 4px !important;
  border-bottom: 1px solid #e5e5e5 !important;
}
.entry-content h6 {
  font-size: 1rem; font-weight: 700;
  margin: 24px 0 16px !important; color: #555;
}

/* スマホでのサイズ調整 */
@media (max-width: 768px) {
  .entry-content h2 { 
    font-size: 1.4rem; 
    padding-left: 12px !important; 
    border-left-width: 6px !important; 
  }
  .entry-content h3 { font-size: 1.2rem; }
  .entry-content h4 { font-size: 1.05rem; }
}

/* 目次のデザイン調整（H2太字・H3細字） */
.toc-content > ul > li > a {
  font-weight: 700 !important;
  font-size: 0.95rem !important;
}

.toc-content ul ul li a {
  font-weight: 400 !important;
  font-size: 0.85rem !important;
  color: #555 !important;
}

.toc-content ul ul li a:hover,
.toc-content ul ul li a.toc-active {
  color: #171717 !important;
  font-weight: 700 !important;
}

/* 関連記事エリア (Single Page) */
.fp-related-section {
  margin-top: 100px;
  padding-top: 60px;
  border-top: 1px solid #f0f0f0;
}

.fp-related-title {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  margin-bottom: 40px !important;
  display: flex;
  align-items: baseline;
  gap: 16px;
  border: none !important;
  padding: 0 !important;
}

.fp-related-title span {
  font-size: 0.8rem;
  color: #a3a3a3;
  font-weight: 700;
}

@media (max-width: 768px) {
  .fp-related-section { margin-top: 60px; padding-top: 40px; }
  .fp-related-title { font-size: 1.2rem; }
}

.fp-view-more-area {
  display: flex;
  justify-content: center; 
  margin-top: 60px;       
  margin-bottom: 20px;
}

/* コメント欄のデザインカスタマイズ */
.fp-comment-area {
  margin-top: 80px;
  margin-bottom: 60px;
  background: #fff;
  box-shadow: 0 10px 40px rgba(0,0,0,0.05);
  padding: 50px;
}

.comment-title { display: none !important; }

.comment-reply-title {
  font-size: 1.5rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.1em !important;
  color: #171717 !important;
  margin-bottom: 32px !important;
  text-align: center !important;
  display: block !important;
}

.comment-notes { display: none !important; }

.comment-form-comment textarea,
.comment-form-author input,
.comment-form-email input,
.comment-form-url input {
  width: 100%;
  padding: 16px;
  border: 1px solid #e5e5e5;
  background: #f9f9f9;
  border-radius: 0;
  font-size: 0.9rem;
  transition: all 0.3s;
  outline: none;
  margin-bottom: 8px;
  box-sizing: border-box;
}

.comment-form-comment textarea:focus,
.comment-form-author input:focus,
.comment-form-email input:focus,
.comment-form-url input:focus {
  background: #fff;
  border-color: var(--accent-color);
}

.form-submit {
  text-align: center !important;
  margin-top: 32px;
  display: block !important;
}

.form-submit .submit {
  background: #000 !important;
  color: #fff !important;
  display: inline-block !important; 
  width: auto !important; 
  min-width: 200px;
  max-width: 300px;
  padding: 16px 40px !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  border: none !important;
  border-radius: 0 !important;
  cursor: pointer;
  transition: all 0.3s ease !important;
  box-shadow: none;
  margin: 0 auto !important; 
}

.form-submit .submit:hover {
  background: var(--accent-color) !important;
  color: #fff !important;
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* 画像認証（SiteGuard）のデザイン調整 */
label[for="captcha_code"] {
  display: block;
  font-size: 0.8rem;
  color: #737373;
  margin-bottom: 8px;
}
#captcha_code {
  width: 100%;
  max-width: 300px;
  padding: 12px;
  border: 1px solid #e5e5e5;
  background: #f9f9f9;
}
.captcha-image-box { margin-bottom: 12px; }

.comment-form-email, .comment-form-url, .comment-notes { display: none; }

@media (max-width: 768px) {
  .fp-comment-area { padding: 30px 20px; margin-top: 40px; }
  .form-submit .submit { width: 100% !important; }
}

/* コメント一覧のデザイン */
.comment-list {
  padding: 0;
  list-style: none;
  margin-top: 40px; 
  border-top: none !important;
  padding-top: 0 !important;
}

.comment-body {
  position: relative;
  padding-left: 70px;
  margin-bottom: 40px;
  border-bottom: none;
}

.comment-author .avatar {
  position: absolute;
  top: 0;
  left: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  background: #eee;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  float: none;
  margin: 0;
}

.comment-meta {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
  flex-direction: row; 
}

.comment-author .fn {
  font-style: normal;
  font-weight: 700;
  font-size: 0.95rem;
  color: #171717;
}
.comment-author .says { display: none; }

.comment-metadata { font-size: 0.75rem; }
.comment-metadata a { color: #a3a3a3; text-decoration: none; }

.comment-content {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 0 12px 12px 12px;
  position: relative;
  font-size: 0.95rem;
  line-height: 1.8;
  color: #333;
}

.comment-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: -10px;
  width: 0;
  height: 0;
  border-top: 10px solid #f9f9f9;
  border-left: 10px solid transparent;
}

.reply { text-align: right; margin-top: 8px; }
.reply a {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #171717;
  padding: 6px 16px;
  border: 1px solid #e5e5e5;
  background: #fff;
  text-decoration: none;
  transition: all 0.3s;
}

.reply a:hover {
  background: #000;
  color: #fff;
  border-color: #000;
}

@media (max-width: 768px) {
  .comment-body { padding-left: 0; }
  .comment-author .avatar {
    position: static;
    width: 32px;
    height: 32px;
    margin-right: 10px;
    display: inline-block;
    vertical-align: middle;
  }
  .comment-meta {
    align-items: center;
    margin-bottom: 12px;
  }
  .comment-content { border-radius: 12px; }
  .comment-content::before { display: none; }
}