/*
Theme Name: BTTF NEWS
Theme URI: https://bttf.news/
Author: BACK TO THE FUTURE NEWS
Description: 『バック・トゥ・ザ・フューチャー』専門の非公式ファンニュースサイト「BACK TO THE FUTURE NEWS」専用テーマ。黒背景＋タイムサーキットのLED意匠、中央1カラムレイアウト。
Version: 1.1.43
License: GNU General Public License v2 or later
Text Domain: bttf-news
*/

/* ========== Base ========== */
:root {
  --bg: #060607;
  --panel: #101014;
  --panel2: #16161c;
  --border: #2a2a33;
  --text: #f4f4f1;
  --muted: #a7a7b0;
  --led-red: #ff2417;
  --led-green: #2eff5a;
  --led-amber: #ff9d1c;
  --cta: #e60012;
  --cta-dark: #b0000d;
  --yellow: #ffd800;
  --cyan: #5ee7ff;
  --font: "Helvetica Neue", Helvetica, Arial, "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", "Noto Sans JP", "Yu Gothic", YuGothic, sans-serif;
  --led-font: "Courier New", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --dot-font: "DotGothic16", "Courier New", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: #05080d;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260' viewBox='0 0 260 260'%3E%3Cg fill='none' stroke='%234db8dd' stroke-opacity='0.055'%3E%3Cpath d='M-5 45 H110 L145 80 H265'/%3E%3Cpath d='M45 265 V155 L80 120 V-5'/%3E%3Cpath d='M185 265 V185 L215 155 H265'/%3E%3Cpath d='M-5 215 H75 L105 185'/%3E%3Cpath d='M150 265 V225'/%3E%3C/g%3E%3Cg fill='none' stroke='%234db8dd' stroke-opacity='0.08'%3E%3Ccircle cx='110' cy='45' r='3'/%3E%3Ccircle cx='80' cy='120' r='3'/%3E%3Ccircle cx='215' cy='155' r='3'/%3E%3Ccircle cx='75' cy='215' r='3'/%3E%3C/g%3E%3Cg fill='%234db8dd' fill-opacity='0.09'%3E%3Ccircle cx='145' cy='80' r='1.6'/%3E%3Ccircle cx='45' cy='155' r='1.6'/%3E%3Ccircle cx='185' cy='185' r='1.6'/%3E%3Ccircle cx='105' cy='185' r='1.6'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 260px 260px;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ========== Header ========== */
.site-header {
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(1200px 300px at 50% -80px, rgba(230, 0, 18, 0.14), transparent 60%),
    repeating-linear-gradient(0deg, rgba(94, 231, 255, 0.025) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(90deg, rgba(94, 231, 255, 0.025) 0 1px, transparent 1px 56px),
    #0a0a0d;
  padding: 20px 0 14px;
}

.site-branding { text-align: center; }
.site-logo img {
  width: 300px;
  max-width: 78vw;
  margin: 0 auto;
}
.site-tagline {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.22em;
}

/* ---- Time Circuit ---- */
.time-circuit {
  position: relative;
  margin: 18px auto 6px;
  max-width: 760px;
  background: linear-gradient(180deg, #1a1d23, #0c0e12);
  border: 1px solid #4a4f58;
  border-radius: 14px;
  padding: 18px 16px 12px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 0 28px rgba(0, 0, 0, 0.8),
    0 2px 14px rgba(0, 0, 0, 0.5);
  transition: filter 0.12s ease;
}
.time-circuit.jump-flash { filter: brightness(2.1); }

/* Corner screws (slotted, drawn in CSS) */
.tc-screw {
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d7dbe0, #8a9097 55%, #565b62);
  box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.6), 0 1px 2px rgba(0, 0, 0, 0.6);
}
.tc-screw::after {
  content: "";
  position: absolute;
  left: 1.5px;
  right: 1.5px;
  top: 50%;
  height: 1.6px;
  margin-top: -0.8px;
  border-radius: 1px;
  background: #3c4046;
}
.tc-screw.is-tl { top: 7px; left: 7px; }
.tc-screw.is-tl::after { transform: rotate(38deg); }
.tc-screw.is-tr { top: 7px; right: 7px; }
.tc-screw.is-tr::after { transform: rotate(-24deg); }
.tc-screw.is-bl { bottom: 7px; left: 7px; }
.tc-screw.is-bl::after { transform: rotate(71deg); }
.tc-screw.is-br { bottom: 7px; right: 7px; }
.tc-screw.is-br::after { transform: rotate(-52deg); }

.tc-units {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.tc-unit {
  min-width: 0;
  background: linear-gradient(180deg, #14161b, #0a0b0e);
  border: 1px solid #33373f;
  border-radius: 9px;
  padding: 9px 8px 10px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.75);
}

.tc-label {
  margin-bottom: 7px;
  text-align: center;
  font-family: var(--dot-font);
  font-size: clamp(8px, 2.2vw, 11px);
  font-weight: 400;
  letter-spacing: 0.18em;
  line-height: 1.3;
  white-space: nowrap;
}
.tc-dest .tc-label { color: #ff9d94; }
.tc-present .tc-label { color: #9dffb0; }
.tc-last .tc-label { color: #ffc46b; }

.tc-window {
  position: relative;
  overflow: hidden;
  background-color: #050607;
  background-image: radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1.3px);
  background-size: 5px 5px;
  border: 1px solid #1d1f24;
  border-radius: 6px;
  padding: 9px 15px 8px;
  box-shadow: inset 0 0 14px rgba(0, 0, 0, 0.9);
}
.tc-window::before,
.tc-window::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 10px;
  background: repeating-linear-gradient(45deg, #e8b91c 0 7px, #101010 7px 14px);
  opacity: 0.9;
}
.tc-window::before { left: 0; }
.tc-window::after { right: 0; }

.tc-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  font-family: var(--dot-font);
}
.tc-line {
  display: flex;
  align-items: baseline;
  justify-content: center;
  white-space: nowrap;
  line-height: 1.2;
}
.tc-line-date { font-size: clamp(11px, 3.4vw, 21px); }
.tc-line-time { font-size: clamp(13px, 4vw, 25px); }
.tc-cell {
  font-weight: 400;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.tc-sep { font-weight: 400; margin: 0 1px; opacity: 0.85; }
.tc-cell small {
  font-size: 0.5em;
  margin-left: 3px;
  vertical-align: 0.55em;
}
.tc-dest .tc-cell, .tc-dest .tc-sep { color: var(--led-red); text-shadow: 0 0 7px rgba(255, 36, 23, 0.85), 0 0 20px rgba(255, 36, 23, 0.35); }
.tc-present .tc-cell, .tc-present .tc-sep { color: var(--led-green); text-shadow: 0 0 7px rgba(46, 255, 90, 0.8), 0 0 20px rgba(46, 255, 90, 0.3); }
.tc-last .tc-cell, .tc-last .tc-sep { color: var(--led-amber); text-shadow: 0 0 7px rgba(255, 157, 28, 0.8), 0 0 20px rgba(255, 157, 28, 0.3); }

.tc-sub {
  font-size: clamp(5.5px, 1.5vw, 7.5px);
  letter-spacing: 0.14em;
  line-height: 1.35;
  color: #77777f;
  white-space: nowrap;
}

.tc-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 6px;
}
.tc-dots i { width: 7px; height: 7px; border-radius: 50%; }
.tc-dots .dot-r { background: #ff3b30; box-shadow: 0 0 6px rgba(255, 59, 48, 0.9); }
.tc-dots .dot-y { background: #ffd60a; box-shadow: 0 0 6px rgba(255, 214, 10, 0.9); }
.tc-dots .dot-g { background: #2eff5a; box-shadow: 0 0 6px rgba(46, 255, 90, 0.9); }

/* Panel footer band */
.tc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 12px;
  padding: 9px 4px 2px;
  border-top: 1px solid #262a31;
}
.tc-brand {
  font-size: clamp(8px, 2vw, 11px);
  font-weight: 700;
  letter-spacing: 0.3em;
  color: #9a9ea6;
  white-space: nowrap;
}
.tc-route-years {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--dot-font);
  font-size: clamp(10px, 2.8vw, 14px);
  color: #8f8f99;
}
.tc-year {
  padding: 1px 6px;
  border: 1px solid transparent;
  border-radius: 999px;
  line-height: 1.5;
}
.tc-year.is-current {
  color: #ff5147;
  border-color: rgba(255, 36, 23, 0.75);
  text-shadow: 0 0 8px rgba(255, 36, 23, 0.8);
  box-shadow: 0 0 8px rgba(255, 36, 23, 0.25), inset 0 0 6px rgba(255, 36, 23, 0.15);
}
.tc-arrow { color: #5d5d66; font-size: 0.85em; }
.tc-speed {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-size: clamp(8px, 2vw, 11px);
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--led-amber);
  white-space: nowrap;
}
.tc-speed b {
  font-family: var(--dot-font);
  font-weight: 400;
  font-size: clamp(17px, 4.6vw, 26px);
  letter-spacing: 0.04em;
  color: #fff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.65), 0 0 18px rgba(255, 255, 255, 0.3);
}

/* ---- Nav ---- */
.main-nav { margin-top: 12px; }
.menu-toggle {
  display: none;
  width: 100%;
  background: var(--panel2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.2em;
  cursor: pointer;
}
.menu-toggle-bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
.menu-toggle-bars i {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
}
.nav-list a {
  display: block;
  padding: 8px 14px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  border-radius: 6px;
}
.nav-list a:hover { background: var(--panel2); text-decoration: none; color: var(--yellow); }
.nav-list .current-menu-item > a { color: var(--yellow); }

.header-search { margin-top: 10px; text-align: center; }
.search-form { display: inline-flex; gap: 6px; max-width: 100%; }
.search-form input[type="search"] {
  background: #0d0d11;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  padding: 8px 12px;
  font: inherit;
  font-size: 14px;
  width: 240px;
  max-width: 62vw;
}
.search-form button {
  background: var(--panel2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 14px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.search-form button:hover { border-color: var(--cyan); color: var(--cyan); }

/* ========== Hero ========== */
.hero {
  text-align: center;
  padding: 44px 0 30px;
}
.kicker {
  display: inline-block;
  color: var(--led-red);
  font-family: var(--led-font);
  font-weight: 700;
  letter-spacing: 0.34em;
  font-size: 13px;
  border: 1px solid rgba(255, 36, 23, 0.5);
  border-radius: 999px;
  padding: 4px 16px 4px 20px;
  text-shadow: 0 0 8px rgba(255, 36, 23, 0.6);
}
.hero h1 {
  font-size: clamp(26px, 5.6vw, 40px);
  line-height: 1.45;
  margin: 20px 0 14px;
  font-weight: 800;
}
.hero h1 .hl {
  background: linear-gradient(transparent 62%, var(--yellow) 62%, var(--yellow) 94%, transparent 94%);
  color: inherit;
  padding: 0 2px;
}
.hero-sub { color: var(--muted); margin: 0 auto 24px; max-width: 640px; }
.cta-button {
  display: inline-block;
  background: linear-gradient(180deg, #f5121f, var(--cta) 55%, var(--cta-dark));
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 13px 34px;
  border-radius: 999px;
  box-shadow: 0 6px 22px rgba(230, 0, 18, 0.4);
}
.cta-button:hover { text-decoration: none; filter: brightness(1.1); color: #fff; }

/* ========== Photo cards ========== */
.photo-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 8px 0 10px;
}
.photo-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  min-height: 168px;
  display: flex;
  align-items: flex-end;
  border: 1px solid var(--border);
  isolation: isolate;
}
.photo-card img.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  transition: transform 0.5s ease;
}
.photo-card:hover img.bg { transform: scale(1.05); }
.photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 40%, rgba(0,0,0,0.82));
  z-index: -1;
}
.photo-card .pc-text { padding: 14px; }
.photo-card .pc-en {
  display: block;
  font-size: clamp(17px, 2.6vw, 23px);
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}
.photo-card .pc-jp { display: block; color: #e8e8e8; font-size: 12px; margin-top: 4px; }
.photo-card:hover { text-decoration: none; }

/* ========== Sections ========== */
.section { padding: 34px 0 8px; }
.section-head { margin-bottom: 18px; }
.section-head .sec-en {
  font-size: clamp(24px, 5vw, 34px);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.15;
  margin: 0;
}
.section-head .sec-jp { color: var(--muted); font-size: 13px; letter-spacing: 0.18em; margin-top: 4px; }
.section-head { border-bottom: 2px solid var(--border); padding-bottom: 12px; }
.section-head .sec-en span { color: var(--led-red); }

/* Latest-news section heading (mock style: yellow Dela Gothic One) */
.section-head .latest-title {
  font-family: "Dela Gothic One", sans-serif;
  font-weight: 400;
  font-size: clamp(29px, 6vw, 38px);
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: #ffd21c;
  margin: 0;
}
.section-head .latest-caption {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.34em;
  margin: 6px 0 0;
}

/* ========== Release calendar ========== */
.release-list {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.release-row {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
}
.release-row + .release-row { border-top: 1px solid var(--border); }
.release-when {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.release-dot {
  flex: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.release-dot.dot-red { background: #ff3b30; box-shadow: 0 0 8px rgba(255, 59, 48, 0.55); }
.release-dot.dot-yellow { background: #ffb400; box-shadow: 0 0 8px rgba(255, 180, 0, 0.55); }
.release-dot.dot-green { background: var(--led-green); box-shadow: 0 0 8px rgba(46, 255, 90, 0.5); }
.release-period {
  font-family: var(--dot-font);
  font-size: 15px;
  letter-spacing: 0.08em;
  color: var(--text);
  white-space: nowrap;
}
.release-title {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.55;
  margin: 0;
}
.release-price {
  color: var(--led-amber);
  font-size: 14px;
  margin: 5px 0 0;
}
@media (max-width: 560px) {
  .release-row {
    grid-template-columns: 92px 1fr;
    gap: 10px;
    padding: 14px 13px;
  }
  .release-when { gap: 6px; }
  .release-dot { width: 9px; height: 9px; }
  .release-period { font-size: 12px; letter-spacing: 0.03em; }
  .release-title { font-size: 14px; line-height: 1.5; }
  .release-price { font-size: 13px; }
}

/* ========== Post cards ========== */
.post-list { display: grid; gap: 14px; }
.post-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
}
.post-card .thumb {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #1a1a20;
}
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .thumb .no-thumb {
  display: flex; align-items: center; justify-content: center;
  height: 100%; color: #55555f; font-family: var(--led-font);
  letter-spacing: 0.2em; font-size: 12px;
}
.post-card .meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.chip {
  display: inline-block;
  background: #23232c;
  border: 1px solid #3a3a46;
  color: var(--yellow);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 999px;
  padding: 2px 10px;
}
.post-card time { color: var(--muted); font-size: 12px; font-family: var(--led-font); }
.post-card h3 { margin: 0 0 6px; font-size: 18px; line-height: 1.5; }
.post-card h3 a { color: var(--text); }
.post-card h3 a:hover { color: var(--yellow); text-decoration: none; }
.post-card .excerpt { color: var(--muted); font-size: 14px; margin: 0; }

.pagination { margin: 26px 0 6px; text-align: center; }
.pagination .page-numbers {
  display: inline-block;
  padding: 6px 13px;
  margin: 0 2px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  background: var(--panel);
}
.pagination .page-numbers.current { background: var(--cta); border-color: var(--cta); color: #fff; }

/* ========== Film cards ========== */
.film-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 22px;
}
.film-band {
  background:
    linear-gradient(90deg, rgba(230,0,18,0.28), rgba(230,0,18,0) 55%),
    linear-gradient(180deg, #1b1b22, #121218);
  border-bottom: 1px solid var(--border);
  padding: 18px 22px 14px;
}
.film-year {
  font-family: var(--led-font);
  font-size: clamp(38px, 8vw, 58px);
  font-weight: 700;
  line-height: 1;
  color: var(--led-red);
  text-shadow: 0 0 12px rgba(255, 36, 23, 0.55);
}
.film-part { letter-spacing: 0.34em; font-weight: 800; font-size: 13px; color: var(--yellow); margin-top: 6px; }
.film-title-jp { font-size: clamp(20px, 4.4vw, 27px); font-weight: 800; margin: 4px 0 0; line-height: 1.4; }
.film-title-en { color: var(--muted); font-size: 13px; letter-spacing: 0.1em; }
.film-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  padding: 20px 22px;
}
.film-poster img { border-radius: 8px; border: 1px solid var(--border); width: 100%; }
.film-synopsis { margin: 0 0 14px; font-size: 15px; }
.film-credits { margin: 0; display: grid; gap: 6px; }
.film-credits div { display: grid; grid-template-columns: 52px 1fr; gap: 8px; }
.film-credits dt { color: var(--yellow); font-weight: 700; font-size: 13px; }
.film-credits dd { margin: 0; font-size: 14px; }
.film-meta { color: var(--muted); font-size: 13px; margin-top: 10px; font-family: var(--led-font); }
.film-route {
  border-top: 1px dashed #34343f;
  padding: 12px 22px;
  font-family: var(--led-font);
  letter-spacing: 0.08em;
  font-size: clamp(13px, 3.4vw, 16px);
  display: flex;
  gap: 12px;
  align-items: baseline;
  flex-wrap: wrap;
}
.film-route .fr-label { color: #8f8f99; font-size: 11px; letter-spacing: 0.24em; }
.film-route .fr-years { color: var(--led-amber); text-shadow: 0 0 8px rgba(255, 157, 28, 0.55); font-weight: 700; }
.film-route .fr-arrow { color: #6d6d77; }

/* Film details (FILMS page) */
.film-details { padding: 0 22px 20px; }
.film-details h4 {
  font-size: 15px;
  letter-spacing: 0.14em;
  border-left: 4px solid var(--cta);
  padding-left: 10px;
  margin: 18px 0 10px;
}
.film-details ul { margin: 0; padding-left: 1.2em; color: #dcdce0; font-size: 14px; }
.film-details table { width: 100%; border-collapse: collapse; font-size: 14px; }
.film-details th, .film-details td {
  border: 1px solid var(--border);
  padding: 7px 10px;
  text-align: left;
  vertical-align: top;
}
.film-details th { background: var(--panel2); color: var(--yellow); width: 110px; font-weight: 700; }
.tc-mini { font-family: var(--led-font); color: var(--led-green); font-size: 14px; }
.tc-mini li { margin-bottom: 2px; }

/* Film "more" bar: accordion toggle (FILMS page) / link to FILMS (front page) */
.film-more-bar {
  border-top: 1px dashed #34343f;
  padding: 12px 22px 16px;
}
.film-more-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  background: var(--panel2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 11px 16px;
  cursor: pointer;
  transition: filter 0.15s ease, border-color 0.15s ease;
}
.film-more-toggle:hover { filter: brightness(1.35); border-color: #454554; }
.film-more-toggle .fmt-icon {
  flex: none;
  width: 1em;
  font-size: 18px;
  line-height: 1;
  text-align: center;
  color: var(--yellow);
}
.film-more-toggle .fmt-icon::before { content: "+"; }
.film-more-toggle.is-open .fmt-icon::before { content: "−"; }
.film-details-wrap[hidden] { display: none; }
.film-details-wrap { animation: filmDetailsIn 0.25s ease; }
@keyframes filmDetailsIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}
.film-more-link {
  display: inline-block;
  color: var(--yellow);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
}
.film-more-link:hover { text-decoration: underline; }

/* ========== Single / Page ========== */
.entry { padding: 30px 0 10px; }
.entry-head .meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.entry-head time { color: var(--muted); font-size: 13px; font-family: var(--led-font); }
.entry-title { font-size: clamp(24px, 5vw, 34px); line-height: 1.45; margin: 0 0 16px; }
.entry-thumb { border-radius: 12px; overflow: hidden; margin-bottom: 22px; border: 1px solid var(--border); }
.entry-content { font-size: 16px; }
.entry-content h2 {
  font-size: 22px;
  border-left: 5px solid var(--cta);
  padding-left: 12px;
  margin: 34px 0 14px;
}
.entry-content h3 { font-size: 19px; margin: 28px 0 10px; }
.entry-content p { margin: 0 0 1.2em; }
.entry-content ul, .entry-content ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.entry-content img { border-radius: 8px; margin: 10px 0; }
.wp-caption { max-width: 100%; }
.wp-caption img { max-width: 100%; height: auto; }
.wp-caption.aligncenter { margin-left: auto; margin-right: auto; }
img.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 15px; }
.entry-content th, .entry-content td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; }
.entry-content th { background: var(--panel2); }
.entry-content blockquote {
  border-left: 4px solid var(--yellow);
  margin: 0 0 1.2em;
  padding: 4px 0 4px 16px;
  color: #dcdce0;
}
.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 30px 0 4px;
  font-size: 14px;
}
.post-nav a {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text);
  max-width: 48%;
}
.archive-head { padding: 30px 0 4px; }
.archive-title { font-size: clamp(24px, 5vw, 34px); margin: 0 0 6px; }
.archive-desc { color: var(--muted); margin: 0 0 10px; }

/* ========== Search empty / 404 ========== */
.empty-state { text-align: center; padding: 36px 0 10px; }
.empty-state .fax-img, .empty-state .sketch-img {
  margin: 18px auto;
  max-width: 420px;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}
.empty-state h1, .empty-state h2 { font-size: clamp(22px, 5vw, 30px); margin: 8px 0 10px; }
.empty-state p { color: var(--muted); }
.code-404 {
  font-family: var(--led-font);
  font-size: clamp(52px, 14vw, 96px);
  font-weight: 700;
  color: var(--led-red);
  text-shadow: 0 0 16px rgba(255, 36, 23, 0.6);
  line-height: 1;
}

/* ========== About (mock panel: numbered rows + closing band) ========== */
.about-lead { margin: 10px 0 18px; }
.about-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.about-row {
  display: grid;
  grid-template-columns: 152px 1fr;
  gap: 16px;
  padding: 20px 22px;
}
.about-row + .about-row { border-top: 1px solid var(--border); }
.about-label {
  font-family: var(--dot-font);
  font-size: 14px;
  letter-spacing: 0.22em;
  color: #ffd21c;
  white-space: nowrap;
  padding-top: 5px;
}
.about-body h3 {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.5;
  margin: 0 0 6px;
}
.about-body p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.8;
  margin: 0;
}
.about-closing {
  border-top: 1px solid var(--border);
  text-align: center;
  font-family: "Dela Gothic One", sans-serif;
  font-weight: 400;
  font-size: clamp(24px, 5.4vw, 32px);
  letter-spacing: 0.04em;
  line-height: 1.4;
  margin: 0;
  padding: 32px 16px 36px;
}
.about-closing .hl { color: #ffd21c; }
.about-more { margin: 14px 0 6px; }
@media (max-width: 560px) {
  .about-row {
    grid-template-columns: 104px 1fr;
    gap: 10px;
    padding: 16px 14px;
  }
  .about-label { font-size: 11.5px; letter-spacing: 0.1em; padding-top: 4px; }
  .about-body h3 { font-size: 16px; }
  .about-body p { font-size: 13.5px; }
  .about-closing { padding: 26px 12px 30px; }
}

/* ========== Footer ========== */
.site-footer {
  margin-top: 48px;
  border-top: 1px solid var(--border);
  background: #0a0a0d;
  padding: 30px 0 36px;
  text-align: center;
}
.footer-logo img { width: 170px; margin: 0 auto 6px; }

.flux-wrap {
  margin: 20px auto 4px;
  width: 178px;
  background: radial-gradient(ellipse 62% 46% at 50% 42%, rgba(94, 231, 255, 0.20), rgba(94, 231, 255, 0) 70%);
}
.flux-cap {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  filter: drop-shadow(0 0 18px rgba(120, 225, 255, 0.35));
  transition: filter 0.12s ease;
}
.flux-cap.surge {
  filter: drop-shadow(0 0 34px rgba(170, 245, 255, 1)) brightness(1.7);
}
.flux-wrap:has(.flux-cap.surge) {
  background: radial-gradient(ellipse 72% 54% at 50% 42%, rgba(140, 235, 255, 0.5), rgba(140, 235, 255, 0) 70%);
}
.flux-cap .node {
  fill: #eafcff;
  stroke: none;
  animation: fluxPulse 2.6s ease-in-out infinite;
}
.flux-cap .node.n2 { animation-delay: 0.5s; }
.flux-cap .node.n3 { animation-delay: 1s; }
.flux-cap .wire {
  stroke: #cfeeff;
  stroke-width: 7;
  stroke-linecap: round;
  fill: none;
  opacity: 0.95;
  filter: drop-shadow(0 0 5px rgba(140, 230, 255, 0.9));
}
.flux-cap .core { fill: #ffffff; animation: fluxPulse 2.6s ease-in-out infinite; }
@keyframes fluxPulse {
  0%, 100% { filter: drop-shadow(0 0 2px rgba(94, 231, 255, 0.5)); opacity: 0.75; }
  50% { filter: drop-shadow(0 0 9px rgba(94, 231, 255, 0.95)); opacity: 1; }
}
.flux-cap.surge .node, .flux-cap.surge .core {
  animation: none;
  filter: drop-shadow(0 0 22px rgba(160, 245, 255, 1)) brightness(2.2);
}
.flux-cap.surge .wire { filter: drop-shadow(0 0 12px rgba(94, 231, 255, 1)); opacity: 1; }
.flux-caption {
  font-family: var(--font);
  margin-top: 14px;
  text-align: center;
}
.flux-caption .fc-line {
  display: block;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.55em;
  text-indent: 0.55em;
  line-height: 2.1;
  color: #a8bfc7;
}
.flux-caption .fc-num { color: #f6a21e; }

.footer-nav { margin: 18px 0 6px; }
.footer-nav .nav-list a { font-size: 12px; padding: 6px 10px; }
.disclaimer {
  color: #83838d;
  font-size: 12px;
  line-height: 1.7;
  max-width: 640px;
  margin: 14px auto 0;
}
.footer-legal { margin-top: 10px; }
.footer-legal a { color: #83838d; font-size: 12px; text-decoration: underline; }
.footer-legal a:hover { color: #ffd21c; }
.copyright { color: #5d5d66; font-size: 12px; margin-top: 8px; font-family: var(--led-font); letter-spacing: 0.1em; }

/* ---- Circuit band (front page only) ---- */
.circuit-band { margin: 26px 0 6px; }
.circuit-note {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}
.delorean-band {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
}

/* ========== Responsive ========== */
@media (max-width: 560px) {
  /* Keep the dashboard panel 3-across; shrink type instead of stacking.
     Sizes are computed from DotGothic16 metrics (every Latin glyph = 0.5em):
     date "OCT.21.2015" = 5.5em, time "04:29"+AM/PM = 3.0em,
     label "LAST TIME DEPARTED" = 9.0em, sub "HOUR / MINUTES / AM・PM" = 11.5em.
     Window text area is ~73px at 360px wide and ~83px at 390px wide. */
  .time-circuit { padding: 14px 8px 9px; }
  .tc-units { gap: 6px; }
  .tc-unit { padding: 7px 3px 8px; }
  .tc-window { padding: 7px 8px 6px; }
  .tc-window::before,
  .tc-window::after { width: 6px; }
  .tc-label { font-size: 2.6vw; letter-spacing: 0.03em; }
  .tc-line-date { font-size: 3.4vw; }
  .tc-line-time { font-size: 4.6vw; }
  .tc-cell { letter-spacing: 0; }
  .tc-sub { font-size: 1.5vw; letter-spacing: 0.04em; }
  .tc-foot { justify-content: center; }
}
@media (max-width: 360px) {
  /* Extra squeeze for small phones (e.g. 320-360px wide). */
  .tc-unit { padding: 7px 2px 8px; }
  .tc-window { padding: 7px 6px 6px; }
  .tc-label { font-size: 2.5vw; }
  .tc-line-date { font-size: 3.3vw; }
}
@media (max-width: 720px) {
  /* Header top row: logo left (~65%), MENU pill right — matches the mock. */
  .header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .site-branding { text-align: left; flex: 0 1 65%; min-width: 0; }
  .site-logo img { width: 100%; max-width: 100%; margin: 0; }
  .site-tagline { display: none; }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: auto;
    flex: 0 0 auto;
    background: rgba(16, 16, 20, 0.85);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 13px;
  }
  .main-nav { margin-top: 0; }
  .main-nav .nav-collapse { display: none; margin-top: 12px; }
  .main-nav.open .nav-collapse { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; text-align: center; gap: 2px; margin-top: 8px; }
  .nav-list a { background: var(--panel); border: 1px solid var(--border); }
  .footer-nav .nav-list { flex-direction: row; justify-content: center; }
  .footer-nav .nav-list a { background: none; border: none; }

  .photo-cards { grid-template-columns: 1fr; }
  .photo-card { min-height: 140px; }

  .post-card { grid-template-columns: 1fr; }
  .post-card .thumb { aspect-ratio: 16 / 9; }

  .film-body { grid-template-columns: 1fr; }
  .film-poster { max-width: 240px; }
  .film-band, .film-body, .film-details { padding-left: 16px; padding-right: 16px; }
  .film-route { padding-left: 16px; padding-right: 16px; }
  .film-more-bar { padding-left: 16px; padding-right: 16px; }
}

/* ========== SNS links (v1.1.8) ========== */
.sns-heading {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: .28em;
  color: #8a9a9e;
  text-align: center;
}
.sns-links {
  display: flex;
  justify-content: center;
  gap: 12px;
}
.sns-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid #2c3e44;
  border-radius: 50%;
  color: #f2f2f2;
  transition: color .2s ease, border-color .2s ease, transform .2s ease;
}
.sns-btn svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}
.sns-btn:hover,
.sns-btn:focus-visible {
  color: #ffd21c;
  border-color: #ffd21c;
  transform: translateY(-2px);
}
.footer-sns { margin: 24px 0 4px; }
.about-sns { margin: 20px 0 2px; }

/* Front page: more articles button */
.more-articles { text-align: center; margin: 28px 0 4px; }

/* Film card: text left, official title logo right in the band */
.film-band { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.film-band .film-logo { width: clamp(120px, 30%, 250px); height: auto; flex: none; }

/* ---- Locations guide (/locations/) ---- */
.loc-intro { line-height: 1.9; margin: 6px 0 10px; }
.loc-caution { color: var(--muted); font-size: 13px; line-height: 1.8; border: 1px solid var(--border); background: var(--panel); border-radius: 10px; padding: 12px 14px; }
.loc-index { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 6px; }
.loc-index a { border: 1px solid var(--border); background: var(--panel2); color: var(--text); border-radius: 999px; padding: 7px 14px; font-size: 13px; }
.loc-index a:hover { color: var(--yellow); text-decoration: none; }
.loc-film { margin-top: 34px; }
.loc-film-head { display: flex; align-items: center; gap: 16px; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; color: var(--text); }
.loc-film-head:hover { text-decoration: none; border-color: var(--yellow); }
.loc-film-head img { width: 54px; height: auto; border-radius: 6px; flex: none; }
.loc-film-titles { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.loc-film-titles .en { font-size: 12px; letter-spacing: .12em; color: var(--muted); }
.loc-film-titles .jp { font-size: 18px; font-weight: 700; }
.loc-film-count { margin-left: auto; flex: none; color: var(--yellow); border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; font-size: 13px; }
.loc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.loc-card { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.loc-media { display: grid; grid-template-columns: 1fr; height: clamp(150px, 26vw, 220px); }
.loc-media.is-pair { grid-template-columns: 1fr 1fr; }
.loc-fig { margin: 0; position: relative; height: 100%; overflow: hidden; }
.loc-fig img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.loc-fig figcaption { position: absolute; left: 8px; bottom: 8px; background: rgba(0, 0, 0, .72); color: #fff; font-size: 11px; padding: 3px 9px; border-radius: 999px; letter-spacing: .08em; }
.loc-body { padding: 14px 16px 16px; }
.loc-scene { font-size: 16px; margin: 0 0 8px; }
.loc-place { font-size: 13.5px; line-height: 1.7; margin: 0 0 8px; }
.loc-tag { display: inline-block; background: var(--cta); color: #fff; font-size: 11px; border-radius: 4px; padding: 1px 7px; margin-right: 8px; vertical-align: 1px; }
.loc-note { color: var(--muted); font-size: 13.5px; line-height: 1.85; margin: 0; }
.locations-page .src-note { color: var(--muted); font-size: 12px; line-height: 1.8; margin-top: 36px; border-top: 1px solid var(--border); padding-top: 14px; }
.loc-credits { color: var(--muted); font-size: 12px; line-height: 1.9; margin: 8px 0 0; padding-left: 18px; }

/* Front page: locations promo banner */
.loc-promo { position: relative; display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); min-height: 170px; }
.loc-promo img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.loc-promo:hover img.bg { transform: scale(1.04); }
.loc-promo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .78) 30%, rgba(0, 0, 0, .15)); }
.loc-promo .pc-text { position: relative; z-index: 1; display: block; padding: 22px; }
.loc-promo .pc-en { font-family: "Dela Gothic One", sans-serif; font-size: clamp(20px, 4.5vw, 30px); color: #fff; letter-spacing: .04em; }
.loc-promo .pc-en span { color: var(--yellow); }
.loc-promo .pc-jp { display: block; color: #e8e8e8; font-size: 13.5px; margin-top: 6px; }
.loc-promo:hover { text-decoration: none; }

@media (max-width: 720px) {
  .loc-grid { grid-template-columns: 1fr; }
  .loc-film-titles .jp { font-size: 16px; }
}
