/*
Theme Name: ZAN Demolition
Theme URI: https://basekent.com/
Author: BASE KENT / WEB TARO
Author URI: https://basekent.com/
Description: 解体業向けブルータリスト・サンプルテーマ。「斬 / ZAN」架空ブランドの一枚ものLP構成。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zan-demolition
Tags: one-page, demolition, brutalist, sample
*/

/* ============================================================
   STATIC // FM — STYLE
   Palette:  #f5f1ea (cream-white) / #0a0a0a (black)
             #ff2d6f (hot pink) / #c8ff00 (acid) / #00e5ff (cyan) / #ffd500 (caution)
   ============================================================ */

:root {
  --bg: #f5f1ea;
  --ink: #0a0a0a;
  --pink: #ff2d6f;
  --acid: #c8ff00;
  --cyan: #00e5ff;
  --yel:  #ffd500;
  --line: rgba(10, 10, 10, 0.16);

  --f-sans: "Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  --f-mono: "Space Mono", "Courier New", monospace;
  --f-jp:   "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-sans);
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body { cursor: crosshair; min-height: 100vh; }

a { color: inherit; text-decoration: none; cursor: crosshair; }

/* ============================================================
   Boot Loader
   ============================================================ */

.boot {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--ink);
  color: var(--acid);
  font-family: var(--f-mono);
  font-size: 13px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.boot__head {
  display: flex;
  gap: 16px;
  font-size: 12px;
  letter-spacing: 0.1em;
  border-bottom: 1px solid rgba(200, 255, 0, 0.3);
  padding-bottom: 10px;
}

.boot__head-blink {
  color: var(--pink);
  animation: blink 0.6s steps(1) infinite;
}

@keyframes blink {
  0%, 50%   { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.boot__ascii {
  font-family: var(--f-mono);
  font-size: 10px;
  line-height: 1.2;
  white-space: pre;
  flex: 1;
  color: var(--acid);
  text-shadow: 0 0 6px rgba(200, 255, 0, 0.6);
  overflow: hidden;
}

.boot__status {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  letter-spacing: 0.15em;
  border-top: 1px solid rgba(200, 255, 0, 0.3);
  padding-top: 10px;
}

/* ============================================================
   Scanlines + Vignette
   ============================================================ */

.scanlines {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.04) 0px,
    rgba(0, 0, 0, 0.04) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: multiply;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 8500;
  pointer-events: none;
  background: radial-gradient(ellipse at center,
    transparent 40%,
    rgba(10, 10, 10, 0.18) 100%);
}

/* ============================================================
   Cursor trail (single blob that lags)
   ============================================================ */

.trail {
  position: fixed;
  top: 0; left: 0;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--pink);
  mix-blend-mode: difference;
  pointer-events: none;
  z-index: 9500;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, background 0.2s;
}

.trail.is-active {
  width: 70px;
  height: 70px;
  background: var(--acid);
}

/* ============================================================
   Chaos blob canvas (background)
   ============================================================ */

#blob {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 0.85;
}

/* ============================================================
   Top marquee strip
   ============================================================ */

.strip {
  position: relative;
  z-index: 50;
  background: var(--ink);
  color: var(--bg);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  overflow: hidden;
  padding: 10px 0;
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.15em;
}

.strip--top {
  position: sticky;
  top: 0;
  z-index: 90;
}

.strip__track {
  display: flex;
  gap: 36px;
  white-space: nowrap;
  will-change: transform;
}

.strip__track > span:nth-child(3n+2) { color: var(--pink); }
.strip__track > span:nth-child(3n+3) { color: var(--acid); }

.strip--cross {
  background: var(--pink);
  color: var(--ink);
  font-size: 22px;
  padding: 14px 0;
  transform: rotate(-1.5deg);
  margin: 80px -20px;
  border: 2px solid var(--ink);
}

.strip--cross .strip__track > span:nth-child(3n+2) { color: var(--ink); }
.strip--cross .strip__track > span:nth-child(3n+3) { color: var(--bg); background: var(--ink); padding: 0 6px; }

/* ============================================================
   System floating tags (4 corners)
   ============================================================ */

.sys {
  position: fixed;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--ink);
  background: var(--bg);
  padding: 4px 8px;
  border: 1px solid var(--ink);
  z-index: 80;
  pointer-events: none;
}

