/* ============================================================
   HINOTORI WORKS — main.css  "Phoenix Protocol"
   ============================================================ */

/* ============================================================
   0. カスタムプロパティ（デザイントークン）
   ============================================================ */
:root {
  /* Backgrounds */
  --bg:          #050911;
  --bg-2:        #080d1a;
  --bg-3:        #0c1224;
  --bg-4:        #101830;
  --surface:     rgba(255,255,255,0.035);
  --surface-2:   rgba(255,255,255,0.06);

  /* Borders */
  --border:      rgba(255,255,255,0.07);
  --border-2:    rgba(255,255,255,0.13);
  --border-acc:  rgba(216,24,114,0.3);

  /* Accent — Magenta */
  --acc:         #D81872;
  --acc-light:   #E03382;
  --acc-dark:    #B01460;
  --acc-glow:    rgba(216,24,114,0.22);
  --acc-glow-2:  rgba(216,24,114,0.06);

  /* Accent 2 — Drone Blue */
  --blue:        #38BDF8;
  --blue-glow:   rgba(56,189,248,0.18);
  --blue-glow-2: rgba(56,189,248,0.05);

  /* Text */
  --text:        #EFF3FA;
  --text-2:      #A0AABA;
  --text-3:      #505A70;

  /* Typography */
  --font-display: 'Orbitron', 'Noto Sans JP', sans-serif;
  --font-body:    'Noto Sans JP', sans-serif;
  --font-mono:    'Space Mono', monospace;

  /* Layout */
  --container:   1200px;
  --radius:      4px;
  --radius-md:   8px;
  --radius-lg:   16px;

  /* Motion */
  --ease-out-expo: cubic-bezier(0.16,1,0.3,1);
  --ease-in-expo:  cubic-bezier(0.7,0,0.84,0);
}


/* ============================================================
   1. リセット & ベース
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  background: var(--bg); /* canvas ロード前のフラッシュ防止 */
}

body {
  background: transparent; /* canvas を全ページ背景として使用 */
  position: relative;
  z-index: 1;
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.75;
  overflow-x: hidden;
  cursor: none; /* カスタムカーソル */
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: none; background: none; border: none; font-family: inherit; }
input, select, textarea, button { font-family: inherit; font-size: inherit; }
address { font-style: normal; }

/* スクロールバー（Webkit） */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--text-3); border-radius: 2px; }

/* テキスト選択 */
::selection { background: var(--acc); color: #fff; }


/* ============================================================
   2. カスタムカーソル
   ============================================================ */
.cursor {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 10001;
  mix-blend-mode: normal;
}

.cursor__dot {
  position: fixed;
  width: 8px; height: 8px;
  background: var(--acc);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
}

.cursor__ring {
  position: fixed;
  width: 36px; height: 36px;
  border: 1px solid rgba(216,24,114,0.5);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-out-expo),
              height 0.3s var(--ease-out-expo),
              border-color 0.3s;
}

body.cursor--hover .cursor__dot  { width: 12px; height: 12px; }
body.cursor--hover .cursor__ring { width: 56px; height: 56px; border-color: var(--acc); }
/* body.cursor--text  .cursor__ring { width: 2px; height: 28px; border-radius: 1px; } */

@media (hover: none) {
  body { cursor: auto; }
  .cursor { display: none; }
  button { cursor: pointer; }
}


/* ============================================================
   3. ローダー
   ============================================================ */
.loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease-out-expo), visibility 0.6s;
}

.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.loader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.loader__logo { width: 80px; height: 80px; }

.loader__path {
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
  animation: dash 0.8s var(--ease-out-expo) forwards;
}
.loader__path:nth-child(2) { animation-delay: 0.15s; }

.loader__circle {
  stroke-dasharray: 226;
  stroke-dashoffset: 226;
  animation: dash 1s var(--ease-out-expo) 0.3s forwards;
}

@keyframes dash { to { stroke-dashoffset: 0; } }

.loader__text {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--text-3);
  animation: fadeIn 0.5s 0.5s both;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }


/* ============================================================
   4. ヘッダー
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 40px;
  height: 72px;
  display: flex;
  align-items: center;
  transition: background 0.4s, backdrop-filter 0.4s;
}

.site-header.is-scrolled {
  background: rgba(5,9,17,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark { width: 28px; height: 28px; }
.logo-mark--lg { width: 36px; height: 36px; }

.logo-text {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text);
}

.logo-text--accent { color: var(--acc); }

/* nav は header の外に出しているので fixed で header 右側に配置 */
.header__nav {
  position: fixed;
  top: 0;
  right: 40px;
  height: 72px;
  display: flex;
  align-items: center;
  z-index: 1001;
}

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

.nav__link {
  position: relative;
  padding: 8px 14px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--text);
  transition: color 0.3s;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 14px; right: 14px;
  height: 1px;
  background: var(--acc);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out-expo);
}

.nav__link:hover { color: var(--text); }
.nav__link:hover::after { transform: scaleX(1); }

.nav__link--cta {
  background: var(--acc-glow-2);
  border: 1px solid var(--border-acc);
  border-radius: 2px;
  color: var(--acc);
  transition: background 0.3s, border-color 0.3s;
}

.nav__link--cta:hover {
  background: var(--acc-glow);
  border-color: var(--acc);
  color: var(--acc);
}
.nav__link--cta::after { display: none; }

/* ハンバーガー */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.hamburger__line {
  display: block;
  width: 22px; height: 1px;
  background: var(--text-2);
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.is-open .hamburger__line:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.is-open .hamburger__line:nth-child(2) { opacity: 0; }
.hamburger.is-open .hamburger__line:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }


/* ============================================================
   5. コンテナ・セクション共通
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

.section { position: relative; }

.section-header {
  margin-bottom: 64px;
  max-width: 640px;
}

.section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.35em;
  color: var(--acc);
  margin-bottom: 16px;
}

.section-eyebrow::before {
  content: '';
  display: block;
  width: 24px; height: 1px;
  background: var(--acc);
}

.section-title {
  font-family: var(--font-body);
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text);
}

.section-desc {
  margin-top: 20px;
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.8;
}


/* ============================================================
   6. Reveal アニメーション
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================================
   7. ボタン
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  transition: all 0.3s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  transform: translateX(-100%);
  transition: transform 0.4s var(--ease-out-expo);
}
.btn:hover::before { transform: translateX(0); }

.btn--primary {
  background: var(--acc);
  color: #fff;
  border: 1px solid var(--acc);
  box-shadow: 0 0 20px var(--acc-glow);
}
.btn--primary:hover {
  background: var(--acc-light);
  box-shadow: 0 0 40px var(--acc-glow), 0 0 80px rgba(216,24,114,0.12);
}

.btn--ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border-2);
}
.btn--ghost:hover { color: var(--text); border-color: var(--text-3); }

.btn--outline {
  background: transparent;
  color: var(--acc);
  border: 1px solid var(--border-acc);
}
.btn--outline:hover {
  background: var(--acc-glow-2);
  border-color: var(--acc);
  box-shadow: 0 0 20px var(--acc-glow);
}

.btn--lg { padding: 16px 36px; font-size: 15px; }
.btn--wide { width: 100%; }


/* ============================================================
   8. HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero__canvas {
  position: fixed;
  inset: 0;
  width: 100%; height: 100%;
  z-index: -1;
  pointer-events: none;
}

.hero__grain {
  position: absolute;
  inset: -50%;
  width: 200%; height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 1;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

.hero .container { position: relative; z-index: 2; }

.hero__content { max-width: 720px; }

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.55);
  margin-bottom: 28px;
}

.hero__eyebrow-line {
  display: block;
  width: 40px; height: 1px;
  background: var(--acc);
  flex-shrink: 0;
  animation: lineGrow 0.8s var(--ease-out-expo) 0.2s both;
}

@keyframes lineGrow { from { width: 0; } to { width: 40px; } }

.hero__title {
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}

.hero__title--accent { color: var(--acc); }

.hero__sub {
  font-size: clamp(14px, 1.5vw, 18px);
  color: var(--text-2);
  line-height: 2;
  margin-bottom: 48px;
}

.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero__stats {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.hero__stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero__stat-num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.hero__stat-unit {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--acc);
}

.hero__stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.58);
  letter-spacing: 0.08em;
}

.hero__stat-divider {
  width: 1px;
  align-self: stretch;
  background: var(--border-2);
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 2;
}

.hero__scroll-text {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.25em;
  color: var(--text-3);
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--text-3), transparent);
  animation: scrollLine 1.5s ease-in-out infinite;
}

@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; }
}


/* ============================================================
   9. グリッチエフェクト
   ============================================================ */
.glitch {
  position: relative;
  display: inline-block;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--bg);
}

.glitch::before {
  left: 2px;
  text-shadow: -1px 0 var(--acc);
  clip-path: polygon(0 30%, 100% 30%, 100% 50%, 0 50%);
  animation: glitch-a 4s infinite steps(2);
}

.glitch::after {
  left: -2px;
  text-shadow: 1px 0 var(--blue);
  clip-path: polygon(0 60%, 100% 60%, 100% 75%, 0 75%);
  animation: glitch-b 4s infinite steps(2);
}

@keyframes glitch-a {
  0%, 85%, 100% { transform: none; opacity: 0; }
  86%  { transform: translateX(-3px) skewX(1deg); opacity: 1; }
  87%  { transform: translateX(2px)  skewX(-1deg); opacity: 1; }
  88%  { transform: none; opacity: 0; }
}

@keyframes glitch-b {
  0%, 87%, 100% { transform: none; opacity: 0; }
  88%  { transform: translateX(3px) skewX(-1deg); opacity: 1; }
  89%  { transform: translateX(-2px) skewX(1deg); opacity: 1; }
  90%  { transform: none; opacity: 0; }
}


/* ============================================================
   10. ABOUT
   ============================================================ */
.concept {
  padding: 160px 0;
  background: linear-gradient(180deg, rgba(5,9,17,0.80) 0%, rgba(8,13,26,0.80) 100%);
}

.about {
  padding: 160px 0;
  background: linear-gradient(180deg, rgba(8,13,26,0.80) 0%, rgba(5,9,17,0.80) 100%);
}

.concept__body {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 0px;
  align-items: center;
}

.concept__text p {
  font-size: 16px;
  color: var(--text-2);
  line-height: 2;
  margin-bottom: 20px;
}

.concept__text strong { color: var(--text); font-weight: 700; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  color: var(--acc);
  margin-top: 16px;
  transition: gap 0.3s;
}
.link-arrow:hover { gap: 14px; }

.concept__visual { display: flex; align-items: center; justify-content: center; }

.concept__diagram {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1;
  position: relative;
}

.concept__svg { width: 100%; height: 100%; }

.diag-ring--1 { animation: rotate 20s linear infinite; transform-origin: 200px 200px; }
.diag-ring--2 { animation: rotate 30s linear infinite reverse; transform-origin: 200px 200px; }

@keyframes rotate { to { transform: rotate(360deg); } }


/* ============================================================
   11. SERVICES
   ============================================================ */
.services {
  padding: 160px 0;
  overflow: hidden;
}

