/*
Theme Name: AIぐっすり（Cocoon Child）
Template: cocoon-master
Description: AIぐっすりブログ専用 Cocoon子テーマ
Author: ぐっすりーな
Version: 3.2.0
License: GNU General Public License v2 or later
*/

/* ============================================
   AIぐっすり - CocoonカスタムCSS
   テーマ: Cocoon（てがきノートスキンを上書き）
   デザイン: Figma「AIぐっすり ブログデザイン」準拠
   ============================================ */

/* --- CSS変数（カラーパレット） --- */
:root {
  --bg-white: #FFFAF5;
  --bg-cream: #FAF5EE;
  --bg-lavender: #F2EDFA;
  --deep-navy: #141438;
  --dark-purple: #381F59;
  --accent-purple: #6B40A1;
  --light-purple: #9568C8;
  --silver: #BFC7D9;
  --moon-gold: #D9C78C;
  --text-dark: #333340;
  --text-mid: #666678;
  --text-light: #9999AB;
  --border: #EBEBF0;
  --card-shadow: 0 4px 16px rgba(20, 20, 56, 0.06);
  --card-shadow-hover: 0 8px 24px rgba(20, 20, 56, 0.1);
}

/* ============================================
   全体
   ============================================ */
body {
  background-color: var(--bg-white);
  color: var(--text-dark);
  font-feature-settings: "palt";
}

/* Cocoonてがきノートスキンの上書き */
.skin-tegaki .wrap {
  background-color: var(--bg-white);
}

/* 記事ページ: 白背景 */
body.single #main,
body.page #main {
  background: #fff !important;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(20, 20, 56, 0.06);
  padding: 40px;
}

/* 記事ページ: 日付 */
.article .date-tags,
.article .post-date,
.article .entry-date {
  color: var(--text-mid);
}

/* 本文の行間 */
.entry-content p {
  line-height: 2;
  margin-bottom: 1.5em;
  color: var(--text-dark);
}

/* リンク */
a {
  color: var(--accent-purple);
}
a:hover {
  color: var(--light-purple);
}

/* ============================================
   ヘッダー
   ============================================ */
.header {
  background: var(--deep-navy);
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, transparent 10%, var(--moon-gold) 30%, var(--moon-gold) 70%, transparent 90%) 1;
}

/* ヘッダー内部 */
.header-in {
  min-height: 64px;
}

/* サイト名 */
.site-name-text {
  color: #fff;
  font-weight: 700;
  font-size: 20px;
}

/* サイト説明 */
.site-description {
  color: var(--silver);
  font-size: 12px;
  letter-spacing: 2px;
}

/* ヘッダー画像エリア */
.header-container-in.hlt-top-menu .site-name-text {
  color: #fff;
}

/* ============================================
   グローバルナビ
   ============================================ */
.navi {
  background: var(--deep-navy);
}

.navi-in > ul > li > a {
  color: var(--silver);
  font-size: 13px;
  font-weight: 500;
  padding: 12px 20px;
  transition: color 0.3s ease, background 0.3s ease;
}

.navi-in > ul > li > a:hover {
  color: #fff;
  background: rgba(107, 64, 161, 0.2);
}

/* アクティブなナビ項目 */
.navi-in > ul > .current-menu-item > a,
.navi-in > ul > .current-menu-ancestor > a {
  color: #fff;
  border-bottom: 2px solid var(--moon-gold);
}

/* サブメニュー */
.navi-in > ul .sub-menu {
  background: var(--deep-navy);
  border: 1px solid rgba(191, 199, 217, 0.15);
}

.navi-in > ul .sub-menu a {
  color: var(--silver);
  font-size: 13px;
}

.navi-in > ul .sub-menu a:hover {
  color: #fff;
  background: rgba(107, 64, 161, 0.2);
}

/* モバイルメニューボタン */
.menu-button {
  color: var(--silver);
}

/* ============================================
   ヒーロー / アピールエリア
   Cocoon設定 > アピールエリア で設定するエリア
   ============================================ */
