/* ============================================================
   EV LLC コーポレートサイト
   デザインテーマ：レトロゲーム / 8bitピクセル風
   ============================================================ */

:root {
  --ink: #111111;
  --paper: #ffffff;
  --accent: #d4006a;
  --dark: #4d4d4d;
  --light: #f2f2f2;
  --gray: #e0e0e0;
  --font-pixel: 'DotGothic16', 'Noto Sans JP', monospace;
  --font-body: 'Noto Sans JP', sans-serif;
  --header-h: 64px;
  --shadow: 6px 6px 0 rgba(17, 17, 17, 1);
}

/* ---------- リセット ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 2;
  font-size: 15px;
  letter-spacing: 0.04em;
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

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

ul {
  list-style: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.top-anchor {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
}

/* ============================================================
   起動演出（ブート画面風）
   ============================================================ */
.boot {
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
}

.boot__bars {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
}

.boot__bars i {
  flex: 1;
  background: var(--ink);
  transform-origin: left center;
}

.boot__logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-pixel);
  font-size: clamp(28px, 7vw, 58px);
  color: #fff;
  letter-spacing: 0.08em;
  white-space: nowrap;
  max-width: calc(100vw - 32px);
}

.boot__symbol {
  width: 0.9em;
  height: 0.9em;
  flex: 0 0 auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.boot__cursor {
  animation: blink 0.8s steps(1) infinite;
}

/* 消えるとき */
.boot.is-done .boot__logo {
  opacity: 0;
  transition: opacity 0.2s steps(2);
}

.boot.is-done .boot__bars i {
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.45s steps(6);
}

.boot.is-done .boot__bars i:nth-child(1) { transition-delay: 0.00s; }
.boot.is-done .boot__bars i:nth-child(2) { transition-delay: 0.07s; }
.boot.is-done .boot__bars i:nth-child(3) { transition-delay: 0.14s; }
.boot.is-done .boot__bars i:nth-child(4) { transition-delay: 0.21s; }
.boot.is-done .boot__bars i:nth-child(5) { transition-delay: 0.28s; }
.boot.is-done .boot__bars i:nth-child(6) { transition-delay: 0.35s; }

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

.blink {
  display: inline-block;
  animation: blink 1s steps(1) infinite;
  color: var(--accent);
}

/* ============================================================
   ヘッダー
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px, 3vw, 32px);
  transition: background-color 0.2s, box-shadow 0.2s;
}

.header.is-scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 0 var(--ink);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header__symbol {
  width: 32px;
  height: 32px;
  object-fit: contain;
  transform-origin: center;
}

.header__wordmark {
  font-family: var(--font-pixel);
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
  transform: translateY(-1px);
}

.header__nav {
  display: flex;
  gap: clamp(16px, 2.5vw, 36px);
}

.header__link {
  position: relative;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 6px 2px;
  transition: color 0.15s;
}

.header__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 3px;
  background-image: linear-gradient(to right, var(--accent) 60%, transparent 60%);
  background-size: 8px 3px;
  transition: right 0.2s steps(4);
}

.header__link:hover,
.header__link.is-active {
  color: var(--accent);
}

.header__link:hover::after,
.header__link.is-active::after {
  right: 0;
}

/* メニューボタン（ピクセルブロック6個） */
.menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.menu-btn__grid {
  display: grid;
  grid-template-columns: repeat(2, 8px);
  grid-template-rows: repeat(3, 8px);
  gap: 4px;
}

.menu-btn__grid i {
  background: var(--ink);
  transition: background-color 0.15s, transform 0.2s steps(2);
}

.menu-btn:hover .menu-btn__grid i {
  background: var(--accent);
}

.menu-btn.is-open .menu-btn__grid i {
  background: #fff;
  transform: rotate(45deg) scale(0.9);
}

/* ============================================================
   フルスクリーンメニュー
   ============================================================ */
.menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s steps(5), visibility 0.25s;
}

.menu.is-open {
  opacity: 1;
  visibility: visible;
}

.menu__nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  text-align: center;
}

.menu__link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #fff;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s, transform 0.25s steps(3), color 0.15s;
}

.menu.is-open .menu__link {
  opacity: 1;
  transform: translateY(0);
}

.menu.is-open .menu__link:nth-child(1) { transition-delay: 0.05s; }
.menu.is-open .menu__link:nth-child(2) { transition-delay: 0.10s; }
.menu.is-open .menu__link:nth-child(3) { transition-delay: 0.15s; }
.menu.is-open .menu__link:nth-child(4) { transition-delay: 0.20s; }
.menu.is-open .menu__link:nth-child(5) { transition-delay: 0.25s; }

