/*
Theme Name: ぶっトピバコ (But Topibako)
Theme URI: https://but.topibako.com/
Author: ぶっトピ編集部
Description: 華やかで楽しい週刊誌・ポップバラエティ風のトピックサイト向けWordPressオリジナルテーマ（速報ティッカー・爆伸びランキング・ネオン夜モード切替・SNS公式埋め込み対応）。
Version: 1.2.6
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: but-topibako
*/

:root {
  --bg-page: #FFF9EB;
  --bg-card: #FFFFFF;
  --bg-soft: #FFF4D6;
  --ink: #14142B;
  --ink-muted: #52526B;
  --pink: #FF1F6A;
  --yellow: #FFD600;
  --cyan: #00D2FF;
  --purple: #7C3AED;
  --magenta: #EC4899;
  --border-color: #14142B;
  --shadow-color: #14142B;
}

body.theme-neon {
  --bg-page: #120E24;
  --bg-card: #1E1838;
  --bg-soft: #29214A;
  --ink: #FFFDF7;
  --ink-muted: #C9C3E6;
  --border-color: #FFD600;
  --shadow-color: #FF1F6A;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN', sans-serif;
  background-color: var(--bg-page);
  color: var(--ink);
  background-image: radial-gradient(rgba(255, 31, 106, 0.10) 1.5px, transparent 1.5px);
  background-size: 20px 20px;
  line-height: 1.7;
  transition: background-color 0.25s ease, color 0.25s ease;
  overflow-x: hidden;
}

body.theme-neon {
  background-image: radial-gradient(rgba(255, 214, 0, 0.14) 1.5px, transparent 1.5px);
}

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

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

.font-pop {
  font-family: 'Dela Gothic One', 'Noto Sans JP', sans-serif;
  letter-spacing: 0.02em;
}

.bt-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Breaking Ticker */
.bt-ticker-bar {
  background: #14142B;
  color: #FFFFFF;
  border-bottom: 4px solid var(--yellow);
  overflow: hidden;
}

.bt-ticker-inner {
  display: flex;
  align-items: center;
}

.bt-ticker-label {
  flex-shrink: 0;
  background: var(--pink);
  color: #FFFFFF;
  font-weight: 900;
  font-size: 12px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-right: 2px solid var(--yellow);
  z-index: 2;
}

.bt-ticker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  display: inline-block;
  animation: btPulse 1.4s infinite;
}

@keyframes btPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

.bt-ticker-viewport {
  flex: 1;
  overflow: hidden;
  padding: 8px 0;
}

.bt-ticker-track {
  display: flex;
  width: max-content;
  gap: 32px;
  animation: btTickerMove 32s linear infinite;
}

.bt-ticker-track:hover {
  animation-play-state: paused;
}

@keyframes btTickerMove {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.bt-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.bt-ticker-item:hover {
  color: var(--yellow);
}

.bt-ticker-cat {
  background: var(--yellow);
  color: #14142B;
  font-size: 10px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 4px;
}

/* Header */
.bt-header {
  background: #FFFFFF;
  color: #14142B;
  border-bottom: 4px solid #14142B;
}

body.theme-neon .bt-header {
  background: #1A1432;
  color: #FFFDF7;
  border-bottom-color: var(--yellow);
}

.bt-rainbow-bar {
  height: 8px;
  background: linear-gradient(90deg, #FF1F6A 0%, #FFD600 50%, #00D2FF 100%);
}

.bt-header-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
}

.bt-brand-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.bt-logo-box {
  width: 220px;
  border-radius: 14px;
  overflow: hidden;
  border: 2.5px solid #14142B;
  box-shadow: 4px 4px 0 var(--yellow);
  background: #FFFFFF;
  flex-shrink: 0;
}

.bt-logo-box img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.bt-brand-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bt-url-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  background: var(--yellow);
  color: #14142B;
  font-size: 11px;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: 999px;
  border: 2px solid #14142B;
}

.bt-tagline {
  margin: 0;
  font-size: 14px;
  font-weight: 900;
}

.bt-subtagline {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-muted);
}

.bt-header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.bt-search-form {
  display: flex;
  align-items: center;
  background: #FFF9EB;
  border: 2.5px solid #14142B;
  border-radius: 12px;
  overflow: hidden;
}

