/* =========================================================
   Design Tokens — Apple-inspired
   ========================================================= */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --bg-elevated: #fbfbfd;
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #86868b;
  --border: #d2d2d7;
  --border-soft: #e8e8ed;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.06);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.08);
  --font-sans: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  --font-mono: 'Fira Code', 'SF Mono', Menlo, monospace;
  --easing: cubic-bezier(0.42, 0, 0.58, 1);
  --easing-out: cubic-bezier(0.16, 1, 0.3, 1);
  --notice-h: 0px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}

/* =========================================================
   Notice banner
   ========================================================= */
.notice-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  padding: 10px 22px;
  font-size: 13px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.notice-banner a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}
body.has-notice { --notice-h: 40px; }

/* =========================================================
   Nav
   ========================================================= */
.nav {
  position: fixed;
  top: var(--notice-h);
  left: 0;
  right: 0;
  height: 48px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  z-index: 1000;
  transition: background 0.3s var(--easing), top 0.3s var(--easing);
}
.nav-inner {
  max-width: 980px;
  margin: 0 auto;
  height: 100%;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
  z-index: 1002;
}
.nav-logo .dot { color: var(--text-tertiary); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 1003;
  position: relative;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-toggle.active span {
  background: var(--text);
}
.nav-toggle.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 12px;
  font-weight: 400;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0;
    transform: translateY(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    overflow: hidden;
  }
  
  .nav-links.active {
    transform: translateY(0);
  }
  
  .nav-links li {
    width: 100%;
    text-align: center;
  }
  
  .nav-links a {
    display: block;
    padding: 0;
    font-size: clamp(20px, 6vw, 28px);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: calc(100vh / 6);
  }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  min-height: calc(100vh - var(--notice-h));
  padding-top: calc(120px + var(--notice-h));
  padding-bottom: 80px;
  padding-left: 22px;
  padding-right: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(180deg, #fbfbfd 0%, #ffffff 100%);
}
.hero-content { max-width: 880px; }
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.8s var(--easing-out) 0.1s forwards;
}

/* =========================================================
   各ページ冒頭の青いラベルを手書きメモ風に（丸ペン風フォント）
   ========================================================= */