.menu__link:hover {
  color: var(--accent);
}

.menu__en {
  font-family: var(--font-pixel);
  font-size: 34px;
  letter-spacing: 0.14em;
}

.menu__jp {
  font-size: 11px;
  letter-spacing: 0.2em;
  opacity: 0.7;
}

/* ============================================================
   ヒーロー（固定・本文が上に被さる）
   ============================================================ */
.hero {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100svh;
  min-height: 560px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--paper);
  background-image:
    repeating-linear-gradient(0deg, rgba(17, 17, 17, 0.045) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(90deg, rgba(17, 17, 17, 0.045) 0 1px, transparent 1px 24px);
  overflow: hidden;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(14px, 2.4svh, 26px);
  padding: calc(var(--header-h) + 8px) 20px 72px;
  text-align: center;
}

.hero__eyebrow {
  font-family: var(--font-pixel);
  font-size: 12px;
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  color: var(--dark);
}

.hero__copy {
  font-family: var(--font-pixel);
  font-weight: 400;
  font-size: clamp(30px, 6.2vw, 62px);
  line-height: 1.5;
  letter-spacing: 0.04em;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero__company {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-size: clamp(15px, 2.2vw, 20px);
  font-weight: 700;
  letter-spacing: 0.22em;
}

.hero__company-symbol {
  width: 1.35em;
  height: 1.35em;
}

/* 営業日パネル（参考サイトの開催日表示に相当） */
.hero__date {
  display: flex;
  align-items: center;
  gap: 18px;
  border: 2px solid var(--ink);
  background: var(--paper);
  padding: 12px 22px;
}

.hero__date-label {
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.2em;
  border-right: 2px solid var(--ink);
  padding-right: 18px;
}

.hero__date-cols {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero__date-col {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero__date-tags {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hero__date-tags span {
  font-family: var(--font-pixel);
  font-size: 10px;
  line-height: 1;
  background: var(--ink);
  color: #fff;
  padding: 2px 5px;
}

.hero__date-value {
  font-family: var(--font-pixel);
  font-size: clamp(22px, 3.4vw, 30px);
  line-height: 1;
}

.hero__dash {
  display: flex;
  gap: 4px;
}

.hero__dash i {
  width: 6px;
  height: 6px;
  background: var(--accent);
}

/* CTAボタン */
.hero__cta {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--ink);
  color: #fff;
  padding: 14px 26px;
  border: 2px solid var(--ink);
  transition: background-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.hero__cta:hover {
  background: var(--accent);
  border-color: var(--ink);
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 rgba(17, 17, 17, 1);
}

.hero__cta-symbol {
  width: 20px;
  height: 20px;
  --ink: #ffffff;
  --accent: transparent;
}

.hero__cta-text {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.hero__cta-down {
  width: 14px;
  height: 11px;
  animation: nudge 1.2s steps(2) infinite;
}

@keyframes nudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

/* 浮遊するピクセルスプライト */
.hero__deco {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero__sprite {
  position: absolute;
  width: 12px;
  height: 12px;
  animation: floaty 4s steps(8) infinite;
}

.hero__sprite--1 {
  top: 22%;
  left: 12%;
  background: var(--accent);
  box-shadow: 12px 12px 0 var(--ink);
}

.hero__sprite--2 {
  top: 34%;
  right: 14%;
  background: var(--ink);
  box-shadow: -12px 12px 0 var(--accent);
  animation-delay: 1.2s;
}

.hero__sprite--3 {
  bottom: 30%;
  left: 18%;
  background: var(--ink);
  animation-delay: 0.6s;
}

.hero__sprite--4 {
  bottom: 36%;
  right: 20%;
  background: var(--accent);
  animation-delay: 1.8s;
}

/* マウスを10px刻みで追うピクセルドット */
.pixel-cursor-trail {
  position: absolute;
  inset: 0;
  z-index: 4;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.08s steps(2, end);
}

.pixel-cursor-trail.is-active {
  opacity: 1;
}

.pixel-cursor-trail__dot {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 7px;
  height: 7px;
  background: var(--ink);
  will-change: transform;
}

.pixel-cursor-trail__dot--1 {
  width: 9px;
  height: 9px;
  background: var(--accent);
}

.pixel-cursor-trail__dot--2 {
  width: 6px;
  height: 6px;
}

.pixel-cursor-trail__dot--3 {
  width: 8px;
  height: 8px;
  background: var(--accent);
}

.pixel-cursor-trail__dot--4 {
  width: 5px;
  height: 5px;
}

.pixel-cursor-trail__dot--5 {
  width: 6px;
  height: 6px;
  background: var(--accent);
  box-shadow: 6px 0 0 var(--ink);
}

.pixel-cursor-trail__dot--6 {
  width: 4px;
  height: 4px;
}

/* ピクセル街並みバー */
.hero__artbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48px;
  z-index: 1;
}

/* ============================================================
   本文レイアウト
   ============================================================ */
.page {
  position: relative;
  z-index: 10;
  margin-top: 100svh;
  background: var(--paper);
  box-shadow: 0 -4px 0 var(--ink);
}

.section {
  padding: clamp(64px, 10vw, 120px) 0;
  scroll-margin-top: calc(var(--header-h) - 4px);
}

.section__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.section--dark {
  background: var(--dark);
  color: #fff;
}

.section--light {
  background: var(--light);
}

/* セクション見出し（1文字タイル） */
.sec-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.sec-head__tiles {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sec-head__tiles i {
  --tile-base-color: #fff;
  width: 46px;
  height: 46px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-pixel);
  font-style: normal;
  font-size: 30px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0);
}

.section--dark .sec-head__tiles i {
  --tile-base-color: var(--ink);
  background: #fff;
  color: var(--ink);
}

.sec-head__tiles i > span {
  display: block;
  color: var(--tile-base-color);
}

.js-reveal.is-inview .sec-head__tiles i {
  animation: tile-pop 0.45s steps(4) forwards;
}

.js-reveal.is-inview .sec-head__tiles i:nth-child(1) { animation-delay: 0.00s; }
.js-reveal.is-inview .sec-head__tiles i:nth-child(2) { animation-delay: 0.12s; }
.js-reveal.is-inview .sec-head__tiles i:nth-child(3) { animation-delay: 0.24s; }
.js-reveal.is-inview .sec-head__tiles i:nth-child(4) { animation-delay: 0.36s; }
.js-reveal.is-inview .sec-head__tiles i:nth-child(5) { animation-delay: 0.48s; }
.js-reveal.is-inview .sec-head__tiles i:nth-child(6) { animation-delay: 0.60s; }
.js-reveal.is-inview .sec-head__tiles i:nth-child(7) { animation-delay: 0.72s; }
.js-reveal.is-inview .sec-head__tiles i:nth-child(8) { animation-delay: 0.84s; }

@keyframes tile-pop {
  0% { opacity: 0; transform: scale(0); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes tile-chase-4 {
  0% { color: var(--tile-base-color); text-shadow: none; }
  0.01%, 24.99% { color: var(--accent); text-shadow: 2px 0 0 rgba(212, 0, 106, 0.18); }
  25%, 100% { color: var(--tile-base-color); text-shadow: none; }
}

@keyframes tile-chase-5 {
  0% { color: var(--tile-base-color); text-shadow: none; }
  0.01%, 19.99% { color: var(--accent); text-shadow: 2px 0 0 rgba(212, 0, 106, 0.18); }
  20%, 100% { color: var(--tile-base-color); text-shadow: none; }
}

@keyframes tile-chase-7 {
  0% { color: var(--tile-base-color); text-shadow: none; }
  0.01%, 14.27% { color: var(--accent); text-shadow: 2px 0 0 rgba(212, 0, 106, 0.18); }
  14.28%, 100% { color: var(--tile-base-color); text-shadow: none; }
}

.sec-head__jp {
  writing-mode: vertical-rl;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3em;
  opacity: 0;
  transition: opacity 0.5s 0.9s;
}

.js-reveal.is-inview .sec-head__jp {
  opacity: 1;
}

/* 本文側のふわっと表示 */
.sec-body {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s 0.35s, transform 0.6s 0.35s steps(6);
  min-width: 0;
}

.js-reveal.is-inview .sec-body {
  opacity: 1;
  transform: translateY(0);
}

/* 黒帯ハイライト見出し（対角にピクセルの角飾り） */
.marked {
  position: relative;
  display: inline-block;
  font-size: clamp(22px, 3.6vw, 32px);
  font-weight: 900;
  line-height: 1.6;
  background: var(--ink);
  color: #fff;
  padding: 0.3em 0.9em;
  margin-bottom: clamp(24px, 4vw, 40px);
  box-decoration-break: clone;
}

/* 右上：帯から1ピクセル飛び出す角 */
.marked::before {
  content: "";
  position: absolute;
  top: -0.38em;
  right: -0.38em;
  width: 0.38em;
  height: 0.38em;
  background: var(--ink);
}

/* 左下：外へ階段状に降りる2ピクセル */
.marked::after {
  content: "";
  position: absolute;
  left: -0.38em;
  bottom: -0.38em;
  width: 0.38em;
  height: 0.38em;
  background: var(--ink);
  box-shadow: -0.3em 0.3em 0 -0.08em var(--ink);
}

.marked span {
  color: var(--accent);
}

.section--dark .marked {
  background: #fff;
  color: var(--ink);
}

.section--dark .marked::before,
.section--dark .marked::after {
  background: #fff;
}

.section--dark .marked::after {
  box-shadow: -0.3em 0.3em 0 -0.08em #fff;
}

.marked__sub {
  display: block;
  font-family: var(--font-pixel);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.3em;
  color: #fff !important;
  opacity: 0.75;
}

/* 汎用ボタン */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.16em;
  padding: 13px 30px;
  border: 2px solid var(--ink);
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.btn__arrow {
  width: 10px;
  height: 13px;
}

.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.btn--ghost:hover {
  background: #fff;
  color: var(--ink);
}

.btn--accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--ink);
}

.btn--accent:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 rgba(17, 17, 17, 1);
}

.btn--line {
  background: #fff;
  color: var(--ink);
}

.btn--line:hover {
  background: var(--ink);
  color: #fff;
}

/* ============================================================
   NEWS
   ============================================================ */
.news__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.news-item {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 28px);
  width: 100%;
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--ink);
  padding: 16px clamp(16px, 3vw, 28px);
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.news-item:hover {
  transform: translate(-3px, -3px);
  box-shadow: 5px 5px 0 rgba(17, 17, 17, 0.9);
}

.news-item:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.news-item__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
  min-width: 82px;
  border-right: 2px dotted var(--gray);
  padding-right: clamp(12px, 2vw, 22px);
}

.news-item__year {
  width: 100%;
  margin-bottom: 5px;
  padding-bottom: 4px;
  border-bottom: 2px solid currentColor;
  color: var(--accent);
  font-family: var(--font-pixel);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.18em;
  text-align: center;
}

.news-item__md {
  font-family: var(--font-pixel);
  font-size: 22px;
}

.news-item__dow {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--dark);
}