.sys--tl { top: 60px;  left: 16px; }
.sys--tr { top: 60px;  right: 16px; background: var(--pink); color: var(--bg); border-color: var(--pink); }
.sys--bl { bottom: 16px; left: 16px; background: var(--acid); }
.sys--br { bottom: 16px; right: 16px; }

/* ============================================================
   Nav
   ============================================================ */

.nav {
  position: relative;
  z-index: 60;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  border-bottom: 2px solid var(--ink);
  background: var(--bg);
}

.nav__brand {
  font-family: var(--f-sans);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.nav__brand-slash {
  color: var(--pink);
  margin: 0 4px;
}

.nav__menu {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav__menu a {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  padding: 4px 8px;
  border: 1px solid transparent;
  transition: all 0.15s;
}

.nav__menu a:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  z-index: 10;
  padding: 60px 40px 120px;
  border-bottom: 2px solid var(--ink);
}

.hero__row {
  display: flex;
  align-items: flex-end;
  gap: 40px;
  position: relative;
}

.hero__row--1 { margin-top: 20px; }
.hero__row--2 {
  margin-top: -2vw;
  margin-left: 8vw;
  align-items: flex-start;
}

.hero__word {
  font-family: var(--f-sans);
  font-size: clamp(80px, 22vw, 360px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.85;
  color: var(--ink);
  position: relative;
}

.hero__word--right {
  color: var(--bg);
  -webkit-text-stroke: 2px var(--ink);
}

.hero__slash {
  font-family: var(--f-sans);
  font-size: clamp(80px, 22vw, 360px);
  font-weight: 700;
  color: var(--pink);
  line-height: 0.85;
  letter-spacing: -0.05em;
  align-self: flex-start;
  margin-top: 1vw;
}

.hero__tag {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 13px;
  line-height: 1.3;
  background: var(--acid);
  padding: 8px 12px;
  border: 1px solid var(--ink);
  transform: rotate(2.5deg);
  margin-bottom: 5vw;
  white-space: nowrap;
}

.hero__tag .arrow {
  font-size: 16px;
}

.hero__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 80px;
  padding-top: 32px;
  border-top: 1px dashed var(--ink);
}

.hero__meta-label {
  display: block;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--pink);
  margin-bottom: 8px;
}

.hero__meta p {
  font-family: var(--f-mono);
  font-size: 13px;
  line-height: 1.5;
}

.hero__vertical {
  position: absolute;
  right: 60px;
  top: 30%;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.3em;
  writing-mode: vertical-rl;
  background: var(--ink);
  color: var(--bg);
  padding: 12px 6px;
}

/* ============================================================
   Section heads
   ============================================================ */

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  padding: 100px 40px 60px;
  border-bottom: 2px solid var(--ink);
}

.section-num {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  background: var(--ink);
  color: var(--bg);
  padding: 6px 10px;
  align-self: flex-start;
}

.section-title {
  font-family: var(--f-sans);
  font-size: clamp(40px, 7vw, 110px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-align: right;
  max-width: 70%;
}

/* ============================================================
   Rant / Manifesto
   ============================================================ */

.rant {
  position: relative;
  z-index: 10;
  padding: 140px 40px;
  background: var(--bg);
  border-bottom: 2px solid var(--ink);
}

.rant__label {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--pink);
  margin-bottom: 40px;
}

.rant__line {
  font-family: var(--f-sans);
  font-size: clamp(40px, 8vw, 130px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin-bottom: 0.15em;
  position: relative;
}

.rant__line:nth-child(odd)  { text-align: left; }
.rant__line:nth-child(even) { text-align: right; }
.rant__line:nth-child(3n)   { padding-left: 15%; }

.rant__line--small {
  font-family: var(--f-jp);
  font-size: clamp(20px, 3vw, 36px) !important;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-align: center !important;
  padding-left: 0 !important;
  margin: 30px 0;
}

.rant__line--em {
  background: var(--ink);
  color: var(--acid);
  padding: 0.1em 0.3em;
  display: inline-block;
  transform: rotate(-1.5deg);
  margin-left: 5vw;
}

/* ============================================================
   Releases grid
   ============================================================ */

.releases {
  position: relative;
  z-index: 10;
  background: var(--bg);
  border-bottom: 2px solid var(--ink);
}

.rel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 2px solid var(--ink);
}

