/* NEXORIA アプリの「情報漏えいチェック」の動く盾を yourpcai.com の漏えいチェックへ写したもの（2026-10-12 Kim「yourpcai.com のロゴを NEXORIA の動くロゴにミラーして」）。
   元: tools/nexoria_desktop/web/identity_shield.css と security_visual.css の @keyframes。#view-identity → .lc-hero に置き換えただけ。 */

/* 回る光の角度など、アニメーションで動かす変数の登録（これが無いと角度が補間されず止まって見えた・2026-10-12） */
@property --nx-orbit-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
/* ID の守りの見出しの盾（2026-10-07 Kim「この盾は ID の守りに移動させて」）。
   PC 見守りの見出しはロゴの N に替えたので、それまでの「N の盾・まわりのアイコン・網・輪」をこの画面へ移した。
   中身は security_visual.css の #view-security の規則を .lc-hero に写したもの（盾と N の形は b88a557 の版）。
   動き（nx-security-float・nx-orbit-flow など）の @keyframes は security_visual.css のものを共有する。 */

/* 写した規則が読む色の変数（security_visual.css では #view-security にしか無い）。盾の舞台の中だけに置き、
   ID の守りの画面のほかの色（identity.css）には触らない */
.lc-hero .identity-shield-stage {
  --nx-lime: #a6ff00;
  --nx-lime-soft: #d8ff8a;
  --nx-text: #f7f7f5;
  --nx-muted: #a1a1aa;
  --nx-border: rgba(255, 255, 255, .10);
  --nx-border-soft: rgba(255, 255, 255, .055);
  --nx-danger: #ff5864;
  --nx-warning: #ffc857;
}

.lc-hero .identity-hero.identity-hero--shield {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 42%);
  align-items: center;
  gap: 24px;
  min-height: 260px;
}

.lc-hero .identity-hero-copy {
  min-width: 0;
}

@media (max-width: 900px) {
  .lc-hero .identity-hero.identity-hero--shield {
    grid-template-columns: 1fr;
    gap: 8px;
    min-height: 0;
  }

  .lc-hero .security-shield-stage,
  .lc-hero .security-shield-net {
    min-height: 190px;
  }

  .lc-hero .security-shield-net {
    max-width: 380px;
  }
}

.lc-hero .security-shield-stage {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 220px;
  pointer-events: none;
}

.lc-hero .security-shield-stage > * {
  grid-area: 1 / 1;
}

.lc-hero .security-shield-net {
  width: 100%;
  max-width: 460px;
  height: 100%;
  min-height: 220px;
  overflow: visible;
}

.lc-hero .security-net-ring {
  fill: none;
  stroke: rgba(166, 255, 0, .08);
  stroke-width: 1;
}

.lc-hero .security-net-ring.is-dashed {
  stroke: rgba(166, 255, 0, .12);
  stroke-dasharray: 2 6;
}

.lc-hero .security-net-line {
  fill: none;
  stroke: rgba(166, 255, 0, .2);
  stroke-width: 1;
}

.lc-hero .security-net-line.is-faint {
  stroke: rgba(166, 255, 0, .08);
}

.lc-hero .security-net-node {
  fill: var(--nx-lime);
  opacity: .55;
}

.lc-hero .security-net-particle {
  fill: var(--nx-lime-soft);
  opacity: .45;
}

.lc-hero .security-shield-tile rect {
  fill: rgba(255, 255, 255, .035);
  stroke: rgba(166, 255, 0, .26);
  stroke-width: 1;
}

.lc-hero .security-shield-tile path {
  fill: none;
  stroke: var(--nx-lime-soft);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .78;
}

.lc-hero .security-shield-tile {
  transform-box: fill-box;
  animation: nx-security-float 7s ease-in-out infinite;
}

.lc-hero .security-shield-tile.is-delay-1 { animation-delay: -1.8s; }

.lc-hero .security-shield-tile.is-delay-2 { animation-delay: -3.4s; }

.lc-hero .security-shield-tile.is-delay-3 { animation-delay: -5.1s; }

.lc-hero .security-shield-orbit {
  position: relative;
  width: 285px;
  height: 150px;
  border: 1px solid rgba(166, 255, 0, .23);
  border-radius: 50%;
  transform: rotate(-8deg);
}

.lc-hero .security-shield-orbit::before,
.lc-hero .security-shield-orbit::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(166, 255, 0, .23);
  border-radius: 50%;
}

.lc-hero .security-shield-orbit::before {
  inset: 17px;
  border-color: rgba(166, 255, 0, .14);
}

.lc-hero .security-shield-orbit::after {
  inset: -30px;
  opacity: .52;
  transform: rotate(21deg);
}