.news-item__title {
  flex: 1;
  font-weight: 500;
}

.news-item__arrow {
  width: 10px;
  height: 13px;
  flex-shrink: 0;
  color: var(--accent);
  transition: transform 0.15s steps(2);
}

.news-item:hover .news-item__arrow {
  transform: translateX(4px);
}


/* お知らせ詳細ダイアログ */
.news-dialog {
  width: min(calc(100% - 32px), 680px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: visible;
  color: var(--ink);
  background: transparent;
  border: 0;
}

.news-dialog::backdrop {
  background: rgba(17, 17, 17, 0.82);
  backdrop-filter: blur(3px);
}

.news-dialog__panel {
  position: relative;
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  padding: clamp(32px, 6vw, 56px);
  background: var(--paper);
  border: 2px solid var(--ink);
}

.news-dialog__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--paper);
  background: var(--ink);
  border: 2px solid var(--ink);
  font-family: var(--font-pixel);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.news-dialog__close:hover,
.news-dialog__close:focus-visible {
  color: var(--ink);
  background: var(--accent);
  outline: none;
}
.news-dialog__close span{
  line-height:0.7;
  margin-top: -8px;
}
.news-dialog__label {
  display: inline-block;
  margin-bottom: 18px;
  padding: 4px 9px;
  color: #fff;
  background: var(--accent);
  font-family: var(--font-pixel);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.18em;
}