.services__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.services__bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.12;
}
.services__bg-glow--1 {
  width: 600px; height: 600px;
  background: var(--acc);
  top: -200px; right: -200px;
}
.services__bg-glow--2 {
  width: 400px; height: 400px;
  background: var(--blue);
  bottom: -100px; left: -100px;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}

.service-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s var(--ease-out-expo), border-color 0.4s, box-shadow 0.4s;
  will-change: transform;
  display: flex;
  flex-direction: column;
}

.service-card:hover,
.service-card:active {
  transform: scale(1.03);
  border-color: var(--border-acc);
  box-shadow: 0 0 40px var(--acc-glow), inset 0 0 40px var(--acc-glow-2);
}

.service-card--blue:hover,
.service-card--blue:active {
  border-color: rgba(56,189,248,0.3);
  box-shadow: 0 0 40px var(--blue-glow), inset 0 0 40px var(--blue-glow-2);
}

.service-card--blue:hover {
  border-color: rgba(56,189,248,0.3);
  box-shadow: 0 0 40px var(--blue-glow), inset 0 0 40px var(--blue-glow-2);
}

.service-card__thumb {
  margin: 0;
  height: 200px;
  overflow: hidden;
}
.service-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out-expo);
}
.service-card:hover .service-card__thumb img {
  transform: scale(1.05);
}

.service-card__inner {
  padding: 16px;
  padding-right: 76px; /* アイコン(48px) + gap(12px) + padding(16px) */
  position: relative;
  z-index: 1;
  flex: 1;
}

.service-card__number {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-2);
  margin-bottom: 8px;
}

.service-card__icon {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 48px;
  height: 48px;
}

.service-card__title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 4px;
}

.service-card__title small { font-size: 12px; }

.service-card__en {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-3);
  margin-bottom: 12px;
}

.service-card__catch {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 12px;
}

.service-card__desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.5;
  margin-bottom: 20px;
}

.service-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-card__tags li {
  font-size: 10px;
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-3);
  letter-spacing: 0.04em;
}

.service-card__tag--link {
  border-color: var(--border-acc);
  background: var(--acc-glow-2);
  padding: 0;
}

.service-card__tag--link a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  color: var(--acc);
  transition: color 0.2s, background 0.2s;
}

.service-card__tag--link a:hover {
  color: #fff;
  background: var(--acc-glow);
}

.service-card__line {
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--acc);
  transition: width 0.6s var(--ease-out-expo);
}
.service-card__line--blue { background: var(--blue); }
.service-card:hover .service-card__line { width: 100%; }

/* タッチデバイス: タップ :active を無効にしてスクロール中央検出に統一 */
@media (hover: none) {
  .service-card:active,
  .service-card--blue:active {
    transform: none;
    border-color: var(--border);
    box-shadow: none;
  }
  .service-card.is-active {
    transform: scale(1.03);
    border-color: var(--border-acc);
    box-shadow: 0 0 40px var(--acc-glow), inset 0 0 40px var(--acc-glow-2);
  }
  .service-card--blue.is-active {
    border-color: rgba(56,189,248,0.3);
    box-shadow: 0 0 40px var(--blue-glow), inset 0 0 40px var(--blue-glow-2);
  }
  .service-card.is-active .service-card__thumb img { transform: scale(1.05); }
  .service-card.is-active .service-card__line      { width: 100%; }
}

.services__cta {
  text-align: center;
  padding: 32px 40px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.services__cta p { color: var(--text-2); font-size: 15px; }
.services__cta p + p { font-size: 13px; color: rgba(255,255,255,0.38); line-height: 1.8; max-width: 800px; }
.services__cta strong { color: var(--text); }
.services__cta .btn { margin-top: 16px; }


/* ============================================================
   12. WORKS
   ============================================================ */
.works {
  padding: 160px 0;
  background: linear-gradient(180deg, rgba(8,13,26,0.80) 0%, rgba(5,9,17,0.80) 100%);
}

.works-more {
  text-align: center;
  margin-top: 56px;
}

.works-filter {
  display: flex;
  gap: 8px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.works-filter__btn {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  padding: 10px 24px;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text-3);
  transition: all 0.3s;
}

.works-filter__btn:hover,
.works-filter__btn.active {
  border-color: var(--acc);
  color: var(--acc);
  background: var(--acc-glow-2);
}

.works-loading {
  display: none;
  justify-content: center;
  padding: 40px;
}
.works-loading.is-visible { display: flex; }

.works-loading__spinner {
  width: 32px; height: 32px;
  border: 1px solid var(--border);
  border-top-color: var(--acc);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.works-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.3s, transform 0.4s var(--ease-out-expo), box-shadow 0.4s;
  will-change: transform;
}

.works-card:hover {
  border-color: var(--border-acc);
  transform: scale(1.03);
  box-shadow: 0 0 40px var(--acc-glow), inset 0 0 40px var(--acc-glow-2);
}

.works-card.is-hidden {
  display: none;
}

.works-card__link { display: block; }

.works-card__thumb {
  position: relative;
  padding-top: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  background: var(--bg-3);
}

.works-card__thumb figure {
  position: absolute;
  inset: 0;
  margin: 0;
}
.works-card__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-out-expo);
}

.works-card:hover .works-card__thumb img { transform: scale(1.05); }

.works-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,9,17,0.9) 0%, transparent 60%);
  transition: opacity 0.3s;
}

.works-card__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 52px; height: 52px;
  background: rgba(216,24,114,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s, background 0.3s;
}

