/*
Theme Name: Lightning Child
Theme URI: 
Template: lightning
Description: 
Author: 
Tags: 
Version: 0.6.0
*/

/* =========================================
   SMY common template refresh
   非TOPページ共通
   ========================================= */

body:not(.home) {
  background: #050505 !important;
  color: #ffffff;
  font-family: "Helvetica Neue", "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
}

/* 背景画像(SMY)を消す */
body:not(.home).custom-background {
  background-image: none !important;
  background-color: #050505 !important;
}

/* 旧FLSヘッダー / ページヘッダーを消す */
body:not(.home) #site-header,
body:not(.home) .site-header,
body:not(.home) .header-top,
body:not(.home) .site-header-container,
body:not(.home) .page-header,
body:not(.home) .page-header-inner,
body:not(.home) .page-header-title,
body:not(.home) .page-header-sub-title {
  display: none !important;
}

/* 共通ヘッダー */
body:not(.home) .smy-sub-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(5, 5, 5, 0.78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

body:not(.home) .smy-sub-header__inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

body:not(.home) .smy-sub-header__brand {
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.18em;
  white-space: nowrap;
}

body:not(.home) .smy-sub-header__nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

body:not(.home) .smy-sub-header__nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  color: #ffffff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  transition: transform .25s ease, border-color .25s ease, background .25s ease, opacity .25s ease;
}

body:not(.home) .smy-sub-header__nav a:hover {
  transform: translateY(-2px);
  border-color: rgba(123,130,255,0.45);
  background: rgba(255,255,255,0.08);
  opacity: .98;
}