.news-dialog__date {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-family: var(--font-pixel);
  font-size: 14px;
  letter-spacing: 0.08em;
}

.news-dialog__title {
  padding-bottom: 16px;
  border-bottom: 2px solid var(--ink);
  font-size: clamp(20px, 4vw, 28px);
  line-height: 1.6;
}

.news-dialog__body {
  margin-top: 22px;
  color: var(--dark);
  line-height: 2;
}

.news-dialog__button {
  margin: 30px auto 0;
}

body.dialog-open {
  overflow: hidden;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about__text p + p {
  margin-top: 1.4em;
}

.about__points {
  margin-top: clamp(36px, 6vw, 56px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.point-card {
  border: 2px solid var(--ink);
  background: var(--paper);
  padding: 22px 20px;
}

.point-card__num {
  font-family: var(--font-pixel);
  font-size: 19px;
  color: var(--accent);
  line-height: 1;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.point-card__title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.point-card__text {
  font-size: 13px;
  line-height: 1.9;
  color: var(--dark);
}

/* ============================================================
   SERVICE
   ============================================================ */
.service__list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 5vw, 44px);
  padding-left: 8px;
}

/* タイムラインのドット破線 */
.service__list::before {
  content: "";
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 31px;
  width: 2px;
  background-image: linear-gradient(to bottom, var(--ink) 50%, transparent 50%);
  background-size: 2px 10px;
}

.service-item {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: clamp(16px, 3vw, 28px);
  align-items: start;
}

.service-item__badge {
  width: 48px;
  height: 48px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-pixel);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.service-item__card {
  position: relative;
  border: 2px solid var(--ink);
  background: var(--paper);
  padding: clamp(20px, 3.5vw, 32px);
}

.service-item__title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  font-size: clamp(18px, 2.6vw, 22px);
  font-weight: 900;
  margin-bottom: 10px;
}

.service-item__en {
  font-family: var(--font-pixel);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.28em;
  color: var(--accent);
}

.service-item__text {
  color: var(--dark);
  font-size: 14px;
}

.service-message {
  display: inline;
}

.service-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.06s steps(2, end), transform 0.08s steps(2, end);
}