.hero-eyebrow,
.diary-eyebrow,
.vlog-eyebrow,
.lab-eyebrow,
.cd-eyebrow,
.page-header .eyebrow,
.ts-hero-eyebrow,
.memo-eyebrow {
  font-family: 'Klee One', var(--font-sans) !important;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
}
.hero h1 {
  font-size: clamp(48px, 9vw, 96px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 1s var(--easing-out) 0.3s forwards;
}
.hero h1 .gradient {
  background: linear-gradient(120deg, #1d1d1f 0%, #6e6e73 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== ヒーロー背景画像（data/home-hero.json で切替） ===== */
.hero.has-bg {
  position: relative;
  background: #000;
  overflow: hidden;
}
.hero.has-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero.has-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, var(--hero-overlay, 0.5));
  z-index: 0;
}
.hero.has-bg .hero-content { position: relative; z-index: 1; }
.hero.has-bg .hero-eyebrow { color: #fff; }
.hero.has-bg .hero-tagline { color: rgba(255, 255, 255, 0.88); }
.hero.has-bg .hobby-suffix { color: rgba(255, 255, 255, 0.88); }
.hero.has-bg h1 .gradient {
  background: none;
  -webkit-text-fill-color: #fff;
  color: #fff;
}
.hero-tagline {
  font-size: clamp(20px, 2.4vw, 28px);
  color: var(--text-secondary);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 1s var(--easing-out) 0.5s forwards;
}
/* hero 内の趣味ローテーター（タグライン直下・控えめサイズ） */
.hero .hero-hobby {
  font-size: clamp(20px, 3vw, 30px);
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 1s var(--easing-out) 0.6s forwards;
}
.hero-meta {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  animation: fadeUp 1s var(--easing-out) 0.7s forwards;
}
.hero-meta .chip {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 980px;
  background: var(--bg-soft);
  color: var(--text-secondary);
  border: 1px solid var(--border-soft);
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   Sections
   ========================================================= */
section { padding: 120px 22px; }
.section-inner { max-width: 980px; margin: 0 auto; padding: 0 22px; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: clamp(18px, 2vw, 22px);
  color: var(--text-secondary);
  font-weight: 400;
  max-width: 640px;
  margin: 0 auto;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--easing-out), transform 0.9s var(--easing-out);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* =========================================================
   About
   ========================================================= */
.about { background: var(--bg-soft); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 880px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}
.about-text h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 24px;
}
.about-text p {
  font-size: 19px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}
.about-code {
  background: #1d1d1f;
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow-lg);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  color: #f5f5f7;
  overflow-x: auto;
}
.about-code .c-key { color: #ff79c6; }
.about-code .c-str { color: #50fa7b; }
.about-code .c-com { color: #6e6e73; }
.about-code .c-num { color: #bd93f9; }

/* =========================================================
   Carousel (Favorites)
   ========================================================= */
.carousel-wrap {
  position: relative;
  margin: 0 -22px;
  padding: 20px 0 60px;
}
.carousel {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 20px max(22px, calc((100vw - 1200px) / 2 + 22px)) 40px;
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }

.card {
  flex: 0 0 auto;
  width: 210px;
  scroll-snap-align: center;
  border-radius: 22px;
  padding: 28px 22px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-soft);
  transition: transform 0.5s var(--easing-out), box-shadow 0.5s var(--easing-out);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  background: var(--bg-elevated);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card-icon { display: none; }
.card-group {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.3;
}
.card-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
}
.card-cta {
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  margin-top: 8px;
}
.card-cta::after {
  content: ' ▶︎';
  transition: transform 0.3s;
  display: inline-block;
}
.card:hover .card-cta::after { transform: translateX(3px); }

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}
.carousel-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--bg-soft);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background 0.2s, transform 0.2s;
}
.carousel-btn:hover { background: var(--border-soft); transform: scale(1.05); }
.carousel-btn:active { transform: scale(0.95); }

/* グループラベル（モーダル内） */
.member-group-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 12px 0 6px;
  border-top: 1px solid var(--border-soft);
  margin-top: 8px;
}
.member-group-label:first-child {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

/* =========================================================
   Modal (member list)
   ========================================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--easing-out);
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.modal {
  background: var(--bg);
  border-radius: 22px;
  padding: 40px 32px;
  max-width: 480px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(20px);
  transition: transform 0.4s var(--easing-out);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--bg-soft);
  cursor: pointer;
  font-size: 18px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.modal-close:hover { background: var(--border-soft); }
.modal-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.modal-title {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}
.member-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  list-style: none;
}
.member-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  transition: background 0.2s;
}
.member-item:hover { background: var(--bg-soft); }
.member-avatar {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
}
.member-avatar img { width: 100%; height: 100%; object-fit: cover; }
.member-name {
  flex: 1;
  font-size: 15px;
  font-weight: 500;
}
.member-sns {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.member-sns a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text-secondary);
  transition: all 0.2s;
}
.member-sns a:hover { background: var(--text); color: var(--bg); transform: scale(1.05); }
.member-sns svg { width: 14px; height: 14px; }

/* =========================================================
   Lives
   ========================================================= */
.lives { background: var(--bg-soft); }
.filter-bar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 48px;
  align-items: center;
}
.filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
.filter-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-right: 4px;
}
.filter-btn {
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 980px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.25s var(--easing);
  white-space: nowrap;
}
.filter-btn:hover { border-color: var(--text); }
.filter-btn.active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.live-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 920px;
  margin: 0 auto;
}
.live-item {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 24px 28px;
  background: var(--bg);
  border-radius: 16px;
  border: 1px solid var(--border-soft);
  transition: all 0.4s var(--easing-out);
  animation: liveFadeIn 0.5s var(--easing-out) backwards;
}
@keyframes liveFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.live-item:hover {
  border-color: var(--border);
  transform: translateX(4px);
}
.live-date {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-tertiary);
  line-height: 1.5;
}
.live-date .session-tag {
  display: inline-block;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--bg-soft);
  color: var(--text-secondary);
  margin-left: 4px;
  font-family: var(--font-sans);
  font-weight: 500;
}
.live-main h3 {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.live-venue {
  font-size: 13px;
  color: var(--text-secondary);
}
.live-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 200px;
}
.live-tag {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 980px;
  background: var(--bg-soft);
  color: var(--text-secondary);
  font-weight: 500;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .live-item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px;
  }
  .live-item:hover { transform: none; }
  .live-tags { justify-content: flex-start; max-width: none; }
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-tertiary);
  font-size: 15px;
}

.see-more {
  text-align: center;
  margin-top: 48px;
}
.see-more a {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 980px;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.25s var(--easing);
}
.see-more a:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* =========================================================
   Hero Banner (Apple iPad-air style — optional, CMS controlled)
   ========================================================= */
/* Hero Banner（新クラス .hb は hero-banner.php 内にインラインで定義） */
.hb {
  margin-top: 0 !important;
}
/* 旧スタイル（使用しないが念のため残す） */
.hero-banner { display: none; }

