/*
Theme Name: AI Nijigura
Theme URI: https://example.com/
Author: Team Digima
Description: AIニジグラ（運営：チームデジマ）のサービスサイト用テーマ。アニメ・イラスト・インフォグラフィックスに特化したAI動画制作サービスのLP。黒基調・極太タイポグラフィ・線主体のデザインシステム準拠。
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ainijigura
Tags: one-page, landing-page, dark, custom-colors, translation-ready
*/

/* ==========================================================================
   1. デザイントークン（DESIGN.md §2 / §3 / §4）
   ========================================================================== */

:root {
  /* Colors */
  --nj-bg:            #0A0A0B;
  --nj-surface:       #141416;
  --nj-primary:       #FFFFFF;
  --nj-secondary:     #5B8CFF;
  --nj-text:          #F5F5F7;
  --nj-muted:         #9A9AA2;
  --nj-border:        rgba(255, 255, 255, .14);
  --nj-border-strong: rgba(255, 255, 255, .5);
  --nj-hairline:      rgba(255, 255, 255, .05);
  --nj-hairline-soft: rgba(255, 255, 255, .03);
  --nj-ghost:         rgba(255, 255, 255, .10);
  --nj-ghost-strong:  rgba(255, 255, 255, .45);

  /* Typography */
  --nj-font-jp: "Zen Kaku Gothic New", "Noto Sans JP", "Hiragino Sans", sans-serif;
  --nj-font-en: "Inter", system-ui, -apple-system, sans-serif;

  /* Layout */
  --nj-maxw: 1200px;
  --nj-gutter: 56px;
  --nj-section-pt: 150px;
  --nj-section-pb: 160px;
  --nj-grid-cell: 128px;

  /* Radius */
  --nj-radius-card: 20px;
  --nj-radius-media: 16px;
  --nj-radius-phone: 30px;
  --nj-radius-pill: 9999px;
}

/* ==========================================================================
   2. ベース
   ========================================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--nj-bg);
  color: var(--nj-text);
  font-family: var(--nj-font-jp);
  font-size: 16px;
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.nj-menu-open { overflow: hidden; }

a {
  color: var(--nj-text);
  text-decoration: none;
  transition: color .2s ease;
}

a:hover { color: var(--nj-secondary); }

img,
video { max-width: 100%; }

h1, h2, h3, h4, p, figure { margin: 0; }

/* DESIGN.md §7: 線のみで構成される要素にも視認可能なフォーカスリングを与える */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--nj-secondary);
  outline-offset: 3px;
  border-radius: 4px;
}

.nj-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--nj-primary);
  color: var(--nj-bg);
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
}

.nj-skip-link:focus {
  left: 8px;
  top: 8px;
  color: var(--nj-bg);
}

.nj-screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   3. アニメーション
   ========================================================================== */

@keyframes nj-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes nj-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: .2; }
}

@keyframes nj-scroll {
  0%   { transform: scaleY(0); transform-origin: top; }
  45%  { transform: scaleY(1); transform-origin: top; }
  55%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

/* ==========================================================================
   4. 共通レイアウトパーツ
   ========================================================================== */

.nj-page { background: var(--nj-bg); overflow: hidden; }

.nj-section {
  position: relative;
  padding: var(--nj-section-pt) var(--nj-gutter) var(--nj-section-pb);
  overflow: hidden;
  scroll-margin-top: 24px;
}

.nj-section--ruled { border-top: 1px solid var(--nj-border); }

.nj-section--surface { background: var(--nj-surface); }

.nj-section--centered {
  padding-top: 170px;
  padding-bottom: 170px;
}

.nj-inner {
  position: relative;
  max-width: var(--nj-maxw);
  margin: 0 auto;
}

.nj-inner--centered { text-align: center; }

/* グリッドオーバーレイ（ヒーロー / ABOUT / SERVICES / CONTACT） */
.nj-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--nj-hairline-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--nj-hairline-soft) 1px, transparent 1px);
  background-size: var(--nj-grid-cell) var(--nj-grid-cell);
  pointer-events: none;
}

.nj-grid-overlay--bright {
  background-image:
    linear-gradient(var(--nj-hairline) 1px, transparent 1px),
    linear-gradient(90deg, var(--nj-hairline) 1px, transparent 1px);
}

/* セクション番号のゴースト数字 */
.nj-sec-num {
  position: absolute;
  top: 110px;
  right: 40px;
  font-family: var(--nj-font-en);
  font-weight: 900;
  font-size: 150px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--nj-ghost);
  pointer-events: none;
  user-select: none;
}

/* セクション見出し帯（DESIGN.md §5） */
.nj-sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--nj-border);
}

.nj-sec-head__en {
  font-family: var(--nj-font-en);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.1;
}

