/*
Theme Name: starwindow
Theme URI: https://binso.online
Author: びそ / biso
Description: デスクトップPC風UIのVTuber・クリエイター向けWordPressテーマ。ウィンドウUIデザイン、カスタマイザーによる柔軟なカスタマイズに対応。
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: starwindow
Tags: vtuber, creator, custom-colors, custom-logo, custom-menu, featured-images, full-width-template, theme-options
*/

/* ════════════════════════════════════════
   1. GOOGLE FONTS
════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@700;800&family=Manrope:wght@600;700;800&family=Fira+Mono:wght@400;500&family=Noto+Sans+JP:wght@400;500&display=swap');

/* ════════════════════════════════════════
   2. CSS VARIABLES（デザイントークン）
════════════════════════════════════════ */
:root {
  /* カラー: カスタマイザーで上書き可能 */
  --accent:         #7ECEC4;
  --accent-dim:     rgba(126,206,196,0.12);
  --accent-border:  rgba(126,206,196,0.40);

  /* カラー: 固定 */
  --text:           #343840;
  --text-sub:       #555A63;
  --text-muted:     #838991;
  --bg-desk:        #E8EAED;   /* カスタマイザーで上書き可能 */
  --bg-win:         rgba(255,255,255,0.84);
  --bg-bar:         rgba(244,245,246,0.96);
  --bg-sec:         rgba(244,245,246,0.72);
  --border:         rgba(198,202,208,0.60);
  --border-lt:      rgba(198,202,208,0.35);
  --hover:          rgba(198,202,208,0.18);

  /* タイポグラフィ */
  --font-sans:      'Noto Sans JP', sans-serif;
  --font-mono:      'Fira Mono', monospace;
  --font-display:   'Manrope', sans-serif;
  --font-title:     'Syne', sans-serif;

  /* サイズスケール */
  --text-xs:   10px;
  --text-sm:   11px;
  --text-base: 13px;
  --text-md:   14px;
  --text-lg:   16px;
  --text-xl:   18px;
  --text-2xl:  22px;
  --text-3xl:  28px;

  /* スペーシング */
  --sp-1:  4px;
  --sp-2:  8px;
  --sp-3:  12px;
  --sp-4:  16px;
  --sp-5:  20px;
  --sp-6:  24px;
  --sp-8:  32px;
  --sp-10: 40px;

  /* ボーダーラジウス */
  --r-sm:  5px;
  --r:     10px;
  --r-lg:  14px;
  --r-full: 9999px;

  /* レイアウト */
  --header-h:    52px;
  --footer-h:    48px;
  --win-max-w:   900px;
  --content-max: 720px;
}

/* ════════════════════════════════════════
   3. RESET & BASE
════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font: inherit; }
img, video { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

html, body {
  font-family: var(--font-sans);
  font-size: var(--text-md);
  color: var(--text);
  background: var(--bg-desk);
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
}

/* ════════════════════════════════════════
   4. LAYOUT
════════════════════════════════════════ */
.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.site-bg {
  position: fixed; inset: 0;
  background-image:
    /* ドットグリッド */
    radial-gradient(circle, rgba(126,206,196,0.15) 1px, transparent 1px),
    /* スキャンライン */
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 3px,
      rgba(0,0,0,0.018) 3px,
      rgba(0,0,0,0.018) 4px
    );
  background-size: 24px 24px, 100% 4px;
  pointer-events: none; z-index: 0;
}
.site-main {
  flex: 1;
  position: relative; z-index: 1;
  padding-top: var(--header-h);
}

/* ════════════════════════════════════════
   5. HEADER（PC）
════════════════════════════════════════ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--header-h);
  display: flex; align-items: center;
  padding: 0 24px; gap: 0;
  background: rgba(244,245,246,0.88);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 0.5px solid var(--border);
  z-index: 200;
}
.site-header-logo {
  font-family: var(--font-mono); font-size: var(--text-base);
  color: var(--text); letter-spacing: 0.04em; flex-shrink: 0;
}
/* WPがinlineでwidth/heightを付けるので !important で上書き */
.site-header-logo img,
.site-header-logo .custom-logo {
  height: 28px !important;
  width: auto !important;
  max-width: 160px !important;
  object-fit: contain;
  display: block;
}
.site-header-logo:hover { color: var(--accent); }

.site-header-nav {
  display: flex; align-items: center; gap: var(--sp-1);
  margin-left: auto;
}
.site-header-nav a { 
  font-family: var(--font-mono); font-size: var(--text-base);
  color: var(--text-muted); padding: 5px 12px; border-radius: var(--r-full);
  transition: color .15s, background .15s; white-space: nowrap;
}
.site-header-nav a:hover { color: var(--text); background: var(--hover); }
.site-header-nav a.current-page,
.site-header-nav a.current-menu-item { color: var(--accent); }

/* ↗︎ 外部リンク記号（現状HPと同仕様） */
/* ナビの外部リンク↗︎（target=_blankのメニュー項目に自動付与） */
.nav-ext-arrow {
  display: inline-block;
  vertical-align: middle;
  margin-left: 3px;
  position: relative;
  top: -1px;
  color: var(--accent);
  flex-shrink: 0;
}

.link-arrow {
  color: var(--accent);
  font-size: 12px;
  margin-left: 2px;
  letter-spacing: 0;
}
/* ヘッダーナビ内の Shop ↗︎ リンク */
.site-header-nav a[target="_blank"] {
  color: var(--text-muted);
}
.site-header-nav a[target="_blank"]:hover {
  color: var(--accent);
}