.works-card__play svg { width: 20px; height: 20px; color: #fff; margin-left: 3px; }
.works-card:hover .works-card__play { transform: translate(-50%, -50%) scale(1.1); background: var(--acc); }

@media (hover: none) {
  .works-card:active {
    transform: none;
    border-color: var(--border);
    box-shadow: none;
  }
  .works-card.is-active {
    border-color: var(--border-acc);
    transform: scale(1.03);
    box-shadow: 0 0 40px var(--acc-glow), inset 0 0 40px var(--acc-glow-2);
  }
  .works-card.is-active .works-card__thumb img { transform: scale(1.05); }
  .works-card.is-active .works-card__play { transform: translate(-50%, -50%) scale(1.1); background: var(--acc); }
}

.works-card__body {
  padding: 20px;
}

.works-card__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 10px;
}
.works-card__cat {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 0.25em;
  color: var(--acc);
  border: 1px solid var(--border-acc);
  padding: 3px 10px;
  border-radius: 2px;
}

.works-card__title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 6px;
}

.works-card__client,
.works-card__desc {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.works-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}
.works-card__tag {
  font-size: 10px;
  color: var(--text-3);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
}

.works__empty { text-align: center; color: var(--text-3); padding: 80px; grid-column: 1/-1; }

/* ギャラリーバッジ（枚数表示） */
.works-card__gallery-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 4px;
  backdrop-filter: blur(4px);
  z-index: 2;
}

/* Gallery slideshow modal */
.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.gallery-modal.is-open { opacity: 1; visibility: visible; }
.gallery-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.92);
}
.gallery-modal__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: min(90vw, 960px);
  max-height: 90vh;
}
.gallery-modal__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 82vh;
}
.gallery-modal__img {
  max-width: min(90vw, 960px);
  max-height: 82vh;
  object-fit: contain;
  display: block;
  user-select: none;
}
.gallery-modal__close {
  position: absolute;
  top: -44px;
  right: 0;
  background: none;
  border: none;
  color: rgba(255,255,255,0.8);
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s;
}
.gallery-modal__close:hover { color: #fff; }
.gallery-modal__prev,
.gallery-modal__next {
  position: absolute;
  top: calc(50% - 24px);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 22px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 2;
}
.gallery-modal__prev:hover,
.gallery-modal__next:hover { background: rgba(255,255,255,0.25); }
.gallery-modal__prev { left: -64px; }
.gallery-modal__next { right: -64px; }
.gallery-modal__counter {
  margin-top: 14px;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 0.1em;
}
@media (max-width: 768px) {
  .gallery-modal__prev { left: 4px; }
  .gallery-modal__next { right: 4px; }
}

/* YouTube モーダル */
.yt-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.yt-modal.is-open { opacity: 1; visibility: visible; }
.yt-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.88);
}
.yt-modal__inner {
  position: relative;
  z-index: 1;
  width: min(90vw, 960px);
  aspect-ratio: 16/9;
}
.yt-modal__embed,
.yt-modal__embed iframe { width: 100%; height: 100%; display: block; }
.yt-modal__close {
  position: absolute;
  top: -44px;
  right: 0;
  background: none;
  border: none;
  color: rgba(255,255,255,0.8);
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s;
}
.yt-modal__close:hover { color: #fff; }

.works__more { text-align: center; }


/* ============================================================
   13. FLOW
   ============================================================ */
.flow {
  padding: 160px 0;
  background: rgba(8,13,26,0.80);
}

.flow__track {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 60px;
  margin-bottom: 64px;
}

.flow__line {
  position: absolute;
  left: 19px;
  top: 20px;
  bottom: 20px;
  width: 1px;
  background: var(--border);
}

.flow__line-fill {
  position: absolute;
  top: 0; left: 0;
  width: 1px;
  height: 0%;
  background: linear-gradient(to bottom, var(--acc), var(--blue));
  transition: height 0.1s linear;
}

.flow__step {
  position: relative;
  display: flex;
  gap: 32px;
  align-items: flex-start;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}
.flow__step:last-child { border-bottom: none; }

.flow__node {
  position: absolute;
  left: -60px;
  top: 32px;
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.flow__step:hover .flow__node {
  border-color: var(--acc);
  box-shadow: 0 0 16px var(--acc-glow);
}

.flow__node-num {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 700;
  color: var(--acc);
  letter-spacing: 0.1em;
}

carsol.flow__content {}

.flow__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.flow__desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.8;
  max-width: 600px;
}

.flow__cta { text-align: center; }


/* ============================================================
   14. VOICE
   ============================================================ */
.voice {
  padding: 160px 0;
  overflow: hidden;
}

.voice__carousel { position: relative; }

.voice__track {
  display: flex;
  gap: 24px;
  transition: transform 0.6s var(--ease-out-expo);
}

.voice__item {
  flex-shrink: 0;
  width: 100%;
  padding: 48px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
}

.voice__quote {
  font-family: 'Georgia', serif;
  font-size: 80px;
  line-height: 0.8;
  color: var(--acc);
  opacity: 0.3;
  margin-bottom: 24px;
  user-select: none;
}

.voice__text p {
  font-size: 16px;
  line-height: 1.9;
  color: var(--text-2);
  font-style: normal;
  margin-bottom: 32px;
}

.voice__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.voice__name {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  font-style: normal;
}

.voice__job {
  font-size: 13px;
  color: var(--text-3);
}

.voice__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: auto;
}

.voice__tags li {
  font-size: 11px;
  padding: 4px 12px;
  border: 1px solid var(--border-acc);
  color: var(--acc);
  border-radius: 100px;
}

.voice__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 32px;
}

.voice__prev,
.voice__next {
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  transition: all 0.3s;
}

.voice__prev svg,
.voice__next svg { width: 18px; height: 18px; }

.voice__prev:hover,
.voice__next:hover {
  border-color: var(--acc);
  color: var(--acc);
  box-shadow: 0 0 12px var(--acc-glow);
}