.bt-search-input {
  border: none;
  background: transparent;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  color: #14142B;
  width: 190px;
  outline: none;
}

.bt-search-submit {
  border: none;
  background: var(--pink);
  color: #FFFFFF;
  font-weight: 900;
  font-size: 13px;
  padding: 8px 12px;
  cursor: pointer;
}

.bt-pop-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: inherit;
  font-weight: 900;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 12px;
  border: 2.5px solid #14142B;
  box-shadow: 3px 3px 0 #14142B;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.bt-pop-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 #14142B;
}

.bt-btn-yellow {
  background: var(--yellow);
  color: #14142B;
}

.bt-btn-pink {
  background: var(--pink);
  color: #FFFFFF;
}

/* Category Navigation */
.bt-cat-nav {
  border-top: 2px dashed #CBD5E1;
  padding: 12px 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
}

.bt-cat-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  border: 2px solid #14142B;
  background: #FFF9EB;
  color: #14142B;
  transition: transform 0.12s ease, background-color 0.12s ease;
}

.bt-cat-pill:hover,
.bt-cat-pill.is-active {
  background: var(--pink);
  color: #FFFFFF;
  box-shadow: 3px 3px 0 #14142B;
  transform: translateY(-1px);
}

/* Cards */
.bt-pop-card {
  background: var(--bg-card);
  border: 3px solid var(--border-color);
  box-shadow: 5px 5px 0 var(--shadow-color);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.bt-pop-card-hover:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--pink);
}

/* Badges */
.bt-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 900;
  padding: 4px 11px;
  border-radius: 999px;
  border: 2px solid #14142B;
  box-shadow: 2px 2px 0 #14142B;
}