.service-char.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.service-char--space {
  width: 0.35em;
}

.service-item__card.is-message-pending {
  cursor: pointer;
}

.service-item__card.is-message-pending::after {
  content: "▶ CLICK : FULL MESSAGE";
  position: absolute;
  right: 10px;
  bottom: 5px;
  color: var(--accent);
  font-family: var(--font-pixel);
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0.08em;
  animation: blink 0.8s steps(1) infinite;
}

.service-item__card.is-message-pending:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

/* ============================================================
   COMPANY
   ============================================================ */
.outline {
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.outline__row {
  display: grid;
  grid-template-columns: 9em 1fr;
  gap: 16px;
  padding: 18px 8px;
}

.outline__row + .outline__row {
  background-image: linear-gradient(to right, var(--ink) 55%, transparent 55%);
  background-size: 14px 2px;
  background-repeat: repeat-x;
  background-position: top left;
}

.outline__row dt {
  font-weight: 700;
}

.outline__row dd {
  color: var(--dark);
}

.outline__sub {
  display: block;
  margin-top: 2px;
  color: var(--accent);
  font-family: var(--font-pixel);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.12em;
}

.outline__business {
  display: grid;
  gap: 5px;
}

.outline__business li {
  position: relative;
  padding-left: 1.15em;
}

.outline__business li::before {
  content: "■";
  position: absolute;
  top: 0.15em;
  left: 0;
  color: var(--accent);
  font-size: 0.65em;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact__card {
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 rgba(17, 17, 17, 0.85);
  padding: clamp(32px, 6vw, 56px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.contact__icon {
  width: 52px;
  height: 52px;
  color: var(--accent);
}

.contact__lead {
  font-weight: 500;
}

.contact__note {
  font-size: 12px;
  color: var(--dark);
}

/* お問い合わせフォーム */
.contact-form {
  width: 100%;
  max-width: 600px;
  margin: 4px auto 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field__label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
}

.field__req {
  font-family: var(--font-pixel);
  font-size: 11px;
  line-height: 1;
  color: #fff;
  background: var(--accent);
  padding: 3px 6px 4px;
  letter-spacing: 0.1em;
}

.field__input {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 0;
  padding: 10px 14px;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.field__input::placeholder {
  color: #b8b8b8;
}

.field__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 4px 4px 0 rgba(17, 17, 17, 1);
}

.field__input--textarea {
  resize: vertical;
  min-height: 160px;
}

.contact-form__privacy-note {
  padding: 14px 16px;
  font-size: 12px;
  line-height: 1.9;
  color: var(--dark);
  background: var(--light);
  border-left: 4px solid var(--accent);
}

.contact-form__privacy-note a,
.privacy-consent a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.field--consent {
  margin-top: -2px;
}

.privacy-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.9;
  background: #fff;
  border: 2px solid var(--ink);
  cursor: pointer;
}

.privacy-consent__input {
  width: 20px;
  height: 20px;
  margin-top: 4px;
  flex: 0 0 20px;
  accent-color: var(--accent);
  cursor: pointer;
}

.privacy-consent__input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* ハニーポット（視覚的に隠す） */
.field--hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.form-status {
  display: none;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 16px;
  background: var(--light);
}

.form-status.is-show {
  display: block;
}

.form-status--ok {
  background: var(--ink);
  color: #fff;
}

.form-status--error {
  background: var(--accent);
  color: #fff;
}

.contact-form__submit {
  align-self: center;
}

.contact-form__submit:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
  box-shadow: var(--shadow);
}

/* フォーム代替のメール連絡 */
.contact__alt {
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
  padding-top: 26px;
  border-top: 2px dashed var(--gray);
}

.contact__alt-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--dark);
}