.nj-sec-head__jp {
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--nj-muted);
  font-weight: 500;
  white-space: nowrap;
}

/* 見出し・本文 */
.nj-h2 {
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.24;
  font-weight: 900;
  letter-spacing: -.01em;
}

.nj-h2--tall { line-height: 1.3; }

.nj-h3 {
  font-size: 21px;
  line-height: 1.4;
  font-weight: 700;
}

.nj-body {
  font-size: 15px;
  line-height: 1.95;
  color: var(--nj-muted);
  font-weight: 400;
}

.nj-body--sm {
  font-size: 14px;
  line-height: 1.85;
}

/* ボタン（DESIGN.md §5） */
.nj-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border-radius: var(--nj-radius-pill);
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease;
  box-shadow: none;
}

.nj-btn__arrow { font-family: var(--nj-font-en); }

.nj-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
}

.nj-btn--primary {
  background: var(--nj-primary);
  color: var(--nj-bg);
  border: none;
  padding: 16px 30px;
  font-size: 15px;
}

.nj-btn--primary:hover {
  background: #E4E4E8;
  color: var(--nj-bg);
  transform: translateY(-1px);
}

.nj-btn--lg { padding: 18px 44px; font-size: 16px; }

.nj-btn--ghost {
  border: 1px solid var(--nj-border-strong);
  background: transparent;
  color: var(--nj-text);
  padding: 15px 28px;
  gap: 12px;
  font-family: var(--nj-font-en);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .12em;
}

.nj-btn--ghost:hover {
  background: rgba(255, 255, 255, .08);
  color: var(--nj-text);
}

.nj-btn--outline {
  border: 1px solid var(--nj-border-strong);
  background: transparent;
  color: var(--nj-text);
  padding: 13px 26px;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
}

.nj-btn--outline:hover {
  background: rgba(255, 255, 255, .08);
  color: var(--nj-text);
}

/* ==========================================================================
   5. ロゴ（ロゴ 3案 2c: 二層レイヤー＋再生マーク）
   ========================================================================== */

.nj-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--nj-text);
}

.nj-logo:hover { color: var(--nj-text); }

.nj-logo__mark {
  position: relative;
  display: inline-block;
  width: 24px;
  height: 24px;
  flex: none;
}

.nj-logo__layer-back,
.nj-logo__layer-front {
  position: absolute;
  width: 17px;
  height: 17px;
  border-radius: 5px;
}

.nj-logo__layer-back {
  left: 0;
  top: 0;
  border: 1.6px solid var(--nj-secondary);
}

.nj-logo__layer-front {
  right: 0;
  bottom: 0;
  background: var(--nj-text);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nj-logo__play {
  display: block;
  width: 0;
  height: 0;
  border-left: 5px solid var(--nj-bg);
  border-top: 3.5px solid transparent;
  border-bottom: 3.5px solid transparent;
  margin-left: 1.5px;
}

.nj-logo__text {
  font-weight: 900;
  font-size: 19px;
  letter-spacing: .06em;
}

.nj-logo--footer { gap: 12px; }
.nj-logo--footer .nj-logo__mark { width: 26px; height: 26px; }
.nj-logo--footer .nj-logo__layer-back,
.nj-logo--footer .nj-logo__layer-front { width: 18px; height: 18px; }
.nj-logo--footer .nj-logo__play { border-left-width: 5.5px; }

/* ==========================================================================
   6. ヘッダー / ナビゲーション
   ========================================================================== */

.nj-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px var(--nj-gutter);
  z-index: 60;
}

.nj-nav {
  display: flex;
  align-items: center;
  gap: 36px;
  font-family: var(--nj-font-en);
  font-size: 12px;
  letter-spacing: .14em;
}

.nj-nav__cta {
  border: 1px solid var(--nj-border-strong);
  border-radius: var(--nj-radius-pill);
  padding: 10px 22px;
  transition: background .2s ease, color .2s ease;
}

.nj-nav__cta:hover {
  background: rgba(255, 255, 255, .08);
  color: var(--nj-text);
}

/* ハンバーガー（DESIGN.md §6 モバイル固有パターン） */
.nj-burger {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 61;
}

.nj-burger__line {
  position: absolute;
  left: 8px;
  width: 24px;
  height: 1px;
  background: var(--nj-text);
  transition: transform .28s ease, opacity .28s ease;
}

.nj-burger__line:nth-child(1) { top: 17px; }
.nj-burger__line:nth-child(2) { top: 23px; }

.nj-burger[aria-expanded="true"] .nj-burger__line:nth-child(1) {
  transform: translateY(3px) rotate(45deg);
}

.nj-burger[aria-expanded="true"] .nj-burger__line:nth-child(2) {
  transform: translateY(-3px) rotate(-45deg);
}

