/*
Theme Name: N/LIVE 2026 SAIJO
Theme URI: https://saijo-nlive.base44.app
Author: N/LIVE
Description: N/LIVE 2026 SAIJO のオリジナルテーマ。ブルータリズムと真紅のライブ＆レンタルスペース用。トップページとイベントカレンダー(カスタム投稿)を含みます。
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: nlive
*/

/* ---------- base ---------- */
:root {
  --bg: #0a0a0a;
  --fg: #f2f2f2;
  --crimson: #ff0000;
  --line: #333333;
  --font-display: 'Inter Tight', ui-sans-serif, system-ui, 'Hiragino Sans', 'Noto Sans JP', sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, 'Hiragino Sans', 'Noto Sans JP', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; border: 0 solid rgba(255,255,255,.08); }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font-body); line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; cursor: pointer; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
.nl-site { min-height: 100vh; background: var(--bg); color: var(--fg); }
.font-display { font-family: var(--font-display); letter-spacing: -0.05em; }
.crimson { color: var(--crimson); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- effects ---------- */
.btn-glow {
  position: relative; display: inline-block; text-align: center;
  border: 1px solid rgba(242,242,242,.4); color: var(--fg); background: transparent;
  transition: all .4s cubic-bezier(.23,1,.32,1);
  padding: 16px 32px; font-size: 12px; letter-spacing: .25em;
}
.btn-glow:hover {
  color: var(--crimson); border-color: var(--crimson);
  box-shadow: 0 0 20px rgba(255,0,0,.6), 0 0 40px rgba(255,0,0,.25), 0 0 80px rgba(255,0,0,.15);
}
.btn-glow.sm { padding: 12px 24px; letter-spacing: .2em; }
.link-glow { transition: all .4s cubic-bezier(.23,1,.32,1); }
.link-glow:hover { color: var(--crimson); text-shadow: 0 0 12px rgba(255,0,0,.7); }
.pulse-glow { animation: pulseCrimson 2.4s ease-in-out infinite; }
@keyframes pulseCrimson {
  0%, 100% { box-shadow: 0 0 8px rgba(255,0,0,.3), 0 0 24px rgba(255,0,0,.12); }
  50% { box-shadow: 0 0 24px rgba(255,0,0,.65), 0 0 60px rgba(255,0,0,.3); }
}
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s cubic-bezier(.23,1,.32,1), transform .9s cubic-bezier(.23,1,.32,1); }
.reveal.in-view { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .pulse-glow { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- common blocks ---------- */
.px { padding-left: 24px; padding-right: 24px; }
.eyebrow { font-size: 12px; letter-spacing: .3em; color: var(--crimson); margin-bottom: 16px; }
.section-title { font-family: var(--font-display); letter-spacing: -.05em; font-weight: 700; font-size: 36px; line-height: 1.1; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 48px; }
.muted { color: rgba(255,255,255,.5); }

/* ---------- header ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: all .5s; background: transparent; }
.site-header.scrolled { background: rgba(0,0,0,.8); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,.05); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.header-in { display: flex; align-items: center; justify-content: space-between; padding: 0 24px; height: 80px; }
.header-in .logo img { height: 32px; width: auto; }
.nav-desktop { display: none; align-items: center; gap: 40px; }
.nav-desktop a { font-size: 12px; letter-spacing: .2em; color: rgba(255,255,255,.7); }
.menu-btn { color: #fff; display: block; }
.menu-btn svg, .menu-close svg { display: block; }

.drawer { position: fixed; inset: 0; z-index: 60; transform: translateX(100%); transition: transform .5s; visibility: hidden; }
.drawer.open { transform: none; visibility: visible; }
.drawer-bg { position: absolute; inset: 0; background: #000; }
.drawer-panel { position: absolute; right: 0; top: 0; bottom: 0; width: 100%; background: #0a0a0a; border-left: 1px solid rgba(255,255,255,.05); display: flex; flex-direction: column; justify-content: center; padding: 0 40px; }
.menu-close { position: absolute; top: 32px; right: 32px; }
.drawer-panel a.item { font-family: var(--font-display); letter-spacing: -.05em; font-weight: 700; font-size: 36px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.drawer-panel a.item span { font-size: 14px; color: rgba(255,255,255,.3); margin-right: 16px; letter-spacing: 0; }

/* ---------- hero ---------- */
.hero { position: relative; height: 100vh; min-height: 640px; width: 100%; overflow: hidden; background: #000; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .3; }
.hero-spot { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(600px circle at 50% 50%, rgba(255,0,0,.12), transparent 70%); }
.hero-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 24px; }
.hero-in .kicker { font-size: 12px; letter-spacing: .4em; color: rgba(255,255,255,.5); margin-bottom: 24px; }
.hero-in .logo { width: 280px; max-width: 80vw; height: auto; }
.hero-in .tag { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.hero-in .tag i { display: block; height: 1px; width: 48px; background: rgba(255,255,255,.3); }
.hero-in .tag span { font-size: 14px; letter-spacing: .3em; color: rgba(255,255,255,.7); }
.hero-btns { margin-top: 40px; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.scroll-hint { position: absolute; bottom: 32px; left: 24px; display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.4); font-size: 12px; letter-spacing: .2em; }

/* ---------- manifesto ---------- */
.manifesto { padding: 96px 24px; border-bottom: 1px solid rgba(255,255,255,.05); }
.manifesto .inner { max-width: 72rem; }
.manifesto .eyebrow { margin-bottom: 32px; }
.manifesto .lead { font-family: var(--font-display); letter-spacing: -.05em; font-weight: 700; font-size: 30px; line-height: 1.25; text-wrap: balance; }
.manifesto .lead .dim { color: rgba(255,255,255,.4); }
.manifesto .cols { margin-top: 48px; display: grid; gap: 32px; font-size: 14px; color: rgba(255,255,255,.6); line-height: 1.8; }

/* ---------- space ---------- */
.space { scroll-margin-top: 80px; border-bottom: 1px solid rgba(255,255,255,.05); }
.space-head { padding: 80px 24px; }
.space-head .section-title { font-size: 36px; }
.space-head .hint { font-size: 14px; color: rgba(255,255,255,.5); max-width: 24rem; }
.slits { display: flex; flex-direction: column; height: 640px; }
.slit { position: relative; overflow: hidden; text-align: left; flex: 1; transition: all .7s; }
.slit.active { flex: 2; }
.slit img { width: 100%; height: 100%; object-fit: cover; }
.slit .shade { position: absolute; inset: 0; background: linear-gradient(to top, #000, rgba(0,0,0,.4), transparent); }
.slit .body { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; }
.slit .code { font-size: 12px; letter-spacing: .2em; color: rgba(255,255,255,.4); }
.slit h3 { font-family: var(--font-display); letter-spacing: -.05em; font-weight: 700; font-size: 24px; margin-top: 4px; }
.slit .more { overflow: hidden; max-height: 0; opacity: 0; transition: all .5s; }
.slit.active .more { max-height: 24rem; opacity: 1; margin-top: 16px; }
.slit .more .meta { font-size: 14px; color: rgba(255,255,255,.7); margin-bottom: 16px; }
.slit .tier { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 8px; gap: 12px; }
.slit .tier .l { font-size: 12px; color: rgba(255,255,255,.5); }
.slit .tier .p { font-family: var(--font-display); font-weight: 700; white-space: nowrap; }
.slit .more .btn-glow { margin-top: 24px; }
.slit .detail { margin-top: 8px; display: flex; align-items: center; gap: 4px; font-size: 12px; color: rgba(255,255,255,.4); transition: color .3s; }
.slit.active .detail { display: none; }
.slit:hover .detail { color: var(--crimson); }
.pricelist { padding: 64px 24px; }
.pricelist .cap { font-size: 12px; letter-spacing: .3em; color: rgba(255,255,255,.4); margin-bottom: 32px; }
.price-row { border-top: 1px solid var(--line); padding-top: 24px; display: grid; gap: 16px; margin-bottom: 48px; }
.price-row .code { font-size: 12px; color: rgba(255,255,255,.4); }
.price-row h4 { font-family: var(--font-display); letter-spacing: -.05em; font-weight: 700; font-size: 24px; }
.price-row .info { font-size: 14px; color: rgba(255,255,255,.6); }
.price-row .info .note { margin-top: 8px; font-size: 12px; color: rgba(255,255,255,.4); line-height: 1.7; white-space: normal; }
.price-row .tiers { display: grid; gap: 16px; align-content: start; }
.price-row .tiers .l { font-size: 12px; color: rgba(255,255,255,.4); }
.price-row .tiers .p { font-family: var(--font-display); font-weight: 700; font-size: 20px; margin-top: 4px; }
.space-cta { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 16px; }
.rules { margin-top: 24px; font-size: 12px; color: rgba(255,255,255,.3); line-height: 1.7; }

/* ---------- instagram ---------- */
.feed { scroll-margin-top: 80px; padding: 96px 24px; border-bottom: 1px solid rgba(255,255,255,.05); }
.feed .ig-link { display: flex; align-items: center; gap: 8px; font-size: 14px; color: rgba(255,255,255,.6); }
.feed-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.feed-item { position: relative; display: block; overflow: hidden; aspect-ratio: 3/4; }
.feed-item img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: all .7s; }
.feed-item:hover img { filter: none; transform: scale(1.05); }
.feed-item .cap { position: absolute; inset: 0; background: rgba(0,0,0,.6); opacity: 0; transition: opacity .5s; display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; font-size: 12px; color: rgba(255,255,255,.85); }
.feed-item:hover .cap { opacity: 1; }
.feed-item .ico { position: absolute; top: 12px; right: 12px; color: rgba(255,255,255,.5); transition: color .3s; }
.feed-item:hover .ico { color: var(--crimson); }

/* ---------- footer ---------- */
.site-footer { background: #0a0a0a; border-top: 1px solid rgba(255,255,255,.05); }
.cta-band { display: block; }
.cta-band div { background: #000; border-top: 1px solid rgba(255,0,0,.3); border-bottom: 1px solid rgba(255,0,0,.3); padding: 64px 0; text-align: center; transition: background .5s; }
.cta-band span { font-family: var(--font-display); letter-spacing: -.05em; font-weight: 700; font-size: 36px; color: #fff; transition: color .5s; }
.cta-band:hover div { background: var(--crimson); }
.cta-band:hover span { color: #000; }
.foot-grid { padding: 64px 24px; display: grid; gap: 40px; }
.foot-grid h4 { font-size: 12px; letter-spacing: .2em; color: rgba(255,255,255,.4); margin-bottom: 16px; font-weight: 400; }
.foot-grid .about { color: rgba(255,255,255,.5); font-size: 14px; line-height: 1.8; max-width: 28rem; }
.foot-grid .logo img { height: 48px; width: auto; margin-bottom: 16px; }
.foot-grid address { font-style: normal; font-size: 14px; color: rgba(255,255,255,.7); line-height: 1.8; }
.social { display: flex; gap: 16px; color: rgba(255,255,255,.7); }
.copy { border-top: 1px solid rgba(255,255,255,.05); padding: 24px; font-size: 12px; color: rgba(255,255,255,.3); }

/* ---------- events ---------- */
.events-page { padding-top: 112px; min-height: 100vh; }
.events-hero { padding: 0 24px 48px; border-bottom: 1px solid rgba(255,255,255,.05); }
.events-hero h1 { font-family: var(--font-display); letter-spacing: -.05em; font-weight: 700; font-size: 48px; line-height: 1; }
.events-hero .eyebrow { margin-bottom: 24px; }
.cal-wrap { padding: 48px 16px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; padding: 0 8px; gap: 8px; }
.cal-head .btn-glow { padding: 12px; line-height: 0; }
.cal-head h2 { font-family: var(--font-display); letter-spacing: -.05em; font-weight: 700; font-size: 28px; text-align: center; }
.cal-head h2 span { color: rgba(255,255,255,.4); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.1); }
.cal-grid .wd { background: var(--bg); padding: 12px 0; text-align: center; font-size: 10px; letter-spacing: .2em; color: rgba(255,255,255,.4); }
.cal-grid .cell { background: var(--bg); min-height: 110px; padding: 8px; }
.cal-grid .cell.empty { opacity: .3; }
.cal-grid .num { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: rgba(255,255,255,.7); letter-spacing: -.02em; }
.cal-grid .cell.today .num { color: var(--crimson); }
.cal-grid .evs { margin-top: 4px; display: flex; flex-direction: column; gap: 4px; }
.ev-chip { display: block; width: 100%; text-align: left; font-size: 10px; line-height: 1.25; padding: 4px 6px; background: rgba(255,0,0,.15); border-left: 2px solid var(--crimson); transition: background .3s; }
.ev-chip:hover { background: rgba(255,0,0,.3); }
.ev-chip b { display: block; font-weight: 500; color: rgba(255,255,255,.9); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-chip i { font-style: normal; letter-spacing: .05em; color: rgba(255,0,0,.8); }
.cal-note { font-size: 12px; color: rgba(255,255,255,.3); margin-top: 24px; text-align: center; }
.cal-note a { text-decoration: underline; }

.modal { position: fixed; inset: 0; z-index: 70; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(0,0,0,.8); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal.open { display: flex; }
.modal-card { width: 100%; max-width: 32rem; background: #0a0a0a; border: 1px solid rgba(255,255,255,.15); padding: 24px; max-height: 90vh; overflow: auto; }
.modal-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.modal-top h3 { font-family: var(--font-display); letter-spacing: -.05em; font-weight: 700; font-size: 24px; line-height: 1.2; }
.modal-top button { color: rgba(255,255,255,.4); line-height: 0; }
.modal-top button:hover { color: #fff; }
.modal dl { margin: 0; display: grid; gap: 16px; }
.modal dt { font-size: 10px; letter-spacing: .2em; color: rgba(255,255,255,.4); margin-bottom: 4px; }
.modal dd { margin: 0; font-size: 14px; color: rgba(255,255,255,.85); white-space: pre-wrap; }
.modal .badges { display: flex; gap: 8px; flex-wrap: wrap; }
.badge { font-size: 10px; letter-spacing: .15em; border: 1px solid rgba(255,0,0,.6); color: var(--crimson); padding: 3px 8px; }
.modal .admin-edit { margin-top: 24px; font-size: 12px; }

/* ---------- generic pages ---------- */
.plain { padding: 140px 24px 96px; max-width: 56rem; margin: 0 auto; min-height: 70vh; }
.plain h1 { font-family: var(--font-display); letter-spacing: -.05em; font-size: 40px; margin-bottom: 32px; }
.plain .entry { color: rgba(255,255,255,.75); line-height: 1.9; }
.plain .entry a { color: var(--crimson); text-decoration: underline; }
.not-found { text-align: center; }
.not-found .big { font-family: var(--font-display); font-size: 96px; font-weight: 800; letter-spacing: -.05em; color: var(--crimson); }

/* ---------- md+ ---------- */
@media (min-width: 768px) {
  .px { padding-left: 48px; padding-right: 48px; }
  .header-in { padding: 0 48px; }
  .nav-desktop { display: flex; }
  .menu-btn { display: none; }
  .drawer-panel { width: 50%; }
  .drawer-panel a.item { font-size: 48px; }
  .hero-in .logo { width: 420px; }
  .scroll-hint { left: 48px; }
  .manifesto { padding: 160px 48px; }
  .manifesto .lead { font-size: 60px; }
  .manifesto .cols { grid-template-columns: repeat(3, 1fr); }
  .space-head { padding: 112px 48px 80px; }
  .space-head .section-title, .feed .section-title { font-size: 72px; }
  .slits { flex-direction: row; height: 760px; }
  .slit h3 { font-size: 30px; }
  .pricelist { padding: 64px 48px; }
  .price-row { grid-template-columns: repeat(12, 1fr); }
  .price-row > .c1 { grid-column: span 3; }
  .price-row > .c2 { grid-column: span 3; }
  .price-row > .c3 { grid-column: span 6; grid-template-columns: repeat(3, 1fr); }
  .feed { padding: 128px 48px; }
  .feed-grid { grid-template-columns: repeat(4, 1fr); }
  .cta-band div { padding: 96px 0; }
  .cta-band span { font-size: 72px; }
  .foot-grid { padding: 64px 48px; grid-template-columns: repeat(4, 1fr); }
  .foot-grid .c-wide { grid-column: span 2; }
  .copy { padding: 24px 48px; }
  .events-page { padding-top: 144px; }
  .events-hero { padding: 0 48px 48px; }
  .events-hero h1 { font-size: 96px; }
  .cal-wrap { padding: 48px; }
  .cal-head h2 { font-size: 48px; }
  .cal-grid .cell { min-height: 140px; }
  .modal-card { padding: 32px; }
}
@media (max-width: 767px) {
  .price-row .tiers { grid-template-columns: 1fr; }
  .cal-grid .cell { padding: 4px; }
  .ev-chip i { display: none; }
}
@media (min-width: 640px) and (max-width: 767px) { .price-row .tiers { grid-template-columns: repeat(3, 1fr); } }