.contact__alt .btn {
  max-width: 100%;
}

/* ============================================================
   フッター
   ============================================================ */
.footer {
  background: var(--ink);
  color: #fff;
  padding: clamp(48px, 7vw, 72px) 0 32px;
}

.footer__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer__symbol {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transform-origin: center;
}

.footer__wordmark {
  font-family: var(--font-pixel);
  font-size: clamp(20px, 3vw, 24px);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  font-size: 12px;
}

.footer__links a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.footer__copy {
  font-family: var(--font-pixel);
  font-size: 12px;
  letter-spacing: 0.14em;
  opacity: 0.6;
  margin-top: 10px;
}

/* ============================================================
   PRIVACY POLICY
   ============================================================ */
.privacy-page {
  background: var(--light);
}

.privacy-page .header {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 0 var(--ink);
}

.privacy-header__nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 32px);
}

.privacy-header__link {
  position: relative;
  padding: 6px 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.privacy-header__link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 3px;
  background: var(--accent);
  transition: right 0.18s steps(3, end);
}

.privacy-header__link:hover::after,
.privacy-header__link:focus-visible::after {
  right: 0;
}

.privacy-main {
  padding-top: var(--header-h);
}

.privacy-hero {
  position: relative;
  padding: clamp(64px, 9vw, 112px) 0 clamp(54px, 7vw, 88px);
  color: #fff;
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 24px 24px;
}

.privacy-hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 8px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 24px, #fff 24px 48px, var(--ink) 48px 72px);
}

.privacy-hero__inner,
.privacy-content__inner {
  width: min(calc(100% - 40px), 960px);
  margin: 0 auto;
}

.privacy-hero__eyebrow {
  display: inline-block;
  margin-bottom: 20px;
  padding: 4px 10px;
  color: var(--ink);
  background: var(--accent);
  font-family: var(--font-pixel);
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.18em;
}

.privacy-hero__title {
  font-size: clamp(30px, 6vw, 56px);
  line-height: 1.45;
  letter-spacing: 0.08em;
}

.privacy-hero__lead {
  max-width: 720px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(14px, 2vw, 17px);
}

.privacy-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 30px;
  color: rgba(255, 255, 255, 0.58);
  font-family: var(--font-pixel);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.privacy-content {
  padding: clamp(48px, 8vw, 88px) 0;
}

.privacy-content__inner {
  padding: clamp(28px, 6vw, 64px);
  background: #fff;
  border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
}

.privacy-intro {
  padding-bottom: clamp(28px, 5vw, 48px);
  font-size: 15px;
  font-weight: 500;
  line-height: 2.1;
}

.privacy-block {
  padding: clamp(30px, 5vw, 48px) 0;
  border-top: 2px dashed var(--gray);
}

.privacy-block__head {
  display: grid;
  grid-template-columns: 50px 1fr;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.privacy-block__number {
  width: 50px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--ink);
  font-family: var(--font-pixel);
  font-size: 16px;
}

.privacy-block h2 {
  font-size: clamp(19px, 3vw, 25px);
  line-height: 1.5;
  letter-spacing: 0.06em;
}

.privacy-block p + p,
.privacy-block .privacy-list + p {
  margin-top: 16px;
}

.privacy-block a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.privacy-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.privacy-list li {
  position: relative;
  padding-left: 22px;
}

.privacy-list li::before {
  content: '';
  position: absolute;
  top: 0.82em;
  left: 2px;
  width: 8px;
  height: 8px;
  background: var(--accent);
}

.privacy-info {
  border-top: 2px solid var(--ink);
}

.privacy-info > div {
  display: grid;
  grid-template-columns: minmax(120px, 0.28fr) 1fr;
  gap: 20px;
  padding: 13px 8px;
  border-bottom: 2px dashed var(--gray);
}

.privacy-info dt {
  font-weight: 700;
}

.privacy-contact-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px;
  background: var(--light);
  border-left: 6px solid var(--accent);
}

.privacy-contact-box strong {
  font-size: 16px;
}

.privacy-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  padding-top: clamp(28px, 5vw, 48px);
  border-top: 2px solid var(--ink);
}

.privacy-actions .btn {
  min-width: min(100%, 250px);
}

.footer__links [aria-current='page'] {
  color: var(--accent);
}

/* ============================================================
   ホバーインタラクション
   ============================================================ */
