/*
Theme Name: Blueprint Tokyo
Theme URI: https://blue-x.tokyo
Author: BLUE-X.TOKYO
Author URI: https://blue-x.tokyo
Description: 回路基板・設計図モチーフの無機質ダークテーマ。ブルーの幾何学パターンと精密なグリッドで「BLUE × TOKYO」を表現するMusic Informationメディア専用WordPressテーマ。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: blueprint-tokyo
Tags: dark, music, magazine, custom-menu, featured-images, post-thumbnails, responsive-layout
*/

/* =====================================================
   CSS CUSTOM PROPERTIES
   ===================================================== */
:root {
  --ink:       #03070f;
  --ink2:      #04090f;
  --ink3:      #060e1c;
  --surface:   #030812;
  --line:      rgba(0,45,110,.22);
  --line2:     rgba(0,60,140,.3);

  --blue:      #0066ff;
  --cyan:      #22aaff;
  --sky:       #55aaee;
  --pale:      #aad4f0;
  --red-x:     #ff1a3c;
  --gold:      #cc9922;
  --silver:    #557799;

  --t1: #ffffff;  /* 本文: 白 */
  --t2: #b0d4ee;  /* サブ: 明るいブルーグレー */
  --t3: #6a9ab8;  /* 薄め: 見やすいグレーブルー */

  --mono:  'Share Tech Mono', monospace;
  --jp:    'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
  --serif: 'Noto Serif JP', serif;

  --radius: 2px;
}

/* =====================================================
   RESET & BASE
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--t1);
  font-family: var(--jp);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.8;
  overflow-x: hidden;
}

a { color: var(--cyan); text-decoration: none; transition: color .2s; }
a:hover { color: #fff; }
img { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.4; color: var(--t1); }

/* =====================================================
   LAYOUT
   ===================================================== */
.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.site-content {
  flex: 1;
  width: 100%;
  align-self: stretch;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
}

/* =====================================================
   SITE HEADER
   ===================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(3,7,15,.88);
  backdrop-filter: blur(14px) saturate(1.5);
  border-bottom: 1px solid var(--line);
}

.site-header::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(0,140,255,.5) 25%,
    rgba(80,180,255,.85) 50%,
    rgba(0,140,255,.5) 75%,
    transparent
  );
}

.header-inner {
  max-width: 1400px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 0 28px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: flex-start; /* 左から順に並べる */
  gap: 20px;
  box-sizing: border-box;
  overflow: visible;
}

/* ── ロゴ ── */
.site-branding { display: flex; flex-direction: column; gap: 2px; flex-shrink: 0; }
.site-branding a { text-decoration: none; }

.logo-wordmark {
  display: flex;
  align-items: baseline;
  line-height: 1;
}

.logo-blue {
  font-family: var(--jp);
  font-weight: 900;
  font-size: 22px;
  background: linear-gradient(135deg, #fff 0%, #7ac4ff 50%, #0077ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-dash {
  font-weight: 900;
  font-size: 22px;
  color: #2a4a6a;
  -webkit-text-fill-color: #2a4a6a;
}

.logo-x {
  font-weight: 900;
  font-size: 22px;
  color: var(--red-x);
  -webkit-text-fill-color: var(--red-x);
  text-shadow: 0 0 10px rgba(255,26,60,.3);
}

.logo-dot {
  font-family: var(--mono);
  font-size: 13px;
  color: #2a4a6a;
  -webkit-text-fill-color: #2a4a6a;
  margin-left: 2px;
}

.logo-tokyo {
  font-family: var(--jp);
  font-weight: 900;
  font-size: 13px;
  background: linear-gradient(90deg, #33aaff, #77ccff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.site-description {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .22em;
  color: #4a7a9a;
  -webkit-text-fill-color: #4a7a9a;
  text-transform: uppercase;
}

/* ── ナビ ── */
.main-navigation {
  display: flex;
  align-items: center;
  overflow: visible;
}

.main-navigation ul {
  display: flex;
  gap: 1px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.main-navigation ul::-webkit-scrollbar { display: none; }

.main-navigation a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--t2);
  padding: 5px 10px;
  border-radius: var(--radius);
  transition: all .2s;
  display: block;
  white-space: nowrap;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
  color: var(--pale);
  background: rgba(0,100,220,.1);
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line2);
  color: var(--t1);
  font-family: var(--mono);
  font-size: 10px;
  padding: 6px 12px;
  cursor: pointer;
  letter-spacing: .1em;
  border-radius: var(--radius);
}