.nj-drawer {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 96px var(--nj-gutter) 56px;
  background: rgba(10, 10, 11, .97);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .28s ease, visibility .28s ease;
}

.nj-drawer[data-open="true"] {
  opacity: 1;
  visibility: visible;
}

.nj-drawer__link {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--nj-border);
  font-family: var(--nj-font-en);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: .1em;
}

.nj-drawer__jp {
  font-family: var(--nj-font-jp);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--nj-muted);
}

.nj-drawer__cta {
  margin-top: 32px;
  align-self: flex-start;
}

/* ==========================================================================
   7. HERO
   ========================================================================== */

.nj-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: max(100vh, 780px);
  padding: 0 var(--nj-gutter) 150px;
  overflow: hidden;
}

.nj-hero__media,
.nj-hero__media video,
.nj-hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nj-hero__media video { filter: saturate(.85) contrast(1.05); }

.nj-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
    var(--nj-bg) 6%,
    rgba(10, 10, 11, .74) 44%,
    rgba(10, 10, 11, .2) 100%);
  pointer-events: none;
}

/* ゴーストタイポ「UNMADE → MADE with AI」 */
.nj-hero__ghost {
  position: absolute;
  top: 92px;
  right: 48px;
  text-align: right;
  font-family: var(--nj-font-en);
  font-weight: 900;
  pointer-events: none;
  user-select: none;
}

.nj-hero__ghost-word {
  font-size: clamp(56px, 8vw, 104px);
  line-height: 1;
  letter-spacing: .02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .22);
}

.nj-hero__ghost-sub {
  font-size: clamp(18px, 2.2vw, 28px);
  letter-spacing: .06em;
  margin-top: 14px;
  color: var(--nj-secondary);
}

/* 縦組みラベル */
.nj-hero__vlabel {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: rotate(90deg) translateX(-50%);
  transform-origin: left center;
  font-family: var(--nj-font-en);
  font-size: 10px;
  letter-spacing: .32em;
  color: var(--nj-muted);
  pointer-events: none;
  white-space: nowrap;
}

.nj-hero__copy {
  position: relative;
  max-width: 940px;
  z-index: 2;
}

.nj-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--nj-font-en);
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--nj-muted);
  margin-bottom: 26px;
}

.nj-hero__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--nj-secondary);
  animation: nj-blink 2s infinite;
  flex: none;
}

.nj-hero__title {
  font-size: clamp(40px, 5.8vw, 78px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -.02em;
}

.nj-hero__title-line2 {
  display: inline-block;
  margin-left: .85em;
}

.nj-hero__ai {
  font-family: var(--nj-font-en);
  background: linear-gradient(90deg, var(--nj-secondary), var(--nj-text));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nj-hero__lead {
  margin-top: 30px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--nj-muted);
  font-weight: 400;
  max-width: 560px;
}

.nj-hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}

/* SCROLL インジケータ */
.nj-hero__scroll {
  position: absolute;
  right: var(--nj-gutter);
  bottom: 150px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
}

.nj-hero__scroll-label {
  font-family: var(--nj-font-en);
  font-size: 10px;
  letter-spacing: .3em;
  color: var(--nj-muted);
}

.nj-hero__scroll-line {
  display: block;
  width: 1px;
  height: 56px;
  background: var(--nj-border-strong);
  animation: nj-scroll 2.4s infinite;
}

/* ティッカー */
.nj-ticker {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  border-top: 1px solid var(--nj-border);
  overflow: hidden;
  background: rgba(10, 10, 11, .55);
  backdrop-filter: blur(6px);
  pointer-events: none;
}

.nj-ticker__track {
  display: flex;
  width: max-content;
  animation: nj-marquee 24s linear infinite;
  font-family: var(--nj-font-en);
  font-size: 12px;
  letter-spacing: .24em;
  color: var(--nj-muted);
  padding: 18px 0;
}

.nj-ticker__item { padding: 0 34px; }
.nj-ticker__sep { color: var(--nj-secondary); }

/* ==========================================================================
   8. ABOUT
   ========================================================================== */

.nj-about__title { margin-top: 72px; max-width: 900px; }

.nj-about__grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
  margin-top: 64px;
}

.nj-about__keys {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-family: var(--nj-font-en);
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--nj-muted);
}

.nj-about__key--accent { color: var(--nj-secondary); }

/* ==========================================================================
   9. SERVICES
   ========================================================================== */

.nj-services__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  gap: 64px;
  align-items: end;
  margin: 64px 0 56px;
}

.nj-services__lead {
  font-size: 15px;
  line-height: 1.9;
  color: var(--nj-muted);
  font-weight: 400;
}