.voice__dots {
  display: flex;
  gap: 8px;
}

.voice__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border-2);
  border: none;
  transition: background 0.3s, transform 0.3s;
}

.voice__dot.active {
  background: var(--acc);
  transform: scale(1.2);
}


/* ============================================================
   15. CONTACT
   ============================================================ */
.contact {
  padding: 160px 0;
  position: relative;
  overflow: hidden;
}

.contact__bg { position: absolute; inset: 0; pointer-events: none; }

.contact__bg-glow {
  position: absolute;
  width: 800px; height: 800px;
  background: radial-gradient(ellipse, rgba(216,24,114,0.06) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.contact__body {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 80px;
  align-items: start;
}

.contact-form {
  position: relative;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

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

.form-group--full { margin-bottom: 20px; }

.form-group label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-2);
  letter-spacing: 0.04em;
}

.required { color: var(--acc); margin-left: 2px; }

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: var(--text);
  font-size: 15px;
  transition: border-color 0.3s, box-shadow 0.3s;
  appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-3); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--acc);
  box-shadow: 0 0 0 3px var(--acc-glow-2);
}

.form-group textarea { resize: vertical; min-height: 140px; }

.form-submit { margin-top: 8px; }

.btn-loading {
  display: none;
  width: 16px; height: 16px;
  border: 1.5px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.btn--loading .btn-text { display: none; }
.btn--loading .btn-loading { display: block; }

.form-note {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 12px;
  text-align: center;
}

.form-result {
  margin-top: 16px;
  padding: 16px;
  border-radius: var(--radius);
  font-size: 14px;
  display: none;
}

.form-result.success { display: block; background: rgba(56,189,248,0.1); border: 1px solid rgba(56,189,248,0.3); color: var(--blue); }
.form-result.error   { display: block; background: rgba(216,24,114,0.1); border: 1px solid var(--border-acc); color: var(--acc); }

.contact__aside {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: 8px;
}

.contact-method {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-method__icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-1);
}

.contact-method__icon svg { width: 20px; height: 20px; }

.contact-method--line .contact-method__icon {
  border-color: var(--border);
  overflow: hidden;
}

.contact-method__label {
  font-size: 12px;
  color: var(--text-2);
  margin-bottom: 4px;
}

.contact-method__value {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  transition: color 0.3s;
}
.contact-method__value:hover { color: var(--acc); }

.contact-method__line-btn {
  display: inline-block;
  padding: 8px 20px;
  background: #06C755;
  color: #fff;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  transition: opacity 0.3s;
}
.contact-method__line-btn:hover { opacity: 0.85; color: #fff; }

.contact-method__note {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 6px;
}

.contact-info {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-info__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-3);
}


/* ============================================================
   16. フッター
   ============================================================ */
.site-footer {
  padding: 80px 0 40px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 80px;
  margin-bottom: 64px;
  align-items: start;
}

.footer__brand { max-width: 320px; }

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

.footer__logo-text {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text);
}

.footer__tagline {
  font-size: 14px;
  color: var(--text-1);
  margin-bottom: 8px;
}

.footer__address { font-size: 13px; color: var(--text-2); }

.footer__nav { display: flex; gap: 60px; }

.footer__nav-col {}

.footer__nav-heading {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--text-1);
  margin-bottom: 16px;
}

.footer__nav-col ul { display: flex; flex-direction: column; gap: 10px; }

.footer__nav-col a {
  font-size: 14px;
  color: var(--text-2);
  transition: color 0.3s;
}
.footer__nav-col a:hover { color: var(--acc); }

.footer__cta {
  text-align: right;
}

.footer__cta-label {
  font-size: 13px;
  color: var(--text-1);
  margin-bottom: 16px;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.footer__copy,
.footer__legal,
.footer__legal a {
  font-size: 12px;
  color: var(--text-3);
}

.footer__legal a:hover { color: var(--text-2); }


/* ============================================================
   17. 実績詳細ページ（single-works.php）
   ============================================================ */
.single-works-hero {
  padding: 140px 0 80px;
}

.single-works-hero .container {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 80px;
  align-items: start;
}

.single-works__media { border-radius: var(--radius-lg); overflow: hidden; }

.single-works__media img { width: 100%; }

.single-works__yt { aspect-ratio: 16/9; }

.single-works__yt iframe {
  width: 100%; height: 100%;
  border: none;
}

.single-works__meta { display: flex; flex-direction: column; gap: 24px; }

.meta-item__label {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-3);
  margin-bottom: 6px;
}

.meta-item__value { font-size: 15px; color: var(--text); }

.single-works__body {
  padding: 0 0 120px;
}

.single-works__body .container {
  max-width: 800px;
  font-size: 16px;
  line-height: 2;
  color: var(--text-2);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 32px;
  transition: color 0.3s;
}
.back-link:hover { color: var(--acc); }

.single-works__title {
  font-family: var(--font-body);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
}

.single-works__thumb-img {
  width: 100%;
  height: auto;
  display: block;
}

.single-works__gallery {
  padding: 0 0 120px;
}

.single-works__gallery .container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.single-works__gallery-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}

/* play ボタン（button要素）のリセット */
.works-card__play--yt {
  border: none;
  cursor: pointer;
  padding: 0;
}


/* ============================================================
   18. アーカイブページ
   ============================================================ */
.archive-hero {
  padding: 140px 0 80px;
  text-align: center;
}

.archive-grid {
  padding: 0 0 120px;
}


/* ============================================================
   19. レスポンシブ
   ============================================================ */