.rel {
  padding: 40px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background: var(--bg);
  position: relative;
  transition: background 0.2s;
}

.rel:nth-child(2n) { border-right: none; }

.rel--offset { background: var(--ink); color: var(--bg); }
.rel--offset .rel__cat { background: var(--bg); color: var(--ink); }

.rel:hover { background: var(--accent); }
.rel--offset:hover { background: var(--accent); color: var(--ink); }
.rel--offset:hover .rel__cat { background: var(--ink); color: var(--bg); }

.rel__cover {
  aspect-ratio: 1 / 1;
  width: 100%;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  border: 1px solid currentColor;
}

.rel__cover--01 {
  background: url("images/work-01-shibuya.webp") center/cover no-repeat, var(--ink);
}

.rel__cover--02 {
  background: url("images/work-02-kagurazaka.webp") center/cover no-repeat, var(--ink);
}

.rel__cover--03 {
  background: url("images/work-03-tsukiji.webp") center/cover no-repeat, var(--ink);
}

.rel__cover--04 {
  background: url("images/work-04-setagaya.webp") center/cover no-repeat, var(--ink);
}

.rel__cat {
  position: absolute;
  top: 8px;
  left: 8px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  background: var(--ink);
  color: var(--bg);
  padding: 2px 6px;
}

.rel__corner {
  position: absolute;
  bottom: 8px;
  right: 8px;
  font-family: var(--f-mono);
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  color: var(--bg);
  mix-blend-mode: difference;
}

.rel__title {
  font-family: var(--f-sans);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 8px;
}

.rel__meta {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  opacity: 0.7;
}

.rel__desc {
  font-family: var(--f-jp);
  font-size: 14px;
  line-height: 1.7;
  max-width: 320px;
}

/* ============================================================
   Sessions list
   ============================================================ */

.sessions {
  position: relative;
  z-index: 10;
  background: var(--bg);
  border-bottom: 2px solid var(--ink);
}

.ses-list {
  list-style: none;
  border-top: 2px solid var(--ink);
}

.ses {
  display: grid;
  grid-template-columns: 200px 1fr 240px 130px;
  align-items: center;
  gap: 32px;
  padding: 28px 40px;
  border-bottom: 1px solid var(--ink);
  font-family: var(--f-mono);
  transition: background 0.15s;
}

.ses:hover {
  background: var(--ink);
  color: var(--bg);
}

.ses__date {
  font-size: 14px;
  letter-spacing: 0.1em;
}

.ses__title {
  font-family: var(--f-sans);
  font-weight: 700;
  font-size: clamp(20px, 2.5vw, 32px);
  letter-spacing: -0.02em;
}

.ses__venue {
  font-family: var(--f-jp);
  font-size: 13px;
  opacity: 0.8;
}

.ses__tag {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-align: right;
  padding: 4px 8px;
  border: 1px solid currentColor;
  justify-self: end;
}

.ses--cancel { opacity: 0.4; text-decoration: line-through; }
.ses--cancel .ses__tag { background: var(--pink); color: var(--bg); border-color: var(--pink); text-decoration: none; }

/* ============================================================
   Frequencies (contact)
   ============================================================ */

.freq {
  position: relative;
  z-index: 10;
  background: var(--bg);
  border-bottom: 2px solid var(--ink);
}

.freq__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 2px solid var(--ink);
}

.freq__card {
  padding: 60px 40px;
  border-right: 1px solid var(--ink);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.freq__card:last-child { border-right: none; }

.freq__label {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--pink);
  margin-bottom: 16px;
}

.freq__email {
  font-family: var(--f-sans);
  font-size: clamp(20px, 2.5vw, 32px);
  font-weight: 700;
  word-break: break-all;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 8px;
  letter-spacing: -0.01em;
}

.freq__card a {
  font-family: var(--f-mono);
  font-size: 18px;
  font-weight: 700;
  padding: 4px 0;
  width: fit-content;
}

.freq__card a:hover {
  color: var(--pink);
}