.site-header-contact {
  display: inline-flex; align-items: center; gap: var(--sp-1);
  font-family: var(--font-mono); font-size: 11px;
  color: var(--accent); border: 0.5px solid var(--accent-border);
  border-radius: var(--r-full); padding: 5px 13px;
  background: var(--accent-dim);
  transition: background .15s; margin-left: var(--sp-2); flex-shrink: 0;
}
.site-header-contact:hover { background: rgba(126,206,196,0.22); }

.site-header-sns {
  display: flex; align-items: center; gap: var(--sp-2);
  margin-left: var(--sp-4); flex-shrink: 0;
}
.site-header-sns a {
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); width: 28px; height: 28px;
  border-radius: var(--r-sm); opacity: .65;
  transition: color .15s, background .15s, opacity .15s;
}
.site-header-sns a:hover { color: var(--text); background: var(--hover); opacity: 1; }

/* ════════════════════════════════════════
   6. MOBILE HEADER & DRAWER
════════════════════════════════════════ */
.mobile-header {
  display: none;
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--header-h);
  align-items: center; justify-content: space-between;
  padding: 0 16px;
  background: rgba(244,245,246,0.92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 0.5px solid var(--border); z-index: 200;
}
.mobile-header-logo { display: flex; align-items: center; }
.mobile-header-logo img,
.mobile-header-logo .custom-logo {
  height: 26px !important;
  width: auto !important;
  max-width: 130px !important;
  object-fit: contain;
  display: block;
}
.mobile-header-logo-text {
  font-family: var(--font-mono); font-size: var(--text-base);
  color: var(--text); letter-spacing: 0.04em;
}
.mobile-menu-btn {
  display: flex; flex-direction: column; justify-content: center;
  gap: 5px; width: 36px; height: 36px; padding: 6px;
}
.mobile-menu-btn span {
  display: block; width: 100%; height: 1.5px;
  background: var(--text); border-radius: 1px;
  transition: transform .25s, opacity .25s;
}
.mobile-menu-btn.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-drawer {
  position: fixed; top: 0; right: -280px; width: 280px; height: 100%;
  background: rgba(244,245,246,0.97);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-left: 0.5px solid var(--border); z-index: 300;
  padding: 60px 24px 40px;
  display: flex; flex-direction: column;
  transition: right .3s cubic-bezier(.4,0,.2,1);
}
.mobile-drawer.open { right: 0; }
.mobile-drawer-close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm); color: var(--text-muted);
  transition: background .15s, color .15s;
}
.mobile-drawer-close:hover { background: var(--hover); color: var(--text); }
.mobile-drawer-nav {
  display: flex; flex-direction: column; gap: 2px; flex: 1;
}
.mobile-drawer-nav a {
  font-family: var(--font-mono); font-size: var(--text-md);
  color: var(--text-sub); padding: 10px 16px; border-radius: var(--r-full);
  transition: background .15s, color .15s;
}
.mobile-drawer-nav a:hover,
.mobile-drawer-nav a.current { background: var(--accent-dim); color: var(--text); }
.mobile-drawer-sns {
  display: flex; gap: 12px; padding-top: var(--sp-5);
  border-top: 0.5px solid var(--border-lt); flex-wrap: wrap;
}
.mobile-drawer-sns a {
  color: var(--text-muted); opacity: .7;
  display: flex; align-items: center;
  transition: opacity .15s, color .15s;
}
.mobile-drawer-sns a:hover { opacity: 1; color: var(--text); }
.mobile-drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(52,56,64,0.3); z-index: 290;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.mobile-drawer-overlay.open { opacity: 1; pointer-events: auto; }

/* ════════════════════════════════════════
   7. FOOTER
════════════════════════════════════════ */
/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
.site-footer {
  width: 100%;
  background: rgba(244,245,246,0.92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 0.5px solid var(--border);
  z-index: 100;
}

/* PC: 2カラム（左=ロゴ / 右=ナビ・SNS・コピーライト） */
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 32px 40px 24px;
  max-width: var(--win-max-w, 1200px);
  margin: 0 auto;
}