/* フィルターピル（DESIGN.md §5） */
.nj-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
  font-family: var(--nj-font-en);
  font-size: 11px;
  letter-spacing: .14em;
}

.nj-filter {
  border: 1px solid var(--nj-border);
  border-radius: var(--nj-radius-pill);
  padding: 8px 18px;
  background: transparent;
  color: var(--nj-muted);
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  line-height: 1.4;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.nj-filter:hover {
  color: var(--nj-text);
  border-color: var(--nj-border-strong);
}

.nj-filter[aria-pressed="true"] {
  background: var(--nj-primary);
  color: var(--nj-bg);
  font-weight: 600;
  border-color: var(--nj-primary);
}

.nj-card[hidden] { display: none; }

/* 縦型（9:16）カード 01 / 02 */
.nj-services__vertical {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(520px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.nj-card--vertical {
  border: 1px solid var(--nj-border);
  border-radius: var(--nj-radius-card);
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(0, 264px) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.nj-phone {
  position: relative;
  width: 100%;
  max-width: 264px;
  aspect-ratio: 9 / 16;
  border-radius: var(--nj-radius-phone);
  overflow: hidden;
  background: var(--nj-surface);
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}

.nj-phone__notch {
  position: absolute;
  left: 50%;
  top: 10px;
  transform: translateX(-50%);
  width: 72px;
  height: 5px;
  border-radius: var(--nj-radius-pill);
  background: rgba(255, 255, 255, .35);
  z-index: 2;
}

.nj-card__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.nj-card__meta {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.nj-card__num {
  font-family: var(--nj-font-en);
  font-size: 26px;
  font-weight: 400;
  color: var(--nj-muted);
}

.nj-card__tag {
  font-family: var(--nj-font-en);
  font-size: 10px;
  letter-spacing: .16em;
  color: var(--nj-secondary);
}

/* 横型（16:9）カード 03〜06 */
.nj-services__horizontal {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 24px;
}

.nj-card--horizontal {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nj-card--horizontal .nj-h3 { font-size: 19px; }

.nj-card--horizontal .nj-body--sm { line-height: 1.8; }

/* 動画フレーム共通 */
.nj-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--nj-radius-media);
  overflow: hidden;
  background: var(--nj-surface);
}

.nj-frame video,
.nj-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nj-frame__badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  font-family: var(--nj-font-en);
  font-size: 9px;
  letter-spacing: .16em;
  color: var(--nj-text);
  background: rgba(10, 10, 11, .6);
  border-radius: var(--nj-radius-pill);
  padding: 5px 12px;
  z-index: 2;
}

.nj-phone .nj-frame__badge { left: 14px; bottom: 14px; }

/* 動画未設定時のプレースホルダー */
.nj-frame__empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background:
    linear-gradient(135deg, rgba(91, 140, 255, .07), transparent 60%),
    var(--nj-surface);
  color: var(--nj-muted);
  text-align: center;
  padding: 16px;
}

.nj-frame__empty-icon {
  position: relative;
  width: 34px;
  height: 34px;
  border: 1px solid var(--nj-border-strong);
  border-radius: 50%;
  flex: none;
}

.nj-frame__empty-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateX(1px);
  width: 0;
  height: 0;
  border-left: 9px solid var(--nj-border-strong);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.nj-frame__empty-label {
  font-family: var(--nj-font-en);
  font-size: 9px;
  letter-spacing: .18em;
}

/* ヒーローは見出しが中央〜左下に来るため、プレースホルダーは上寄せにする */
.nj-hero__media .nj-frame__empty {
  justify-content: flex-start;
  padding-top: 22vh;
}

/* ==========================================================================
   10. PRICING
   ========================================================================== */

.nj-pricing__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  gap: 64px;
  align-items: start;
  margin-top: 64px;
}

.nj-pricing__col { min-width: 0; }

.nj-pricing__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 44px;
  padding-top: 36px;
  border-top: 1px solid var(--nj-border);
}

.nj-pricing__price-pre {
  font-size: 16px;
  font-weight: 500;
  color: var(--nj-muted);
}

.nj-pricing__price-main {
  font-size: clamp(44px, 5.2vw, 68px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.02em;
}

.nj-pricing__price-post {
  font-size: 18px;
  font-weight: 700;
  color: var(--nj-muted);
}

.nj-pricing__cta { margin-top: 32px; }

/* ==========================================================================
   11. STRENGTHS
   ========================================================================== */

.nj-strengths__title { margin: 64px 0 72px; }

.nj-strengths__list { display: flex; flex-direction: column; }

.nj-strength {
  display: grid;
  grid-template-columns: minmax(0, 150px) minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: start;
  padding: 44px 0;
  border-top: 1px solid var(--nj-border);
}

.nj-strength:last-child { border-bottom: 1px solid var(--nj-border); }

.nj-strength__num {
  font-family: var(--nj-font-en);
  font-size: 64px;
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--nj-ghost-strong);
}