/* 本文全体の上余白 */
body:not(.home) .site-body-container,
body:not(.home) .site-body-container.container,
body:not(.home) .site-body,
body:not(.home) .siteContent,
body:not(.home) .main-section,
body:not(.home) .entry {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body:not(.home) .entry-bodybody,
body:not(.home) .entry-header,
body:not(.home) .member-content,
body:not(.home) .member-nav,
body:not(.home) .discography-body,
body:not(.home) .schedule-thumbnail,
body:not(.home) .post-list,
body:not(.home) .member-list {
  width: min(1200px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

/* カード型の見た目 */
body:not(.home) .entry-header,
body:not(.home) .page .entry-bodybody,
body:not(.home) .single-news .entry-bodybody,
body:not(.home) .single-media-topics .entry-bodybody,
body:not(.home) .single-discography .discography-body,
body:not(.home) .single-member .member-content,
body:not(.home) .single-member .member-nav,
body:not(.home) .page-id-0 .entry-bodybody {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 28px;
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 50px rgba(0,0,0,0.24);
}

/* 汎用本文カード */
body:not(.home) .page .entry-bodybody,
body:not(.home) .single-news .entry-bodybody,
body:not(.home) .single-media-topics .entry-bodybody {
  padding: 32px;
  margin-top: 28px;
  margin-bottom: 28px;
}

/* 概要ページのような通常本文 */
body:not(.home) .entry-bodybody p,
body:not(.home) .entry-bodybody li {
  color: rgba(255,255,255,0.86);
  line-height: 1.9;
  font-size: 15px;
}

/* 見出し */
body:not(.home) .entry-bodybody h1,
body:not(.home) .entry-bodybody h2,
body:not(.home) .entry-bodybody h3,
body:not(.home) .entry-header h1,
body:not(.home) .member-name {
  color: #ffffff;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

/* MEMBER 詳細 */
body:not(.home) .single-member .member-content {
  display: grid;
  grid-template-columns: minmax(280px, 520px) 1fr;
  gap: 32px;
  padding: 28px;
  margin-top: 28px;
  margin-bottom: 24px;
}

body:not(.home) .single-member .member-image img {
  display: block;
  width: 100%;
  border-radius: 22px;
  object-fit: cover;
}

body:not(.home) .single-member .member-text {
  min-width: 0;
}

body:not(.home) .single-member .member-name {
  font-size: clamp(34px, 4vw, 56px);
  margin: 0 0 20px;
}

body:not(.home) .single-member .member-profile table {
  width: 100%;
  border-collapse: collapse;
}

body:not(.home) .single-member .member-profile td {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.9);
  vertical-align: top;
}

body:not(.home) .single-member .member-profile td:first-child {
  width: 132px;
  color: rgba(255,255,255,0.62);
}

body:not(.home) .single-member .member-sns {
  display: flex;
  gap: 14px;
  margin-top: 20px;
}

body:not(.home) .single-member .member-sns__item img {
  width: 28px;
  height: 28px;
  display: block;
}

body:not(.home) .single-member .member-works {
  margin-top: 28px;
  color: rgba(255,255,255,0.86);
  line-height: 1.9;
}

/* MEMBER 一覧や関連記事のカード感 */
body:not(.home) .member-list,
body:not(.home) .member-nav ul,
body:not(.home) .post-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 20px;
}

body:not(.home) .member-nav ul {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}

body:not(.home) .member-nav li,
body:not(.home) .member-list__item,
body:not(.home) .vk_post {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}

body:not(.home) .member-nav li:hover,
body:not(.home) .member-list__item:hover,
body:not(.home) .vk_post:hover {
  transform: translateY(-4px);
  border-color: rgba(123,130,255,0.45);
  background: rgba(255,255,255,0.06);
}

body:not(.home) .member-nav a,
body:not(.home) .member-list__link {
  display: block;
  color: #ffffff;
  text-decoration: none;
}

body:not(.home) .member-nav img,
body:not(.home) .member-list__image img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

body:not(.home) .member-nav li a,
body:not(.home) .member-list__name {
  padding: 18px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

/* NEWS系単一記事のヘッダー */
body:not(.home) .entry-header {
  padding: 28px 32px;
  margin-top: 28px;
}

body:not(.home) .entry-header__date,
body:not(.home) .entry-header__category-item,
body:not(.home) .entry-header__member-item {
  color: rgba(255,255,255,0.65);
}

body:not(.home) .entry-header__title h1 {
  margin: 10px 0 0;
  font-size: clamp(30px, 4.2vw, 52px);
}

/* BACKボタン */
body:not(.home) .entry-footer {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto 40px;
}

body:not(.home) .entry-footer__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  padding: 14px 22px;
  border-radius: 999px;
  text-decoration: none;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

/* レスポンシブ */
@media (max-width: 900px) {
  body:not(.home) .smy-sub-header__inner {
    width: calc(100% - 24px);
    min-height: auto;
    padding: 12px 0;
    flex-direction: column;
    align-items: stretch;
  }

  body:not(.home) .smy-sub-header__brand {
    text-align: center;
  }

  body:not(.home) .smy-sub-header__nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 100%;
  }

  body:not(.home) .smy-sub-header__nav a {
    min-width: 0;
    width: 100%;
  }

  body:not(.home) .single-member .member-content {
    grid-template-columns: 1fr;
  }

  body:not(.home) .member-nav ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  body:not(.home) .entry-header,
  body:not(.home) .page .entry-bodybody,
  body:not(.home) .single-news .entry-bodybody,
  body:not(.home) .single-media-topics .entry-bodybody,
  body:not(.home) .single-discography .discography-body,
  body:not(.home) .single-member .member-content,
  body:not(.home) .single-member .member-nav {
    padding: 20px;
    border-radius: 20px;
  }

  body:not(.home) .entry-bodybody,
  body:not(.home) .entry-header,
  body:not(.home) .member-content,
  body:not(.home) .member-nav,
  body:not(.home) .discography-body,
  body:not(.home) .schedule-thumbnail,
  body:not(.home) .post-list,
  body:not(.home) .member-list {
    width: calc(100% - 20px);
  }

  body:not(.home) .smy-sub-header__nav {
    grid-template-columns: 1fr;
  }

  body:not(.home) .member-nav ul {
    grid-template-columns: 1fr;
  }

  body:not(.home) .single-member .member-name {
    font-size: 32px;
  }

  body:not(.home) .entry-header__title h1 {
    font-size: 30px;
  }
}

/* =========================================
   SMY common footer / mobile nav fix
   ========================================= */

/* 旧フッターを消す */
.site-body-bottom,
.site-footer {
  display: none !important;
}

/* TOPに残っている独自フッターも消して共通化 */
body.page-id-1168 .smy-footer {
  display: none !important;
}

/* PCでは旧ハンバーガーを非表示、スマホだけ表示 */
@media (min-width: 992px) {
  body.device-pc #vk-mobile-nav-menu-btn,
  body.device-pc #vk-mobile-nav {
    display: none !important;
  }
}

/* 共通フッター */
.smy-global-footer {
  position: relative;
  z-index: 20;
  margin-top: 56px;
  padding: 28px 0 40px;
  background: transparent;
}

.smy-global-footer__inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 24px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(14px);
  text-align: center;
}