.appeal {
  background: linear-gradient(135deg, #0D0A26 0%, var(--deep-navy) 40%, var(--dark-purple) 75%, #593280 100%);
  min-height: 360px;
  position: relative;
  overflow: hidden;
}

/* 星のきらめきアニメーション */
.appeal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle, rgba(255,255,255,0.8) 1px, transparent 1px) 5% 15%,
    radial-gradient(circle, rgba(255,255,255,0.5) 1px, transparent 1px) 12% 55%,
    radial-gradient(circle, rgba(255,255,255,0.6) 1.5px, transparent 1.5px) 20% 25%,
    radial-gradient(circle, rgba(255,255,255,0.4) 1px, transparent 1px) 28% 75%,
    radial-gradient(circle, rgba(255,255,255,0.7) 1px, transparent 1px) 35% 10%,
    radial-gradient(circle, rgba(255,255,255,0.5) 1.5px, transparent 1.5px) 42% 65%,
    radial-gradient(circle, rgba(255,255,255,0.3) 1px, transparent 1px) 50% 40%,
    radial-gradient(circle, rgba(255,255,255,0.6) 1px, transparent 1px) 58% 20%,
    radial-gradient(circle, rgba(255,255,255,0.4) 1px, transparent 1px) 65% 80%,
    radial-gradient(circle, rgba(255,255,255,0.8) 1.5px, transparent 1.5px) 72% 35%,
    radial-gradient(circle, rgba(255,255,255,0.5) 1px, transparent 1px) 80% 60%,
    radial-gradient(circle, rgba(255,255,255,0.6) 1px, transparent 1px) 88% 15%,
    radial-gradient(circle, rgba(255,255,255,0.4) 1.5px, transparent 1.5px) 93% 45%,
    radial-gradient(circle, rgba(255,255,255,0.7) 1px, transparent 1px) 15% 85%,
    radial-gradient(circle, rgba(255,255,255,0.5) 1px, transparent 1px) 45% 90%,
    radial-gradient(circle, rgba(255,255,255,0.6) 1px, transparent 1px) 75% 88%;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  animation: ag-twinkle 4s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 1;
}

/* 月の装飾（ヒーロー左上） */
.appeal::after {
  content: '';
  position: absolute;
  top: 30px;
  left: 8%;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f0e6a0 0%, var(--moon-gold) 50%, #c4a84a 100%);
  box-shadow: 0 0 40px rgba(217,199,140,0.3), 0 0 80px rgba(217,199,140,0.15);
  opacity: 0.9;
  z-index: 1;
}

@keyframes ag-twinkle {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}

/* アピールエリアのオーバーレイ無効化 */
.appeal-in {
  background: transparent;
}

.appeal-content {
  position: relative;
  z-index: 2;
}

.appeal-title {
  color: #fff;
  font-size: 42px;
  font-weight: 700;
  text-shadow: 0 2px 20px rgba(20, 20, 56, 0.3);
}

.appeal-message {
  color: var(--silver);
  font-size: 16px;
  letter-spacing: 3px;
}

.appeal-button {
  background: var(--accent-purple);
  color: #fff;
  border-radius: 24px;
  padding: 12px 32px;
  font-weight: 500;
  transition: background 0.3s ease, transform 0.2s ease;
}

.appeal-button:hover {
  background: var(--light-purple);
  color: #fff;
  transform: translateY(-1px);
}

/* ============================================
   パンくずリスト
   ============================================ */
.breadcrumb {
  color: var(--text-light);
  font-size: 12px;
  padding: 12px 0;
}

.breadcrumb a {
  color: var(--accent-purple);
}

/* ============================================
   記事カード
   ============================================ */

/* カードはfunctions.phpのwp_head JSで即時再構築（FOUC防止） */
.cat-label {
  background: var(--accent-purple);
  color: #fff;
  border-radius: 12px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
}

/* ============================================
   記事ページ本文
   ============================================ */

/* H2見出し */
.article h2 {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  border-left: 4px solid transparent;
  border-image: linear-gradient(to bottom, var(--accent-purple), var(--moon-gold)) 1;
  border-image-slice: 1;
  padding: 12px 0 12px 16px;
  margin: 2.5em 0 1.2em;
  font-size: 22px;
  font-weight: 700;
  color: var(--deep-navy);
  position: relative;
}

/* てがきノートスキンのH2装飾を無効化 */
.article h2::before,
.article h2::after {
  content: none;
}

/* H3見出し */
.article h3 {
  background: transparent;
  border: none;
  padding: 8px 0 8px 18px;
  margin: 2em 0 1em;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  position: relative;
}

.article h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-purple);
}

.article h3::after {
  content: none;
}

/* H4見出し */
.article h4 {
  border: none;
  border-bottom: 1px dashed var(--border);
  padding: 4px 0 8px;
  margin: 1.5em 0 0.8em;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
}

/* ============================================
   目次（TOC）
   ============================================ */
.toc {
  background: #F8F6FC;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 2em 0;
}

.toc-title {
  color: var(--deep-navy);
  font-weight: 700;
  font-size: 14px;
  position: relative;
  padding-left: 20px;
}

.toc-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--moon-gold);
}

.toc-list a {
  color: var(--accent-purple);
  font-size: 13px;
  line-height: 2;
}

.toc-list a:hover {
  color: var(--light-purple);
}

/* ============================================
   テーブル
   ============================================ */