@media (max-width: 1024px) {
  .concept__body            { grid-template-columns: 1fr; }
  .concept__visual          { display: flex; margin-top: 2rem; }
  .contact__body            { grid-template-columns: 1fr; }
  .footer__top              { grid-template-columns: 1fr 1fr; }
  .footer__cta              { grid-column: 1/-1; text-align: left; }
  .single-works-hero .container { grid-template-columns: 1fr; gap: 40px; }
  .single-works__gallery .container { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --container: 100%; }

  .container { padding: 0 24px; }

  .site-header { padding: 0 24px; }

  .header__nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    height: auto;
    width: 100%;
    background-color: rgba(0,0,0,0.85);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-out-expo);
  }

  .header__nav.is-open { transform: translateX(0); }

  .nav__list { flex-direction: column; gap: 24px; }
  .nav__link { font-size: 14px; letter-spacing: 0.2em; }

  .hamburger { display: flex; }

  .hero__stats { gap: 24px; }
  .services__grid { grid-template-columns: 1fr; }

  /* サービスカード SP：サムネイル・アイコンを縮小 */
  .service-card__thumb  { height: 140px; }
  .service-card__title  { font-size: 18px; }
  .service-card__inner  { padding-right: 64px; } /* アイコン(36px) + gap(12px) + padding(16px) */
  .service-card__icon   { width: 36px; height: 36px; top: 12px; right: 12px; }

  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .flow__track { padding-left: 48px; }
  .services__cta { padding: 32px 24px; }
  .form-row { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 40px; }
  .footer__nav { flex-direction: column; gap: 32px; }
}

@media (max-width: 480px) {
  .works-grid { grid-template-columns: 1fr; }
  .hero__title { font-size: clamp(30px, 8vw, 48px); }
}

/* ============================================================
   20. プリント・アクセシビリティ
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

@media print {
  .site-header, .cursor, .loader, .hero__canvas, .hero__grain { display: none; }
  body { background: #fff; color: #000; }
}

/* ── static 追加: フォームエラー状態 ── */
.form-group input.is-error,
.form-group textarea.is-error {
  border-color: var(--acc);
  box-shadow: 0 0 0 3px var(--acc-glow-2);
}


/* ============================================================
   Contact Form 7 スタイリング
   ============================================================ */

/* CF7 が出力する <span> ラッパーをブロックに */
.wpcf7 .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

/* CF7 フォーム全体を contact-form と同等に */
.wpcf7 form {
  position: relative;
}

/* CF7 入力フィールドに既存の form-group スタイルを適用 */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 select,
.wpcf7 textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 0.3s, box-shadow 0.3s;
  appearance: none;
}

.wpcf7 input[type="text"]::placeholder,
.wpcf7 input[type="email"]::placeholder,
.wpcf7 textarea::placeholder {
  color: var(--text-3);
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
  outline: none;
  border-color: var(--acc);
  box-shadow: 0 0 0 3px var(--acc-glow-2);
}

.wpcf7 textarea {
  resize: vertical;
  min-height: 140px;
}

/* CF7 バリデーションエラー時 */
.wpcf7 .wpcf7-not-valid {
  border-color: var(--acc) !important;
  box-shadow: 0 0 0 3px var(--acc-glow-2);
}

.wpcf7-not-valid-tip {
  display: block;
  font-size: 12px;
  color: var(--acc);
  margin-top: 5px;
}

/* CF7 送信ボタン */
.wpcf7 input[type="submit"] {
  display: block;
  width: 100%;
  padding: 16px 36px;
  background: var(--acc);
  color: #fff;
  border: 1px solid var(--acc);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 0 20px var(--acc-glow);
  transition: background 0.3s var(--ease-out-expo), box-shadow 0.3s var(--ease-out-expo);
  cursor: none;
}

.wpcf7 input[type="submit"]:hover {
  background: var(--acc-light);
  box-shadow: 0 0 40px var(--acc-glow), 0 0 80px rgba(216,24,114,0.5);
}

.wpcf7 input[type="submit"]:disabled {
  opacity: 0.6;
}

/* CF7 送信中スピナー */
.wpcf7 .wpcf7-spinner {
  display: none !important;
}

/* CF7 レスポンスメッセージ（初期は非表示、CF7がクラスを付与したら表示） */
.wpcf7-response-output {
  display: none;
  margin: 16px 0 0 !important;
  padding: 14px 18px !important;
  border-radius: var(--radius) !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  border-width: 1px !important;
  border-style: solid !important;
}

.wpcf7-mail-sent-ok {
  display: block !important;
  background: rgba(56,189,248,0.1) !important;
  border-color: rgba(56,189,248,0.3) !important;
  color: var(--blue) !important;
}

.wpcf7-validation-errors,
.wpcf7-mail-sent-ng,
.wpcf7-spam-blocked,
.wpcf7-acceptance-missing {
  display: block !important;
  background: rgba(216,24,114,0.1) !important;
  border-color: var(--border-acc) !important;
  color: var(--acc) !important;
}

/* ── works-card.is-hidden ── */
.works-card.is-hidden {
  display: none;
}

/* ── works placeholder thumbnail (画像未設定時) ── */
.works-card__thumb--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}
.works-card__thumb--placeholder span {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-3);
}

/* ── ロゴ画像スタイル ─────────────────────────── */

/* ヘッダー */
.header__logo-img {
  display: block;
  height: 28px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  object-position: left center;
}

/* ローダー：正方形ロゴマーク */
.loader__logo--img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  animation: fadeIn 0.5s 0.3s both;
}

/* フッター */
.footer__logo-img {
  display: block;
  height: 22px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 12px;
}

/* 旧SVGロゴ関連（不要になったが念のため無効化） */
.logo-mark, .logo-text { display: none; }