/* ── 検索 ── */






/* =====================================================
   NEWS TICKER
   ===================================================== */
.news-ticker {
  background: rgba(0,30,80,.9);
  border-bottom: 1px solid var(--line);
  padding: 6px 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
  width: 100%;
  box-sizing: border-box;
}

.ticker-track {
  display: flex;
  animation: ticker-scroll 35s linear infinite;
  white-space: nowrap;
}

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

.ticker-item {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .09em;
  color: rgba(170,220,255,.8);
  padding: 0 40px;
}

.ticker-item::before {
  content: '// ';
  color: rgba(0,120,255,.5);
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =====================================================
   CATEGORY FILTER BAR
   ===================================================== */
.category-bar {
  background: rgba(3,9,20,.97);
  border-bottom: 1px solid rgba(0,60,140,.14);
  overflow-x: auto;
  scrollbar-width: none;
  width: 100%;
  box-sizing: border-box;
}
.category-bar::-webkit-scrollbar { display: none; }

.category-bar__inner {
  max-width: 1400px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
  display: flex;
  box-sizing: border-box;
}

.cat-btn {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .07em;
  color: #a0c8e8;
  padding: 10px 15px;
  border: none;
  border-bottom: 2px solid transparent;
  background: none;
  white-space: nowrap;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  display: block;
}

.cat-btn:hover { color: var(--pale); }

.cat-btn.is-active,
.cat-btn:is([aria-current]) {
  color: var(--cyan);
  border-bottom-color: var(--blue);
  background: rgba(0,70,180,.06);
}

/* =====================================================
   HERO BANNER
   ===================================================== */
.hero-banner {
  position: relative;
  height: 480px;
  overflow: hidden;
  background: var(--ink);
  width: 100%;
  box-sizing: border-box;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-banner__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 70% at 50% 50%, transparent 30%, rgba(3,7,15,.6) 100%);
}

.hero-banner__fade {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--ink) 0%, rgba(3,7,15,.8) 50%, transparent 100%);
}

.hero-banner__content {
  position: absolute;
  bottom: 52px; left: 0; right: 0;
  z-index: 10;
  padding: 0 36px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .22em;
  color: #0099ee;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.hero-eyebrow::before {
  content: '';
  width: 20px; height: 1px;
  background: #0099ee;
}

.hero-eyebrow::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(0,100,200,.3), transparent);
  max-width: 200px;
}

.hero-banner__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 28px;
  line-height: 1.48;
  color: #e8f4ff;
  margin-bottom: 14px;
  max-width: 540px;
  text-shadow: 0 2px 20px rgba(0,0,0,.8);
}

.hero-banner__title a { color: #e8f4ff; }
.hero-banner__title a:hover { color: var(--cyan); }

.hero-banner__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 9px;
  color: #7aadcc;
  letter-spacing: .09em;
}

/* =====================================================
   BADGES
   ===================================================== */
.badge-new {
  background: rgba(0,50,160,.8);
  border: 1px solid rgba(0,120,255,.4);
  color: var(--sky);
  font-family: var(--mono);
  font-size: 8px;
  padding: 2px 8px;
  letter-spacing: .12em;
  animation: badge-blink 2s ease-in-out infinite;
  border-radius: var(--radius);
}

@keyframes badge-blink {
  0%,100% { opacity: 1; border-color: rgba(0,120,255,.4); }
  50%      { opacity: .55; border-color: rgba(0,120,255,.15); }
}

/* =====================================================
   SECTION HEADER
   ===================================================== */
.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.section-bracket { color: #2a4a6a; font-size: 14px; }
.section-bracket--accent { color: var(--blue); }

.section-title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--t2);
  text-transform: uppercase;
}

.section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(0,60,160,.28), transparent);
}

.section-more {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--blue);
  letter-spacing: .1em;
  border: 1px solid rgba(0,60,140,.3);
  padding: 4px 11px;
  cursor: pointer;
  border-radius: var(--radius);
  transition: all .2s;
  text-decoration: none;
}

.section-more:hover {
  border-color: var(--blue);
  color: var(--cyan);
  background: rgba(0,80,180,.08);
}

/* =====================================================
   MAIN LAYOUT
   ===================================================== */
.main-layout {
  display: grid;
  grid-template-columns: 1fr 248px;
  gap: 24px;
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding: 24px 28px 56px;
  box-sizing: border-box;
}