.article table,
.wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  font-size: 14px;
  color: var(--text-dark);
}

.article table th,
.wp-block-table th {
  background: var(--deep-navy);
  color: #fff;
  font-weight: 600;
  padding: 12px 16px;
  text-align: left;
  border: 1px solid rgba(255,255,255,0.1);
}

.article table td,
.wp-block-table td {
  padding: 10px 16px;
  border: 1px solid var(--border);
  color: var(--text-dark);
}

.article table tr:nth-child(even),
.wp-block-table tr:nth-child(even) {
  background: #F8F6FC;
}

.article table tr:hover,
.wp-block-table tr:hover {
  background: var(--bg-lavender);
}

/* ============================================
   コードブロック
   ============================================ */
.article pre,
.wp-block-code {
  background: #1E1B2E !important;
  color: #E0DDF0 !important;
  border: 1px solid rgba(107, 64, 161, 0.3);
  border-radius: 12px;
  padding: 20px 24px !important;
  font-family: 'SFMono-Regular', 'Consolas', 'Liberation Mono', 'Menlo', monospace;
  font-size: 13px;
  line-height: 1.7;
  overflow-x: auto;
}

.article pre code,
.wp-block-code code {
  background: transparent !important;
  color: #E0DDF0 !important;
  padding: 0 !important;
  font-size: 13px;
}

/* インラインコード */
.article code,
.entry-content code {
  background: #F2EDFA;
  color: var(--accent-purple);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: 'SFMono-Regular', 'Consolas', 'Liberation Mono', 'Menlo', monospace;
}

/* コピーボタン */
.ag-copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(107, 64, 161, 0.4);
  color: #E0DDF0;
  border: 1px solid rgba(107, 64, 161, 0.5);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 11px;
  cursor: pointer;
  transition: background 0.2s ease;
  font-family: inherit;
  z-index: 1;
}

.ag-copy-btn:hover {
  background: rgba(107, 64, 161, 0.7);
  color: #fff;
}

/* pre内のcodeは上書きしない */
.article pre code,
.entry-content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  border-radius: 0;
}

/* ============================================
   ボックス装飾
   ============================================ */

/* 情報ボックス（POINT） */
.information-box,
.info-box {
  background: #E1EDFF;
  border: 1px solid #8CB3E6;
  border-radius: 12px;
  padding: 20px 24px;
  color: var(--text-dark);
}

.information-box::before,
.info-box::before {
  color: #8CB3E6;
}

/* おすすめ・メモボックス */
.memo-box,
.ok-box {
  background: #E6F7EC;
  border: 1px solid #66B380;
  border-radius: 12px;
  padding: 20px 24px;
  color: var(--text-dark);
}

/* 注意ボックス */
.alert-box,
.caution-box {
  background: #FFF7E0;
  border: 1px solid #D9BF66;
  border-radius: 12px;
  padding: 20px 24px;
  color: var(--text-dark);
}

/* 共通ボックスの角丸 */
.blank-box,
.common-icon-box {
  border-radius: 12px;
}

/* ============================================
   引用
   ============================================ */
.article blockquote {
  background: #F7F7FA;
  border: none;
  border-left: 4px solid var(--silver);
  border-radius: 0 12px 12px 0;
  padding: 16px 24px;
  color: var(--text-mid);
  font-style: normal;
  margin: 1.5em 0;
}

.article blockquote::before,
.article blockquote::after {
  color: var(--silver);
  opacity: 0.3;
}

/* ============================================
   番号付きリスト（ステップ）
   ============================================ */
.article ol {
  counter-reset: step-counter;
  list-style: none;
  padding-left: 0;
}

.article ol > li {
  counter-increment: step-counter;
  padding-left: 44px;
  position: relative;
  margin-bottom: 12px;
  line-height: 1.8;
}

.article ol > li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-purple);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 28px;
  text-align: center;
}

/* 箇条書きリスト */
.article ul > li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  line-height: 1.8;
}

.article ul > li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-purple);
}

/* ============================================
   メイン + サイドバー 上ライン揃え
   ============================================ */
#main {
  padding-top: 20px;
}

#sidebar {
  padding-top: 20px;
}

.sidebar {
  font-size: 14px;
}

/* ウィジェット */
.widget {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  margin-bottom: 20px;
}

.widget-title {
  background: transparent;
  color: var(--deep-navy);
  font-weight: 700;
  font-size: 15px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  position: relative;
  padding-left: 36px;
}

.widget-title::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--moon-gold);
}

/* プロフィールウィジェット */
.author-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

/* プロフィールヘッダー部分 */
.author-box .author-thumb {
  position: relative;
}