.smy-global-footer__sns {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.smy-global-footer__sns a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

.smy-global-footer__sns a:hover {
  transform: translateY(-2px);
  border-color: rgba(123,130,255,0.45);
  background: rgba(255,255,255,0.08);
}

.smy-global-footer__sns img {
  width: 22px;
  height: 22px;
  display: block;
}

.smy-global-footer__copy {
  margin: 0;
  color: rgba(255,255,255,0.72);
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: 1.8;
}

@media (max-width: 767px) {
  .smy-global-footer {
    margin-top: 36px;
    padding: 20px 0 28px;
  }

  .smy-global-footer__inner {
    width: calc(100% - 20px);
    padding: 20px 16px;
    border-radius: 18px;
  }

  .smy-global-footer__sns {
    gap: 12px;
    margin-bottom: 14px;
  }

  .smy-global-footer__sns a {
    width: 40px;
    height: 40px;
  }

  .smy-global-footer__copy {
    font-size: 11px;
    line-height: 1.7;
  }
}
/* =========================================
   SMY custom mobile header + member archive grid
   ========================================= */

/* 旧Lightningヘッダー / 旧モバイルナビを完全停止 */
body:not(.home) #site-header,
body:not(.home) #vk-mobile-nav-menu-btn,
body:not(.home) #vk-mobile-nav,
body:not(.home) .page-header,
body:not(.home) #breadcrumb {
  display: none !important;
}