/* =====================================================
   POST GRID
   ===================================================== */
.posts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(0,40,100,.2);
  border: 1px solid rgba(0,40,100,.22);
}

/* =====================================================
   POST CARD
   ===================================================== */
.post-card {
  background: var(--ink2);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background .2s;
  display: flex;
  flex-direction: column;
}

.post-card:hover { background: var(--ink3); }

.post-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: transparent;
  transition: background .2s;
}

.post-card:hover::before {
  background: linear-gradient(180deg, var(--blue), var(--cyan));
}

.post-card__thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  background: var(--surface);
}

.post-card__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.post-card:hover .post-card__thumb img { transform: scale(1.04); }

.post-card__thumb-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

/* Canvas placeholder (JS-drawn) */
.post-card__thumb canvas {
  width: 100%; height: 100%;
  display: block;
}

.post-card__body {
  padding: 14px 16px 17px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card__category {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .16em;
  color: var(--blue);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.post-card__category a { color: var(--blue); }
.post-card__category a:hover { color: var(--cyan); }

.post-card__title {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--t1);
  flex: 1;
  margin-bottom: 10px;
}

.post-card__title a { color: var(--t1); }
.post-card__title a:hover { color: var(--cyan); }

.post-card__meta {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--t3);
  letter-spacing: .06em;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Featured (wide) card */
.post-card--featured {
  grid-column: span 2;
  flex-direction: row;
}

.post-card--featured .post-card__thumb {
  width: 40%;
  aspect-ratio: unset;
}

.post-card--featured .post-card__body {
  padding: 18px 20px;
  justify-content: center;
}

.post-card--featured .post-card__title {
  font-size: 15px;
}

/* =====================================================
   PAGINATION
   ===================================================== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 32px;
}

.pagination a,
.pagination span {
  font-family: var(--mono);
  font-size: 11px;
  width: 34px; height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line2);
  color: var(--t2);
  border-radius: var(--radius);
  transition: all .2s;
}

.pagination a:hover,
.pagination .current {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

/* =====================================================
   SIDEBAR
   ===================================================== */
.sidebar {}

.widget {
  margin-bottom: 22px;
}

.widget-title {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .2em;
  color: var(--t3);
  text-transform: uppercase;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(0,50,120,.2);
  margin-bottom: 11px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.widget-title::before {
  content: '';
  width: 8px; height: 1px;
  background: var(--blue);
}

/* Search widget */
.widget-search {
  display: flex;
  background: var(--ink2);
  border: 1px solid var(--line2);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s;
}

.widget-search:focus-within {
  border-color: var(--cyan);
}

.widget-search input {
  flex: 1;
  background: none;
  border: none;
  color: var(--t1);
  font-family: var(--mono);
  font-size: 11px;
  padding: 8px 11px;
  outline: none;
  letter-spacing: .04em;
}

.widget-search input::placeholder { color: var(--t3); }

.widget-search button {
  background: rgba(0,40,160,.8);
  border: none;
  color: var(--sky);
  font-family: var(--mono);
  font-size: 9px;
  padding: 8px 12px;
  cursor: pointer;
  letter-spacing: .08em;
  transition: background .2s;
}

.widget-search button:hover { background: var(--blue); }

/* Artist grid */
.artist-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}

.artist-pill {
  background: var(--ink2);
  border: 1px solid var(--line);
  padding: 7px 4px;
  text-align: center;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  display: block;
}

.artist-pill:hover {
  border-color: var(--blue);
  background: rgba(0,60,160,.1);
}

.artist-pill__name {
  font-family: var(--mono);
  font-size: 9px;
  color: #2a7aaa;
  display: block;
  letter-spacing: .04em;
}

.artist-pill__name.ive { color: var(--cyan); }
.artist-pill__name.le  { color: #ff6699; }
.artist-pill__name.yuri  { color: #AF3351; }

.artist-pill__count {
  font-size: 8px;
  color: var(--t3);
  display: block;
  margin-top: 2px;
  font-family: var(--mono);
}

/* Ranking */
.rank-list {}

.rank-item {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.025);
  cursor: pointer;
  transition: padding-left .2s;
  text-decoration: none;
}

.rank-item:hover { padding-left: 4px; }
.rank-item:last-child { border-bottom: none; }

.rank-item__num {
  font-family: var(--mono);
  font-size: 16px;
  color: rgba(0,50,120,.4);
  line-height: 1;
  min-width: 20px;
}

.rank-item:nth-child(1) .rank-item__num { color: var(--gold); }
.rank-item:nth-child(2) .rank-item__num { color: var(--silver); }
.rank-item:nth-child(3) .rank-item__num { color: #a07040; }

.rank-item__title {
  font-size: 11px;
  line-height: 1.55;
  color: var(--t2);
}

/* Tag cloud */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.tag-cloud a {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .07em;
  color: var(--t3);
  border: 1px solid var(--line);
  padding: 3px 9px;
  border-radius: var(--radius);
  transition: all .2s;
}

.tag-cloud a:hover {
  color: var(--cyan);
  border-color: var(--blue);
  background: rgba(0,80,180,.08);
}

/* =====================================================
   SINGLE POST
   ===================================================== */
.single-layout {
  max-width: 1400px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 48px 28px 72px;
  box-sizing: border-box;
}

.single-post { max-width: 800px; margin: 0 auto; width: 100%; }

.post-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .22em;
  color: #0099ee;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.post-eyebrow::before {
  content: '';
  width: 20px; height: 1px;
  background: #0099ee;
}

.post-title {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.45;
  color: #e8f4ff;
  margin-bottom: 18px;
}

.post-meta {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--t3);
  letter-spacing: .08em;
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}

.post-thumbnail {
  width: 100%;
  border: 1px solid var(--line2);
  border-radius: var(--radius);
  margin-bottom: 32px;
}

/* Entry content */
.entry-content {
  font-size: 15px;
  line-height: 1.9;
  color: #8ab4cc;
}

.entry-content p { margin-bottom: 1.4em; }

.entry-content h2 {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: .12em;
  color: var(--cyan);
  border-left: 2px solid var(--blue);
  padding-left: 14px;
  margin: 2.2em 0 .8em;
  text-transform: uppercase;
}

.entry-content h3 {
  font-size: 16px;
  color: var(--t1);
  margin: 1.8em 0 .6em;
}

.entry-content a {
  color: var(--cyan);
  border-bottom: 1px solid rgba(34,170,255,.3);
}

.entry-content a:hover { color: #fff; }

.entry-content ul,
.entry-content ol {
  padding-left: 24px;
  margin-bottom: 1.2em;
}

.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: .4em; }

.entry-content blockquote {
  border-left: 2px solid var(--blue);
  padding: 12px 20px;
  background: rgba(0,40,100,.2);
  margin: 1.5em 0;
  font-style: italic;
  color: var(--t2);
}

.entry-content img {
  border-radius: var(--radius);
  border: 1px solid var(--line2);
  margin: 1em 0;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 1.5em 0;
}

.entry-content th {
  background: rgba(0,40,100,.3);
  border: 1px solid var(--line2);
  padding: 10px 14px;
  text-align: left;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--cyan);
}