.lc-hero .security-shield-wrap {
  filter:
    drop-shadow(0 0 18px rgba(166, 255, 0, .26))
    drop-shadow(0 0 38px rgba(166, 255, 0, .14));
}

.lc-hero .security-shield-label {
  position: absolute;
  right: 8px;
  bottom: 14px;
  grid-area: auto;
  color: #ecece7;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
  text-align: right;
}

.lc-hero .security-shield-label::after {
  content: "";
  display: block;
  width: 35px;
  height: 2px;
  margin: 7px 0 0 auto;
  border-radius: 2px;
  background: var(--nx-lime);
}

.lc-hero .security-shield-wrap {
  position: relative;
}

.lc-hero .security-shield {
  position: relative;
  width: 145px;
  height: 174px;
  clip-path: polygon(50% 0%, 91% 15%, 88% 62%, 72% 83%, 50% 100%, 28% 83%, 12% 62%, 9% 15%);
  background: linear-gradient(160deg, rgba(216, 255, 138, .98), #a6ff00 39%, #5f9900);
}

.lc-hero .security-shield::before {
  content: "";
  position: absolute;
  inset: 4px;
  clip-path: polygon(50% 0%, 91% 15%, 88% 62%, 72% 83%, 50% 100%, 28% 83%, 12% 62%, 9% 15%);
  background:
    radial-gradient(circle at 50% 30%, rgba(166, 255, 0, .14), transparent 60%),
    linear-gradient(170deg, #141a13, #080b08);
}

.lc-hero .security-shield::after {
  content: "N";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding-bottom: 12px;
  box-sizing: border-box;
  color: var(--nx-lime);
  font-size: 66px;
  font-weight: 900;
  line-height: 1;
  text-shadow:
    0 0 14px rgba(166, 255, 0, .55),
    0 0 30px rgba(166, 255, 0, .25);
}

@supports (
  (-webkit-mask: radial-gradient(#000, #000))
  or
  (mask: radial-gradient(#000, #000))
) {

  html[data-nx-monitor]
  .lc-hero
  .security-shield-orbit,

  html[data-nx-monitor]
  .lc-hero
  .security-shield-orbit::before,

  html[data-nx-monitor]
  .lc-hero
  .security-shield-orbit::after {
    --nx-orbit-rgb: 166, 255, 0;
    --nx-orbit-angle: 0deg;

    border-color: transparent;

    background:
      conic-gradient(
        from var(--nx-orbit-angle),

        rgba(
          var(--nx-orbit-rgb),
          .05
        )
        0deg,

        rgba(
          var(--nx-orbit-rgb),
          .07
        )
        150deg,

        rgba(
          var(--nx-orbit-rgb),
          .11
        )
        250deg,

        rgba(
          var(--nx-orbit-rgb),
          .20
        )
        310deg,

        rgba(
          var(--nx-orbit-rgb),
          .78
        )
        336deg,

        rgba(
          235,
          255,
          194,
          .98
        )
        346deg,

        rgba(
          var(--nx-orbit-rgb),
          .44
        )
        353deg,

        rgba(
          var(--nx-orbit-rgb),
          .06
        )
        360deg
      );

    /*
     * conic-gradient を楕円の外周だけに残す。
     * 中は透明なので、盾や背景を覆わない。
     */
    -webkit-mask:
      radial-gradient(
        ellipse closest-side at center,
        transparent calc(100% - 2.7px),
        #000 calc(100% - 1.7px),
        #000 100%
      );

    mask:
      radial-gradient(
        ellipse closest-side at center,
        transparent calc(100% - 2.7px),
        #000 calc(100% - 1.7px),
        #000 100%
      );

    transition:
      opacity .45s ease,
      filter .45s ease;
  }


  /* =====================================================
   * running
   * 監視中。
   *
   * 内側ほど速く、
   * 外側だけ逆方向へ回す。
   * =================================================== */

  html[data-nx-monitor="running"]
  .lc-hero
  .security-shield-orbit {
    animation:
      nx-orbit-flow
      10.5s
      linear
      infinite;
  }

  html[data-nx-monitor="running"]
  .lc-hero
  .security-shield-orbit::before {
    animation:
      nx-orbit-flow
      7.5s
      linear
      infinite;
  }

  html[data-nx-monitor="running"]
  .lc-hero
  .security-shield-orbit::after {
    animation:
      nx-orbit-flow
      14s
      linear
      infinite
      reverse;
  }


  /* =====================================================
   * starting
   * 監視開始の準備中。
   *
   * running より速くし、
   * 少しだけ脈打たせる。
   * =================================================== */

  html[data-nx-monitor="starting"]
  .lc-hero
  .security-shield-orbit {
    animation:
      nx-orbit-flow
      4.4s
      linear
      infinite,

      nx-orbit-pulse
      1.05s
      ease-in-out
      infinite
      alternate;
  }

  html[data-nx-monitor="starting"]
  .lc-hero
  .security-shield-orbit::before {
    animation:
      nx-orbit-flow
      3.2s
      linear
      infinite,

      nx-orbit-pulse
      .92s
      ease-in-out
      infinite
      alternate;
  }

  html[data-nx-monitor="starting"]
  .lc-hero
  .security-shield-orbit::after {
    animation:
      nx-orbit-flow
      6.2s
      linear
      infinite
      reverse,

      nx-orbit-pulse
      1.18s
      ease-in-out
      infinite
      alternate;
  }


  /* =====================================================
   * stopping
   * 停止処理中。
   *
   * CSSだけで現在の位相を保ったまま
   * 完全な物理減速をするのは複雑なので、
   * 低速・低輝度へ切り替え、
   * stopped になった時点で完全停止する。
   * =================================================== */

  html[data-nx-monitor="stopping"]
  .lc-hero
  .security-shield-orbit {
    animation:
      nx-orbit-flow
      24s
      linear
      infinite;

    opacity: .58;
    filter: brightness(.75);
  }

  html[data-nx-monitor="stopping"]
  .lc-hero
  .security-shield-orbit::before {
    animation:
      nx-orbit-flow
      18s
      linear
      infinite;

    opacity: .48;
  }

  html[data-nx-monitor="stopping"]
  .lc-hero
  .security-shield-orbit::after {
    animation:
      nx-orbit-flow
      30s
      linear
      infinite
      reverse;

    opacity: .40;
  }


  /* =====================================================
   * stopped
   * 監視停止。
   *
   * 光の頭は消し、
   * 弱い輪だけ残す。
   * =================================================== */

  html[data-nx-monitor="stopped"]
  .lc-hero
  .security-shield-orbit,

  html[data-nx-monitor="stopped"]
  .lc-hero
  .security-shield-orbit::before,

  html[data-nx-monitor="stopped"]
  .lc-hero
  .security-shield-orbit::after {
    animation: none;

    background:
      rgba(
        166,
        255,
        0,
        .075
      );

    opacity: .48;
    filter: none;
  }


  /* =====================================================
   * error
   * 監視エラー。
   *
   * 動かさず赤くする。
   * =================================================== */

  html[data-nx-monitor="error"]
  .lc-hero
  .security-shield-orbit,

  html[data-nx-monitor="error"]
  .lc-hero
  .security-shield-orbit::before,

  html[data-nx-monitor="error"]
  .lc-hero
  .security-shield-orbit::after {
    --nx-orbit-rgb: 255, 72, 72;

    animation: none;

    background:
      rgba(
        255,
        72,
        72,
        .56
      );

    opacity: .88;

    filter:
      drop-shadow(
        0
        0
        7px
        rgba(
          255,
          72,
          72,
          .18
        )
      );
  }
}

@media (prefers-reduced-motion: reduce) {

  html[data-nx-monitor]
  .lc-hero
  .security-shield-orbit,

  html[data-nx-monitor]
  .lc-hero
  .security-shield-orbit::before,

  html[data-nx-monitor]
  .lc-hero
  .security-shield-orbit::after {
    animation: none !important;
    filter: none;
  }

  html[data-nx-monitor="running"]
  .lc-hero
  .security-shield-orbit,

  html[data-nx-monitor="running"]
  .lc-hero
  .security-shield-orbit::before,

  html[data-nx-monitor="running"]
  .lc-hero
  .security-shield-orbit::after {
    opacity: .88;
  }
}


@keyframes nx-orbit-flow {
  from {
    --nx-orbit-angle: 0deg;
  }

  to {
    --nx-orbit-angle: 360deg;
  }
}

@keyframes nx-orbit-pulse {
  from {
    filter: brightness(.88);
    opacity: .72;
  }

  to {
    filter: brightness(1.30);
    opacity: 1;
  }
}

@keyframes nx-security-float {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

/* ---- yourpcai.com のレイアウトに合わせる（アプリには無い部分） ----
   アプリでは「見守り中」の時だけ輪が回る。サイトは html に data-nx-monitor="running" を付けて常に回す。
   見出しのカードは横並び（文字＋盾）。盾の舞台に幅を与え、狭い画面では盾を文字の下へ回す */
.lc-hero .identity-shield-stage {
  flex: 0 0 46%;
  max-width: 460px;
  width: 100%;
}
@media (max-width: 860px) {
  .lc-hero .lc-hero-card {
    flex-direction: column;
    align-items: stretch;
  }
  .lc-hero .identity-shield-stage {
    flex: none;
    max-width: 380px;
    margin: 0 auto;
    min-height: 190px;
  }
}