.nj-strength__num--accent { -webkit-text-stroke-color: rgba(91, 140, 255, .75); }

.nj-strength__title {
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.4;
  font-weight: 900;
  letter-spacing: -.01em;
}

/* ==========================================================================
   12. WHY
   ========================================================================== */

.nj-why__ghost {
  position: absolute;
  top: 120px;
  left: -10px;
  font-family: var(--nj-font-en);
  font-weight: 900;
  font-size: 140px;
  line-height: 1;
  letter-spacing: .01em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .09);
  pointer-events: none;
  user-select: none;
}

.nj-why__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--nj-font-en);
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--nj-muted);
  margin-bottom: 36px;
}

.nj-why__rule {
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--nj-secondary);
}

.nj-why__title {
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.28;
  font-weight: 900;
  letter-spacing: -.01em;
}

.nj-why__accent {
  background: linear-gradient(90deg, var(--nj-secondary), var(--nj-text));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nj-why__body {
  margin: 48px auto 0;
  font-size: 16px;
  line-height: 2;
  color: var(--nj-muted);
  font-weight: 400;
  max-width: 640px;
}

/* ==========================================================================
   13. FLOW
   ========================================================================== */

.nj-flow__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 80px 0 0;
  padding: 0;
  list-style: none;
  border-right: 1px solid var(--nj-border);
}

.nj-flow__step {
  border-left: 1px solid var(--nj-border);
  padding: 0 24px 8px;
}

.nj-flow__num {
  font-family: var(--nj-font-en);
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--nj-secondary);
  margin-bottom: 18px;
}

.nj-flow__title {
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.nj-flow__body {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--nj-muted);
  font-weight: 400;
}

/* ==========================================================================
   14. CONTACT
   ========================================================================== */

.nj-contact__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 320px at 50% 100%, rgba(91, 140, 255, .14), transparent);
  pointer-events: none;
}

.nj-contact__label {
  font-family: var(--nj-font-en);
  font-size: 11px;
  letter-spacing: .24em;
  color: var(--nj-muted);
  margin-bottom: 32px;
}

.nj-contact__title {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -.01em;
}

.nj-contact__lead {
  margin-top: 36px;
  font-size: 16px;
  line-height: 1.9;
  color: var(--nj-muted);
  font-weight: 400;
}

.nj-form-wrap {
  max-width: 800px;
  margin: 64px auto 0;
  text-align: left;
}

/* --- フォーム部品（素のHTMLとContact Form 7の両方に効かせる） --- */

.nj-form,
.nj-form-wrap .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.nj-field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

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

.nj-field__label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
}

.nj-field__badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--nj-secondary);
  border: 1px solid rgba(91, 140, 255, .6);
  border-radius: var(--nj-radius-pill);
  padding: 3px 10px;
  line-height: 1.4;
  flex: none;
}

/* CF7 は各コントロールを span.wpcf7-form-control-wrap で包む */
.nj-form-wrap .wpcf7-form-control-wrap { display: block; }

.nj-input,
.nj-form-wrap .wpcf7-form input[type="text"],
.nj-form-wrap .wpcf7-form input[type="email"],
.nj-form-wrap .wpcf7-form input[type="tel"],
.nj-form-wrap .wpcf7-form select,
.nj-form-wrap .wpcf7-form textarea {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--nj-border);
  border-radius: 12px;
  padding: 15px 18px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--nj-text);
  font-family: inherit;
  outline: none;
  transition: border-color .2s ease, background .2s ease;
}

.nj-input:focus,
.nj-form-wrap .wpcf7-form input:focus,
.nj-form-wrap .wpcf7-form select:focus,
.nj-form-wrap .wpcf7-form textarea:focus {
  border-color: var(--nj-secondary);
  background: rgba(91, 140, 255, .07);
  outline: none;
}

.nj-input::placeholder,
.nj-form-wrap .wpcf7-form ::placeholder {
  color: var(--nj-muted);
  opacity: .7;
}

.nj-input--select,
.nj-form-wrap .wpcf7-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--nj-muted) 50%),
    linear-gradient(135deg, var(--nj-muted) 50%, transparent 50%);
  background-position:
    calc(100% - 22px) calc(50% + 1px),
    calc(100% - 16px) calc(50% + 1px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 44px;
}

.nj-input--select option,
.nj-form-wrap .wpcf7-form select option {
  background: var(--nj-surface);
  color: var(--nj-text);
}

.nj-input--textarea,
.nj-form-wrap .wpcf7-form textarea {
  resize: vertical;
  min-height: 170px;
}