.entry-content td {
  border: 1px solid var(--line);
  padding: 10px 14px;
  color: #8ab4cc;
}

.entry-content tr:nth-child(even) td {
  background: rgba(255,255,255,.02);
}

/* Post tags */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.post-tag {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--t3);
  border: 1px solid var(--line);
  padding: 4px 11px;
  border-radius: var(--radius);
  transition: all .2s;
}

.post-tag::before { content: '# '; color: var(--blue); }

.post-tag:hover {
  color: var(--cyan);
  border-color: var(--blue);
}

/* Post navigation */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 40px;
}

.nav-previous,
.nav-next {
  background: var(--ink2);
  border: 1px solid var(--line2);
  padding: 16px 18px;
  border-radius: var(--radius);
  transition: all .2s;
  text-decoration: none;
  display: block;
}

.nav-next { text-align: right; }

.nav-previous:hover,
.nav-next:hover {
  border-color: var(--blue);
  background: rgba(0,60,160,.08);
}

.nav-label {
  font-family: var(--mono);
  font-size: 8px;
  color: var(--t3);
  letter-spacing: .2em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 5px;
}

.nav-title {
  font-size: 12px;
  color: var(--t2);
  line-height: 1.5;
  display: block;
}

/* Related posts */
.related-posts { margin-top: 48px; }

/* =====================================================
   COMMENTS
   ===================================================== */
.comments-area {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.comments-title {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--t2);
  margin-bottom: 20px;
  text-transform: uppercase;
}

.comment-list { display: flex; flex-direction: column; gap: 16px; }