/* 共通ヘッダー */
body:not(.home) .smy-sub-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(5, 5, 5, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

body:not(.home) .smy-sub-header__inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

body:not(.home) .smy-sub-header__brand {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.18em;
  white-space: nowrap;
}

body:not(.home) .smy-sub-header__nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

body:not(.home) .smy-sub-header__nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

body:not(.home) .smy-sub-header__nav a:hover {
  transform: translateY(-2px);
  border-color: rgba(123,130,255,0.45);
  background: rgba(255,255,255,0.08);
}

/* SMY独自ハンバーガー */
body:not(.home) .smy-sub-header__toggle {
  display: none;
  position: relative;
  width: 48px;
  height: 48px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

body:not(.home) .smy-sub-header__toggle span {
  position: absolute;
  left: 10px;
  width: 28px;
  height: 2px;
  background: #fff;
  border-radius: 999px;
  transition: transform .25s ease, opacity .25s ease, top .25s ease;
}

body:not(.home) .smy-sub-header__toggle span:nth-child(1) { top: 15px; }
body:not(.home) .smy-sub-header__toggle span:nth-child(2) { top: 23px; }
body:not(.home) .smy-sub-header__toggle span:nth-child(3) { top: 31px; }

body:not(.home) .smy-sub-header__toggle.is-open span:nth-child(1) {
  top: 23px;
  transform: rotate(45deg);
}
body:not(.home) .smy-sub-header__toggle.is-open span:nth-child(2) {
  opacity: 0;
}
body:not(.home) .smy-sub-header__toggle.is-open span:nth-child(3) {
  top: 23px;
  transform: rotate(-45deg);
}

/* モバイルメニュー */
body:not(.home) .smy-mobile-nav[hidden] {
  display: none !important;
}

body:not(.home) .smy-mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(14px);
  padding: 88px 20px 24px;
}

body:not(.home) .smy-mobile-nav__panel {
  width: min(720px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

body:not(.home) .smy-mobile-nav__panel a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

body.smy-nav-open {
  overflow: hidden;
}

/* MEMBER一覧：1列崩れ修正 */
body.post-type-archive-member .post-list.vk_posts {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
  width: min(1200px, calc(100% - 32px));
  margin: 28px auto 0;
}

body.post-type-archive-member .post-list.vk_posts > .vk_post {
  width: auto !important;
  margin: 0 !important;
  float: none !important;
}

body.post-type-archive-member .member-list__item {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}

body.post-type-archive-member .member-list__item:hover {
  transform: translateY(-4px);
  border-color: rgba(123,130,255,0.45);
  background: rgba(255,255,255,0.06);
}

body.post-type-archive-member .member-list__link {
  display: block;
  color: #fff;
  text-decoration: none;
}

body.post-type-archive-member .member-list__image img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

body.post-type-archive-member .member-list__name {
  margin: 0;
  padding: 18px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* タブレット */
@media (max-width: 1100px) {
  body.post-type-archive-member .post-list.vk_posts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* スマホ */
@media (max-width: 767px) {
  body:not(.home) .smy-sub-header__inner {
    width: calc(100% - 20px);
    min-height: 64px;
  }

  body:not(.home) .smy-sub-header__nav {
    display: none;
  }

  body:not(.home) .smy-sub-header__toggle {
    display: block;
  }

  body.post-type-archive-member .post-list.vk_posts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    width: calc(100% - 20px);
  }

  body.post-type-archive-member .member-list__name {
    padding: 14px;
    font-size: 16px;
  }
}

@media (max-width: 520px) {
  body.post-type-archive-member .post-list.vk_posts {
    grid-template-columns: 1fr;
  }
}

/* =========================
   SMY header final override
   ========================= */

/* 旧Lightningヘッダー/旧モバイルナビを完全停止 */
body:not(.home) #site-header,
body:not(.home) #vk-mobile-nav-menu-btn,
body:not(.home) #vk-mobile-nav,
body:not(.home) .page-header,
body:not(.home) #breadcrumb {
  display: none !important;
}

/* ヘッダー固定 */
body:not(.home) .smy-sub-header {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background: rgba(5, 5, 5, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* 本文がヘッダーに潜らないように */
body:not(.home) {
  padding-top: 76px;
}

body:not(.home) .smy-sub-header__inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

body:not(.home) .smy-sub-header__brand {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.18em;
  white-space: nowrap;
}

/* PCナビ */
body:not(.home) .smy-sub-header__nav {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

body:not(.home) .smy-sub-header__nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

/* 独自ハンバーガー */
body:not(.home) .smy-sub-header__toggle {
  display: none;
  position: relative;
  width: 46px;
  height: 46px;
  margin-left: auto;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  z-index: 10001;
}

body:not(.home) .smy-sub-header__toggle span {
  position: absolute;
  left: 9px;
  width: 28px;
  height: 2px;
  background: #fff;
  border-radius: 999px;
  transition: transform .25s ease, opacity .25s ease, top .25s ease;
}

body:not(.home) .smy-sub-header__toggle span:nth-child(1) { top: 14px; }
body:not(.home) .smy-sub-header__toggle span:nth-child(2) { top: 22px; }
body:not(.home) .smy-sub-header__toggle span:nth-child(3) { top: 30px; }

body:not(.home) .smy-sub-header__toggle.is-open span:nth-child(1) {
  top: 22px;
  transform: rotate(45deg);
}
body:not(.home) .smy-sub-header__toggle.is-open span:nth-child(2) {
  opacity: 0;
}
body:not(.home) .smy-sub-header__toggle.is-open span:nth-child(3) {
  top: 22px;
  transform: rotate(-45deg);
}

/* モバイルメニュー */
body:not(.home) .smy-mobile-nav[hidden] {
  display: none !important;
}

body:not(.home) .smy-mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0,0,0,0.94);
  backdrop-filter: blur(16px);
  padding: 96px 20px 24px;
}

body:not(.home) .smy-mobile-nav__panel {
  width: min(720px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

body:not(.home) .smy-mobile-nav__panel a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 62px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

body.smy-nav-open {
  overflow: hidden;
}

/* MEMBER一覧をPCで複数列化 */
body.post-type-archive-member .post-list.vk_posts {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  width: min(1200px, calc(100% - 32px));
  margin: 28px auto 0;
  align-items: start;
}

body.post-type-archive-member .post-list.vk_posts > .vk_post {
  width: auto !important;
  margin: 0 !important;
  float: none !important;
}

body.post-type-archive-member .member-list__item,
body.post-type-archive-member .vk_post {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
}

body.post-type-archive-member .member-list__image img,
body.post-type-archive-member .vk_post img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

/* タブレット */
@media (max-width: 1100px) {
  body.post-type-archive-member .post-list.vk_posts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* スマホ */
@media (max-width: 767px) {
  body:not(.home) {
    padding-top: 68px;
  }

  body:not(.home) .smy-sub-header__inner {
    width: calc(100% - 20px);
    min-height: 68px;
    gap: 12px;
  }

  body:not(.home) .smy-sub-header__brand {
    font-size: 12px;
    letter-spacing: 0.16em;
  }

  body:not(.home) .smy-sub-header__nav {
    display: none !important;
  }

  body:not(.home) .smy-sub-header__toggle {
    display: block;
  }

  body.post-type-archive-member .post-list.vk_posts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    width: calc(100% - 20px);
  }
}

@media (max-width: 520px) {
  body.post-type-archive-member .post-list.vk_posts {
    grid-template-columns: 1fr;
  }
}
/* =========================
   SMY mobile header final fix
   ========================= */

/* 旧ヘッダー・旧モバイルナビを確実に止める */
body:not(.home) #site-header,
body:not(.home) #vk-mobile-nav-menu-btn,
body:not(.home) #vk-mobile-nav,
body:not(.home) .page-header,
body:not(.home) #breadcrumb {
  display: none !important;
}

/* ヘッダー本体 */
body:not(.home) .smy-sub-header {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.96) !important;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* 本文がヘッダーに潜らないように */
body:not(.home) {
  padding-top: 72px !important;
}

/* ヘッダー内レイアウト */
body:not(.home) .smy-sub-header__inner {
  position: relative;
  width: min(1200px, calc(100% - 24px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ロゴ文字 */
body:not(.home) .smy-sub-header__brand {
  color: #fff !important;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1;
}

/* PCでは通常ナビ表示 */
body:not(.home) .smy-sub-header__nav {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

body:not(.home) .smy-sub-header__nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

/* ハンバーガー本体 */
body:not(.home) .smy-sub-header__toggle {
  display: none;
  position: absolute !important;
  right: 0 !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 46px;
  height: 46px;
  border: 0;
  background: transparent !important;
  padding: 0;
  cursor: pointer;
  z-index: 10002;
}

/* ハンバーガー線を白で強制 */
body:not(.home) .smy-sub-header__toggle span {
  position: absolute;
  left: 9px;
  width: 28px;
  height: 2px;
  background: #ffffff !important;
  opacity: 1 !important;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.02);
  transition: transform .25s ease, opacity .25s ease, top .25s ease;
}

body:not(.home) .smy-sub-header__toggle span:nth-child(1) { top: 14px; }
body:not(.home) .smy-sub-header__toggle span:nth-child(2) { top: 22px; }
body:not(.home) .smy-sub-header__toggle span:nth-child(3) { top: 30px; }

body:not(.home) .smy-sub-header__toggle.is-open span:nth-child(1) {
  top: 22px;
  transform: rotate(45deg);
}
body:not(.home) .smy-sub-header__toggle.is-open span:nth-child(2) {
  opacity: 0;
}
body:not(.home) .smy-sub-header__toggle.is-open span:nth-child(3) {
  top: 22px;
  transform: rotate(-45deg);
}

/* モバイルメニュー */
body:not(.home) .smy-mobile-nav[hidden] {
  display: none !important;
}

body:not(.home) .smy-mobile-nav {
  position: fixed !important;
  inset: 0;
  z-index: 10001;
  background: rgba(0, 0, 0, 0.98) !important;
  backdrop-filter: blur(10px);
  padding: 88px 20px 24px;
}

/* メニュー面を見やすく */
body:not(.home) .smy-mobile-nav__panel {
  width: min(720px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

body:not(.home) .smy-mobile-nav__panel a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 62px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.08) !important;
  color: #ffffff !important;
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

/* 開いている時の背景スクロール停止 */
body.smy-nav-open {
  overflow: hidden;
}

/* スマホ時 */
@media (max-width: 767px) {
  body:not(.home) {
    padding-top: 68px !important;
  }

  body:not(.home) .smy-sub-header__inner {
    width: calc(100% - 20px);
    min-height: 68px;
    justify-content: center;
  }

  body:not(.home) .smy-sub-header__brand {
    font-size: 12px;
    letter-spacing: 0.16em;
  }

  body:not(.home) .smy-sub-header__nav {
    display: none !important;
  }

  body:not(.home) .smy-sub-header__toggle {
    display: block !important;
  }
}

/* PC時はハンバーガー非表示 */
@media (min-width: 768px) {
  body:not(.home) .smy-mobile-nav {
    display: none !important;
  }

  body:not(.home) .smy-sub-header__toggle {
    display: none !important;
  }
}
/* =========================
   SMY mobile menu visibility fix
   ========================= */

/* ハンバーガーボタンを白く・見やすくする */
body:not(.home) .smy-sub-header__toggle {
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.16) !important;
  border-radius: 999px !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35) !important;
}

body:not(.home) .smy-sub-header__toggle span {
  background: #ffffff !important;
  opacity: 1 !important;
  height: 2.5px !important;
  box-shadow: 0 0 8px rgba(255,255,255,0.18) !important;
}

/* 開閉時の×も白で見やすく */
body:not(.home) .smy-sub-header__toggle.is-open span:nth-child(1),
body:not(.home) .smy-sub-header__toggle.is-open span:nth-child(3) {
  background: #ffffff !important;
}

/* メニュー全体の背景をほぼ黒で固定 */
body:not(.home) .smy-mobile-nav {
  background: rgba(5,5,5,0.98) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
}

/* メニュー本体をカード化して不透明寄りにする */
body:not(.home) .smy-mobile-nav__panel {
  position: relative;
  z-index: 2;
  background: rgba(10,10,10,0.96) !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  border-radius: 24px !important;
  padding: 16px !important;
  box-shadow: 0 24px 60px rgba(0,0,0,0.55) !important;
}

/* メニュー項目も透明すぎないように */
body:not(.home) .smy-mobile-nav__panel a {
  background: rgba(255,255,255,0.08) !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  color: #ffffff !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04) !important;
}

/* スマホ時だけボタンサイズを少し強調 */
@media (max-width: 767px) {
  body:not(.home) .smy-sub-header__toggle {
    width: 48px !important;
    height: 48px !important;
  }

  body:not(.home) .smy-sub-header__toggle span:nth-child(1) {
    top: 14px !important;
  }

  body:not(.home) .smy-sub-header__toggle span:nth-child(2) {
    top: 22px !important;
  }

  body:not(.home) .smy-sub-header__toggle span:nth-child(3) {
    top: 30px !important;
  }
}