.nj-form__note {
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--nj-muted);
  font-weight: 400;
}

.nj-form__note a {
  color: var(--nj-secondary);
  text-decoration: underline;
}

.nj-form__submit,
.nj-form-wrap .wpcf7-form .nj-submit-row {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.nj-form-wrap .wpcf7-form input[type="submit"] {
  display: inline-flex;
  align-items: center;
  background: var(--nj-primary);
  color: var(--nj-bg);
  border: none;
  border-radius: var(--nj-radius-pill);
  padding: 18px 44px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.nj-form-wrap .wpcf7-form input[type="submit"]:hover {
  background: #E4E4E8;
  transform: translateY(-1px);
}

.nj-form-wrap .wpcf7-form input[type="submit"]:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
}

/* CF7 のバリデーション表示 */
.nj-form-wrap .wpcf7-not-valid-tip {
  margin-top: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: #FF8B8B;
}

.nj-form-wrap .wpcf7-form-control.wpcf7-not-valid {
  border-color: rgba(255, 139, 139, .8);
}

.nj-form-wrap .wpcf7-response-output {
  margin: 8px 0 0 !important;
  padding: 16px 20px !important;
  border: 1px solid var(--nj-border) !important;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.8;
  text-align: center;
  color: var(--nj-text);
}

.nj-form-wrap .wpcf7 form.sent .wpcf7-response-output {
  border-color: rgba(91, 140, 255, .6) !important;
  color: var(--nj-secondary);
}

.nj-form-wrap .wpcf7 form.invalid .wpcf7-response-output,
.nj-form-wrap .wpcf7 form.failed .wpcf7-response-output,
.nj-form-wrap .wpcf7 form.aborted .wpcf7-response-output {
  border-color: rgba(255, 139, 139, .6) !important;
  color: #FF8B8B;
}

.nj-form-wrap .wpcf7-spinner { filter: invert(1) grayscale(1); }

/* 未接続時の管理者向け通知 */
.nj-form-setup {
  border: 1px dashed rgba(91, 140, 255, .5);
  border-radius: var(--nj-radius-media);
  padding: 24px 28px;
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--nj-muted);
}

.nj-form-setup strong {
  display: block;
  margin-bottom: 6px;
  color: var(--nj-text);
  font-size: 14px;
}

.nj-form-setup code {
  font-family: var(--nj-font-en);
  font-size: 12.5px;
  color: var(--nj-secondary);
}

.nj-form-disabled-note {
  text-align: center;
  font-size: 13px;
  color: var(--nj-muted);
}

/* ==========================================================================
   15. フッター
   ========================================================================== */

.nj-footer {
  border-top: 1px solid var(--nj-border);
  padding: 72px var(--nj-gutter) 40px;
}

.nj-footer__inner {
  max-width: var(--nj-maxw);
  margin: 0 auto;
}

.nj-footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  flex-wrap: wrap;
}

.nj-footer__owner {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--nj-muted);
  font-weight: 400;
}

.nj-footer__links {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}

.nj-footer__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nj-footer__col--en {
  font-family: var(--nj-font-en);
  font-size: 12px;
  letter-spacing: .14em;
}

.nj-footer__col--jp { font-size: 12px; }

.nj-footer__col a { color: var(--nj-muted); }
.nj-footer__col a:hover { color: var(--nj-secondary); }

.nj-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--nj-border);
  margin-top: 56px;
  padding-top: 24px;
  font-family: var(--nj-font-en);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--nj-muted);
}

/* ==========================================================================
   16. 汎用ページ（固定ページ / 404 / アーカイブ）
   ========================================================================== */

.nj-page-body {
  padding: 200px var(--nj-gutter) 140px;
}

.nj-page-body .nj-inner > * + * { margin-top: 24px; }

.nj-page-title {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.24;
  font-weight: 900;
  letter-spacing: -.01em;
  margin-bottom: 48px;
}

.nj-entry-content {
  font-size: 15px;
  line-height: 1.95;
  color: var(--nj-muted);
}

.nj-entry-content h2,
.nj-entry-content h3 {
  color: var(--nj-text);
  margin: 48px 0 16px;
  font-weight: 900;
  letter-spacing: -.01em;
}

.nj-entry-content h2 { font-size: 28px; }
.nj-entry-content h3 { font-size: 20px; }
.nj-entry-content p { margin: 0 0 20px; }
.nj-entry-content a { color: var(--nj-secondary); text-decoration: underline; }
.nj-entry-content ul,
.nj-entry-content ol { padding-left: 1.4em; margin: 0 0 20px; }
.nj-entry-content li { margin-bottom: 8px; }

/* ==========================================================================
   17. レスポンシブ（DESIGN.md §6）
   -- Tablet: 640px 〜 1023px / Mobile: 〜 639px
   ========================================================================== */