.comment {
  background: var(--ink2);
  border: 1px solid var(--line);
  border-left: 2px solid var(--blue);
  padding: 16px 18px;
  border-radius: var(--radius);
}

.comment-author-name {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: .06em;
}

.comment-date {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--t3);
  margin-top: 2px;
  margin-bottom: 10px;
}

.comment-body { font-size: 13px; color: var(--t2); }

.comment-form input,
.comment-form textarea {
  width: 100%;
  background: var(--ink2);
  border: 1px solid var(--line2);
  color: var(--t1);
  font-family: var(--jp);
  font-size: 13px;
  padding: 10px 14px;
  outline: none;
  border-radius: var(--radius);
  margin-bottom: 10px;
  transition: border-color .2s;
  display: block;
}

.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--blue); }

.comment-form textarea { min-height: 100px; resize: vertical; }

.comment-form input[type="submit"],
.btn-primary {
  background: var(--blue);
  color: #fff;
  border: none;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  padding: 11px 26px;
  cursor: pointer;
  border-radius: var(--radius);
  transition: all .2s;
}

.comment-form input[type="submit"]:hover,
.btn-primary:hover {
  background: var(--cyan);
  color: var(--ink);
}

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
  background: rgba(2,6,9,.98);
  border-top: 1px solid var(--line);
  padding: 36px 0 0;
  width: 100%;
  box-sizing: border-box;
}

.footer-grid {
  max-width: 1400px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding: 0 28px 32px;
  box-sizing: border-box;
}

.footer-brand__logo {
  display: flex;
  align-items: baseline;
  margin-bottom: 10px;
}

.footer-brand__desc {
  font-family: var(--mono);
  font-size: 10px;
  color: #5a8aaa;
  line-height: 1.9;
  letter-spacing: .04em;
}

.footer-col__title {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .22em;
  color: var(--t3);
  text-transform: uppercase;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.footer-links { display: flex; flex-direction: column; gap: 8px; }

.footer-links a {
  font-family: var(--mono);
  font-size: 11px;
  color: #6a9ab8;
  letter-spacing: .04em;
  transition: color .2s;
}

.footer-links a:hover { color: var(--sky); }

.footer-bottom {
  max-width: 1400px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  border-top: 1px solid rgba(0,45,110,.12);
  padding: 16px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 9px;
  color: #2a4a6a;
  letter-spacing: .07em;
  box-sizing: border-box;
}

/* =====================================================
   404 / SEARCH / ARCHIVE
   ===================================================== */
.archive-header {
  max-width: 1400px;
  margin: 0 auto;
  padding: 36px 28px 0;
}

.archive-title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--t2);
  text-transform: uppercase;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.archive-title::before {
  content: '[';
  color: var(--blue);
}

.archive-title::after {
  content: ']';
  color: var(--blue);
}

.error-404-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 28px;
  text-align: center;
}

.error-code {
  font-family: var(--mono);
  font-size: 96px;
  color: rgba(0,50,120,.4);
  line-height: 1;
  letter-spacing: .05em;
  margin-bottom: 16px;
}

.error-message {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--t3);
  margin-bottom: 32px;
  text-transform: uppercase;
}

/* =====================================================
   UTILITIES
   ===================================================== */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.fade-in {
  opacity: 0;
  transform: translateY(12px);
  animation: fade-in .5s ease forwards;
}

@keyframes fade-in {
  to { opacity: 1; transform: none; }
}

.fade-in:nth-child(1) { animation-delay: .05s; }
.fade-in:nth-child(2) { animation-delay: .1s; }
.fade-in:nth-child(3) { animation-delay: .15s; }
.fade-in:nth-child(4) { animation-delay: .2s; }
.fade-in:nth-child(5) { animation-delay: .25s; }
.fade-in:nth-child(6) { animation-delay: .3s; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1100px) {
  .main-layout { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: 1fr; }
  .post-card--featured { flex-direction: column; grid-column: span 1; }
  .post-card--featured .post-card__thumb { width: 100%; aspect-ratio: 16/9; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 768px) {
  .header-inner { padding: 0 16px; }
  .main-layout { padding: 16px 16px 40px; }
  .main-navigation { display: none; }
  .main-navigation.is-open { display: flex; flex-direction: column; background: var(--ink2); border: 1px solid var(--line2); position: absolute; top: 56px; left: 0; right: 0; z-index: 100; }
  .main-navigation.is-open ul { flex-direction: column; }
  .menu-toggle { display: block; }
  .hero-banner { height: 360px; }
  .hero-banner__title { font-size: 20px; }
  .single-layout { padding: 24px 16px 48px; }
  .post-navigation { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: 1fr; }
}

/* Category bar - anchor tag support */
.category-bar a.cat-btn {
  display: inline-block;
  text-decoration: none;
}



/* =====================================================
   CENTERING COMPLETE FIX — 左寄り完全対策
   WordPressの様々なラッパーに対応
   ===================================================== */

/* body直下の全要素を全幅に */
body > *,
body > div,
#page,
#wrapper,
#outer-wrapper,
.wrapper,
.page-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  float: none !important;
}