.bt-cat-pink { background: var(--pink); color: #FFFFFF; }
.bt-cat-cyan { background: var(--cyan); color: #14142B; }
.bt-cat-yellow { background: var(--yellow); color: #14142B; }
.bt-cat-magenta { background: var(--magenta); color: #FFFFFF; }
.bt-cat-purple { background: var(--purple); color: #FFFFFF; }
.bt-cat-dark { background: #14142B; color: var(--yellow); }

/* Main Layout */
.bt-main {
  padding: 28px 0 48px;
}

.bt-hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-bottom: 34px;
}

.bt-hero-thumb-wrap {
  position: relative;
  background: #14142B;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.bt-hero-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bt-thumb-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bt-views-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(20, 20, 43, 0.9);
  color: var(--yellow);
  font-size: 12px;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1.5px solid var(--yellow);
}

.bt-hero-body {
  padding: 20px 24px 24px;
}

.bt-meta-line {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-muted);
  margin-bottom: 8px;
}

.bt-hero-title {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.4;
  font-weight: 900;
}

.bt-hero-excerpt {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--ink-muted);
}

.bt-hero-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 2px dashed #CBD5E1;
}

/* Ranking Panel */
.bt-panel-head-pink {
  background: repeating-linear-gradient(-45deg, #FF1F6A, #FF1F6A 14px, #FF4785 14px, #FF4785 28px);
  color: #FFFFFF;
  padding: 12px 16px;
  border-bottom: 3px solid #14142B;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bt-panel-head-yellow {
  background: repeating-linear-gradient(-45deg, #FFD600, #FFD600 10px, #FFE44D 10px, #FFE44D 20px);
  color: #14142B;
  padding: 10px 16px;
  border-bottom: 2.5px solid #14142B;
}

.bt-panel-head-pink h2,
.bt-panel-head-yellow h3 {
  margin: 0;
  font-size: 17px;
}

.bt-ranking-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bt-ranking-item {
  border-bottom: 2px dashed #E2E8F0;
}

.bt-ranking-item:last-child {
  border-bottom: none;
}

.bt-ranking-link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  transition: background-color 0.15s ease;
}

.bt-ranking-link:hover {
  background: rgba(255, 214, 0, 0.18);
}

.bt-rank-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 2px solid #14142B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.bt-rank-1 { background: var(--pink); color: #FFFFFF; }
.bt-rank-2 { background: var(--yellow); color: #14142B; }
.bt-rank-3 { background: var(--cyan); color: #14142B; }
.bt-rank-4 { background: var(--purple); color: #FFFFFF; }
.bt-rank-5 { background: #14142B; color: #FFFFFF; }

.bt-rank-cat {
  font-size: 11px;
  font-weight: 900;
  color: var(--pink);
  margin-bottom: 2px;
}

.bt-rank-title {
  margin: 0;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.45;
}

/* Content + Sidebar Grid */
.bt-content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  align-items: start;
}

.bt-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.bt-section-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bt-section-bar {
  width: 12px;
  height: 28px;
  background: var(--pink);
  border: 2px solid #14142B;
  border-radius: 4px;
}

.bt-section-title {
  margin: 0;
  font-size: 20px;
}

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

.bt-post-card {
  display: flex;
  flex-direction: column;
}

.bt-card-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #14142B;
  overflow: hidden;
}

.bt-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.bt-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.bt-card-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.45;
}

.bt-card-title a:hover {
  color: var(--pink);
}

.bt-card-excerpt {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--ink-muted);
}

.bt-card-footer {
  padding-top: 10px;
  border-top: 2px dashed #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 900;
}

.bt-read-more {
  color: var(--pink);
}

/* Sidebar */
.bt-sidebar {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.bt-sidebar-body {
  padding: 16px;
}

.bt-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bt-tag-pill {
  font-size: 12px;
  font-weight: 900;
  padding: 5px 12px;
  border-radius: 999px;
  border: 2px solid #14142B;
  background: #FFF9EB;
  color: #14142B;
}

.bt-tag-pill:hover {
  background: var(--yellow);
}

/* Single Post */
.bt-single-article {
  padding: 26px 28px;
}

.bt-breadcrumb {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-muted);
  margin-bottom: 14px;
}

.bt-single-title {
  margin: 12px 0 16px;
  font-size: 26px;
  line-height: 1.4;
  font-weight: 900;
}

.bt-single-hero-img {
  border-radius: 14px;
  overflow: hidden;
  border: 2.5px solid #14142B;
  margin-bottom: 24px;
}

.bt-single-hero-img img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
}

.entry-content {
  font-size: 16px;
  line-height: 1.9;
}

.entry-content p {
  margin: 0 0 18px;
}

.entry-content h2 {
  margin: 30px 0 16px;
  padding: 10px 14px;
  background: linear-gradient(90deg, #FFD600 0%, #FFF199 100%);
  color: #14142B;
  border-left: 7px solid #FF1F6A;
  border-top: 2px solid #14142B;
  border-right: 2px solid #14142B;
  border-bottom: 2px solid #14142B;
  border-radius: 8px;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.45;
}

.entry-content h3 {
  margin: 24px 0 12px;
  padding-left: 12px;
  border-left: 5px solid var(--cyan);
  font-size: 17px;
  font-weight: 900;
}

.entry-content blockquote {
  margin: 20px 0;
  padding: 16px 18px;
  background: var(--bg-soft);
  border: 2px solid #14142B;
  border-left: 6px solid var(--pink);
  border-radius: 12px;
  font-weight: 700;
}

.entry-content a {
  color: var(--pink);
  text-decoration: underline;
  font-weight: 700;
}

/* Official SNS Embed Containers */
.entry-content .wp-block-embed,
.entry-content .twitter-tweet,
.entry-content .instagram-media {
  margin: 22px auto !important;
  max-width: 550px !important;
}

.bt-post-tags {
  margin-top: 26px;
  padding-top: 16px;
  border-top: 2px dashed #CBD5E1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Pagination */
.bt-pagination {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.bt-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  font-weight: 900;
  font-size: 13px;
  background: var(--bg-card);
  border: 2px solid #14142B;
  border-radius: 10px;
  box-shadow: 3px 3px 0 #14142B;
}

.bt-pagination .page-numbers.current,
.bt-pagination .page-numbers:hover {
  background: var(--pink);
  color: #FFFFFF;
}

/* Footer */
.bt-footer {
  background: #14142B;
  color: #FFFFFF;
  border-top: 4px solid var(--yellow);
  padding: 32px 0;
}

.bt-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.bt-footer-brand {
  font-size: 20px;
  color: var(--yellow);
}

.bt-footer-copy {
  margin: 4px 0 0;
  font-size: 12px;
  color: #CBD5E1;
}

/* Responsive */
@media (max-width: 960px) {
  .bt-hero-grid,
  .bt-content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .bt-card-grid {
    grid-template-columns: 1fr;
  }
  .bt-logo-box {
    width: 175px;
  }
  .bt-hero-title {
    font-size: 20px;
  }
  .bt-single-article {
    padding: 18px 16px;
  }
  .bt-single-title {
    font-size: 21px;
  }
}


/* v1.0.1 Mobile Overflow Fix (Grid blowout, long URLs, embeds, tables) */
html, body {
  max-width: 100%;
  overflow-x: clip;
}

.bt-container {
  width: 100%;
}

.bt-hero-grid {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}

.bt-content-grid {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}

.bt-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bt-hero-grid > *,
.bt-content-grid > *,
.bt-card-grid > *,
.bt-pop-card {
  min-width: 0;
  max-width: 100%;
}

.bt-single-title,
.bt-hero-title,
.bt-card-title,
.bt-rank-title,
.entry-content,
.entry-content p,
.entry-content li,
.entry-content a,
.entry-content h2,
.entry-content h3,
.entry-content blockquote {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.entry-content iframe,
.entry-content video,
.entry-content figure,
.entry-content img,
.entry-content .wp-block-embed,
.entry-content .wp-block-embed__wrapper,
.entry-content .twitter-tweet,
.entry-content .instagram-media {
  max-width: 100% !important;
  box-sizing: border-box;
}

.entry-content pre,
.entry-content table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

@media (max-width: 960px) {
  .bt-hero-grid,
  .bt-content-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .bt-container {
    padding: 0 12px;
  }
  .bt-card-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .bt-pop-card {
    box-shadow: 3px 3px 0 var(--shadow-color);
  }
  .bt-header-actions {
    width: 100%;
  }
  .bt-search-form {
    flex: 1 1 100%;
    width: 100%;
  }
  .bt-search-input {
    flex: 1;
    min-width: 0;
    width: auto;
  }
  .bt-single-article {
    padding: 16px 14px;
  }
  .entry-content {
    font-size: 15px;
  }
  .entry-content h2 {
    font-size: 17px;
    padding: 8px 12px;
  }
}


/* v1.0.2 Prototype-Style Article Cards (Reactions, Editorial Note, Sources, Embed Box, Reaction Buttons) */
.bt-reactions-box {
  margin: 24px 0;
  padding: 18px 16px;
  background: #FFF9EB;
  color: #14142B;
  border: 3px solid #14142B;
  border-radius: 16px;
  box-shadow: 4px 4px 0 #FF1F6A;
}

body.theme-neon .bt-reactions-box {
  background: #251E45;
  color: #FFFDF7;
  border-color: #FFD600;
}

.bt-reactions-title {
  font-family: 'Dela Gothic One', 'Noto Sans JP', sans-serif;
  font-size: 16px;
  color: #FF1F6A;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

body.theme-neon .bt-reactions-title {
  color: #FFD600;
}

.bt-reactions-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bt-reaction-card {
  background: #FFFFFF;
  color: #14142B;
  border: 2px solid #14142B;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  box-shadow: 2px 2px 0 #14142B;
  overflow-wrap: anywhere;
  word-break: break-word;
}

body.theme-neon .bt-reaction-card {
  background: #1A1432;
  color: #FFFDF7;
  border-color: #FFD600;
  box-shadow: 2px 2px 0 #FF1F6A;
}

.bt-editorial-box {
  margin: 24px 0;
  padding: 18px 18px;
  background: linear-gradient(135deg, rgba(255, 214, 0, 0.28) 0%, rgba(255, 31, 106, 0.14) 100%);
  border: 3px solid #14142B;
  border-radius: 16px;
  box-shadow: 4px 4px 0 #14142B;
}

body.theme-neon .bt-editorial-box {
  border-color: #FFD600;
  box-shadow: 4px 4px 0 #FF1F6A;
}

.bt-editorial-title {
  font-family: 'Dela Gothic One', 'Noto Sans JP', sans-serif;
  font-size: 15px;
  color: #FF1F6A;
  margin: 0 0 8px;
}

body.theme-neon .bt-editorial-title {
  color: #FFD600;
}

.bt-editorial-body {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.75;
}

.bt-sources-box {
  margin: 24px 0;
  padding: 14px 16px;
  border: 2px dashed #94A3B8;
  border-radius: 14px;
  background: var(--bg-soft);
}

.bt-sources-title {
  font-size: 12px;
  font-weight: 900;
  margin: 0 0 10px;
  opacity: 0.85;
}

.bt-sources-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bt-source-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #FFFFFF;
  color: #14142B !important;
  text-decoration: none !important;
  border: 2px solid #14142B;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 2px 2px 0 #14142B;
  max-width: 100%;
  overflow-wrap: anywhere;
  transition: background-color 0.15s ease;
}

.bt-source-pill:hover {
  background: #FFD600;
}

.bt-embed-card {
  margin: 22px 0;
  padding: 16px;
  background: #FFFFFF;
  color: #14142B;
  border: 2.5px solid #14142B;
  border-radius: 16px;
  box-shadow: 4px 4px 0 #00D2FF;
}

.bt-embed-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1.5px solid #E2E8F0;
  font-size: 12px;
  font-weight: 900;
}

.bt-embed-card-badge {
  background: #FFF9EB;
  color: #FF1F6A;
  border: 1.5px solid #FF1F6A;
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 11px;
  font-weight: 900;
}

.bt-embed-card-note {
  margin: 0;
  padding: 12px;
  border-radius: 12px;
  background: linear-gradient(90deg, #FFF9EB 0%, #FFE4F0 100%);
  border: 1.5px dashed #FF1F6A;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

/* Interactive Reader Reaction Bar */
.bt-rx-bar {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 2px dashed #CBD5E1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.bt-rx-label {
  font-size: 12px;
  font-weight: 900;
  color: var(--ink-muted);
  width: 100%;
  margin-bottom: 2px;
}

.bt-rx-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 900;
  padding: 7px 14px;
  border-radius: 999px;
  border: 2.5px solid #14142B;
  box-shadow: 3px 3px 0 #14142B;
  cursor: pointer;
  transition: transform 0.12s ease;
}

.bt-rx-btn:active {
  transform: scale(0.95);
}

.bt-rx-shock { background: #FFD600; color: #14142B; }
.bt-rx-laugh { background: #00D2FF; color: #14142B; }
.bt-rx-agree { background: #FF1F6A; color: #FFFFFF; }


/* v1.0.3 Upgraded Festive Footer */
.bt-footer {
  background: #14142B;
  color: #FFFFFF;
  border-top: none;
  padding: 0;
  margin-top: 48px;
}

.bt-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 16px 26px;
}

.bt-footer-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bt-footer-brand-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.bt-footer-brand {
  font-size: 22px;
  color: #FFD600;
  text-shadow: 2px 2px 0 #FF1F6A;
}

.bt-footer-host {
  font-size: 11px;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.12);
  color: #FFD600;
  border: 1.5px solid rgba(255, 214, 0, 0.5);
  border-radius: 999px;
  padding: 2px 10px;
}

.bt-footer-desc {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: #CBD5E1;
}

.bt-footer-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.bt-footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.bt-footer-menu li {
  margin: 0;
  padding: 0;
}

.bt-footer-menu a {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 900;
  color: #FFFDF7;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 6px 14px;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.bt-footer-menu a:hover {
  background: #FFD600;
  color: #14142B;
  border-color: #FFD600;
  transform: translateY(-1px);
}

.bt-back-top {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 900;
  background: #FF1F6A;
  color: #FFFFFF;
  border: 2px solid #FFD600;
  border-radius: 999px;
  padding: 6px 14px;
  transition: transform 0.12s ease;
}

.bt-back-top:hover {
  transform: translateY(-2px);
}

.bt-footer-bottom {
  border-top: 1px dashed rgba(255, 255, 255, 0.2);
  padding: 14px 0;
  text-align: center;
}

.bt-footer-copy {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  color: #94A3B8;
}

@media (max-width: 640px) {
  .bt-footer-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 14px 22px;
  }
  .bt-footer-right {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }
  .bt-footer-menu {
    width: 100%;
  }
}

/* v1.0.4 Reaction Button Voted State & Feedback */
.bt-rx-btn.is-voted {
  outline: 3px solid #FF1F6A;
  outline-offset: 2px;
  opacity: 0.92;
}

.bt-rx-feedback {
  width: 100%;
  font-size: 12px;
  font-weight: 900;
  color: var(--pink);
  min-height: 18px;
}


/* v1.0.6 New 7-Category Badge Colors, Heading Legibility, and Contact Form Pop Styling */
.bt-cat-orange { background: #FF6B00; color: #FFFFFF; }
.bt-cat-green  { background: #00C896; color: #14142B; }

.font-pop {
  letter-spacing: 0.04em;
  line-height: 1.35;
}

/* Contact Form (Contact Form 7 & standard WP forms) Pop-Tabloid Styling */
.entry-content form p {
  margin-bottom: 16px;
}

.entry-content form label {
  display: block;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 6px;
}

.entry-content input[type="text"],
.entry-content input[type="email"],
.entry-content input[type="url"],
.entry-content input[type="tel"],
.entry-content select,
.entry-content textarea {
  width: 100%;
  max-width: 100%;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: #14142B;
  background: #FFF9EB;
  border: 2.5px solid #14142B;
  border-radius: 12px;
  box-shadow: 3px 3px 0 #14142B;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.entry-content input[type="text"]:focus,
.entry-content input[type="email"]:focus,
.entry-content input[type="url"]:focus,
.entry-content input[type="tel"]:focus,
.entry-content select:focus,
.entry-content textarea:focus {
  border-color: #FF1F6A;
  box-shadow: 4px 4px 0 #FF1F6A;
  background: #FFFFFF;
}

.entry-content input[type="submit"],
.entry-content button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 15px;
  font-weight: 900;
  color: #FFFFFF;
  background: #FF1F6A;
  border: 2.5px solid #14142B;
  border-radius: 12px;
  padding: 11px 28px;
  box-shadow: 4px 4px 0 #14142B;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}

.entry-content input[type="submit"]:hover,
.entry-content button[type="submit"]:hover {
  background: #FFD600;
  color: #14142B;
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 #14142B;
}

.entry-content .wpcf7-response-output {
  margin: 18px 0 0 !important;
  padding: 12px 16px !important;
  border-radius: 12px !important;
  border: 2.5px solid #14142B !important;
  background: #FFF9EB !important;
  color: #14142B !important;
  font-weight: 900;
  font-size: 13px;
}


/* v1.1.2 Cyan Neon Night Mode Toggle Button */
#btThemeToggle {
  background: #29B6F6;
  color: #14142B;
  border-color: #14142B;
}

#btThemeToggle:hover {
  background: #00D2FF;
}

body.theme-neon #btThemeToggle {
  background: #FFD600;
  color: #14142B;
  border-color: #14142B;
}


/* v1.1.4 Exact 16:9 Thumbnails with Smooth Hover Zoom */
.bt-card-thumb {
  aspect-ratio: 16 / 9;
}

.bt-card-thumb img,
.bt-hero-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.28s ease;
}

.bt-post-card:hover .bt-card-thumb img,
.bt-hero-grid .bt-pop-card:hover .bt-hero-thumb-wrap img {
  transform: scale(1.045);
}

.bt-single-hero-img {
  aspect-ratio: 16 / 9;
}

.bt-single-hero-img img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
}


/* v1.1.5 Playful Header Logo Hover Animation */
.bt-logo-box {
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.bt-logo-box img {
  transition: transform 0.28s ease;
}

.bt-logo-box:hover {
  transform: translate(-2px, -2px) rotate(-1deg);
  box-shadow: 6px 6px 0 #FF1F6A;
}

.bt-logo-box:hover img {
  transform: scale(1.05);
}


/* v1.1.7 Pop-Tabloid SNS Share Buttons (X, Threads, LINE, Copy URL) */
.bt-share-bar {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 2px dashed #CBD5E1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.bt-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 900;
  padding: 7px 14px;
  border-radius: 999px;
  border: 2.5px solid #14142B;
  box-shadow: 3px 3px 0 #14142B;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.bt-share-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 #14142B;
}

.bt-share-x { background: #14142B; color: #FFFFFF !important; }
.bt-share-threads { background: #2D1B69; color: #FFFFFF !important; }
.bt-share-line { background: #06C755; color: #FFFFFF !important; }
.bt-share-copy { background: #FFF9EB; color: #14142B !important; }

/* v1.1.8 Hatena Bookmark & Facebook Share Buttons */
.bt-share-hatebu { background: #00A4DE; color: #FFFFFF !important; }
.bt-share-fb     { background: #1877F2; color: #FFFFFF !important; }

/* v1.1.9 Compact Top Share Bar under Article Title */
.bt-share-bar-top {
  margin: 0 0 18px;
  padding-top: 0;
  border-top: none;
  gap: 6px;
}

.bt-share-bar-top .bt-share-btn {
  font-size: 11px;
  padding: 5px 11px;
  border-width: 2px;
  box-shadow: 2px 2px 0 #14142B;
}

/* v1.2.0 Ranking 7d / 30d Switcher Tabs */
.bt-rank-tabs {
  display: inline-flex;
  gap: 4px;
  background: rgba(20, 20, 43, 0.25);
  padding: 3px;
  border-radius: 999px;
  border: 1.5px solid #14142B;
}

.bt-rank-tab {
  font-family: inherit;
  font-size: 11px;
  font-weight: 900;
  padding: 3px 9px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: #FFFFFF;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.bt-rank-tab.is-active {
  background: #FFD600;
  color: #14142B;
}

.bt-ranking-list.is-hidden {
  display: none;
}


/* v1.2.3 Prev/Next ぶっトピ & 関連ぶっトピ */
.bt-post-nav {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.bt-post-nav-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
}

.bt-post-nav-label {
  width: fit-content;
  font-size: 11px;
  padding: 3px 10px;
}

.bt-post-nav-inner {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bt-post-nav-thumb {
  flex-shrink: 0;
  width: 84px;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid #14142B;
  background: #14142B;
}

.bt-post-nav-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bt-post-nav-title {
  margin: 0;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.bt-related-section {
  margin-top: 30px;
}

@media (max-width: 640px) {
  .bt-post-nav {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* v1.2.5 Additional Badge Colors for 暮らしの裏ワザ＆発見 / 珍スポット＆おでかけ */
.bt-cat-teal   { background: #14B8A6; color: #FFFFFF; }
.bt-cat-indigo { background: #4F46E5; color: #FFFFFF; }

/* v1.2.6 Category-Colored Header Nav Pills on Hover/Active & TOP 7 Ranking Styling */
.bt-cat-pill {
  transition: transform 0.12s ease, background-color 0.15s ease, color 0.15s ease, box-shadow 0.12s ease;
}

.bt-cat-pill.bt-pill-pink:hover,
.bt-cat-pill.bt-pill-pink.is-active {
  background: var(--pink);
  color: #FFFFFF;
}

.bt-cat-pill.bt-pill-magenta:hover,
.bt-cat-pill.bt-pill-magenta.is-active {
  background: var(--magenta);
  color: #FFFFFF;
}

.bt-cat-pill.bt-pill-yellow:hover,
.bt-cat-pill.bt-pill-yellow.is-active {
  background: var(--yellow);
  color: #14142B;
}

.bt-cat-pill.bt-pill-purple:hover,
.bt-cat-pill.bt-pill-purple.is-active {
  background: var(--purple);
  color: #FFFFFF;
}

.bt-cat-pill.bt-pill-cyan:hover,
.bt-cat-pill.bt-pill-cyan.is-active {
  background: var(--cyan);
  color: #14142B;
}

.bt-cat-pill.bt-pill-orange:hover,
.bt-cat-pill.bt-pill-orange.is-active {
  background: #FF6B00;
  color: #FFFFFF;
}

.bt-cat-pill.bt-pill-green:hover,
.bt-cat-pill.bt-pill-green.is-active {
  background: #00C896;
  color: #14142B;
}

.bt-cat-pill.bt-pill-teal:hover,
.bt-cat-pill.bt-pill-teal.is-active {
  background: #14B8A6;
  color: #FFFFFF;
}

.bt-cat-pill.bt-pill-indigo:hover,
.bt-cat-pill.bt-pill-indigo.is-active {
  background: #4F46E5;
  color: #FFFFFF;
}

.bt-cat-pill.bt-pill-dark:hover,
.bt-cat-pill.bt-pill-dark.is-active {
  background: #14142B;
  color: var(--yellow);
}

/* TOP 7 Ranking Badges & Compact Row Spacing */
.bt-ranking-link {
  padding: 10px 14px;
  gap: 10px;
}

.bt-rank-6 { background: #334155; color: #FFFFFF; }
.bt-rank-7 { background: #475569; color: #FFFFFF; }