.hero-banner-image {
  margin-top: 20px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.hero-banner-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* When banner is shown, the inline hero section after it should not occupy 100vh */
.hero-banner + .hero {
  min-height: auto;
  padding-top: 80px;
  padding-bottom: 80px;
}

/* =========================================================
   Footer
   ========================================================= */
/* =========================================================
   SNS Section
   ========================================================= */
.sns-section { background: var(--bg-soft); padding: 100px 22px; }
/* PC：四角いボックス型カード */
.sns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  max-width: 700px;
  margin: 0 auto;
}
.sns-card {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 32px 20px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.22s var(--easing-out), box-shadow 0.22s, border-color 0.22s;
}
.sns-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--sns-color, var(--accent));
}
.sns-card-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  color: var(--sns-color, var(--text));
  display: flex;
  align-items: center;
  justify-content: center;
}
.sns-card-icon svg { width: 100%; height: 100%; }
.sns-card-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  text-align: center;
}
.sns-card-count {
  font-size: 13px;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  white-space: nowrap;
}

/* スマホ：横幅いっぱいの大きな横長ボタンに */
@media (max-width: 768px) {
  .sns-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .sns-card {
    width: 100%;
    flex-direction: row;
    padding: 22px 28px;
    gap: 16px;
    border-radius: 22px;
  }
  .sns-card-icon { width: 30px; height: 30px; }
  .sns-card-name { font-size: 19px; text-align: left; }
  .sns-card-count { font-size: 14px; margin-left: auto; }
}

/* ── 質問箱リンク（SNSの下） ── */
.qbox-wrap {
  max-width: 520px;
  margin: 40px auto 0;
}
.qbox-link {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  border-radius: 22px;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  text-decoration: none;
  transition: transform 0.22s var(--easing-out), box-shadow 0.22s, border-color 0.22s;
}
.qbox-link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}
.qbox-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #0071e3 0%, #af52de 100%);
  color: #fff;
}
.qbox-icon svg { width: 24px; height: 24px; }
.qbox-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.qbox-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}
.qbox-sub {
  font-size: 13px;
  color: var(--text-tertiary);
}
.qbox-arrow {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 20px;
  color: var(--text-tertiary);
  transition: transform 0.22s var(--easing-out), color 0.22s;
}
.qbox-link:hover .qbox-arrow {
  transform: translateX(4px);
  color: var(--accent);
}
@media (max-width: 768px) {
  .qbox-wrap { margin-top: 28px; }
  .qbox-link { padding: 18px 20px; gap: 14px; border-radius: 20px; }
  .qbox-title { font-size: 18px; }
}

/* SNS Modal account list */
.sns-account-list { list-style: none; margin-top: 8px; }
.sns-account-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-soft);
  text-decoration: none;
  color: var(--text);
  transition: color 0.18s;
}
.sns-account-item:last-child a { border-bottom: none; }
.sns-account-item a:hover { color: var(--accent); }
.sns-account-label {
  font-size: 15px;
  font-weight: 500;
  min-width: 110px;
}
.sns-account-handle {
  font-size: 13px;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sns-account-arrow {
  font-size: 14px;
  color: var(--text-tertiary);
  transition: transform 0.18s, color 0.18s;
}
.sns-account-item a:hover .sns-account-arrow {
  transform: translateX(4px);
  color: var(--accent);
}

/* snsModal eyebrow にアイコンを含む場合のスタイル調整 */
#snsModalEyebrow svg {
  width: 14px;
  height: 14px;
  vertical-align: middle;
  margin-right: 4px;
}

footer {
  background: var(--bg);
  padding: 60px 22px 40px;
  border-top: 1px solid var(--border-soft);
}
.footer-inner {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}
.footer-contact {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.footer-contact a {
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s, border-color 0.2s;
}
.footer-contact a:hover { color: var(--text); border-color: var(--text); }
.footer-mono {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}
.footer-copy {
  font-size: 12px;
  color: var(--text-tertiary);
}
.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 24px;
  list-style: none;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }

/* =========================================================
   Live Scene（スライドショー＋統計＋直近ライブ 統合セクション）
   ========================================================= */

/* セクション本体 */
.live-scene {
  position: relative;
  overflow: hidden;
  min-height: auto;
  background: #0d1117; /* フォールバック */
}

/* ── スライドショー背景 ── */
.live-scene-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.live-scene-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}
.live-scene-slide.active { opacity: 1; }
.live-scene-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ── オーバーレイ ── */
.live-scene-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    105deg,
    rgba(0,0,0,0.72) 0%,
    rgba(0,0,0,0.55) 50%,
    rgba(0,0,0,0.68) 100%
  );
}

/* ── コンテンツ全体のラッパー（縦積み：見出し + 2カラムグリッド） ── */
.live-scene-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 48px 70px;
}

/* ── 全幅：見出し・説明文（中央揃え） ── */
.live-scene-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