@media (max-width: 1200px) {
  .nj-sec-num { font-size: 120px; top: 90px; right: 24px; }
  .nj-why__ghost { font-size: 108px; }
}

@media (max-width: 1023px) {
  :root {
    --nj-gutter: 32px;
    --nj-section-pt: 100px;
    --nj-section-pb: 110px;
    --nj-grid-cell: 96px;
  }

  .nj-section--centered { padding-top: 110px; padding-bottom: 110px; }

  /* ヘッダー：ハンバーガーへ */
  .nj-header { padding: 22px var(--nj-gutter); }
  .nj-nav { display: none; }
  .nj-burger { display: block; }

  /* ヒーロー */
  .nj-hero { padding-bottom: 130px; }

  /* デスクトップは「左が黒／右が透明」の横方向グラデでコピーを左に逃がす構図だが、
     コピーが全幅に来るタブレット以下では映像がほぼ潰れる。
     上下だけを締める縦方向グラデに切り替え、画面全体で映像が見えるようにする。 */
  .nj-hero__scrim {
    background: linear-gradient(180deg,
      rgba(10, 10, 11, .70) 0%,
      rgba(10, 10, 11, .28) 15%,
      rgba(10, 10, 11, .28) 38%,
      rgba(10, 10, 11, .66) 54%,
      rgba(10, 10, 11, .88) 72%,
      rgba(10, 10, 11, .94) 100%);
  }

  .nj-hero__vlabel { display: none; }
  .nj-hero__scroll { display: none; }
  .nj-hero__ghost { top: 78px; right: 32px; }
  .nj-hero__ghost-word { font-size: clamp(40px, 7vw, 64px); }
  .nj-hero__ghost-sub { font-size: 15px; margin-top: 10px; }
  .nj-hero__title { font-size: clamp(34px, 5.4vw, 54px); }

  /* セクション見出し帯 */
  .nj-sec-head__en { font-size: 30px; }
  .nj-sec-head__jp { font-size: 12px; }
  .nj-sec-num { font-size: 96px; top: 72px; right: 16px; }

  /* ABOUT：キーワード列を横並びで上に */
  .nj-about__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    margin-top: 48px;
  }

  .nj-about__title { margin-top: 56px; }

  .nj-about__keys {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 24px;
  }

  /* SERVICES */
  .nj-services__head {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    margin: 48px 0 40px;
    align-items: start;
  }

  .nj-filters { margin-bottom: 36px; }

  .nj-services__vertical { grid-template-columns: minmax(0, 1fr); }

  .nj-card--vertical {
    grid-template-columns: minmax(0, 210px) minmax(0, 1fr);
    gap: 24px;
    padding: 24px;
  }

  .nj-phone { max-width: 210px; }

  /* DESIGN.md §6: ジャンル一覧のカードグリッドはタブレットで2カラム維持 */
  .nj-services__horizontal { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* PRICING */
  .nj-pricing__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    margin-top: 48px;
  }

  /* STRENGTHS：番号を見出しと同じ行に */
  .nj-strengths__title { margin: 48px 0 48px; }

  .nj-strength {
    grid-template-columns: minmax(0, 88px) minmax(0, 1fr);
    gap: 24px 28px;
    padding: 36px 0;
  }

  .nj-strength__num { font-size: 46px; }
  .nj-strength__body { grid-column: 2 / -1; }

  /* WHY */
  .nj-why__ghost { font-size: 76px; top: 84px; }
  .nj-why__body { margin-top: 36px; font-size: 15px; }

  /* FLOW：2カラム */
  .nj-flow__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 56px;
    row-gap: 40px;
  }

  /* CONTACT */
  .nj-form-wrap { margin-top: 48px; }

  /* フッター */
  .nj-footer { padding: 56px var(--nj-gutter) 32px; }
  .nj-footer__links { gap: 40px; }
  .nj-footer__bottom { margin-top: 40px; }

  .nj-page-body { padding: 150px var(--nj-gutter) 100px; }
}