/* スクロール時のヘッダー背景（ロゴが暗背景で見やすいよう調整） */
.site-header:not(.is-scrolled) .header__logo-img {
  filter: brightness(1);
}

/* ── フェニックス FV ビジュアル ── */
.hero__phoenix {
  pointer-events: none;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__phoenix-img {
  width: 100%;
  height: auto;
  filter:
    drop-shadow(0 0 20px rgba(216, 24, 114, 0.9))
    drop-shadow(0 0 60px rgba(216, 24, 114, 0.5))
    drop-shadow(0 0 120px rgba(180, 0, 100, 0.3));
  animation: phoenixFloat 7s ease-in-out infinite;
  will-change: transform;
}

@keyframes phoenixFloat {
  0%, 100% { transform: translateY(0)   rotate(-1.5deg) scale(1); }
  50%       { transform: translateY(-22px) rotate( 1.5deg) scale(1.02); }
}

/* Desktop: 2-column grid layout */
@media (min-width: 1025px) {
  .hero .container {
    display: grid;
    grid-template-columns: 1fr 580px;
    grid-template-rows: 1fr auto;
    align-items: center;
    column-gap: 20px;
  }
  .hero__content {
    grid-column: 1;
    grid-row: 1;
    max-width: none;
  }
  .hero__stats {
    grid-column: 1;
    grid-row: 2;
    align-self: end;
  }
  .hero__phoenix {
    grid-column: 2;
    grid-row: 1 / 3;
    overflow: visible;
  }
  .hero__phoenix-img {
    width: 620px;
    max-width: none;
    margin-right: -60px;
  }
}

/* Tablet: 背景装飾として重ねる */
@media (max-width: 1024px) and (min-width: 769px) {
  .hero__phoenix {
    position: absolute;
    right: -80px;
    top: 50%;
    transform: translateY(-50%);
    width: 58vw;
    max-width: 520px;
    opacity: 0.45;
    z-index: 1;
  }
}

/* Mobile: 薄いグロー装飾として右奥に配置 */
@media (max-width: 768px) {
  .hero__phoenix {
    position: absolute;
    right: -40px;
    bottom: 40px;
    width: 85vw;
    max-width: 400px;
    opacity: 0.22;
    z-index: 1;
  }
  .hero__phoenix-img {
    filter:
      drop-shadow(0 0 30px rgba(216, 24, 114, 0.8))
      drop-shadow(0 0 80px rgba(216, 24, 114, 0.4));
  }
}

/* ── サービス 5枚グリッド（PC: 3+2 センタリング） ── */
@media (min-width: 1025px) {
  .voice__carousel {
    max-width: 720px;
    margin: 0 auto;
  }
}

@media (min-width: 1025px) {
  .services__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── About SVG ノードパルスアニメーション ── */
.node-pulse {
  opacity: 0;
  animation: nodePulse 5s ease-in-out infinite;
}
@keyframes nodePulse {
  0%        { opacity: 0; filter: none; }
  8%, 18%   { opacity: 1; filter: drop-shadow(0 0 12px rgba(216,24,114,0.9)) drop-shadow(0 0 28px rgba(216,24,114,0.5)); }
  30%, 100% { opacity: 0; filter: none; }
}

/* ── Hero 動画FV ── */
.hero__phoenix { display: none !important; }

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero__video--sp { display: none; }

.hero__video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(5,9,17,0.78) 0%,
    rgba(5,9,17,0.50) 55%,
    rgba(5,9,17,0.22) 100%
  );
  z-index: 1;
  pointer-events: none;
}

@media (max-width: 768px) {
  .hero__video--pc { display: none; }
  .hero__video--sp { display: block; }
  .hero__video-overlay { background: rgba(5,9,17,0.62); }
}

/* ── About プロフィール ── */
.about__profile {
  margin-top: 80px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.about__founder {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  padding: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.about__founder-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 24px;
  border: 2px solid var(--border-acc);
  box-shadow: 0 0 24px var(--acc-glow), 0 0 6px var(--acc-glow);
}

.about__founder-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.about__founder-role {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--acc);
  margin-bottom: 10px;
}

.about__founder-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.about__founder-kana {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  color: var(--text-2);
  letter-spacing: 0.2em;
  margin-bottom: 20px;
}

.about__founder-dl {
  display: grid;
  grid-template-columns: 2.5em 1fr;
  gap: 8px 16px;
  font-size: 13px;
}
.about__founder-dl dt {
  color: var(--text-3);
  font-weight: 500;
  white-space: nowrap;
}
.about__founder-dl dd {
  color: var(--text-2);
}

.about__founder-bio {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.about__founder-bio p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.9;
}

.about__concept {
  display: grid;
  grid-template-columns: 1fr 280px;
  align-items: center;
  gap: 40px;
  padding: 40px 48px;
  border-left: 2px solid var(--acc);
  background: var(--acc-glow-2);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.about__concept-content { display: flex; flex-direction: column; gap: 12px; }
.about__concept-en {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--acc);
}
.about__concept-text {
  font-size: 15px;
  color: var(--text-2);
  line-height: 2;
}
.about__concept-phoenix {
  display: flex;
  align-items: center;
  justify-content: center;
}
.about__concept-phoenix-img {
  width: 100%;
  max-width: 340px;
  height: auto;
  animation: phoenixBreath 5s ease-in-out infinite;
  will-change: filter;
}
@keyframes phoenixBreath {
  0%, 100% {
    filter:
      drop-shadow(0 0 6px  rgba(216,24,114,0.35))
      drop-shadow(0 0 18px rgba(216,24,114,0.15));
    opacity: 0.72;
  }
  50% {
    filter:
      drop-shadow(0 0 14px rgba(216,24,114,0.75))
      drop-shadow(0 0 40px rgba(216,24,114,0.38))
      drop-shadow(0 0 80px rgba(180,0,100,0.18));
    opacity: 0.95;
  }
}