/* プロフィール名 */
.author-box .author-name {
  color: var(--deep-navy);
  font-weight: 700;
}

.author-box .author-description {
  color: var(--text-mid);
  font-size: 12px;
  line-height: 1.8;
}

/* カテゴリウィジェット */
.widget_categories ul li a {
  color: var(--text-dark);
  font-size: 13px;
  padding: 10px 20px;
  display: block;
  border-bottom: 1px solid #F5F5F8;
  transition: background 0.2s ease;
}

.widget_categories ul li a:hover {
  background: var(--bg-lavender);
  color: var(--accent-purple);
}

.widget_categories ul li a::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-purple);
  margin-right: 8px;
}

/* ============================================
   フッター - Figma準拠（PHPでHTML置換済み）
   Figma: 1280x160, 中央揃え
   月(top28) → ライン(top58) → サイト名(top70) → タグライン(top94) → ナビ(top118) → コピー(top140)
   ============================================ */
.ag-footer {
  background: linear-gradient(90deg, #141438 0%, #1f1a47 100%);
  position: relative;
  overflow: hidden;
  height: 160px;
  border: none;
}

/* 星の装飾 */
.ag-footer-stars {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle, rgba(191,199,217,0.5) 1.5px, transparent 1.5px) 8% 13%,
    radial-gradient(circle, rgba(191,199,217,0.3) 1px, transparent 1px) 23% 25%,
    radial-gradient(circle, rgba(191,199,217,0.6) 2px, transparent 2px) 39% 9%,
    radial-gradient(circle, rgba(191,199,217,0.3) 1px, transparent 1px) 55% 22%,
    radial-gradient(circle, rgba(191,199,217,0.5) 1.5px, transparent 1.5px) 70% 6%,
    radial-gradient(circle, rgba(191,199,217,0.3) 1px, transparent 1px) 86% 19%;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
}

/* 月 */
.ag-footer-moon {
  position: absolute;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--moon-gold);
  opacity: 0.8;
}

/* コンテンツ */
.ag-footer-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 金色ライン */
.ag-footer-line {
  margin-top: 58px;
  width: 80px;
  height: 1px;
  background: var(--moon-gold);
  opacity: 0.3;
}

/* サイト名 */
.ag-footer-sitename {
  margin-top: 10px;
  color: #BFC7D9;
  font-size: 14px;
  font-weight: 700;
}

/* タグライン */
.ag-footer-tagline {
  margin-top: 6px;
  color: #808099;
  font-size: 11px;
}

/* ナビ */
.ag-footer-nav {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 0;
}

.ag-footer-nav a {
  color: #73738c;
  font-size: 11px;
  text-decoration: none;
}

.ag-footer-nav a:hover {
  color: #fff;
}

.ag-footer-nav .ag-sep {
  color: rgba(115, 115, 140, 0.4);
  padding: 0 10px;
  font-size: 11px;
}

/* コピーライト */
.ag-footer-copy {
  margin-top: 6px;
  color: #9999AB;
  font-size: 10px;
}

/* ============================================
   ページネーション
   ============================================ */
.pagination a,
.pagination span {
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text-mid);
  transition: all 0.2s ease;
}

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

.pagination .current {
  background: var(--accent-purple);
  border-color: var(--accent-purple);
  color: #fff;
}

/* ============================================
   関連記事
   ============================================ */

/* 関連記事が0件の場合、セクションごと非表示 */
.related-entries:not(:has(.related-entry-card-wrap)) {
  display: none;
}

.related-entry-card-wrap {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.related-entry-card-wrap:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-2px);
}

.related-entry-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
}

/* ============================================
   ブログカード
   ============================================ */
.blogcard {
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  transition: box-shadow 0.3s ease;
}

.blogcard:hover {
  box-shadow: var(--card-shadow-hover);
}

/* ============================================
   ボタン
   ============================================ */