.header__symbol,
.header__wordmark,
.hero__eyebrow,
.hero__copy,
.hero__date,
.hero__date-tags span,
.hero__cta-symbol,
.sec-head__tiles i,
.marked,
.marked span,
.point-card,
.point-card__num,
.service-item__badge,
.service-item__card,
.service-item__en,
.outline__row,
.outline__row dt,
.outline__business li::before,
.contact__card,
.contact__icon,
.field__input,
.footer__symbol,
.footer__wordmark {
  transition-property: color, background-color, border-color, box-shadow, transform, letter-spacing, opacity, filter;
  transition-duration: 0.18s;
  transition-timing-function: steps(3, end);
}

@keyframes pixel-arrow-shift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(5px); }
}

@keyframes pixel-label-flash {
  0%, 100% { color: var(--accent); transform: translateX(0); }
  50% { color: var(--ink); transform: translateX(4px); }
}

@keyframes pixel-mail-buzz {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-2px); }
}

@media (hover: hover) and (pointer: fine) {
  .header__logo:hover .header__symbol {
    transform: rotate(90deg) scale(1.08);
  }

  .header__logo:hover .header__wordmark {
    color: var(--accent);
    text-shadow: 3px 3px 0 rgba(17, 17, 17, 0.16);
  }

  .hero__eyebrow:hover {
    color: var(--accent);
    letter-spacing: 0.58em;
  }

  .hero__copy:hover {
    text-shadow: 4px 0 0 rgba(212, 0, 106, 0.24), -4px 0 0 rgba(17, 17, 17, 0.12);
  }

  .hero__date:hover {
    background: #fff;
    transform: translate(-3px, -3px);
    box-shadow: 7px 7px 0 var(--ink);
  }

  .hero__date:hover .hero__date-tags span:nth-child(2) {
    background: var(--accent);
  }

  .hero__cta:hover .hero__cta-symbol {
    transform: rotate(180deg) scale(1.12);
  }

  .btn:hover .btn__arrow {
    animation: pixel-arrow-shift 0.36s steps(3) infinite;
  }

  .section:hover .sec-head__tiles i > span {
    animation-timing-function: steps(1, end);
    animation-iteration-count: infinite;
    animation-fill-mode: both;
  }

  .news:hover .sec-head__tiles i > span {
    animation-name: tile-chase-4;
    animation-duration: 4s;
  }

  .about:hover .sec-head__tiles i > span {
    animation-name: tile-chase-5;
    animation-duration: 5s;
  }

  .service:hover .sec-head__tiles i > span,
  .company:hover .sec-head__tiles i > span,
  .contact:hover .sec-head__tiles i > span {
    animation-name: tile-chase-7;
    animation-duration: 7s;
  }

  .section:hover .sec-head__tiles i:nth-child(1) > span { animation-delay: 0s; }
  .section:hover .sec-head__tiles i:nth-child(2) > span { animation-delay: 1s; }
  .section:hover .sec-head__tiles i:nth-child(3) > span { animation-delay: 2s; }
  .section:hover .sec-head__tiles i:nth-child(4) > span { animation-delay: 3s; }
  .section:hover .sec-head__tiles i:nth-child(5) > span { animation-delay: 4s; }
  .section:hover .sec-head__tiles i:nth-child(6) > span { animation-delay: 5s; }
  .section:hover .sec-head__tiles i:nth-child(7) > span { animation-delay: 6s; }

  .marked:hover {
    transform: translate(-3px, -3px);
    box-shadow: 7px 7px 0 rgba(212, 0, 106, 0.72);
  }

  .marked:hover span:not(.marked__sub) {
    color: #fff;
    text-shadow: 3px 0 0 var(--accent);
  }

  .point-card:hover {
    background: #fff;
    transform: translate(-4px, -4px);
    box-shadow: 8px 8px 0 var(--ink);
  }

  .point-card:hover .point-card__num {
    animation: pixel-label-flash 0.5s steps(3) 1;
  }

  .news-item:hover .news-item__year {
    color: var(--ink);
    background: var(--accent);
  }

  .service-item:hover .service-item__badge {
    background: var(--accent);
    transform: rotate(-4deg) scale(1.06);
    box-shadow: 4px 4px 0 var(--ink);
  }

  .service-item__card:hover {
    transform: translate(4px, -3px);
    box-shadow: 7px 7px 0 var(--ink);
  }

  .service-item__card:hover .service-item__en {
    letter-spacing: 0.34em;
  }

  .outline__row:hover {
    background-color: rgba(212, 0, 106, 0.07);
  }

  .outline__row:hover dt {
    color: var(--accent);
    transform: translateX(5px);
  }

  .outline__business li:hover::before {
    transform: scale(1.5) rotate(45deg);
  }

  .contact__card:hover {
    box-shadow: 12px 12px 0 rgba(17, 17, 17, 0.92);
  }

  .contact__card:hover .contact__icon {
    animation: pixel-mail-buzz 0.42s steps(4) 1;
  }

  .field__input:hover {
    border-color: var(--accent);
    box-shadow: 3px 3px 0 rgba(17, 17, 17, 0.34);
  }

  .footer__logo:hover .footer__symbol {
    transform: rotate(90deg) scale(1.12);
  }

  .footer__logo:hover .footer__wordmark {
    color: var(--accent);
    letter-spacing: 0.2em;
  }

  .footer__links a:hover {
    text-decoration: none;
    text-shadow: 3px 3px 0 rgba(255, 255, 255, 0.16);
  }
}