/* ── 2カラムグリッド：統計＋ボタン ／ 直近3ライブ ── */
.live-scene-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* ── 左：統計・ボタン ── */
.live-scene-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: sceneColIn 0.8s 0.1s var(--easing-out) both;
}

.scene-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.live-scene-title {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.15;
  text-shadow: 0 2px 16px rgba(0,0,0,0.5);
  margin: 0;
}

.live-scene-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.75);
  line-height: 1.75;
  font-weight: 400;
}

/* 統計 */
.live-scene-stats {
  display: flex;
  gap: 36px;
}
.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-num {
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  line-height: 1;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
.stat-label {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* 「全参加履歴を見る」ボタン */
.live-scene-btn {
  display: inline-block;
  align-self: flex-start;
  padding: 13px 28px;
  border: 1.5px solid rgba(255,255,255,0.75);
  border-radius: 980px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(6px);
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.live-scene-btn:hover {
  background: #fff;
  color: #1d1d1f;
  border-color: #fff;
}

/* 右：直近3ライブ */
.live-scene-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: sceneColIn 0.8s 0.2s var(--easing-out) both;
}

.live-scene-recent-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.02em;
  margin: 0;
}

@keyframes sceneColIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.live-scene-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ライブアイテム（ダーク背景向けデザイン） */
.scene-live-item {
  padding: 16px 20px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  backdrop-filter: blur(8px);
  animation: sceneItemIn 0.5s var(--easing-out) backwards;
  transition: background 0.2s;
}
.scene-live-item:hover { background: rgba(255,255,255,0.14); }
@keyframes sceneItemIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.scene-live-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.scene-live-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,0.6);
}
.scene-live-tag {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 980px;
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  white-space: nowrap;
}
.scene-live-title {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  line-height: 1.45;
}
.scene-live-venue {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
}

/* スケルトン（ロード中） */
.scene-live-skeleton {
  height: 74px;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer {
  0%,100% { opacity: 0.5; }
  50%      { opacity: 1; }
}
.scene-live-empty {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 32px 0;
}

/* ── フッター：ドット＋キャプション ── */
.live-scene-footer {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}
.live-scene-dots {
  display: flex;
  gap: 7px;
  pointer-events: all;
}
.scene-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, transform 0.25s;
}
.scene-dot.active { background: #fff; transform: scale(1.3); }
.live-scene-caption {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  max-width: 480px;
  text-align: center;
  padding: 0 16px;
  min-height: 1em; /* テキストなくてもスペース確保 */
}

/* ── レスポンシブ（スマホ：縦積み） ── */
@media (max-width: 860px) {
  .live-scene-inner {
    display: flex;
    flex-direction: column;
    padding: 60px 24px 80px;
    gap: 32px;
  }
  .live-scene-body {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .live-scene-left  { align-items: flex-start; }
  .live-scene-btn   { align-self: stretch; text-align: center; }
  .live-scene-stats { gap: 28px; }
  .stat-num         { font-size: 36px; }
}

/* =========================================================
   HOBBIES SECTION（趣味ローテーター）
   ========================================================= */
.hobbies {
  background: var(--bg);
  padding: 100px 24px 100px;
  position: relative;
}
.hobbies-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.hobby-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 40px;
  text-transform: lowercase;
}
.hobby-row {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 14px;
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.4;
  flex-wrap: nowrap;
  max-width: 100%;
}
.hobby-rotator {
  display: inline-block;
  height: 1.4em;
  overflow: hidden;
  position: relative;
  vertical-align: bottom;
  text-align: right;
}
.hobby-rotator-inner {
  display: flex;
  flex-direction: column;
  transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}
.hobby-item {
  height: 1.4em;
  line-height: 1.4em;
  background: linear-gradient(135deg, #0071e3 0%, #af52de 60%, #ff2d55 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
  font-weight: 700;
}
.hobby-suffix {
  color: var(--text);
  white-space: nowrap;
}

@media (max-width: 760px) {
  .hobbies { padding: 70px 20px 70px; text-align: center; }
  .hobbies-inner { text-align: center; }
  .hobby-eyebrow { text-align: center; margin-bottom: 28px; }
  .hobby-row {
    display: flex;                /* inline-flex を解除して block-level に */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    font-size: 30px;
    line-height: 1.4;
    text-align: center;
  }
  /* ローテーター本体を flex 化して、内側のボックス自体をページ中央に配置 */
  .hobby-rotator {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    text-align: center;
  }
  /* 内側はデフォルトの align-items: stretch のままにして、各項目が同じ幅になり、 */
  /* text-align: center で項目内のテキストも中央に揃う */
  .hobby-rotator-inner {
    align-items: stretch;
  }
  .hobby-item {
    text-align: center;
  }
  .hobby-suffix {
    display: block;
    width: 100%;
    text-align: center;
  }
}