.btn,
.btn-wrap a {
  border-radius: 24px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-wrap.btn-wrap-l a,
.btn-l {
  background: var(--accent-purple);
  color: #fff;
  border: none;
  padding: 12px 32px;
}

.btn-wrap.btn-wrap-l a:hover,
.btn-l:hover {
  background: var(--light-purple);
  transform: translateY(-1px);
}

/* ============================================
   SNSシェアボタン
   ============================================ */
.ss-top .sns-share-buttons,
.ss-bottom .sns-share-buttons {
  border-radius: 8px;
}

/* ============================================
   モバイル対応
   ============================================ */
@media screen and (max-width: 834px) {
  /* モバイルヘッダー */
  .header {
    background: var(--deep-navy);
  }

  .site-name-text {
    font-size: 18px;
  }

  /* モバイルメニュー */
  .mobile-menu-buttons {
    background: var(--deep-navy);
  }

  .mobile-menu-buttons .menu-button {
    color: var(--silver);
    border-color: rgba(191, 199, 217, 0.2);
  }

  /* カード: モバイルは縦積み */
  .entry-card {
    flex-direction: column !important;
    height: auto;
  }

  .entry-card-thumb {
    width: calc(100% - 24px) !important;
    min-width: 0;
    height: 160px !important;
    margin: 12px 12px 0 12px;
  }

  .entry-card-content {
    padding: 12px 16px 16px;
  }

  .entry-card-title {
    white-space: normal;
  }

  .entry-card-wrap {
    border-radius: 12px;
    margin-bottom: 16px;
  }

  /* 見出し */
  .article h2 {
    font-size: 19px;
    padding: 10px 0 10px 12px;
  }

  .article h3 {
    font-size: 16px;
  }

  /* ヒーロー */
  .appeal-title {
    font-size: 28px;
  }

  .appeal-message {
    font-size: 13px;
    letter-spacing: 2px;
  }

  /* 番号リスト */
  .article ol > li {
    padding-left: 36px;
  }

  .article ol > li::before {
    width: 24px;
    height: 24px;
    font-size: 12px;
    line-height: 24px;
  }
}

@media screen and (max-width: 480px) {
  .appeal-title {
    font-size: 24px;
  }

  .article h2 {
    font-size: 17px;
  }
}

/* ============================================
   スムーズスクロール
   ============================================ */
html {
  scroll-behavior: smooth;
}

/* ============================================
   セレクション（テキスト選択時の色）
   ============================================ */
::selection {
  background: rgba(107, 64, 161, 0.2);
  color: var(--deep-navy);
}

/* ============================================
   v2改善: 記事タイトル・リスト文字色修正
   ============================================ */
.entry-title {
  color: #333340 !important;
  font-weight: 700;
}

.article ul > li,
.article ol > li {
  color: #333340 !important;
}

.article ul > li a,
.article ol > li a {
  color: #6B40A1 !important;
}

/* ============================================
   v2改善: 背景色強制 + コンテナ透明化
   ============================================ */
body { background-color: #FFFAF5 !important; }
.wrap, #content, .content, #content-in, .content-in,
.main, main, #main, .list, .front-page-type-index,
#sidebar, .sidebar, #container, .container {
  background-color: #FFFAF5 !important;
  border: none !important;
  box-shadow: none !important;
}
html { scroll-behavior: smooth; overflow-y: auto !important; }
body { overflow-y: auto !important; min-height: 100vh; }
#container, .container, #content, .content, #content-in, .content-in, .wrap {
  overflow: visible !important; height: auto !important;
}

/* ヘッダー・ナビ・フッターだけダーク */
#header-container, .header-container, .header-container-in,
#header, .header, .header-in, .header-in.wrap,
#navi, .navi, .navi.cf, .navi-in, .navi-in.wrap {
  background: #141438 !important;
}

/* ============================================
   v2改善: SNS・フォロー非表示
   ============================================ */
.ss-top { display: none !important; }
.sns-follow { display: none !important; }

/* ============================================
   v2改善: シェアボタン夜空カード
   ============================================ */