/* ============================================================
   レスポンシブ
   ============================================================ */
@media (max-width: 860px) {
  .header__nav {
    display: none;
  }

  .privacy-header__nav {
    display: flex;
  }

  .menu-btn {
    display: block;
    position: relative;
    z-index: 110;
  }

  .section__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .sec-head {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 14px 16px;
  }

  .sec-head__tiles {
    flex-direction: row;
  }

  .sec-head__tiles i {
    width: 38px;
    height: 38px;
    font-size: 24px;
  }

  .sec-head__jp {
    writing-mode: horizontal-tb;
    white-space: nowrap;
  }

  .about__points {
    grid-template-columns: 1fr;
  }

  .hero__date {
    flex-direction: column;
    gap: 10px;
    padding: 14px 20px;
  }

  .hero__date-label {
    border-right: none;
    border-bottom: 2px solid var(--ink);
    padding-right: 0;
    padding-bottom: 6px;
  }

  .outline__row {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 14px 4px;
  }

  .service__list::before {
    left: 27px;
  }

  .service-item {
    grid-template-columns: 40px 1fr;
  }

  .service-item__badge {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}

@media (max-width: 520px) {
  .privacy-header__nav {
    gap: 11px;
  }

  .privacy-header__link {
    font-size: 10px;
    letter-spacing: 0.08em;
  }

  .privacy-hero__inner,
  .privacy-content__inner {
    width: calc(100% - 24px);
  }

  .privacy-content__inner {
    padding: 24px 20px;
    box-shadow: 5px 5px 0 var(--ink);
  }

  .privacy-block__head {
    grid-template-columns: 42px 1fr;
    gap: 12px;
  }

  .privacy-block__number {
    width: 42px;
    height: 34px;
    font-size: 14px;
  }

  .privacy-info > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .privacy-contact-box {
    padding: 18px 16px;
    overflow-wrap: anywhere;
  }

  .privacy-actions {
    flex-direction: column;
  }

  .privacy-actions .btn {
    width: 100%;
  }

  .privacy-consent {
    padding: 12px;
    font-size: 12px;
  }

  .news-item {
    gap: 12px;
    padding: 14px 12px;
  }

  .news-item__date {
    min-width: 66px;
    padding-right: 11px;
  }

  .news-item__year {
    font-size: 9px;
  }

  .news-item__md {
    font-size: 18px;
  }

  .news-item__dow {
    font-size: 9px;
  }

  .news-item__title {
    font-size: 13px;
    line-height: 1.7;
  }

  .news-dialog {
    width: calc(100% - 24px);
  }

  .news-dialog__panel {
    max-height: calc(100dvh - 36px);
    padding: 54px 22px 30px;
  }

  .news-dialog__close {
    top: 10px;
    right: 10px;
  }

  .contact__alt .btn {
    font-size: 12px;
  }
}

/* ============================================================
   メニュー展開中のヘッダー配色
   ============================================================ */
body.menu-open {
  overflow: hidden;
}

body.menu-open .header {
  background: transparent;
  box-shadow: none;
}

body.menu-open .header__wordmark {
  color: #fff;
}

body.menu-open .header__symbol {
  filter: brightness(0) invert(1);
}

/* ============================================================
   JS無効時のフォールバック
   ============================================================ */
html:not(.js) .boot {
  display: none;
}

html:not(.js) .sec-head__tiles i,
html:not(.js) .sec-head__jp,
html:not(.js) .sec-body {
  opacity: 1;
  transform: none;
}

/* ============================================================
   アニメーション抑制設定
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .boot {
    display: none;
  }

  .pixel-cursor-trail {
    display: none;
  }

  .section:hover .sec-head__tiles i > span {
    color: var(--tile-base-color);
    animation: none !important;
  }

  .sec-head__tiles i,
  .sec-head__jp,
  .sec-body {
    opacity: 1;
    transform: none;
  }
}