@media (max-width: 768px) {
  .about__founder {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px;
  }
  .about__founder-avatar {
    width: 110px;
    height: 110px;
    margin: 0 auto 20px;
  }
  .about__founder-meta {
    text-align: center;
  }
  .about__founder-dl {
    text-align: left;
    display: inline-grid;
  }
  .about__concept {
    grid-template-columns: 1fr;
    padding: 28px;
    gap: 28px;
  }
  .about__concept-phoenix { order: -1; }
  .about__concept-phoenix-img { max-width: 220px; }
}


/* ============================================================
   インフォメーション
   ============================================================ */
.info {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.info-inner {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 24px;
  align-items: start;
  padding: 28px 0;
}

.info__eyebrow {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.35em;
  color: var(--acc);
  padding-top: 4px;
}

.info-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
}

.info-item {
  padding: 0 24px 0 0;
  margin: 0 24px 0 0;
  border-right: 1px solid var(--border);
}

.info-item:last-child {
  padding-right: 0;
  margin-right: 0;
  border-right: none;
}

.info-item__date {
  display: block;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--acc);
  margin-bottom: 6px;
}

.info-item__title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 4px;
}

.info-item__excerpt {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.65;
  display: -webkit-box;
  abouy-webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.info-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-item__link {
  display: block;
  transition: opacity 0.25s;
}
.info-item__link:hover .info-item__title {
  color: var(--acc);
}
.info-item__link:hover .info-item__excerpt {
  color: var(--text);
}

.info-footer {
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 768px) {
  .info-inner {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px 0;
  }

  .info-list {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .info-item {
    padding: 0 0 16px;
    margin: 0 0 16px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .info-item:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
  }

  .info-footer {
    justify-content: center;
  }
}


/* ============================================================
   インフォメーション 個別ページ
   ============================================================ */
.single-info-hero {
  padding: 80px 0 48px;
  border-bottom: 1px solid var(--border);
}

.single-info__date {
  display: block;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--acc);
  margin-bottom: 14px;
}

.single-info__title {
  font-family: var(--font-body);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.45;
}
@media (max-width: 480px) {
  .single-info__title { font-size: 22px; }
}

.single-info__body {
  padding: 60px 0 100px;
}

.single-info__body .container {
  max-width: 760px;
}

.single-info__body p {
  margin-bottom: 1.5em;
  line-height: 1.8;
  color: var(--text-2);
}

.single-info__body a {
  color: var(--acc);
  text-decoration: underline;
}

.single-info__body h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 2.5em 0 0.75em;
  color: var(--text);
}

.single-info__body h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 2em 0 0.5em;
  color: var(--text);
}

@media (max-width: 768px) {
  .single-info-hero {
    padding: 60px 0 36px;
  }
  .single-info__body {
    padding: 40px 0 80px;
  }
}


/* ============================================================
   インフォメーション 一覧ページ
   ============================================================ */
.archive-info-hero {
  padding: 80px 0 48px;
  border-bottom: 1px solid var(--border);
}

.archive-info__eyebrow {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.35em;
  color: var(--acc);
  margin-bottom: 12px;
}

.archive-info__title {
  font-size: 32px;
  font-weight: 700;
}
@media (max-width: 480px) {
  .archive-info__title { font-size: 24px; }
}

.archive-info-list {
  padding: 48px 0 100px;
}

.archive-info-items {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}

.archive-info-item {
  border-bottom: 1px solid var(--border);
}

.archive-info-item__link {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding: 24px 8px;
  transition: color 0.3s;
}
.archive-info-item__link:hover {
  color: var(--acc);
}

.archive-info-item__date {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--acc);
  white-space: nowrap;
  flex-shrink: 0;
  padding-top: 3px;
}

.archive-info-item__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.archive-info-item__title {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
}

.archive-info-item__excerpt {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.7;
}

.archive-info-item__arrow {
  flex-shrink: 0;
  color: var(--text-3);
  transition: transform 0.3s var(--ease-out-expo), color 0.3s;
  margin-top: 3px;
}
.archive-info-item__link:hover .archive-info-item__arrow {
  transform: translateX(5px);
  color: var(--acc);
}

.archive-info__empty {
  color: var(--text-2);
  font-size: 14px;
  padding: 40px 0;
}

@media (max-width: 768px) {
  .archive-info-hero {
    padding: 60px 0 36px;
  }
  .archive-info-list {
    padding: 32px 0 80px;
  }
  .archive-info-item__link {
    gap: 16px;
    padding: 20px 0;
  }
  .archive-info-item__title {
    font-size: 14px;
  }
}


/* ============================================================
   TOPに戻るボタン
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--acc);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 0 20px var(--acc-glow);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s var(--ease-out-expo), transform 0.3s var(--ease-out-expo), background 0.3s, box-shadow 0.3s;
  pointer-events: none;
  z-index: 900;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--acc-light);
  box-shadow: 0 0 40px var(--acc-glow), 0 0 80px rgba(216,24,114,0.12);
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
}


/* reCAPTCHA バッジ非表示（免責文言をフォーム内に表示する条件で許可） */
.grecaptcha-badge {
  visibility: hidden !important;
}

.recaptcha-note {
  margin-top: 12px;
  font-size: 11px;
  color: var(--text-3);
  line-height: 1.6;
}

.recaptcha-note a {
  color: var(--text-3);
  text-decoration: underline;
}
.recaptcha-note a:hover {
  color: var(--text-2);
}