.ss-bottom {
  margin-top: 32px;
  padding: 24px 28px !important;
  background: linear-gradient(135deg, #141438 0%, #381F59 60%, #4D2D80 100%) !important;
  border-radius: 16px !important;
  border: none !important;
  position: relative;
  overflow: hidden;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
}
.ss-bottom .sns-share-message {
  color: rgba(191,199,217,0.7) !important;
  font-size: 11px; letter-spacing: 3px;
  margin: 0; padding-left: 20px; position: relative;
}
.ss-bottom .sns-share-message::before {
  content: ''; position: absolute; left: 0; top: 50%;
  transform: translateY(-50%); width: 10px; height: 10px;
  border-radius: 50%; background: #D9C78C; opacity: 0.6;
}
.ss-bottom .sns-share-buttons { display: flex !important; gap: 10px; }
.ss-bottom .sns-share-buttons a.share-button {
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(191,199,217,0.15) !important;
  border-radius: 50% !important;
  width: 36px !important; height: 36px !important;
  min-width: 0 !important; padding: 0 !important;
  display: flex !important; align-items: center; justify-content: center;
  transition: all 0.25s ease; flex: none !important;
}
.ss-bottom .sns-share-buttons a.share-button:hover {
  background: rgba(255,255,255,0.12) !important;
  border-color: rgba(217,199,140,0.4) !important;
  transform: translateY(-2px);
}
.ss-bottom .sns-share-buttons .button-caption { display: none !important; }
.ss-bottom .sns-share-buttons .social-icon { color: rgba(191,199,217,0.7) !important; font-size: 14px !important; margin: 0 !important; }
.ss-bottom .sns-share-buttons a:hover .social-icon { color: #fff !important; }
.ss-bottom .sns-share-buttons .share-count { display: none !important; }
.ss-bottom .sns-share-buttons .twitter-button,
.ss-bottom .sns-share-buttons .x-corp-button,
.ss-bottom .sns-share-buttons .facebook-button,
.ss-bottom .sns-share-buttons .hatebu-button,
.ss-bottom .sns-share-buttons .line-button,
.ss-bottom .sns-share-buttons .pinterest-button,
.ss-bottom .sns-share-buttons .comment-button,
.ss-bottom .sns-share-buttons .copy-button {
  background: rgba(255,255,255,0.06) !important;
}

/* ============================================
   v2改善: 目次シンプル化
   ============================================ */
.toc { text-align: left !important; }
.toc-title { text-align: left !important; }
.toc-content ol { list-style: none !important; counter-reset: none !important; padding-left: 0 !important; }
.toc-content ol li { padding-left: 0 !important; }
.toc-content ol li::before { display: none !important; content: none !important; }
.toc-content ol ol { padding-left: 16px !important; }

/* ============================================
   v2改善: ボックスアイコン非表示
   ============================================ */
.information-box::before, .information-box::after,
.memo-box::before, .memo-box::after,
.alert-box::before, .alert-box::after,
.ok-box::before, .ok-box::after,
.caution-box::before, .caution-box::after,
.common-icon-box::before, .common-icon-box::after,
.blank-box::before, .blank-box::after {
  display: none !important; content: none !important;
}
.information-box .fa, .memo-box .fa, .alert-box .fa,
.ok-box .fa, .caution-box .fa { display: none !important; }
.information-box, .memo-box, .ok-box, .alert-box, .caution-box {
  padding-left: 24px !important;
}

/* ============================================
   v2改善: PVカウンター非表示
   ============================================ */
.post-count-badge-wrap, .post-count-badge,
[class*="post-count-badge"], [class*="pv-count"] {
  display: none !important;
}

/* ============================================
   v2改善: カードメタ（日付左 + 続きを読む右）
   ============================================ */
/* カード内コンテンツ（右側） */
.entry-card-content {
  display: flex !important;
  flex-direction: column !important;
  flex: 1;
  padding: 16px 24px 16px 20px !important;
  position: relative;
  padding-top: 44px !important;
}

/* カテゴリバッジをコンテンツ上部に絶対配置 */
.entry-card-meta .entry-card-categorys,
.entry-card-meta .e-card-categorys {
  position: absolute !important;
  top: 16px !important;
  left: 20px !important;
  display: block !important;
  margin: 0 !important;
}

.entry-card-title {
  font-size: 17px !important;
  font-weight: 600 !important;
  line-height: 1.5 !important;
  margin-bottom: 8px;
  color: #333340 !important;
}

.entry-card-snippet {
  font-size: 13px !important;
  line-height: 1.8 !important;
  color: #666678 !important;
  flex: 1;
}

/* 日付(左下) + 続きを読む(右下) */
.entry-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto !important;
  padding-top: 12px;
}

/* 日付のみ表示（カテゴリは上に移動済み） */
.entry-card-info {
  order: 0;
}

.entry-card-meta::after {
  content: '\7D9A\304D\3092\8AAD\3080  \2192';
  color: #6B40A1;
  font-size: 13px;
  font-weight: 500;
}

.entry-card-content::after { content: none !important; display: none !important; }

/* ============================================
   v2改善: ブロックウィジェット統一
   ============================================ */
.widget_block {
  background: #fff !important; border: 1px solid #EBEBF0 !important;
  border-radius: 16px !important; overflow: hidden;
  box-shadow: 0 4px 16px rgba(20,20,56,0.06) !important;
  margin-bottom: 20px !important; padding: 0 !important;
}
.widget_block h2.wp-block-heading, .widget_block .wp-block-heading {
  color: #141438 !important; font-weight: 700 !important; font-size: 15px !important;
  padding: 16px 20px 16px 36px !important; margin: 0 !important;
  border-bottom: 1px solid #EBEBF0 !important; position: relative; background: transparent !important;
}
.widget_block h2.wp-block-heading::before, .widget_block .wp-block-heading::before {
  content: '' !important; position: absolute !important;
  left: 20px !important; top: 50% !important; transform: translateY(-50%) !important;
  width: 8px !important; height: 8px !important; border-radius: 50% !important;
  background: #D9C78C !important;
}
.wp-block-latest-posts { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.wp-block-latest-posts li { list-style: none !important; margin: 0 !important; border-bottom: 1px solid #F5F5F8; }
.wp-block-latest-posts li:last-child { border-bottom: none; }
.wp-block-latest-posts li a {
  display: block !important; padding: 12px 20px 12px 36px !important;
  color: #333340 !important; font-size: 13px !important; text-decoration: none !important;
  position: relative; transition: background 0.2s;
}
.wp-block-latest-posts li a::before {
  content: '' !important; position: absolute !important;
  left: 20px !important; top: 50% !important; transform: translateY(-50%) !important;
  width: 5px !important; height: 5px !important; border-radius: 50% !important;
  background: #6B40A1 !important;
}
.wp-block-latest-posts li a:hover { background: #F2EDFA !important; color: #6B40A1 !important; }
.wp-block-latest-comments { padding: 0 !important; margin: 0 !important; }
.wp-block-latest-comments__comment { padding: 12px 20px !important; border-bottom: 1px solid #F5F5F8; font-size: 13px; color: #666678; }
.wp-block-latest-comments__comment:last-child { border-bottom: none; }
.wp-block-latest-comments__comment-meta a { color: #6B40A1 !important; font-weight: 500; text-decoration: none; }
.no-comments { text-align: center; color: #9999AB; font-size: 13px; padding: 16px 20px; }
.wp-block-archives, .wp-block-categories { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.wp-block-archives li, .wp-block-categories li { list-style: none !important; margin: 0 !important; border-bottom: 1px solid #F5F5F8; }
.wp-block-archives li:last-child, .wp-block-categories li:last-child { border-bottom: none; }
.wp-block-archives li a, .wp-block-categories li a {
  display: block !important; padding: 12px 20px 12px 36px !important;
  color: #333340 !important; font-size: 13px !important; text-decoration: none !important;
  position: relative; transition: background 0.2s;
}
.wp-block-archives li a::before { content: '' !important; position: absolute !important; left: 20px !important; top: 50% !important; transform: translateY(-50%) !important; width: 5px !important; height: 5px !important; border-radius: 50% !important; background: #D9C78C !important; }
.wp-block-categories li a::before { content: '' !important; position: absolute !important; left: 20px !important; top: 50% !important; transform: translateY(-50%) !important; width: 5px !important; height: 5px !important; border-radius: 50% !important; background: #6B40A1 !important; }
.wp-block-archives li a:hover, .wp-block-categories li a:hover { background: #F2EDFA !important; color: #6B40A1 !important; }
.widget_block.widget_search { padding: 20px !important; }
.wp-block-search__label { color: #141438 !important; font-weight: 700 !important; font-size: 15px !important; padding-left: 20px !important; position: relative; margin-bottom: 8px; }
.wp-block-search__label::before { content: '' !important; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 8px; height: 8px; border-radius: 50%; background: #D9C78C !important; }
.wp-block-search__input { border: 1px solid #EBEBF0 !important; border-radius: 22px !important; padding: 8px 16px !important; }
.wp-block-search__input:focus { border-color: #6B40A1 !important; outline: none; box-shadow: 0 0 0 3px rgba(107,64,161,0.1); }
.wp-block-search__button { background: #6B40A1 !important; color: #fff !important; border: none !important; border-radius: 22px !important; padding: 8px 20px !important; }

/* ============================================
   v2改善: 前後記事ナビ（シンプル）
   ============================================ */
.pager-post-navi { margin-top: 32px; display: flex; gap: 16px; }
.pager-post-navi a { display: flex; align-items: center; gap: 12px; flex: 1; padding: 16px 20px; background: #fff; border: 1px solid #EBEBF0; border-radius: 12px; text-decoration: none; transition: all 0.2s; }
.pager-post-navi a:hover { background: #F2EDFA; border-color: #6B40A1; }
.pager-post-navi .prev-post-thumb, .pager-post-navi .next-post-thumb, .pager-post-navi .pager-thumb, .pager-post-navi img { display: none !important; }
.pager-post-navi .prev-post-title, .pager-post-navi .next-post-title, .pager-post-navi .pager-post-title { color: #333340 !important; font-size: 13px; font-weight: 500; }
.pager-post-navi a:hover .prev-post-title, .pager-post-navi a:hover .next-post-title { color: #6B40A1 !important; }

/* ============================================
   v2改善: プロフィールウィジェット
   ============================================ */
.ag-profile-widget {
  background: #fff; border: 1px solid #EBEBF0;
  border-radius: 16px; overflow: visible !important;
  box-shadow: 0 4px 16px rgba(20,20,56,0.06); margin-bottom: 20px;
}
.widget:has(.ag-profile-widget),
#sidebar .widget:has(.ag-profile-widget),
.sidebar .widget:has(.ag-profile-widget) {
  overflow: visible !important;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
  margin-bottom: 20px !important;
}
.ag-profile-header {
  background: linear-gradient(135deg, #141438 0%, #381F59 100%);
  height: 80px; position: relative; overflow: visible;
  border-radius: 16px 16px 0 0;
}
.ag-profile-stars {
  position: absolute; top: 0; left: 0; right: 0; height: 80px;
  overflow: hidden; border-radius: 16px 16px 0 0;
  background-image:
    radial-gradient(2px 2px at 20px 15px, rgba(255,255,255,0.3), transparent),
    radial-gradient(2px 2px at 80px 30px, rgba(255,255,255,0.2), transparent),
    radial-gradient(3px 3px at 150px 10px, rgba(255,255,255,0.25), transparent),
    radial-gradient(2px 2px at 250px 25px, rgba(255,255,255,0.2), transparent);
  background-repeat: no-repeat;
}
.ag-profile-body { padding: 0 24px 24px; text-align: center; }
.ag-profile-avatar-wrap { margin-top: -40px; margin-bottom: 12px; position: relative; z-index: 2; }
.ag-profile-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: #F2EDFA; border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(20,20,56,0.1); margin: 0 auto;
}
.ag-profile-name { font-size: 16px; font-weight: 700; color: #141438; margin-bottom: 4px; }
.ag-profile-tagline { font-size: 11px; color: #6B40A1; letter-spacing: 1px; margin-bottom: 16px; }
.ag-profile-line { width: 60px; height: 1px; background: #D9C78C; margin: 0 auto 16px; opacity: 0.5; }
.ag-profile-desc { font-size: 12px; color: #666678; line-height: 1.8; margin-bottom: 16px; }
.ag-profile-sns { font-size: 11px; }
.ag-profile-sns a { color: #6B40A1; font-weight: 500; text-decoration: none; }
.ag-profile-sns a:hover { color: #9568C8; }
.ag-sns-sep { color: #EBEBF0; margin: 0 8px; }

/* カスタムカテゴリウィジェット */
.ag-cat-widget {
  background: #fff; border: 1px solid #EBEBF0;
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 4px 16px rgba(20,20,56,0.06); margin-bottom: 20px;
}
.ag-cat-header { padding: 16px 20px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid #F5F5F8; }
.ag-cat-dot-gold { width: 8px; height: 8px; border-radius: 50%; background: #D9C78C; }
.ag-cat-title { font-size: 15px; font-weight: 700; color: #141438; }
.ag-cat-list { list-style: none; margin: 0; padding: 0; }
.ag-cat-item { border-bottom: 1px solid #F5F5F8; }
.ag-cat-item:last-child { border-bottom: none; }
.ag-cat-item a { display: flex; align-items: center; gap: 10px; padding: 12px 20px; color: #333340; text-decoration: none; font-size: 13px; transition: background 0.2s; }
.ag-cat-item a:hover { background: #F2EDFA; color: #6B40A1; }
.ag-cat-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.ag-cat-name { flex: 1; }
.ag-cat-count { font-size: 11px; color: #9999AB; }

/* Cocoon author-box非表示 */
.author-box { display: none; }

/* ============================================
   v2改善: モバイルフッター・メニュー
   ============================================ */
.mobile-footer-menu-buttons, .scrollable-mobile-buttons, .mblt-footer-mobile-buttons { background: #141438 !important; border-top: 1px solid rgba(191,199,217,0.1) !important; }
.mobile-footer-menu-buttons .menu-button, .mobile-button-fmb { color: #BFC7D9 !important; }

@media screen and (max-width: 834px) {
  #header-container, .header-container, .header-container-in, #header, .header { background: #141438 !important; }
  .mobile-menu-buttons { background: #141438 !important; }
  .mobile-menu-buttons .menu-button { color: #BFC7D9 !important; border-color: rgba(191,199,217,0.2) !important; }
  .navi-menu-content, .mobile-menu-content, #slide-in-container, .slide-in-container { background: #141438 !important; }
  .slide-in-container a, .navi-menu-content a { color: #BFC7D9 !important; border-bottom: 1px solid rgba(255,255,255,0.04) !important; padding: 14px 32px !important; }
  .entry-card-wrap { border-radius: 12px; margin-bottom: 16px; }
  .article h2 { font-size: 19px; padding: 10px 0 10px 12px; }
  .ss-bottom { padding: 16px !important; flex-direction: column; gap: 12px; }
  .ss-bottom .sns-share-buttons a.share-button { width: 32px !important; height: 32px !important; }
  .footer { background: linear-gradient(90deg, #141438 0%, #1E1946 100%) !important; }
}
