/* ============================================================
   next-target.css — Takumi Senpai · Next Target Section
   Path: /css/next-target.css
   Load on: all individual quest article pages (after style.css)

   WORLD: Investigation HQ · documentary · dark · typewriter
   v2 — Contrast & legibility pass (mobile outdoor readability)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Special+Elite&family=Courier+Prime:ital,wght@0,400;0,700;1,400&display=swap');

/* ════════════════════════════════════════════════════════════
   SECTION WRAPPER  (#next-target-section)
   ════════════════════════════════════════════════════════════ */
#next-target-section {
  position: relative;
  background-color: #0c0a07;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent              0px,
      transparent              47px,
      rgba(139,21,21,0.025)    47px,
      rgba(139,21,21,0.025)    48px
    ),
    repeating-linear-gradient(
      90deg,
      transparent              0px,
      transparent              3px,
      rgba(255,255,255,0.007)  3px,
      rgba(255,255,255,0.007)  4px
    );
  border-top:    1px solid rgba(139,21,21,0.18);
  border-bottom: 1px solid rgba(201,168,76,0.08);
  padding: 64px 24px 72px;
  overflow: hidden;
}

/* Vignette */
#next-target-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 25%, rgba(0,0,0,0.80) 100%);
  pointer-events: none;
  z-index: 0;
}

/* Corner watermark stamp */
#next-target-section::after {
  content: 'FIELD INTELLIGENCE';
  position: absolute;
  bottom: 24px;
  right: 28px;
  font-family: 'Courier Prime', monospace;
  font-size: 0.42rem;
  letter-spacing: 0.38em;
  color: rgba(139,21,21,0.08);
  text-transform: uppercase;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* ════════════════════════════════════════════════════════════
   INNER LAYOUT
   ════════════════════════════════════════════════════════════ */
.nt-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

/* ── Section header ──────────────────────────────────────── */
.nt-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}

.nt-header-rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(139,21,21,0.55), transparent);
}

.nt-header-rule--right {
  background: linear-gradient(270deg, rgba(139,21,21,0.55), transparent);
}

.nt-header-label {
  font-family: 'Special Elite', cursive;
  font-size: clamp(0.9rem, 2.5vw, 1.25rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(220,200,160,0.82);
  white-space: nowrap;
}

.nt-header-label .nt-header-icon {
  margin-right: 10px;
  opacity: 0.7;
}

/* ── Classification badge ────────────────────────────────── */
.nt-classification {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}

.nt-classification-badge {
  font-family: 'Courier Prime', monospace;
  font-size: 0.42rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: rgba(139,21,21,0.65);
  border: 1px solid rgba(139,21,21,0.22);
  padding: 5px 18px 4px;
  background: rgba(139,21,21,0.04);
}

/* ════════════════════════════════════════════════════════════
   CARD — the main dossier card
   ════════════════════════════════════════════════════════════ */
.nt-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 0;

  /* ① L字インジケーター強調：ゴールドの不透明度を上げる */
  border: 1px solid rgba(201,168,76,0.38);
  background: rgba(10,8,5,0.85);
  position: relative;
  box-shadow:
    0 4px 24px rgba(0,0,0,0.6),
    0 0 0 1px rgba(255,255,255,0.03),
    inset 0 0 80px rgba(0,0,0,0.3);
  transition: box-shadow 0.3s ease;
}

/* ── 四隅のL字アクセントライン（pseudo要素で実装） ───────── */
/* 左上 */
.nt-card .nt-corner-tl,
.nt-card .nt-corner-tr,
.nt-card .nt-corner-bl,
.nt-card .nt-corner-br {
  display: none; /* JS非依存のため疑似要素で対処 */
}

/* カード外枠に ::before / ::after を流用しつつ、
   四隅のL字は outline + box-shadow の多段で演出 */
.nt-card {
  outline: 1px solid rgba(201,168,76,0.18);
  outline-offset: 6px;
}

.nt-card:hover {
  box-shadow:
    0 8px 40px rgba(0,0,0,0.75),
    0 0 0 1px rgba(201,168,76,0.22),
    inset 0 0 80px rgba(0,0,0,0.3);
}

/* Top border accent — red tape */
.nt-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(139,21,21,0.7), rgba(139,21,21,0.15), transparent);
  z-index: 2;
}

/* Corner document number */
.nt-card::after {
  content: attr(data-doc-id);
  position: absolute;
  top: 12px;
  right: 16px;
  font-family: 'Courier Prime', monospace;
  font-size: 0.38rem;
  letter-spacing: 0.28em;

  /* ① ドキュメントIDも少し見えるように */
  color: rgba(201,168,76,0.42);
  text-transform: uppercase;
  z-index: 2;
}