/* ── ロゴエリア ── */
.footer-logos-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-logos {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-logo-item {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.footer-logo-item img {
  height: 40px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: opacity .2s;
}
.footer-logo-item:hover img { opacity: .75; }

.footer-sponsors {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-sponsor-item {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.footer-sponsor-item img {
  height: 28px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: grayscale(30%);
  opacity: .7;
  transition: filter .2s, opacity .2s;
}
.footer-sponsor-item:hover img { filter: grayscale(0%); opacity: 1; }

/* ── フッターナビ（右カラム上） ── */
.footer-nav { width: 100%; }
.footer-nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0; padding: 0;
}
.footer-nav-list li,
.footer-nav-list li a {
  font-family: var(--font-mono, 'Fira Mono', monospace) !important;
  font-size: 11px !important;
  letter-spacing: .08em;
  color: var(--text-muted, #9aa0ab) !important;
  padding: 3px 8px;
  border-radius: 4px;
  text-decoration: none !important;
  transition: color .15s, background .15s;
  background: transparent !important;
  height: auto !important;
  line-height: inherit !important;
}
.footer-nav-list li a:hover {
  color: var(--text, #343840) !important;
  background: rgba(52,56,64,.05) !important;
}

/* ── SNS（右カラム中） ── */
.footer-sns {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
}
.footer-sns a {
  color: var(--text-muted, #9aa0ab);
  opacity: .6;
  display: flex;
  align-items: center;
  transition: opacity .15s, color .15s;
  text-decoration: none;
}
.footer-sns a:hover { opacity: 1; color: var(--accent, #7ecec4); }

/* ── コピーライト ── */
.footer-copyright {
  font-family: var(--font-mono, 'Fira Mono', monospace);
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--text-muted, #9aa0ab);
  margin: 0;
  text-align: center;
}

/* ── スマホ: 縦1カラム中央寄せ ── */
@media (max-width: 768px) {
  .footer-inner { padding: 24px 16px 20px; gap: 14px; }
  .footer-logo-item img { height: 32px; }
  .footer-sponsor-item img { height: 22px; }
}


/* ════════════════════════════════════════
   8. SCROLL-TOP BUTTON
════════════════════════════════════════ */
.scroll-top {
  position: fixed; bottom: calc(var(--footer-h) + 12px); right: 20px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-win); border: 0.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  z-index: 150; color: var(--text-muted);
  transition: transform .2s, box-shadow .2s, color .15s;
  box-shadow: 0 2px 8px rgba(52,56,64,0.10);
}
.scroll-top:hover {
  transform: translateY(-2px); color: var(--accent);
  box-shadow: 0 4px 12px rgba(52,56,64,0.15);
}

/* ════════════════════════════════════════
   9. WINDOW UI（ウィンドウ枠）
════════════════════════════════════════ */
.page-window {
  position: relative;
  margin: 16px auto;
  margin-bottom: 16px;
  width: calc(100% - 80px);
  max-width: var(--win-max-w);
  min-height: calc(100vh - var(--header-h) - var(--footer-h) - 32px);
  background: var(--bg-win);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 0.5px solid var(--border);
  border-radius: var(--r);
  display: flex; flex-direction: column;
  overflow: hidden;
}

/* タイトルバー */
.win-titlebar {
  display: flex; align-items: center; gap: var(--sp-2);
  padding: 0 14px; height: 34px;
  background: var(--bg-bar);
  border-bottom: 0.5px solid var(--border);
  flex-shrink: 0;
}
.win-dots { display: flex; gap: 5px; }
.win-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--border); flex-shrink: 0;
}
.win-dot.green { background: var(--accent); }
.win-title {
  font-family: var(--font-mono); font-size: var(--text-xs);
  color: var(--text-muted); flex: 1; text-align: center;
  letter-spacing: 0.04em;
}

/* アドレスバー */
.win-addressbar {
  display: flex; align-items: center;
  padding: 6px 14px;
  background: var(--bg-bar);
  border-bottom: 0.5px solid var(--border-lt);
  flex-shrink: 0;
}
.win-url-pill {
  flex: 1; background: rgba(255,255,255,0.7);
  border: 0.5px solid var(--border); border-radius: var(--r-full);
  padding: 4px 16px;
  display: flex; align-items: center;
}
.win-url {
  font-family: var(--font-mono); font-size: var(--text-xs);
  color: var(--text-muted); letter-spacing: 0.03em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ウィンドウボディ */
.win-body {
  flex: 1; overflow-y: auto;
  padding: var(--sp-6) 120px;
  /* WPブロックのデフォルト幅をコンテンツ幅に制限 */
  --wp--style--global--content-size: var(--content-max);
  --wp--style--global--wide-size: 100%;
  scrollbar-width: thin; scrollbar-color: var(--border) transparent;
  /* サブピクセルグリッド: テック感・インターフェース感 */
  background-image:
    linear-gradient(rgba(126,206,196,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126,206,196,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}
.win-body::-webkit-scrollbar { width: 4px; }
.win-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* ════════════════════════════════════════
   10. TYPOGRAPHY（タイポグラフィ階層）
   .win-body 内のブロックエディタ出力に適用
════════════════════════════════════════ */

/* 見出し */
.win-body h1, .wp-content h1 {
  font-family: var(--font-title);
  font-size: var(--text-2xl); color: var(--text);
  line-height: 1.2; margin-bottom: var(--sp-4); padding-top: var(--sp-1);
}
.win-body h2, .wp-content h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl); color: var(--text);
  line-height: 1.3; margin-top: var(--sp-8); margin-bottom: var(--sp-3);
  padding-bottom: var(--sp-2);
  border-bottom: 0.5px solid var(--border-lt);
}
.win-body h3, .wp-content h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg); color: var(--text);
  line-height: 1.4; margin-top: var(--sp-6); margin-bottom: var(--sp-2);
}
.win-body h4, .wp-content h4 {
  font-family: var(--font-display);
  font-size: var(--text-md); color: var(--text);
  margin-top: var(--sp-5); margin-bottom: var(--sp-2);
}
.win-body h5, .win-body h6,
.wp-content h5, .wp-content h6 {
  font-family: var(--font-mono);
  font-size: var(--text-base); color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-top: var(--sp-4); margin-bottom: var(--sp-2);
}

/* 本文 */
.win-body p, .wp-content p {
  font-size: var(--text-md); line-height: 1.9;
  color: var(--text-sub); margin-bottom: var(--sp-4);
}
.win-body strong, .wp-content strong { color: var(--text); }
.win-body em, .wp-content em { color: var(--text-sub); }

/* リンク */
.win-body a, .wp-content a {
  color: var(--accent); text-decoration: underline;
  text-underline-offset: 3px; transition: opacity .15s;
}
.win-body a:hover, .wp-content a:hover { opacity: .75; }

/* ボタン系クラスには下線・accent色を当てない */
.win-body a.swb-btn,
.win-body a.swb-btn-primary,
.win-body a.swb-btn-secondary,
.win-body a.swb-btn-ghost,
.win-body a.btn-app,
.win-body a.btn-primary,
.win-body a.btn-outline,
.wp-content a.swb-btn,
.wp-content a.swb-btn-primary,
.wp-content a.swb-btn-secondary,
.wp-content a.swb-btn-ghost,
.wp-content a.btn-app,
.wp-content a.btn-primary,
.wp-content a.btn-outline,
.wp-content a.swb-app-card-link,
.wp-content a.swb-sns-cell,
.wp-content a.swb-dt-link,
.wp-content a.swb-db-link,
.wp-content a.swb-ol-link,
.wp-content a.swb-oc-link,
.wp-content a.offer-link {
  text-decoration: none !important;
  color: inherit;
  opacity: 1;
}
.wp-content a.swb-btn:hover,
.wp-content a.swb-btn-primary:hover,
.wp-content a.swb-btn-secondary:hover { opacity: 1; }

/* リスト */
.win-body ul, .wp-content ul {
  padding-left: var(--sp-5); margin-bottom: var(--sp-4);
  list-style: disc;
}
.win-body ol, .wp-content ol {
  padding-left: var(--sp-5); margin-bottom: var(--sp-4);
  list-style: decimal;
}
.win-body li, .wp-content li {
  font-size: var(--text-md); color: var(--text-sub);
  line-height: 1.8; margin-bottom: var(--sp-1);
}

/* コード */
.win-body code, .wp-content code {
  font-family: var(--font-mono); font-size: var(--text-base);
  background: var(--bg-sec); border: 0.5px solid var(--border-lt);
  border-radius: var(--r-sm); padding: 2px 6px; color: var(--text);
}
.win-body pre, .wp-content pre {
  background: var(--bg-sec); border: 0.5px solid var(--border);
  border-radius: var(--r); padding: var(--sp-4);
  overflow-x: auto; margin-bottom: var(--sp-4);
  font-family: var(--font-mono); font-size: var(--text-base);
  line-height: 1.7;
}
.win-body pre code, .wp-content pre code {
  background: none; border: none; padding: 0;
}

/* 引用 */
.win-body blockquote, .wp-content blockquote {
  border-left: 3px solid var(--accent);
  padding: var(--sp-3) var(--sp-4);
  margin: var(--sp-5) 0;
  background: var(--accent-dim); border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.win-body blockquote p, .wp-content blockquote p { color: var(--text-sub); margin: 0; }

/* 区切り線 */
.win-body hr, .wp-content hr {
  border: none; border-top: 0.5px solid var(--border-lt); margin: var(--sp-6) 0;
}

/* 画像 */
.win-body img, .wp-content img {
  border-radius: var(--r-sm); margin: var(--sp-3) 0;
}
.win-body figure, .wp-content figure { margin: var(--sp-4) 0; }
.win-body figcaption, .wp-content figcaption {
  font-family: var(--font-mono); font-size: var(--text-xs);
  color: var(--text-muted); margin-top: var(--sp-1); text-align: center;
}

/* テーブル */
.win-body table, .wp-content table {
  width: 100%; border-collapse: collapse;
  font-size: var(--text-base); margin-bottom: var(--sp-4);
}
.win-body th, .wp-content th {
  background: var(--bg-sec); padding: var(--sp-2) var(--sp-3);
  text-align: left; font-family: var(--font-mono); font-size: var(--text-xs);
  color: var(--text-muted); border-bottom: 0.5px solid var(--border);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.win-body td, .wp-content td {
  padding: 10px var(--sp-3); border-bottom: 0.5px solid var(--border-lt);
  vertical-align: middle; color: var(--text-sub);
}
.win-body tr:last-child td, .wp-content tr:last-child td { border-bottom: none; }

/* ════════════════════════════════════════
   11. COMPONENTS（コンポーネント）
════════════════════════════════════════ */

/* ── ラベル ── */
.label {
  font-family: var(--font-mono); font-size: var(--text-xs);
  color: var(--text-muted); letter-spacing: 0.08em; text-transform: uppercase;
}
.label-accent { color: var(--accent); }

/* ── ボタン ── */
.btn {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-family: var(--font-mono); font-size: var(--text-base);
  padding: 7px 18px; border-radius: var(--r-sm);
  transition: background .15s, transform .15s, box-shadow .15s;
  cursor: pointer; white-space: nowrap; letter-spacing: 0.03em;
}
/* Primary */
.btn-primary {
  background: var(--accent); color: #fff; border: none;
}
.btn-primary:hover {
  background: #5bbdb3; transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(126,206,196,0.35);
}
/* Secondary */
.btn-secondary {
  background: var(--bg-sec); color: var(--text);
  border: 0.5px solid var(--border);
}
.btn-secondary:hover { background: var(--hover); border-color: var(--accent); }
/* Outline */
.btn-outline {
  background: transparent; color: var(--accent);
  border: 0.5px solid var(--accent-border);
}
.btn-outline:hover { background: var(--accent-dim); }
/* Ghost */
.btn-ghost {
  background: transparent; color: var(--text-muted);
  border: 0.5px solid var(--border);
}
.btn-ghost:hover { color: var(--text); background: var(--hover); }

/* ── カード ── */
.card {
  background: var(--bg-win); border: 0.5px solid var(--border);
  border-radius: var(--r); overflow: hidden;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.card-header {
  padding: 10px 14px 8px;
  background: var(--bg-bar); border-bottom: 0.5px solid var(--border-lt);
}
.card-body { padding: var(--sp-4); }
.card-footer {
  padding: 10px 14px;
  background: var(--bg-bar); border-top: 0.5px solid var(--border-lt);
}

/* ── バッジ ── */
.badge {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono); font-size: var(--text-xs);
  padding: 2px 8px; border-radius: var(--r-full);
  background: var(--bg-sec); border: 0.5px solid var(--border);
  color: var(--text-muted); white-space: nowrap;
}
.badge-accent {
  background: var(--accent-dim); border-color: var(--accent-border);
  color: var(--accent);
}

/* ── フォーム ── */
.form-group { margin-bottom: var(--sp-5); }
.form-label {
  display: block; font-family: var(--font-mono); font-size: var(--text-xs);
  color: var(--text-muted); letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: var(--sp-2);
}
.form-input,
.form-textarea,
.form-select {
  width: 100%; font-family: var(--font-sans); font-size: var(--text-md);
  color: var(--text); background: rgba(255,255,255,0.8);
  border: 0.5px solid var(--border); border-radius: var(--r-sm);
  padding: var(--sp-3) var(--sp-4);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.form-textarea { resize: vertical; min-height: 120px; line-height: 1.7; }

/* ── 区切り ── */
.divider {
  border: none; border-top: 0.5px solid var(--border-lt); margin: var(--sp-6) 0;
}
.divider-label {
  display: flex; align-items: center; gap: var(--sp-3); margin: var(--sp-6) 0;
}
.divider-label::before,
.divider-label::after {
  content: ''; flex: 1; border-top: 0.5px solid var(--border-lt);
}
.divider-label span {
  font-family: var(--font-mono); font-size: var(--text-xs);
  color: var(--text-muted); white-space: nowrap; letter-spacing: 0.06em;
}

/* ── コードコピー ── */
.code-block {
  display: inline-block; background: var(--accent-dim);
  border: 0.5px solid var(--accent-border);
  border-radius: var(--r-sm); padding: 3px 9px;
  font-family: var(--font-mono); font-size: var(--text-md);
  color: var(--text); cursor: pointer; user-select: all;
  transition: background .15s;
}
.code-block:hover { background: rgba(126,206,196,0.22); }
.code-block.copied { background: rgba(126,206,196,0.4); }

/* ── リストアイテム ── */
.list-item {
  display: flex; gap: var(--sp-3); align-items: flex-start;
  padding: 10px var(--sp-2); border-bottom: 0.5px solid var(--border-lt);
  text-decoration: none; color: inherit;
  border-radius: var(--r-sm); transition: background .12s;
}
.list-item:hover { background: var(--hover); }
.list-item:last-child { border-bottom: none; }

/* ── データテーブル ── */
.data-table { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: var(--text-base); }
.data-table th { text-align: left; padding: var(--sp-2) 10px; font-size: var(--text-xs); color: var(--text-muted); border-bottom: 0.5px solid var(--border); letter-spacing: 0.06em; text-transform: uppercase; }
.data-table td { padding: 10px; border-bottom: 0.5px solid var(--border-lt); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }

/* ════════════════════════════════════════
   12. PAGE-SPECIFIC HELPERS
════════════════════════════════════════ */
.page-heading {
  font-family: var(--font-title); font-size: var(--text-2xl);
  color: var(--text); margin-bottom: var(--sp-5); padding-top: var(--sp-1);
}
.page-sub {
  font-family: var(--font-mono); font-size: var(--text-base);
  color: var(--text-muted); margin-bottom: var(--sp-6); line-height: 1.7;
}
.section-title {
  font-family: var(--font-display); font-size: var(--text-lg);
  color: var(--text); margin-bottom: var(--sp-1);
}
.section-note {
  font-family: var(--font-mono); font-size: var(--text-sm);
  color: var(--text-muted); margin-bottom: var(--sp-4); line-height: 1.6;
}

/* cp-section（Campaign等） */
.cp-section { margin-bottom: var(--sp-8); padding-bottom: var(--sp-8); border-bottom: 0.5px solid var(--border); }
.cp-section:last-child { border-bottom: none; }

/* ── YouTube: チャンネルカード ── */
.ch-card { display: flex; margin-bottom: var(--sp-4); }
.ch-card + .ch-card { border-top: 0.5px solid var(--border-lt); }
.ch-thumb-col { flex: 0 0 240px; display: flex; flex-direction: column; border-right: 0.5px solid var(--border-lt); }
.ch-thumb-header { padding: 10px 12px 8px; background: var(--bg-bar); border-bottom: 0.5px solid var(--border-lt); }
.ch-tag { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text-muted); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 2px; }
.ch-name { font-family: var(--font-display); font-size: var(--text-md); color: var(--text); }
.ch-thumb-link { display: block; position: relative; aspect-ratio: 16/9; background: var(--bg-sec); overflow: hidden; flex-shrink: 0; }
.ch-thumb-link img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.ch-thumb-link:hover img { transform: scale(1.03); }
.ch-thumb-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .2s; background: rgba(0,0,0,0.18); }
.ch-thumb-link:hover .ch-thumb-play { opacity: 1; }
.ch-video-title { padding: var(--sp-2) 12px 10px; font-family: var(--font-sans); font-size: var(--text-base); color: var(--text-sub); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ch-stats-col { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: var(--sp-4) 18px; gap: var(--sp-3); }
.ch-subs-nums { display: flex; align-items: baseline; gap: var(--sp-2); margin-bottom: var(--sp-1); }
.ch-subs-current { font-family: var(--font-mono); font-size: var(--text-3xl); color: var(--text); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ch-subs-goal { font-family: var(--font-mono); font-size: var(--text-base); color: var(--text-muted); }
.ch-subs-label { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text-muted); margin-bottom: var(--sp-2); }
.ch-goal-bar-wrap { height: 4px; background: var(--border-lt); border-radius: 3px; overflow: hidden; }
.ch-goal-bar { height: 100%; background: var(--accent); border-radius: 3px; width: 0%; transition: width .8s ease; }
.ch-milestone-label { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text-muted); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 2px; }
.ch-milestone-svg { display: block; width: 100%; height: 72px; }
.ch-link-row { margin-top: auto; padding-top: var(--sp-1); }
.ch-link { display: inline-flex; align-items: center; gap: var(--sp-2); font-family: var(--font-mono); font-size: var(--text-sm); color: var(--accent); border: 0.5px solid var(--accent-border); border-radius: var(--r-sm); padding: 5px 12px; transition: background .15s; }
.ch-link:hover { background: var(--accent-dim); }

/* ── YouTube: 動画リスト ── */
.video-section { margin-top: var(--sp-1); }
.video-section-header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 10px; margin-bottom: var(--sp-1); border-bottom: 0.5px solid var(--border); }
.video-section-header h2 { font-family: var(--font-display); font-size: var(--text-lg); color: var(--text); margin: 0; }
.video-tabs { display: flex; gap: var(--sp-2); }
.video-tab { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--text-muted); padding: 4px 13px; border-radius: var(--r-full); border: 1px solid var(--border); background: transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.video-tab.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.video-tab:hover:not(.active) { border-color: var(--accent); color: var(--text); }
.video-item { display: flex; gap: var(--sp-3); align-items: flex-start; padding: 10px var(--sp-2); border-bottom: 0.5px solid var(--border-lt); text-decoration: none; color: inherit; border-radius: var(--r-sm); transition: background .12s; }
.video-item:hover { background: var(--hover); }
.video-item:last-child { border-bottom: none; }
.video-thumb { width: 112px; height: 63px; flex-shrink: 0; object-fit: cover; border-radius: var(--r-sm); background: var(--bg-sec); }
.video-info { flex: 1; min-width: 0; }
.video-title { font-family: var(--font-sans); font-size: var(--text-base); color: var(--text); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: var(--sp-1); }
.video-meta-row { display: flex; align-items: center; gap: var(--sp-2); font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text-muted); }
.video-ch-badge { display: inline-flex; align-items: center; background: var(--accent-dim); border: 0.5px solid var(--accent-border); border-radius: 3px; padding: 1px 6px; color: var(--accent); font-size: var(--text-xs); white-space: nowrap; }

/* ── Campaign: テーブル ── */
.limited-table, .offers-table { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: var(--text-base); }
.limited-table th, .offers-table th { text-align: left; padding: var(--sp-2) 10px; font-size: var(--text-xs); color: var(--text-muted); border-bottom: 0.5px solid var(--border); letter-spacing: 0.06em; text-transform: uppercase; }
.limited-table td, .offers-table td { padding: 10px; border-bottom: 0.5px solid var(--border-lt); vertical-align: middle; }
.limited-table tr:last-child td, .offers-table tr:last-child td { border-bottom: none; }
.offer-brand { display: flex; align-items: center; gap: var(--sp-2); color: var(--text); }
.offer-code { display: inline-block; background: var(--accent-dim); border: 0.5px solid var(--accent-border); border-radius: var(--r-sm); padding: 3px 9px; color: var(--text); cursor: pointer; transition: background .15s; user-select: all; }
.offer-code:hover { background: rgba(126,206,196,0.25); }
.offer-code.copied { background: rgba(126,206,196,0.4); }
.offer-discount { color: var(--accent); }
.offer-link { color: var(--accent); font-size: 12px; }
.offer-link:hover { opacity: .75; }

/* ── NEWS ── */
.news-list { display: flex; flex-direction: column; }
.news-item { display: flex; gap: var(--sp-4); padding: var(--sp-4) var(--sp-2); border-bottom: 0.5px solid var(--border-lt); text-decoration: none; color: inherit; border-radius: var(--r-sm); transition: background .12s; }
.news-item:hover { background: var(--hover); }
.news-thumb { width: 120px; height: 68px; flex-shrink: 0; overflow: hidden; border-radius: var(--r-sm); }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-date { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--accent); margin-bottom: var(--sp-1); }
.news-date-icon { display: inline-flex; align-items: center; flex-shrink: 0; }
.news-title { font-family: var(--font-sans); font-size: var(--text-md); color: var(--text); line-height: 1.5; }
.news-excerpt { font-size: var(--text-base); color: var(--text-sub); margin-top: var(--sp-1); line-height: 1.6; }

/* ════════════════════════════════════════
   13. RESPONSIVE
════════════════════════════════════════ */
@media (max-width: 768px) {
  .site-header { display: none !important; }
  .mobile-header { display: flex !important; }
  .site-main { padding-top: var(--header-h); }
  .page-window {
    margin: 0; width: 100%; border-radius: 0;
    min-height: calc(100vh - var(--header-h));
    border-left: none; border-right: none; border-top: none;
    margin-bottom: 0;
  }
  .win-body { padding: var(--sp-4) var(--sp-4); }
  .ch-card { flex-direction: column; }
  .ch-thumb-col { flex: none; border-right: none; border-bottom: 0.5px solid var(--border-lt); }
  .video-thumb { width: 96px; height: 54px; }
  .scroll-top { bottom: 16px; right: 16px; }
}
@media (min-width: 769px) {
  .mobile-header, .mobile-drawer, .mobile-drawer-overlay { display: none !important; }
}




/* キャラがある場合、win-bodyコンテンツを左側に寄せる */

/* ════════════════════════════════════════
   14. PAGE LOADER
   既存HPと同仕様: ウィンドウ枠内でSVG✮がバウンス、
   JS(DOMContentLoaded + 600ms)でopacity:0 にフェード
════════════════════════════════════════ */
.site-loader {
  position: absolute;
  inset: 0;
  background: var(--bg-win);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  transition: opacity 0.5s ease;
  border-radius: inherit;
}
.site-loader.hidden {
  opacity: 0;
  pointer-events: none;
}
.site-loader-star {
  width: 40px;
  height: 40px;
  animation: loaderBounce 0.7s ease-in-out infinite alternate;
}
@keyframes loaderBounce {
  from { transform: translateY(-10px) rotate(0deg); }
  to   { transform: translateY(10px)  rotate(30deg); }
}


/* ════════════════════════════════════════
   15. CUSTOM CURSOR（✮ + Bezierトレイル）
   PCのみ表示。モバイルは通常カーソル。
════════════════════════════════════════ */
/* ════════════════════════════════════════
   15. CUSTOM CURSOR（✮ + Bezierトレイル）
   タッチデバイスはJS側で制御
════════════════════════════════════════ */
*, *::before, *::after { cursor: none; }
/* ただしモバイル（coarse）は通常カーソルに戻す */
@media (pointer: coarse) {
  *, *::before, *::after { cursor: auto !important; }
  .sw-cursor, .sw-trail { display: none !important; }
}

.sw-cursor {
  position: fixed; top: 0; left: 0;
  width: 16px; height: 16px;
  pointer-events: none; z-index: 99999;
  transform: translate(-50%, -50%);
  transition: transform .08s ease;
  color: var(--accent);
  user-select: none;
}
.sw-cursor.clicking { transform: translate(-50%,-50%) scale(0.75); }

.sw-trail {
  position: fixed; top: 0; left: 0;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  pointer-events: none; z-index: 99998;
  transform: translate(-50%, -50%);
  transition: opacity .4s ease;
}
.sw-trail.visible { opacity: 0.35; }

/* ════════════════════════════════════════
   16. PAGE TRANSITION（ページ遷移フェード）
════════════════════════════════════════ */
.page-window {
  animation: pageEnter .25s ease both;
}
@keyframes pageEnter {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
body.page-leaving .page-window {
  animation: pageLeave .18s ease forwards;
}
@keyframes pageLeave {
  to { opacity: 0; transform: translateY(-4px); }
}

/* ════════════════════════════════════════
   17. FULLSCREEN WINDOW（緑ドットクリック）
════════════════════════════════════════ */
.win-dot.green { cursor: pointer; transition: background .15s; }
.win-dot.green:hover { background: #28c840 !important; }

body.sw-fullscreen .page-window {
  position: fixed !important;
  inset: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  border-radius: 0 !important;
  z-index: 1000;
  animation: fsEnter .22s ease both;
}
@keyframes fsEnter {
  from { opacity: .6; transform: scale(.97); }
  to   { opacity: 1; transform: scale(1); }
}
/* 全画面中はヘッダー・フッター非表示 */
body.sw-fullscreen .site-header,
body.sw-fullscreen .site-footer { opacity: 0; pointer-events: none; }

/* 全画面中の緑ドット: 戻るアイコン */
body.sw-fullscreen .win-dot.green::after {
  content: '×';
  position: absolute;
  font-size: 8px;
  color: rgba(0,0,0,.5);
  line-height: 10px;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: center;
}
body.sw-fullscreen .win-dot.green { position: relative; }

/* ════════════════════════════════════════
   18. SPLASH SCREEN（スプラッシュ画面）
   カスタマイザーON/OFFで表示切替
════════════════════════════════════════ */
.sw-splash {
  position: fixed; inset: 0; z-index: 99990;
  background: var(--bg-desk);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px;
  animation: splashFade .5s ease 1.6s forwards;
}
.sw-splash-star {
  font-size: 36px; color: var(--accent);
  animation: splashStar .9s cubic-bezier(.22,.68,0,1.4) both;
}
.sw-splash-logo {
  font-family: var(--font-title);
  font-size: var(--text-2xl);
  color: var(--text);
  opacity: 0;
  animation: splashLogo .4s ease .5s forwards;
}
.sw-splash-sub {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: .12em;
  opacity: 0;
  animation: splashLogo .4s ease .75s forwards;
}
@keyframes splashStar {
  0%   { transform: translateY(-24px) rotate(-20deg) scale(.6); opacity: 0; }
  60%  { transform: translateY(4px)   rotate(10deg)  scale(1.1); opacity: 1; }
  100% { transform: translateY(0)     rotate(0deg)   scale(1);   opacity: 1; }
}
@keyframes splashLogo {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes splashFade {
  to { opacity: 0; pointer-events: none; visibility: hidden; }
}

/* ════════════════════════════════════════
   19. COLOR PRESETS（カラーテーマプリセット）
════════════════════════════════════════ */
/* mint（デフォルト）はCSS変数のまま */
body.sw-theme-rose {
  --accent: #E8A0A0;
  --accent-dim: rgba(232,160,160,0.12);
  --accent-border: rgba(232,160,160,0.40);
}
body.sw-theme-amber {
  --accent: #D4A84B;
  --accent-dim: rgba(212,168,75,0.12);
  --accent-border: rgba(212,168,75,0.40);
}
body.sw-theme-slate {
  --accent: #8BA5C4;
  --accent-dim: rgba(139,165,196,0.12);
  --accent-border: rgba(139,165,196,0.40);
}
body.sw-theme-lavender {
  --accent: #B8A0D4;
  --accent-dim: rgba(184,160,212,0.12);
  --accent-border: rgba(184,160,212,0.40);
}

/* ════════════════════════════════════════
   20. RESPONSIVE 強化
   xs: ~480px / sm: ~768px / md: ~1024px
════════════════════════════════════════ */

/* ── xs: スマートフォン縦向き ── */
@media (max-width: 480px) {
  :root {
    --text-xs:   9px;
    --text-sm:   10px;
    --text-base: 12px;
    --text-md:   13px;
    --sp-4: 12px;
    --sp-6: 16px;
  }
  .page-window {
    border-radius: 0;
    margin: 0;
    width: 100%;
  }
  .win-titlebar { padding: 0 10px; }
  .win-title { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .win-body { padding: 16px 14px; }

  /* フッター: footer-inner で制御するため個別スタイル不要 */

  /* ヘッダーロゴ縮小 */
  .mobile-header { padding: 0 14px; }
}

/* ── sm: タブレット縦向き ── */
@media (min-width: 481px) and (max-width: 768px) {
  .page-window {
    margin: 12px auto;
    width: calc(100% - 24px);
    border-radius: var(--r-lg);
  }
  .win-body { padding: var(--sp-5) 64px; }
}

/* ── md: タブレット横向き〜小デスクトップ ── */
@media (min-width: 769px) and (max-width: 1024px) {
  .page-window {
    margin: var(--sp-5) auto;
    width: calc(100% - 40px);
    max-width: var(--win-max-w);
  }
}

/* ── lg: 大デスクトップ ── */
@media (min-width: 1400px) {
  :root { --win-max-w: 1000px; --content-max: 800px; }
}

/* モバイル: スプラッシュの文字サイズ調整 */
@media (max-width: 480px) {
  .sw-splash-logo { font-size: var(--text-xl); }
}

/* ── WP custom-logo-link のサイズ制御 ── */
.custom-logo-link {
  display: flex; align-items: center;
  line-height: 1;
}
.custom-logo-link img {
  height: 28px !important;
  width: auto !important;
  max-width: 160px !important;
  object-fit: contain;
}
.mobile-header-logo .custom-logo-link img {
  height: 26px !important;
  max-width: 130px !important;
}


/* ════════════════════════════════════════
   21. BLANK PAGE（ウィンドウなしテンプレート）
════════════════════════════════════════ */
.blank-page {
  min-height: calc(100vh - var(--header-h));
  padding-top: var(--header-h);
}

/* ════════════════════════════════════════
   22. WPブロック補正
════════════════════════════════════════ */

/* 「横並び」ブロックに .swb-split-layout クラスを付けたとき上揃えになる */
.swb-split-layout.wp-block-group,
.swb-split-layout {
  display: flex !important;
  align-items: flex-start !important;
  gap: 24px;
}

/* キャラ画像を横並びで使う場合のはみ出し制御 */
.swb-split-layout img,
.swb-split-layout .swb-char-video-wrap {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .swb-split-layout {
    flex-direction: column !important;
  }
}

/* ════════════════════════════════════════
   23. アーカイブページ
════════════════════════════════════════ */
.archive-title {
  font-family: var(--font-title, 'Syne', sans-serif);
  font-size: 22px;
  color: var(--text);
  margin-bottom: 8px;
}
.archive-desc {
  font-family: var(--font-mono, 'Fira Mono', monospace);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.news-empty {
  font-family: var(--font-mono, 'Fira Mono', monospace);
  font-size: 12px;
  color: var(--text-muted);
}
.news-pagination {
  margin-top: 24px;
}

/* ════════════════════════════════════════
   24. WPブロック幅制御
   win-body内の全ブロック要素を--content-maxで揃える
════════════════════════════════════════ */

/* win-body直下のWPブロックをcontent-max幅に制限 */
.win-body > *,
.win-body > .wp-block,
.win-body > .wp-content > * {
  max-width: var(--content-max);
  box-sizing: border-box;
}

/* wide・full alignはウィンドウ幅まで広げる */
.win-body > .alignwide,
.win-body > .wp-block.alignwide,
.win-body > .wp-content > .alignwide {
  max-width: 100%;
}
.win-body > .alignfull,
.win-body > .wp-block.alignfull,
.win-body > .wp-content > .alignfull {
  max-width: 100%;
  margin-left: -120px;
  margin-right: -120px;
}
@media (max-width: 1200px) {
  .win-body > .alignfull,
  .win-body > .wp-block.alignfull,
  .win-body > .wp-content > .alignfull {
    margin-left: calc(-1 * var(--sp-4, 24px));
    margin-right: calc(-1 * var(--sp-4, 24px));
  }
}
@media (max-width: 768px) {
  .win-body > .alignfull,
  .win-body > .wp-block.alignfull,
  .win-body > .wp-content > .alignfull {
    margin-left: -14px;
    margin-right: -14px;
  }
}

/* ── ステージブロックを含むページ: 上余白を全て打ち消す ── */

/* 1. site-mainのpadding-top（ヘッダー分）を打ち消す */
body.has-stage-page .site-main {
  padding-top: 0 !important;
}

/* 2. page-windowのmargin-topを打ち消す */
body.has-stage-page .page-window {
  margin-top: 0 !important;
}

/* 3. win-bodyのpadding-topを打ち消す */
body.has-stage-page .win-body {
  padding-top: 0 !important;
}

/* 4. wp-contentのmargin/paddingを打ち消す */
body.has-stage-page .wp-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* :has() モダンブラウザフォールバック */
body:has(.swb-stage-wrap) .site-main { padding-top: 0 !important; }
body:has(.swb-stage-wrap) .page-window { margin-top: 0 !important; }
body:has(.swb-stage-wrap) .win-body { padding-top: 0 !important; }
body:has(.swb-stage-wrap) .wp-content { margin-top: 0 !important; padding-top: 0 !important; }

/* ロゴ1枚のとき: 2カラム維持、ロゴを中央寄せ */
.footer-inner.footer-logos-single .footer-logos-row { align-items: center; justify-content: center; }

/* ロゴなしのとき: サイト名テキストを表示 */
.footer-site-name {
  font-family: var(--font-mono, 'Fira Mono', monospace);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted, #9aa0ab);
  letter-spacing: .06em;
}