/* site-wrapperは中央寄せの起点 */
.site-wrapper {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* 各セクションの幅を保証 */
.site-header,
.hero-banner,
.news-ticker,
.category-bar,
.site-footer {
  width: 100% !important;
  box-sizing: border-box !important;
  float: none !important;
}

/* 中央寄せ要素の確実な中央配置 */
.category-bar__inner,
.main-layout,
.single-layout,
.archive-header,
.footer-grid,
.footer-bottom,
.error-404-wrap {
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100% !important;
  float: none !important;
}

/* header-inner は flex を維持 */
.header-inner {
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100% !important;
}

/* main-layout は grid */
.main-layout {
  display: grid !important;
  grid-template-columns: 1fr 248px;
  gap: 24px;
  max-width: 1400px;
  box-sizing: border-box;
}

@media (max-width: 1100px) {
  .main-layout {
    grid-template-columns: 1fr !important;
  }
}

/* =====================================================
   旧テーマクラス互換 + 最終中央寄せ強制
   single-post__title 等の旧クラスが残っている場合の対応
   ===================================================== */

/* 旧テーマクラス */
.single-post__header,
.single-post__title,
.single-post__meta,
.single-post__category,
.entry-content,
.post-navigation,
.related-posts,
.comments-area {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  box-sizing: border-box;
}

/* 記事ページ全体の強制中央寄せ */
body.single .site-content > *,
body.single .single-layout,
body.single .site-main {
  max-width: 860px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100% !important;
  box-sizing: border-box !important;
  padding-left: 24px;
  padding-right: 24px;
}

/* single-layout は幅制限なしで全幅のコンテナ */
body.single .single-layout {
  max-width: 1400px !important;
  padding-left: 28px !important;
  padding-right: 28px !important;
}

/* その中の main だけ中央寄せ */
body.single .site-main {
  max-width: 860px !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* =====================================================
   HERO + LOGO + HEADER FIX
   ===================================================== */

/* ロゴサイズは functions.php の bptk_logo_size_css() で動的に出力 */
/* 外観 > カスタマイズ > ヘッダー設定 > ロゴの高さ で変更可能 */
.custom-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  overflow: visible;
  line-height: 0;
}
.site-branding {
  flex-shrink: 0;
  overflow: visible;
}
/* 画像のデフォルト制限を解除 — 高さはfunctions.phpで動的に設定 */
.custom-logo,
.custom-logo-link img,
.site-logo-img {
  width: auto;
  max-width: none;
  height: auto;
  display: block;
  object-fit: contain;
}

/* ── hero-banner 全幅 ── */
.hero-banner {
  margin: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* ── hero content 中央寄せ ── */
.hero-banner__content {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  left: 0;
  right: 0;
  padding-left: 36px;
  padding-right: 36px;
  box-sizing: border-box;
}

/* =====================================================
   HEADER HEIGHT — ロゴサイズ追従（overflow修正）
   functions.php の動的CSSが height を設定するが
   site-header は min-height のみにして切れを防ぐ
   ===================================================== */
.site-header {
  height: auto !important;
  min-height: var(--bptk-header-h, 64px) !important;
  overflow: visible !important;
}
.header-inner {
  height: auto !important;
  min-height: var(--bptk-header-h, 64px) !important;
  overflow: visible !important;
}

/* =====================================================
   X (TWITTER) 埋め込み
   ===================================================== */
.bptk-x-embed {
  max-width: 550px;
  margin: 1.5em auto;
}

.bptk-x-embed iframe {
  border-radius: 12px !important;
}

/* WordPressのwp-embed-responsiveクラス対応 */
.entry-content .twitter-tweet {
  margin: 1.5em auto !important;
}