.freq__card p {
  font-family: var(--f-jp);
  font-size: 14px;
  line-height: 1.7;
}

/* ============================================================
   Footer
   ============================================================ */

.foot {
  position: relative;
  z-index: 10;
  background: var(--ink);
  color: var(--bg);
  padding: 40px 0 0;
  overflow: hidden;
}

.foot__giant {
  font-family: var(--f-sans);
  font-size: clamp(60px, 18vw, 280px);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.04em;
  text-align: center;
  margin: 0 -2vw;
  color: var(--bg);
}

.foot__bottom {
  display: flex;
  justify-content: space-between;
  padding: 20px 40px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  border-top: 1px solid var(--bg);
  margin-top: 40px;
}

/* ============================================================
   Effects
   ============================================================ */

[data-jitter] {
  display: inline-block;
  transition: transform 0.1s;
}

[data-jitter]:hover {
  animation: jitter 0.2s steps(2) infinite;
  color: var(--pink);
}

@keyframes jitter {
  0%   { transform: translate(-1px, 1px) rotate(-0.5deg); }
  25%  { transform: translate(1px, -1px) rotate(0.5deg); }
  50%  { transform: translate(-1px, -1px) rotate(-0.3deg); }
  75%  { transform: translate(1px, 1px) rotate(0.3deg); }
  100% { transform: translate(0, 0) rotate(0); }
}

/* RGB split on data-glitch elements (via pseudo) */
[data-glitch] {
  position: relative;
  display: inline-block;
}

[data-glitch]::before,
[data-glitch]::after {
  content: attr(data-glitch);
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

[data-glitch]::before {
  color: var(--pink);
  transform: translate(0, 0);
  mix-blend-mode: multiply;
  opacity: 0;
  transition: transform 0.2s, opacity 0.2s;
}

[data-glitch]::after {
  color: var(--cyan);
  transform: translate(0, 0);
  mix-blend-mode: multiply;
  opacity: 0;
  transition: transform 0.2s, opacity 0.2s;
}

[data-glitch]:hover::before,
[data-glitch].is-glitching::before {
  transform: translate(-6px, 2px);
  opacity: 1;
}

[data-glitch]:hover::after,
[data-glitch].is-glitching::after {
  transform: translate(6px, -2px);
  opacity: 1;
}

/* Subtle constant micro-jitter on jitter elements when active */
.is-shaking { animation: microShake 0.3s steps(3) infinite; }

@keyframes microShake {
  0%   { transform: translate(0, 0); }
  33%  { transform: translate(-0.5px, 0.5px); }
  66%  { transform: translate(0.5px, -0.5px); }
  100% { transform: translate(0, 0); }
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 900px) {
  body { cursor: auto; }
  .trail { display: none; }
  body * { cursor: auto !important; }

  .nav { padding: 16px 20px; flex-direction: column; gap: 12px; align-items: flex-start; }
  .nav__menu { gap: 12px; flex-wrap: wrap; }
  .nav__menu a { font-size: 10px; }

  .sys { font-size: 9px; padding: 3px 6px; }
  .sys--tl, .sys--tr { top: 130px; }

  .hero { padding: 40px 20px 80px; }
  .hero__row { flex-wrap: wrap; }
  .hero__row--2 { margin-left: 0; }
  .hero__tag { transform: rotate(0); }
  .hero__meta { grid-template-columns: 1fr; gap: 24px; }
  .hero__vertical { display: none; }

  .section-head { padding: 60px 20px 40px; flex-direction: column; align-items: flex-start; }
  .section-title { text-align: left; max-width: 100%; }

  .rant { padding: 80px 20px; }
  .rant__line { text-align: left !important; padding-left: 0 !important; }
  .rant__line--em { margin-left: 0; }

  .rel-grid { grid-template-columns: 1fr; }
  .rel { border-right: none !important; padding: 24px; }

  .ses { grid-template-columns: 1fr; gap: 8px; padding: 20px; text-align: left; }
  .ses__tag { justify-self: start; }

  .freq__grid { grid-template-columns: 1fr; }
  .freq__card { border-right: none; border-bottom: 1px solid var(--ink); min-height: auto; padding: 32px 20px; }

  .foot__bottom { flex-direction: column; gap: 8px; padding: 20px; }
}