/* ════════════════════════════════════════════════════════════
   LEFT COLUMN — photo panel
   ════════════════════════════════════════════════════════════ */
.nt-photo-panel {
  position: relative;
  overflow: hidden;
  min-height: 320px;

  /* ① 写真パネル右ボーダーもゴールドを強調 */
  border-right: 1px solid rgba(201,168,76,0.28);
  flex-shrink: 0;
}

/* Polaroid-like inner border */
.nt-photo-panel::before {
  content: '';
  position: absolute;
  inset: 8px 8px 24px 8px;
  border: 1px solid rgba(255,255,255,0.07);
  z-index: 2;
  pointer-events: none;
}

/* Photo timestamp strip */
.nt-photo-panel::after {
  content: 'FIELD PHOTO';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 28px;
  background: rgba(0,0,0,0.85);
  font-family: 'Courier Prime', monospace;
  font-size: 0.38rem;
  letter-spacing: 0.3em;
  color: rgba(201,168,76,0.35);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.nt-photo {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: sepia(22%) contrast(1.06) brightness(0.82) saturate(0.85);
  transition: filter 0.5s ease, transform 0.5s ease;
}

.nt-card:hover .nt-photo {
  filter: sepia(10%) contrast(1.08) brightness(0.9) saturate(0.95);
  transform: scale(1.025);
}

/* Scan lines overlay on photo */
.nt-photo-overlay {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent              0px,
    transparent              3px,
    rgba(0,0,0,0.06)         3px,
    rgba(0,0,0,0.06)         4px
  );
  z-index: 1;
  pointer-events: none;
}

/* ════════════════════════════════════════════════════════════
   RIGHT COLUMN — intelligence dossier
   ════════════════════════════════════════════════════════════ */
.nt-dossier {
  padding: 36px 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  overflow: hidden;
}

/* ── Document ID ─────────────────────────────────────────── */
.nt-doc-id {
  font-family: 'Courier Prime', monospace;
  font-size: 0.44rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(139,21,21,0.75);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nt-doc-id::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(139,21,21,0.18);
  max-width: 60px;
}

/* ── Target label ────────────────────────────────────────── */
.nt-target-eyebrow {
  font-family: 'Courier Prime', monospace;
  font-size: 0.40rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;

  /* ① eyebrowも少し明るく */
  color: rgba(201,168,76,0.65);
  margin-bottom: 12px;
}

/* ── Target title ────────────────────────────────────────── */
/* ① タイトル：白に近い色で最大限の視認性を確保 */
.nt-title {
  font-family: 'Special Elite', cursive;
  font-size: clamp(1.1rem, 2.8vw, 1.55rem);
  line-height: 1.25;
  color: #f5f5f3;
  letter-spacing: 0.03em;
  margin-bottom: 10px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.8);
}

/* ── Subtitle ────────────────────────────────────────────── */
/* ① subtitleも一段階明るく */
.nt-subtitle {
  font-family: 'Courier Prime', monospace;
  font-size: 0.62rem;
  color: rgba(220,200,160,0.62);
  letter-spacing: 0.08em;
  font-style: italic;
  margin-bottom: 24px;
  line-height: 1.5;
}

/* ── Divider ─────────────────────────────────────────────── */
.nt-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.nt-divider-line {
  height: 1px;
  background: rgba(201,168,76,0.22);
  flex: 1;
}

.nt-divider-mark {
  font-family: 'Courier Prime', monospace;
  font-size: 0.38rem;
  letter-spacing: 0.28em;
  color: rgba(201,168,76,0.42);
  text-transform: uppercase;
}

/* ── Hook text ───────────────────────────────────────────── */
/* ① フック文：暗すぎず、ダークトーンを維持しつつ明るいグレーに */
.nt-hook {
  font-family: 'Courier Prime', monospace;
  font-size: 0.72rem;
  line-height: 1.92;
  color: rgba(235,220,190,0.82);
  letter-spacing: 0.03em;
  margin-bottom: 36px;
  position: relative;
  padding-left: 18px;

  /* ① 左ボーダーも少し明るく存在感を出す */
  border-left: 2px solid rgba(139,21,21,0.55);
  font-style: italic;
  flex: 1;
  overflow-wrap: break-word;
  word-break: break-word;
  min-width: 0;
}

/* ── Location line ───────────────────────────────────────── */
/* ① location も存在感アップ */
.nt-location {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Courier Prime', monospace;
  font-size: 0.42rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(201,168,76,0.50);
  margin-bottom: 28px;
}

