:root{
  --zoom: 1;
  --focus-blur: 3.2px;
  --scope-color: #d6d6d6;
}

*{ box-sizing: border-box; }
html,body{ height:100%; margin:0; background:#fff; color:#0b0b0b; }
body{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Hiragino Kaku Gothic ProN","Noto Sans JP",sans-serif;
}

.scene{
  position: relative;
  isolation: auto;
  min-height: 100svh;
  padding-top: calc(var(--nav-h, 64px) + clamp(12px, 2vmin, 24px));
  padding-bottom: clamp(24px, 4vmin, 40px);
}

/* ===== スコープ ===== */
.scope{
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(70vmin, 520px);
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  transform: scale(var(--zoom));
  transform-origin: center;
  transition: transform .10s linear;
  z-index: 9999;
}
.scope .ring{ position:absolute; inset:0; border:2px solid var(--scope-color); border-radius:50%; }
.scope .hair{ position:absolute; left:0; top:50%; width:100%; height:2px; background:var(--scope-color);}
.scope .hair-y{ transform:rotate(90deg); }
.scope .dot{ position:absolute; left:50%; top:50%; width:4px; height:4px; margin:-2px 0 0 -2px; border-radius:50%; background:var(--scope-color); }

/* ===== Single（中央寄せ） ===== */
.target .single{
  display: flex;
  justify-content: center;
  margin: 0 auto;
  width: min(700px, 90vw);
}
.target .person{ margin:0; }
.target .person img{
  display:block;
  width:100%;
  height:auto;
  border-radius:10px;
  transition:filter .6s ease;
}
body.locked .target .person img{ filter: blur(var(--focus-blur)); }
body.unlocked .target .person img{ filter: blur(0); }

/* ===== 特徴テキスト ===== */
.target-text {
  text-align: center;
  max-width: clamp(42ch, 60vw, 64ch);
  margin: clamp(48px, 8vmin, 96px) auto;
  font-size: 15px;
  line-height: 2.2;
  letter-spacing: 0.04em;
  font-weight: 400;
  color: #111;
}
.target-text br{
  display:block;
  margin-block: 0.8em;
}

/* ===== ボケ効果 ===== */
body.locked #pageWrap{ filter: blur(var(--focus-blur, 3.2px)); pointer-events:none; transition:filter .6s ease; }
body.unlocked #pageWrap{ filter:none; pointer-events:auto; }

/* ===== ゲート ===== */
.gate{
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 20px;
}
.gate-msg{
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: #111;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(0,0,0,0.2);
  border-radius: 6px;
  padding: 6px 16px;
  backdrop-filter: blur(4px);
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