@media (max-width: 639px) {
  :root {
    --nj-gutter: 20px;
    --nj-section-pt: 64px;
    --nj-section-pb: 72px;
    --nj-grid-cell: 64px;
  }

  body { font-size: 15px; }

  .nj-section--centered { padding-top: 72px; padding-bottom: 72px; }

  /* ヒーロー */
  .nj-hero {
    min-height: max(100svh, 620px);
    padding-bottom: 116px;
  }

  .nj-hero__ghost { display: none; }
  .nj-hero__eyebrow { margin-bottom: 20px; font-size: 10px; letter-spacing: .18em; }
  /* 1行目「実現できなかった映像を、」が折り返さない上限に合わせている */
  .nj-hero__title { font-size: clamp(23px, 7.2vw, 40px); line-height: 1.16; }
  .nj-hero__title-line2 { margin-left: 0; }
  .nj-hero__lead { margin-top: 22px; font-size: 14.5px; }
  .nj-hero__actions { margin-top: 28px; gap: 12px; }

  .nj-btn--primary { padding: 14px 24px; font-size: 14px; }
  .nj-btn--ghost { padding: 13px 22px; font-size: 12px; }
  .nj-btn--lg { padding: 16px 32px; font-size: 15px; }

  .nj-ticker__track { font-size: 10px; padding: 14px 0; letter-spacing: .2em; }
  .nj-ticker__item { padding: 0 20px; }

  /* セクション共通 */
  .nj-sec-head { gap: 12px; padding-bottom: 14px; }
  .nj-sec-head__en { font-size: 24px; }
  .nj-sec-head__jp { font-size: 11px; letter-spacing: .08em; }
  .nj-sec-num { font-size: 56px; top: 28px; right: 6px; }

  .nj-h2 { font-size: clamp(22px, 6.2vw, 28px); }
  .nj-body { font-size: 14px; line-height: 1.9; }

  /* ABOUT */
  .nj-about__title { margin-top: 36px; }
  .nj-about__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 32px; }
  .nj-about__keys { font-size: 11px; letter-spacing: .16em; gap: 6px 18px; }

  /* SERVICES */
  .nj-services__head { margin: 36px 0 28px; }
  .nj-filters { gap: 8px; margin-bottom: 28px; font-size: 10px; }
  .nj-filter { padding: 7px 14px; }

  .nj-card--vertical {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 20px;
    justify-items: center;
    text-align: left;
  }

  .nj-phone { max-width: 240px; }
  .nj-card__body { width: 100%; }
  .nj-card__num { font-size: 22px; }

  /* 説明文量が多いためモバイルは1カラム（DESIGN.md §6 テキスト量の多いカードの例外） */
  .nj-services__horizontal { grid-template-columns: minmax(0, 1fr); }
  .nj-card--horizontal .nj-h3 { font-size: 17px; }

  /* PRICING */
  .nj-pricing__price { margin-top: 28px; padding-top: 24px; gap: 10px; }
  .nj-pricing__price-pre { font-size: 14px; }
  .nj-pricing__price-post { font-size: 15px; }

  /* STRENGTHS */
  .nj-strengths__title { margin: 32px 0 8px; }
  .nj-strength {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 28px 0;
  }
  .nj-strength__num { font-size: 38px; }
  .nj-strength__body { grid-column: auto; }
  .nj-strength__title { font-size: 20px; }

  /* WHY */
  .nj-why__ghost { font-size: 40px; top: 26px; left: 0; }
  .nj-why__eyebrow { margin-bottom: 24px; font-size: 10px; }
  .nj-why__title { font-size: clamp(26px, 7vw, 34px); }
  .nj-why__body { margin-top: 28px; font-size: 14px; line-height: 1.95; }

  /* FLOW：1カラム（縦罫線は残す） */
  .nj-flow__grid {
    grid-template-columns: minmax(0, 1fr);
    border-right: none;
    margin-top: 36px;
    row-gap: 32px;
  }

  .nj-flow__step { padding: 0 0 0 20px; }
  .nj-flow__num { margin-bottom: 12px; }
  .nj-flow__title { font-size: 17px; }

  /* CONTACT */
  .nj-contact__label { margin-bottom: 20px; }
  .nj-contact__lead { margin-top: 24px; font-size: 14.5px; }
  .nj-form-wrap { margin-top: 36px; }

  .nj-form,
  .nj-form-wrap .wpcf7-form { gap: 22px; }

  .nj-field-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }

  .nj-input,
  .nj-form-wrap .wpcf7-form input[type="text"],
  .nj-form-wrap .wpcf7-form input[type="email"],
  .nj-form-wrap .wpcf7-form input[type="tel"],
  .nj-form-wrap .wpcf7-form select,
  .nj-form-wrap .wpcf7-form textarea {
    /* iOS のズーム防止のため 16px 以上を維持 */
    font-size: 16px;
    padding: 14px 16px;
  }

  /* フッター */
  .nj-footer__top { gap: 32px; }
  .nj-footer__links { gap: 24px; width: 100%; justify-content: space-between; }
  .nj-footer__col--jp { font-size: 11px; }
  .nj-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 32px;
    font-size: 10px;
  }

  .nj-drawer { padding: 88px var(--nj-gutter) 40px; }
  .nj-drawer__link { font-size: 20px; padding: 15px 0; }

  .nj-page-body { padding: 110px var(--nj-gutter) 72px; }
}