.nt-location-pin {
  font-size: 0.6rem;
  opacity: 0.6;
}

/* ── CTA Button ──────────────────────────────────────────── */
/* ① CTAボタン：ゴールドを純粋な金色に近づけ、黒文字との最大コントラストを確保 */
.nt-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: 'Special Elite', cursive;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #0a0800;
  background: #c9a84c;
  text-decoration: none;
  padding: 15px 28px 13px;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;

  /* 下に薄いゴールドのグロー：目線を引き寄せる */
  box-shadow:
    0 0 0 1px rgba(201,168,76,0.5),
    0 4px 18px rgba(201,168,76,0.22);

  transition: background 0.2s ease, letter-spacing 0.2s ease, box-shadow 0.2s ease;
  align-self: flex-start;
}

.nt-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.2s ease;
}

/* ① ホバー：上面を明るいゴールドに、シャープなアウトラインを追加 */
.nt-cta:hover {
  background: #e0be40;
  letter-spacing: 0.22em;
  box-shadow:
    0 0 0 1px rgba(224,190,64,0.8),
    0 6px 24px rgba(201,168,76,0.38);
}

.nt-cta:hover::before {
  background: rgba(255,255,255,0.08);
}

/* ── CSS arrow ──────────────────────────────────────────── */
.nt-cta-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 12px;
  position: relative;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

/* 横線 */
.nt-cta-arrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1.5px;
  background: #0a0800;
  transform: translateY(-50%);
}

/* 矢じり */
.nt-cta-arrow::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid #0a0800;
  border-top: 1.5px solid #0a0800;
  transform: translateY(-50%) rotate(45deg);
}

.nt-cta:hover .nt-cta-arrow {
  transform: translateX(5px);
}

/* ── SVG 虫眼鏡アイコン ─────────────────────────────────── */
.nt-header-svg {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  opacity: 0.70;
  vertical-align: middle;
  color: rgba(220,200,160,0.82);
  flex-shrink: 0;
}

/* ── "NEXT TARGET" stamped label ─────────────────────────── */
.nt-stamp {
  display: none;
}

/* ════════════════════════════════════════════════════════════
   ARCHIVE DOSSIER MODE  (.nt-mode--archive)
   ════════════════════════════════════════════════════════════ */
.nt-mode--archive .nt-header-label {
  color: rgba(201,168,76,0.75);
}

.nt-mode--archive .nt-doc-id {
  color: rgba(201,168,76,0.55);
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — Tablet
   ════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  #next-target-section { padding: 52px 20px 60px; }

  .nt-card {
    grid-template-columns: 1fr;
    outline-offset: 4px;
  }

  .nt-photo-panel {
    border-right: none;
    border-bottom: 1px solid rgba(201,168,76,0.28);
    min-height: 220px;
  }

  .nt-photo {
    min-height: 220px;
  }

  .nt-dossier {
    padding: 28px 24px 26px;
  }

  .nt-title {
    font-size: 1.1rem;
  }
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — Mobile
   ════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  #next-target-section { padding: 44px 16px 52px; }

  .nt-photo-panel {
    min-height: 180px;
  }

  .nt-photo {
    min-height: 180px;
  }

  .nt-dossier {
    padding: 22px 18px 20px;
    overflow: hidden;
    min-width: 0;
  }

  /* ① モバイルCTA：フルwidthで最大のタップ領域を確保 */
  .nt-cta {
    width: 100%;
    justify-content: center;
    padding: 18px 20px;
    font-size: 0.70rem;
    /* モバイル屋外視認性向上のため明度を最大化 */
    background: #d4a93a;
    box-shadow:
      0 0 0 1px rgba(212,169,58,0.7),
      0 4px 20px rgba(201,168,76,0.30);
  }

  .nt-cta:hover,
  .nt-cta:active {
    background: #e8c04a;
    box-shadow:
      0 0 0 2px rgba(232,192,74,0.9),
      0 6px 24px rgba(201,168,76,0.45);
  }

  /* ① モバイルでフックテキストの視認性を最優先 */
  .nt-hook {
    font-size: 0.68rem;
    line-height: 1.9;
    color: rgba(240,228,200,0.90);
  }

  /* ① タイトルはさらにパキッと白に */
  .nt-title {
    color: #ffffff;
    text-shadow: 0 1px 10px rgba(0,0,0,0.9);
  }
}

/* ════════════════════════════════════════════════════════════
   FADE-IN — reuses site's .fade-in / .visible pattern
   ════════════════════════════════════════════════════════════ */
#next-target-section.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

#next-target-section.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}