/*
Theme Name: Neo Model
Theme URI: https://neomodel.tokyo/
Author: MD DESIGN
Author URI: https://mddesign.tokyo/
Description: AIモデルエージェンシー「Neo Model」のオリジナルテーマ。TOPのライブ・ポートレートと、モデル一覧（アーカイブ）を収録。
Version: 0.6.3
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: neomodel
*/

/* ---------- tokens ---------- */
:root {
  --nm-ink: #141414;
  --nm-ink-2: #2A2B2F;
  --nm-muted: #5C5F66;
  --nm-paper: #F4F5F7;
  --nm-paper-warm: #F4F5F7;
  --nm-line: #D3D5DA;
  --nm-accent: #F05A2E;
  --nm-new: #C23A18;
  --nm-gutter: 48px;
  --nm-font-ja: 'Zen Kaku Gothic New', sans-serif;
  --nm-font-mincho: 'Zen Old Mincho', serif;
  --nm-font-en: 'Barlow', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--nm-paper);
  color: var(--nm-ink);
  font-family: var(--nm-font-ja);
  font-feature-settings: 'palt' 1, 'kern' 1;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--nm-ink); }
a:hover { color: #000; }
img { max-width: 100%; height: auto; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

/* ---------- header ---------- */
.nm-header {
  position: relative; z-index: 2;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px 32px; padding: 28px var(--nm-gutter) 16px;
}
.nm-header__logo { display: inline-flex; align-items: center; min-height: 44px; }
.nm-header__logo { position: relative; }
.nm-header__logo img { position: relative; display: block; height: 30px; width: auto; }
/* Logo in liquid metal (same treatment as the MD DESIGN logo): chrome with a slowly turning flow of light and
   shade, a highlight that passes now and then, and a soft Tiffany glow. The SVG logo is used as a mask. */
@property --nm-lm { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.nm-logo-metal {
  position: relative; display: block; height: 30px; width: auto; aspect-ratio: 433 / 70;
  -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat;
  background:
    linear-gradient(100deg, transparent 42%, rgba(255,255,255,.9) 50%, transparent 58%) 0 0 / 300% 100%,
    conic-gradient(from var(--nm-lm) at 50% 50%, #808080, #f2f2f2 9%, #4a4a4a 19%, #cfcfcf 29%, #262626 40%, #e2e2e2 50%, #606060 60%, #f6f6f6 70%, #3a3a3a 81%, #bdbdbd 91%, #808080),
    linear-gradient(180deg, #e2e6eb 0%, #a9b1bb 30%, #6a737e 47%, #181c22 53%, #3d4550 61%, #949da7 79%, #d3d9df 100%);
  background-blend-mode: normal, overlay, normal;
  animation: nm-lm-spin 9s linear infinite, nm-lm-sheen 6s ease-in-out infinite;
}
.nm-header__logo .nm-logo-metal { filter: drop-shadow(0 0 3px rgba(10,186,181,.22)) drop-shadow(0 0 10px rgba(129,216,208,.3)); }
.nm-header__logo:hover .nm-logo-metal { filter: drop-shadow(0 0 4px rgba(10,186,181,.6)) drop-shadow(0 0 16px rgba(129,216,208,.9)); }
@keyframes nm-lm-spin { to { --nm-lm: 360deg; } }
@keyframes nm-lm-sheen { 0% { background-position: 150% 0, 0 0, 0 0; } 100% { background-position: -60% 0, 0 0, 0 0; } }
@media (prefers-reduced-motion: reduce) { .nm-logo-metal { animation: none; } }
/* Rounded buttons: on hover / keyboard focus the outline turns into flowing liquid metal (same as the logo) */
:where(.nm-btn, .nm-chip, .nm-filter__btn, .nm-plan__cta, .nm-excl__cta, .nm-form__submit, .nm-contact__back, .nm-foot__top-btn, .nm-works__tag, .nm-movie__close, .nm-shot__detail, .nm-shot__close, .nm-shot__nav, .nm-model__btn, .nm-form__chip span)::before {
  content: ""; position: absolute; inset: -1.5px; border-radius: inherit; padding: 2px; pointer-events: none; z-index: 1;
  background:
    linear-gradient(100deg, transparent 30%, rgba(255,255,255,.95) 46%, transparent 60%) 0 0 / 250% 100%,
    conic-gradient(from var(--nm-lm), #ffffff, #8a929d 10%, #f3f5f8 20%, #3c444f 31%, #d9dee5 42%, #ffffff 50%, #6c7581 61%, #eef1f4 72%, #474f5a 84%, #c9cfd7 93%, #ffffff);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .35s ease;
  animation: nm-lm-spin 8s linear infinite, nm-lm-sheen 4.8s ease-in-out infinite; animation-play-state: paused;
}
.nm-plan__cta, .nm-excl__cta, .nm-form__chip span { position: relative; }
:where(.nm-btn, .nm-chip, .nm-filter__btn, .nm-plan__cta, .nm-excl__cta, .nm-form__submit, .nm-contact__back, .nm-foot__top-btn, .nm-works__tag, .nm-movie__close, .nm-shot__detail, .nm-shot__close, .nm-shot__nav, .nm-model__btn):is(:hover, :focus-visible)::before,
.nm-form__chip:hover span::before, .nm-form__chip input:focus-visible + span::before { opacity: 1; animation-play-state: running; }
:where(.nm-btn, .nm-chip, .nm-filter__btn, .nm-plan__cta, .nm-excl__cta, .nm-form__submit, .nm-contact__back, .nm-foot__top-btn, .nm-works__tag, .nm-movie__close, .nm-shot__detail, .nm-shot__close, .nm-shot__nav, .nm-model__btn):is(:hover, :focus-visible),
.nm-form__chip:hover span { border-color: transparent !important; }
@media (prefers-reduced-motion: reduce) { :where(.nm-btn, .nm-chip, .nm-filter__btn, .nm-plan__cta, .nm-excl__cta, .nm-form__submit, .nm-contact__back, .nm-foot__top-btn, .nm-works__tag, .nm-movie__close, .nm-shot__detail, .nm-shot__close, .nm-shot__nav, .nm-model__btn, .nm-form__chip span)::before { animation: none; } }
.nm-orbit { position: absolute; left: -18px; top: -9px; width: 222px; height: 62px; pointer-events: none; }
.nm-spark {
  position: absolute; left: 0; top: 0; display: block;
  offset-path: path('M 3 31 A 108 26 0 1 0 219 31 A 108 26 0 1 0 3 31');
  offset-rotate: 0deg;
  animation: nm-orbit 4.5s linear infinite, nm-twinkle 0.9s ease-in-out infinite alternate;
}
.nm-spark svg { display: block; fill: #8A929B; filter: drop-shadow(0 0 3px rgba(255,255,255,0.95)); }
@keyframes nm-orbit { from { offset-distance: 0%; } to { offset-distance: 100%; } }
/* main (header) logo at 1.3x: 30px -> 39px, the spark orbit scaled around the logo's center */
.nm-header .nm-logo-metal { height: 39px; }
.nm-header .nm-orbit { left: 9.5px; top: -9px; transform: scale(1.3); }
@media (max-width: 760px) { .nm-header .nm-logo-metal { height: 32px; } .nm-header .nm-orbit { left: 3px; transform: scale(1.07); } }
@keyframes nm-twinkle { from { opacity: 0.25; transform: scale(0.55) rotate(0deg); } to { opacity: 1; transform: scale(1.1) rotate(45deg); } }
.nm-nav { display: flex; flex-wrap: wrap; gap: 8px 32px; font-family: var(--nm-font-en); font-size: 13px; font-weight: 500; letter-spacing: 0.12em; }
.nm-nav ul { display: contents; list-style: none; margin: 0; padding: 0; }
.nm-nav a { text-decoration: none; color: var(--nm-ink); }
.nm-nav .current-menu-item > a, .nm-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.nm-header__count { font-family: var(--nm-font-en); font-size: 12px; font-weight: 500; letter-spacing: 0.1em; color: var(--nm-ink-2); }

/* ---------- front page ---------- */
.nm-front {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; display: flex; flex-direction: column;
  background: var(--nm-paper);
}
.nm-pastel {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-color: #F6F6F8;
  background-image:
    radial-gradient(closest-side, rgba(236,226,246,0.9), rgba(236,226,246,0)),
    radial-gradient(closest-side, rgba(250,232,226,0.9), rgba(250,232,226,0)),
    radial-gradient(closest-side, rgba(224,242,238,0.9), rgba(224,242,238,0)),
    radial-gradient(closest-side, rgba(228,236,250,0.9), rgba(228,236,250,0));
  background-size: 120% 130%, 110% 120%, 100% 110%, 130% 120%;
  background-repeat: no-repeat;
  /* 動きは止めて固定（描画の負担を減らすため）。動かす場合は下の行を戻す: animation: nm-pastel 32s ease-in-out infinite; */
}
@keyframes nm-pastel {
  0%   { background-position: 0% 0%, 100% 100%, 50% 0%, 0% 100%; }
  25%  { background-position: 40% 30%, 70% 60%, 90% 40%, 20% 60%; }
  50%  { background-position: 100% 60%, 20% 30%, 40% 100%, 80% 20%; }
  75%  { background-position: 60% 100%, 0% 70%, 0% 50%, 100% 80%; }
  100% { background-position: 0% 0%, 100% 100%, 50% 0%, 0% 100%; }
}
.nm-emote-layer { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; }

.nm-hero {
  flex-grow: 1; display: flex; flex-wrap: wrap; align-items: center;
  gap: 48px 72px; padding: 12px var(--nm-gutter) 40px;
}
.nm-hero__copy { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.nm-hero__kicker { margin: 0; font-family: var(--nm-font-en); font-size: 12px; font-weight: 500; letter-spacing: 0.16em; color: var(--nm-ink-2); }
.nm-hero__title { margin: 0; font-family: var(--nm-font-mincho); font-weight: 400; font-size: 54px; line-height: 1.4; letter-spacing: 0.02em; }
.nm-hero__en { margin: 0; font-family: var(--nm-font-en); font-weight: 400; font-size: 24px; letter-spacing: 0.04em; line-height: 1.3; color: var(--nm-ink-2); }
.nm-hero__lead { margin: 0; max-width: 460px; font-size: 15px; line-height: 2; color: var(--nm-ink-2); }
.nm-hero__actions { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; padding-top: 8px; }
.nm-btn {
  display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 28px;
  border: 1px solid var(--nm-ink); font-family: var(--nm-font-en); font-size: 13px; letter-spacing: 0.12em;
  text-decoration: none; color: var(--nm-ink); background: transparent;
}
.nm-btn:hover { background: var(--nm-ink); color: var(--nm-paper); }
.nm-link-strong { font-size: 14px; font-weight: 500; color: var(--nm-ink); }

.nm-live { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.nm-glass { position: relative; width: 100%; height: 560px; }
.nm-glass__faces {
  position: absolute; top: -70px; right: 0; bottom: 0; left: 0; transform-origin: 50% 30%; animation: nm-breathe 6s ease-in-out infinite;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 86%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 86%, transparent 100%);
}
.nm-glass__faces img {
  position: absolute; left: 50%; top: -16px; height: 998px; width: auto; max-width: none;
  transform: translateX(-50%); opacity: 0; transition: opacity 0.22s ease;
}
.nm-glass__faces img.is-base, .nm-glass__faces img.is-on { opacity: 1; }
.nm-glass.is-talking .nm-glass__faces img { transition-duration: 0.1s; }
.nm-glass__faces img[data-expr="blink"] { transition-duration: 0.06s; }
.nm-glass__faces img.nm-iris {
  translate: var(--gx, 0px) var(--gy, 0px); pointer-events: none; transition-duration: 0.06s;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: calc(var(--gx, 0px) * -1) calc(var(--gy, 0px) * -1); mask-position: calc(var(--gx, 0px) * -1) calc(var(--gy, 0px) * -1);
}
@keyframes nm-breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.012); } }
.nm-glass__shine { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(180deg, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0) 22%); }
.nm-glass__bezel { position: absolute; inset: 9px; pointer-events: none; border-radius: 14px; border: 1px solid rgba(20,20,20,0.10); box-shadow: 0 0 0 1px rgba(255,255,255,0.55) inset; }
.nm-glass__poke { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; }
.nm-corner { position: absolute; width: 28px; height: 28px; pointer-events: none; }
.nm-corner--tl { top: 20px; left: 20px; border-top: 1px solid var(--nm-ink); border-left: 1px solid var(--nm-ink); }
.nm-corner--tr { top: 20px; right: 20px; border-top: 1px solid var(--nm-ink); border-right: 1px solid var(--nm-ink); }
.nm-corner--bl { bottom: 20px; left: 20px; border-bottom: 1px solid var(--nm-ink); border-left: 1px solid var(--nm-ink); }
.nm-corner--br { bottom: 20px; right: 20px; border-bottom: 1px solid var(--nm-ink); border-right: 1px solid var(--nm-ink); }
.nm-glass__hud {
  position: absolute; top: 34px; left: 60px; right: 60px; display: flex; justify-content: space-between;
  font-family: var(--nm-font-en); font-size: 12px; font-weight: 500; letter-spacing: 0.12em; pointer-events: none;
}
.nm-live-dot { display: inline-flex; align-items: center; gap: 8px; }
.nm-live-dot::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--nm-accent); }
.nm-glass__no { color: #3A3936; }
.nm-say {
  position: absolute; left: 50%; bottom: 0; width: min(560px, 100%); transform: translateX(-50%); padding: 18px 24px; border-radius: 10px;
  background: rgba(20,20,22,0.86);
  border-left: 1px solid var(--nm-paper); color: var(--nm-paper);
  display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.nm-say__name { font-family: var(--nm-font-en); font-size: 11px; letter-spacing: 0.14em; color: #A9AAAE; }
.nm-say__text { margin: 0; min-height: 61px; font-size: 17px; line-height: 1.8; }
.nm-say__text.is-typing::after { content: '▍'; }
.nm-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.nm-chip--beam { color: #079A96; border-color: #0ABAB5 !important; }
/* ---------- 原宿に行く (Takeshita Street background) ---------- */
.nm-trip { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 1s ease; background: #eeedf0; overflow: hidden; }
.nm-trip video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; display: block; }
.nm-trip::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(90deg, rgba(246,246,248,.62) 0%, rgba(246,246,248,.4) 32%, rgba(246,246,248,0) 56%), linear-gradient(180deg, rgba(246,246,248,.5) 0%, rgba(246,246,248,0) 14%, rgba(246,246,248,0) 84%, rgba(246,246,248,.4) 100%); }
.nm-front.is-trip .nm-trip { opacity: 1; }
/* crepe in her hand while in Harajuku: rises from the bottom, then sways a little */
.nm-crepe { position: absolute; left: 0; right: 0; top: -90px; bottom: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.nm-glass .nm-say { z-index: 3; }
.nm-crepe .nm-prop.nm-prop--runway { left: calc(50% - 305px); }
@media (max-width: 760px) { .nm-crepe .nm-prop.nm-prop--runway { left: calc(50% - 170px); height: 260px; } }
.nm-crepe .nm-prop { position: absolute; left: calc(50% - 262px); bottom: -40px; height: 470px; width: auto; transform: translateY(110%) rotate(-6deg); transform-origin: 50% 100%; transition: transform .9s cubic-bezier(.2,.9,.25,1.12); filter: drop-shadow(0 12px 18px rgba(40,30,40,.18)); }
.nm-front.is-trip-harajuku .nm-prop--harajuku, .nm-front.is-trip-runway .nm-prop--runway { transform: translateY(0) rotate(-4deg); transition-delay: .5s; animation: nm-crepe-sway 3.2s ease-in-out 1.5s infinite; }
@keyframes nm-crepe-sway { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-6px) rotate(-1.5deg); } }
@media (max-width: 760px) { .nm-crepe .nm-prop { left: calc(50% - 158px); height: 288px; bottom: 10px; } }
@media (prefers-reduced-motion: reduce) { .nm-crepe .nm-prop { transition: none; } .nm-front.is-trip .nm-crepe .nm-prop { animation: none; } }
.nm-front.is-trip .nm-glass__faces { filter: drop-shadow(0 10px 26px rgba(40,30,40,.22)); }
.nm-front.is-trip .nm-chips .nm-chip, .nm-front.is-trip .nm-play .nm-chip { background-color: rgba(255,255,255,.86); }
.nm-front.is-trip .nm-chip[aria-pressed="true"] { background-color: var(--nm-ink); }
.nm-front.is-trip .nm-front__footer { background: rgba(246,246,248,.82); }
@media (max-width: 760px) { .nm-trip video { object-position: 72% 30%; } .nm-trip::after { background-image: linear-gradient(180deg, rgba(246,246,248,.7) 0%, rgba(246,246,248,.5) 34%, rgba(246,246,248,0) 52%, rgba(246,246,248,.35) 100%); } }
.nm-chip--trip { color: #B0306A; border-color: #E58AB4 !important; }
.nm-chip--trip::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-radius: 50%; vertical-align: middle; background: #FF8FC0; box-shadow: 0 0 6px 2px rgba(255,143,192,.6); }
.nm-front.is-trip .nm-chip--trip[aria-pressed="true"] { color: #fff; background-color: #B0306A; border-color: #B0306A !important; }
@media (max-width: 760px) { .nm-play .nm-chip--trip::after { width: 5px; height: 5px; margin-left: 5px; } }

.nm-chip--beam::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-radius: 50%; background: #0ABAB5; box-shadow: 0 0 6px 2px rgba(10,186,181,.55); vertical-align: middle; }
.nm-chip {
  min-height: 44px; padding: 0 18px; font: inherit; font-feature-settings: inherit; font-size: 14px;
  letter-spacing: 0.02em; cursor: pointer; border: 1px solid #7A7C81; background: transparent; color: var(--nm-ink);
}
.nm-chip[aria-pressed="true"] { border-color: var(--nm-ink); background: var(--nm-ink); color: var(--nm-paper); }
.nm-live .nm-chips + .nm-play { margin-top: -6px; }
.nm-play { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.nm-play__label { font-family: var(--nm-font-en); font-size: 11px; font-weight: 500; letter-spacing: .16em; color: var(--nm-muted); margin-right: 4px; transition: color 1.1s ease; }
.nm-play .nm-chip { min-height: 36px; padding: 0 14px; font-size: 12.5px; }
@media (max-width: 760px) { .nm-play { gap: 6px; } .nm-play__label { flex-basis: 100%; } .nm-play .nm-chip { padding: 0 10px; font-size: 11.5px; letter-spacing: 0; } .nm-play .nm-chip--beam::after { width: 5px; height: 5px; margin-left: 5px; } }

.nm-front__footer {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px 32px; padding: 16px var(--nm-gutter);
  border-top: 1px solid var(--nm-line); font-family: var(--nm-font-en); font-size: 12px; font-weight: 500;
  letter-spacing: 0.1em; color: var(--nm-ink-2);
}
.nm-front__scroll { color: var(--nm-ink-2); text-decoration: none; }
.nm-front-models { min-height: 0; border-top: 1px solid var(--nm-line); }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- models archive ---------- */
.nm-archive { background: var(--nm-paper-warm); min-height: 100vh; display: flex; flex-direction: column; }
.nm-archive .nm-header { border-bottom: 1px solid var(--nm-ink); padding-bottom: 28px; }
.nm-archive__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; padding: 72px var(--nm-gutter) 40px; }
.nm-archive__kicker { margin: 0 0 14px; font-family: var(--nm-font-en); font-size: 12px; letter-spacing: 0.16em; color: var(--nm-muted); }
.nm-archive__title { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; font-weight: 400; }
.nm-archive__title-en { font-family: var(--nm-font-en); font-size: 88px; font-weight: 300; line-height: 1; letter-spacing: 0.02em; }
.nm-archive__title-ja { font-size: 18px; font-weight: 300; letter-spacing: 0.2em; }
.nm-archive__meta { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, auto)); gap: 6px 24px; font-family: var(--nm-font-en); font-size: 12px; letter-spacing: 0.08em; }
.nm-archive__meta dt { color: var(--nm-muted); }
.nm-archive__meta dd { margin: 0; }
.nm-filter { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 0 var(--nm-gutter) 32px; }
.nm-filter__group { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.nm-filter__label { font-family: var(--nm-font-en); font-size: 11px; letter-spacing: 0.14em; color: var(--nm-muted); margin-right: 8px; }
.nm-filter__btn {
  min-height: 44px; padding: 0 18px; font-family: var(--nm-font-en); font-size: 12px; letter-spacing: 0.1em;
  cursor: pointer; border: 1px solid var(--nm-ink); background: transparent; color: var(--nm-ink);
}
.nm-filter__btn[aria-pressed="true"] { background: var(--nm-ink); color: var(--nm-paper-warm); }
/* Rounded buttons + hover sparkles (assets/js/sparkle.js) */
.nm-btn, .nm-chip, .nm-filter__btn { position: relative; border-radius: 999px; }
.nm-spark-host { position: absolute; left: 0; top: 0; width: 0; height: 0; overflow: visible; pointer-events: none; z-index: 2; }
.nm-filter__count { font-family: var(--nm-font-en); font-size: 12px; letter-spacing: 0.1em; color: var(--nm-muted); }
.nm-grid-wrap { flex-grow: 1; padding: 0 var(--nm-gutter) 80px; }
.nm-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 40px 20px;
  border-top: 1px solid var(--nm-ink); padding-top: 32px; margin: 0; list-style: none; padding-left: 0; padding-right: 0;
}
.nm-grid[hidden], .nm-tile[hidden] { display: none; }
.nm-tile__btn {
  display: flex; flex-direction: column; gap: 14px; width: 100%; padding: 0; border: 0; background: transparent;
  color: var(--nm-ink); text-align: left; font: inherit; cursor: pointer;
}
.nm-tile__media { position: relative; display: block; width: 100%; aspect-ratio: 3 / 4; background: #E4E6EA; overflow: hidden; }
.nm-tile__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.nm-tile__placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--nm-font-en); font-size: 12px; letter-spacing: 0.1em; color: var(--nm-muted); }
.nm-tile__no { position: absolute; top: 12px; left: 12px; font-family: var(--nm-font-en); font-size: 11px; letter-spacing: 0.12em; color: var(--nm-ink); background: rgba(242,241,238,0.75); padding: 2px 6px; }
.nm-tile__new { position: absolute; top: 12px; right: 12px; padding: 3px 8px; background: var(--nm-paper-warm); font-family: var(--nm-font-en); font-size: 11px; letter-spacing: 0.12em; color: var(--nm-new); }
.nm-tile__over {
  position: absolute; inset: 0; background: rgba(20,20,20,0.78); color: var(--nm-paper-warm);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 14px;
  opacity: 0; visibility: hidden; transition: opacity 0.2s ease;
}
.nm-tile.is-open .nm-tile__over { opacity: 1; visibility: visible; }
.nm-tile__over-label { font-family: var(--nm-font-en); font-size: 11px; letter-spacing: 0.14em; color: #C5C8CE; }
.nm-tile__fmt { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.nm-tile__fmt em { white-space: nowrap; font-size: 10px; }
.nm-tile__fmt span { position: relative; height: 56px; border: 1px solid #6C6F76; display: flex; align-items: flex-end; padding: 5px; font-size: 11px; overflow: hidden; }
.nm-tile__fmt img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nm-tile__fmt em { position: relative; font-style: normal; background: rgba(20,20,20,0.6); padding: 0 3px; }
.nm-tile__detail { display: none; margin-top: 10px; font-size: 12px; letter-spacing: 0.08em; color: var(--nm-ink); }
.nm-tile.is-open .nm-tile__detail { display: inline-block; }
.nm-tile__detail::after { content: '　→'; }
.nm-nav li { list-style: none; }
.nm-tile__info { display: flex; flex-direction: column; gap: 4px; padding-top: 2px; }
.nm-tile__names { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.nm-tile__name { font-family: var(--nm-font-mincho); font-size: 18px; letter-spacing: 0.08em; }
.nm-tile__roman { font-family: var(--nm-font-en); font-size: 13px; letter-spacing: 0.06em; }
.nm-tile__tags { display: flex; flex-wrap: wrap; gap: 4px 14px; font-family: var(--nm-font-en); font-size: 11px; letter-spacing: 0.1em; color: var(--nm-muted); }
.nm-pager { margin-top: 56px; }
.nm-pager .nm-btn { width: 100%; justify-content: center; min-height: 56px; }
.nm-empty { padding: 48px 0; color: var(--nm-muted); }

/* ---------- single (simple) ---------- */
.nm-single { padding: 48px var(--nm-gutter) 80px; max-width: 1200px; }
.nm-single__gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-top: 32px; }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  :root { --nm-gutter: 20px; }
  .nm-hero__title { font-size: 38px; }
  .nm-glass { height: 480px; }
  .nm-glass__faces img { height: 817px; top: -8px; }
  .nm-archive__title-en { font-size: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  .nm-pastel, .nm-glass__faces { animation: none !important; }
  .nm-orbit { display: none; }
}

/* ---------- Price (front page #plan) ---------- */
.nm-price { position: relative; border-top: 1px solid var(--nm-line); padding: 0 var(--nm-gutter) 96px; background: var(--nm-paper); isolation: isolate; overflow: hidden; }
.nm-price::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 660px; z-index: -1; pointer-events: none;
  background-image: radial-gradient(40% 60% at 85% 20%, rgba(236,226,246,0.85), rgba(236,226,246,0)), radial-gradient(36% 50% at 12% 45%, rgba(224,242,238,0.8), rgba(224,242,238,0)), radial-gradient(30% 40% at 60% 70%, rgba(250,232,226,0.6), rgba(250,232,226,0)); }
.nm-price__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px 64px; padding: 72px 0 48px; }
.nm-price__title-wrap { display: flex; flex-direction: column; gap: 14px; }
.nm-kicker { margin: 0; font-family: var(--nm-font-en); font-size: 12px; font-weight: 500; letter-spacing: 0.16em; color: var(--nm-muted); }
.nm-price__title { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; font-weight: 400; }
.nm-price__title-en { font-family: var(--nm-font-en); font-size: 88px; font-weight: 300; line-height: 1; letter-spacing: 0.02em; }
.nm-price__title-ja { font-size: 18px; font-weight: 300; letter-spacing: 0.2em; }
.nm-price__lead { flex: 0 1 560px; display: flex; flex-direction: column; gap: 16px; }
.nm-price__catch { margin: 0; font-family: var(--nm-font-mincho); font-size: 26px; line-height: 1.6; letter-spacing: 0.02em; }
.nm-price__text { margin: 0; font-size: 14px; line-height: 2; color: #2A2B2F; }
.nm-price__legend { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-bottom: 24px; font-size: 13px; color: #2A2B2F; }
.nm-price__keys { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.nm-price__tax { color: var(--nm-muted); }
.nm-en-label { font-family: var(--nm-font-en); font-size: 11px; font-weight: 500; letter-spacing: 0.16em; margin-right: 8px; }
.nm-price__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; align-items: stretch; }
.nm-plan { --c-fg: var(--nm-ink); --c-mu: var(--nm-muted); --c-ln: var(--nm-line); display: flex; flex-direction: column; gap: 20px; padding: 32px 30px 30px; border-radius: 24px; background: rgba(255,255,255,0.72); color: var(--c-fg); border: 1px solid var(--nm-line); }
.nm-plan.is-featured { --c-fg: #F4F5F7; --c-mu: #A9AEB6; --c-ln: #3A3C41; background: var(--nm-ink); border-color: var(--nm-ink); box-shadow: 0 24px 60px -30px rgba(20,20,20,0.55); }
.nm-plan__top { display: flex; flex-direction: column; gap: 12px; }
.nm-plan__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 28px; }
.nm-plan__no { font-family: var(--nm-font-en); font-size: 12px; font-weight: 500; letter-spacing: 0.16em; color: var(--c-mu); }
.nm-plan__badge { padding: 4px 12px; border: 1px solid #5A5D63; border-radius: 999px; font-family: var(--nm-font-en); font-size: 11px; font-weight: 500; letter-spacing: 0.16em; color: #C5CBD3; }
.nm-plan__name { margin: 0; font-family: var(--nm-font-en); font-size: 34px; font-weight: 400; letter-spacing: 0.08em; line-height: 1; }
.nm-plan__name span { font-size: 14px; letter-spacing: 0.16em; margin-left: 10px; color: var(--c-mu); }
.nm-plan__tag { margin: 0; font-size: 14px; font-weight: 500; letter-spacing: 0.04em; }
.nm-plan__desc { margin: 0; font-size: 13px; line-height: 1.9; color: var(--c-mu); min-height: 74px; }
.nm-plan__prices { display: flex; flex-direction: column; }
.nm-plan__price { display: flex; flex-direction: column; gap: 6px; padding: 18px 0; border-top: 1px solid var(--c-ln); }
.nm-plan__price-label { font-size: 13px; color: var(--c-mu); }
.nm-plan__price-val, .nm-excl__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.nm-plan__yen { font-family: var(--nm-font-en); font-size: 44px; font-weight: 300; line-height: 1.05; letter-spacing: 0.01em; font-variant-numeric: tabular-nums; }
.nm-plan__note, .nm-plan__model { font-size: 12px; line-height: 1.7; color: var(--c-mu, var(--nm-muted)); }
.nm-plan__unit { padding-top: 14px; border-top: 1px solid var(--c-ln); font-size: 13px; color: var(--c-mu); }
.nm-plan__inc { display: flex; flex-direction: column; gap: 12px; flex-grow: 1; }
.nm-plan__inc > .nm-en-label { color: var(--c-mu); }
.nm-plan__inc ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.7; }
.nm-plan__inc li { display: flex; gap: 10px; align-items: flex-start; }
.nm-price__star { flex: none; margin-top: 7px; fill: #8A929B; }
.nm-plan.is-featured .nm-price__star { fill: #C5CBD3; }
.nm-plan__cta { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 28px; border: 1px solid var(--c-fg); border-radius: 999px; font-size: 14px; letter-spacing: 0.04em; text-decoration: none; color: var(--c-fg); transition: background-color 0.2s ease, color 0.2s ease; }
.nm-plan__cta:hover { background: var(--c-fg); color: var(--nm-ink); }
.nm-plan:not(.is-featured) .nm-plan__cta:hover { color: var(--nm-paper); }
.nm-excl { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 48px; padding: 28px 32px; border-radius: 24px; border: 1px solid var(--nm-line); background: rgba(255,255,255,0.72); }
.nm-excl__body { display: flex; flex-direction: column; gap: 8px; flex: 1 1 320px; }
.nm-excl__body > .nm-en-label { color: var(--nm-muted); }
.nm-excl__title { margin: 0; font-size: 17px; font-weight: 500; }
.nm-excl__note { margin: 0; font-size: 12px; line-height: 1.8; color: var(--nm-muted); }
.nm-excl__side { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.nm-excl__cta { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border-radius: 999px; background: var(--nm-ink); color: var(--nm-paper); font-size: 13px; text-decoration: none; }
.nm-plan__cta, .nm-excl__cta { position: relative; }
@media (max-width: 720px) {
  .nm-price__title-en { font-size: 60px; }
  .nm-price__catch { font-size: 21px; }
  .nm-plan { padding: 26px 22px 24px; }
  .nm-plan__yen { font-size: 38px; }
  .nm-excl { padding: 24px 22px; }
}

/* ---------- Contact (front page #contact) ---------- */
.nm-contact { position: relative; border-top: 1px solid var(--nm-line); background: var(--nm-paper); isolation: isolate; overflow: hidden; }
.nm-contact::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(38% 55% at 10% 30%, rgba(228,236,250,0.9), rgba(228,236,250,0)), radial-gradient(34% 50% at 92% 75%, rgba(236,226,246,0.8), rgba(236,226,246,0)); }
.nm-contact__inner { display: flex; flex-wrap: wrap; gap: 48px 80px; padding: 72px var(--nm-gutter) 88px; }
.nm-contact__intro { flex: 1 1 360px; display: flex; flex-direction: column; gap: 28px; }
.nm-contact__text { max-width: 440px; }
.nm-contact__op { display: flex; flex-direction: column; gap: 10px; max-width: 440px; padding-top: 24px; border-top: 1px solid var(--nm-line); font-size: 14px; }
.nm-contact__op .nm-en-label { color: var(--nm-muted); }
.nm-contact__body { flex: 1 1 560px; min-width: 0; }
.nm-form { display: flex; flex-direction: column; gap: 22px; padding: 36px 36px 32px; border-radius: 24px; border: 1px solid var(--nm-line); background: rgba(255,255,255,0.6); }
.nm-form__alert { margin: 0; padding: 12px 16px; border-radius: 12px; background: #141414; color: #F4F5F7; font-size: 13px; }
.nm-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.nm-form__topics { margin: 0; padding: 0; border: 0; }
.nm-form__topics legend { padding: 0 0 12px; font-size: 13px; font-weight: 500; }
.nm-form__chips { display: flex; flex-wrap: wrap; gap: 10px; }
.nm-form__chip { position: relative; display: inline-flex; border-radius: 999px; cursor: pointer; }
.nm-form__chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.nm-form__chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid #7A7C81; border-radius: 999px; font-size: 13px; letter-spacing: 0.02em; transition: background-color 0.2s ease, color 0.2s ease; }
.nm-form__chip input:checked + span { border-color: var(--nm-ink); background: var(--nm-ink); color: var(--nm-paper); }
.nm-form__chip input:focus-visible + span { outline: 2px solid var(--nm-ink); outline-offset: 2px; }
.nm-form__req, .nm-form__opt { margin-left: 8px; font-family: var(--nm-font-en); font-size: 10px; font-weight: 500; letter-spacing: 0.14em; color: var(--nm-muted); }
.nm-form__opt { color: #A9AEB6; }
.nm-form__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.nm-form__field { display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 500; }
.nm-form__field input, .nm-form__field textarea { min-height: 52px; padding: 0 18px; border: 1px solid var(--nm-line); border-radius: 14px; background: rgba(255,255,255,0.85); font: inherit; font-size: 15px; font-weight: 400; color: var(--nm-ink); }
.nm-form__field textarea { min-height: 168px; padding: 14px 18px; line-height: 1.8; resize: vertical; }
.nm-form__field input::placeholder, .nm-form__field textarea::placeholder { color: #A9AEB6; }
.nm-form__field input:focus, .nm-form__field textarea:focus { outline: none; border-color: var(--nm-ink); box-shadow: 0 0 0 3px rgba(20,20,20,0.08); }
.nm-form__agree { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.8; color: #2A2B2F; cursor: pointer; }
.nm-form__agree input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--nm-ink); }
.nm-form__foot { display: flex; justify-content: flex-end; }
.nm-form__submit, .nm-contact__back { position: relative; display: inline-flex; align-items: center; min-height: 56px; padding: 0 40px; border: 1px solid var(--nm-ink); border-radius: 999px; background: var(--nm-ink); color: var(--nm-paper); font: inherit; font-size: 15px; letter-spacing: 0.04em; text-decoration: none; cursor: pointer; }
.nm-contact__done { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: 48px 40px; border-radius: 24px; background: var(--nm-ink); color: var(--nm-paper); }
.nm-contact__done p { margin: 0; font-size: 14px; line-height: 2; color: #C5CBD3; }
.nm-contact__done .nm-en-label { color: #A9AEB6; }
.nm-contact__done .nm-contact__done-title { font-family: var(--nm-font-mincho); font-size: 24px; line-height: 1.6; color: var(--nm-paper); }
.nm-contact__back { min-height: 48px; padding: 0 24px; font-size: 13px; background: transparent; border-color: var(--nm-paper); }
@media (max-width: 720px) {
  .nm-form { padding: 24px 20px; }
  .nm-form__foot .nm-form__submit { width: 100%; justify-content: center; }
}

/* ---------- Site footer ---------- */
.nm-foot { position: relative; overflow: hidden; background: var(--nm-ink); color: var(--nm-paper); }
.nm-foot__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 48px 80px; padding: 80px var(--nm-gutter) 56px; }
.nm-foot__brand { display: flex; flex-direction: column; gap: 24px; flex: 1 1 320px; }
.nm-foot__logo { align-self: flex-start; }
.nm-foot .nm-spark svg { fill: #C5CBD3; filter: drop-shadow(0 0 4px rgba(255,255,255,0.9)); }
.nm-foot__catch { margin: 0; font-family: var(--nm-font-mincho); font-size: 22px; line-height: 1.7; letter-spacing: 0.02em; }
.nm-foot__sub { margin: 0; font-family: var(--nm-font-en); font-size: 14px; letter-spacing: 0.04em; color: #A9AEB6; }
.nm-foot__nav { display: flex; flex-wrap: wrap; gap: 40px 72px; }
.nm-foot__col { display: flex; flex-direction: column; gap: 16px; }
.nm-foot__col a { color: var(--nm-paper); text-decoration: none; font-size: 14px; transition: opacity 0.2s ease; }
.nm-foot__col a:hover { opacity: 0.7; }
.nm-foot__col a.nm-foot__en { font-family: var(--nm-font-en); letter-spacing: 0.12em; }
.nm-foot__label { font-family: var(--nm-font-en); font-size: 11px; font-weight: 500; letter-spacing: 0.16em; color: #7E8791; }
.nm-foot__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding: 24px var(--nm-gutter) 32px; border-top: 1px solid #2E3035; font-family: var(--nm-font-en); font-size: 12px; font-weight: 500; letter-spacing: 0.1em; color: #7E8791; }
.nm-foot__top-btn { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; border: 1px solid #5A5D63; border-radius: 999px; color: var(--nm-paper); text-decoration: none; }
.nm-foot a:hover, .nm-foot a:focus { color: var(--nm-paper); }
.nm-foot__top-btn:hover { background: #2E3035; opacity: 1; }

/* ---------- Works / use cases (front page #works) ---------- */
.nm-works { border-top: 1px solid var(--nm-line); padding: 0 var(--nm-gutter) 96px; background: var(--nm-paper); }
.nm-works__lead { flex: 0 1 460px; }
.nm-works__body { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px 72px; }
.nm-works__list { flex: 1 1 520px; min-width: 0; margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--nm-line); }
.nm-works__item { position: relative; border-top: 1px solid var(--nm-line); }
.nm-works__prog { position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--nm-ink); transform-origin: 0 50%; transform: scaleX(0); }
.nm-works__item.is-on .nm-works__prog { transform: scaleX(1); }
.nm-works__prog.is-run { animation: nm-works-prog 4.5s linear forwards; }
.nm-works.is-paused .nm-works__prog.is-run { animation-play-state: paused; }
@keyframes nm-works-prog { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.nm-works__row { width: 100%; display: flex; align-items: baseline; gap: 24px; padding: 22px 0; border: 0; background: transparent; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.nm-works__row:focus-visible { outline: 2px solid var(--nm-ink); outline-offset: 4px; }
.nm-works__no { flex: none; width: 32px; font-family: var(--nm-font-en); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; color: #A9AEB6; }
.nm-works__title { flex: 1 1 auto; font-size: 22px; letter-spacing: 0.02em; line-height: 1.4; color: var(--nm-muted); transition: font-size 0.25s ease, color 0.25s ease; }
.nm-works__arrow { flex: none; font-family: var(--nm-font-en); font-size: 18px; opacity: 0.25; transform: translateX(-6px); transition: transform 0.25s ease, opacity 0.25s ease; }
.nm-works__item.is-on .nm-works__no { color: var(--nm-ink); }
.nm-works__item.is-on .nm-works__title { font-size: 26px; font-weight: 500; color: var(--nm-ink); }
.nm-works__item.is-on .nm-works__arrow { opacity: 1; transform: none; }
.nm-works__detail { display: none; flex-direction: column; align-items: flex-start; gap: 16px; padding: 0 0 26px 56px; }
.nm-works__item.is-on .nm-works__detail { display: flex; }
.nm-works__detail p { margin: 0; max-width: 520px; font-size: 14px; line-height: 2; color: #2A2B2F; }
.nm-works__tag { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 16px; border: 1px solid var(--nm-ink); border-radius: 999px; font-family: var(--nm-font-en); font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-decoration: none; color: var(--nm-ink); }
.nm-works__tag span { color: var(--nm-muted); }
.nm-works__thumb { display: none; }
.nm-works__visual { flex: 0 1 480px; min-width: 280px; position: sticky; top: 24px; }
.nm-works__frame { position: relative; width: 100%; aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden; background: #E4E6EA; box-shadow: 0 30px 60px -36px rgba(20,20,20,0.45); }
.nm-works__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 0.6s ease, transform 1.2s ease; }
.nm-works__frame img.is-on { opacity: 1; transform: none; }
.nm-works__count { position: absolute; left: 16px; bottom: 16px; padding: 8px 14px; border-radius: 999px; background: rgba(20,20,22,0.62); color: var(--nm-paper); font-family: var(--nm-font-en); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; }
/* DIRECTION band under the use cases (package example) */
.nm-direction { position: relative; margin-top: 64px; padding: 64px 56px; min-height: 420px; border-radius: 28px; background: linear-gradient(160deg, #EEF4FB 0%, #E4E6F4 55%, #DAD8EE 100%); display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 48px; align-items: center; }
.nm-direction__text { display: flex; flex-direction: column; gap: 22px; max-width: 600px; }
.nm-direction__text .nm-kicker { margin: 0; }
.nm-direction__title { margin: 0; font-size: 32px; font-weight: 400; line-height: 1.6; letter-spacing: 0.04em; }
.nm-direction__lead { margin: 0; font-size: 14px; line-height: 2; color: #2A2B2F; }
.nm-direction__points { margin: 10px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid rgba(20,20,20,0.18); }
.nm-direction__points li { display: flex; flex-direction: column; gap: 6px; padding: 16px 16px 0; font-size: 15px; letter-spacing: 0.06em; border-left: 1px solid rgba(20,20,20,0.12); }
.nm-direction__points li:first-child { padding-left: 0; border-left: 0; }
.nm-direction__points span { font-family: var(--nm-font-en); font-size: 11px; font-weight: 500; letter-spacing: 0.16em; color: var(--nm-muted); }
.nm-direction__fig { position: relative; margin: 0; align-self: stretch; }
.nm-direction__fig img { position: absolute; right: -24px; bottom: -64px; width: 440px; height: auto; display: block; filter: drop-shadow(0 30px 40px rgba(40,40,80,0.18)); }
.nm-direction__fig figcaption { position: absolute; left: -8px; top: 0; display: flex; flex-direction: column; gap: 4px; font-size: 11px; line-height: 1.7; color: var(--nm-muted); }
.nm-direction__fig figcaption span { font-family: var(--nm-font-en); font-weight: 500; letter-spacing: 0.16em; color: var(--nm-ink); }
@media (max-width: 960px) {
  .nm-direction { grid-template-columns: 1fr; padding: 40px 24px 0; gap: 24px; overflow: hidden; }
  .nm-direction__title { font-size: 24px; }
  .nm-direction__points li { font-size: 13px; padding: 14px 10px 0; }
  .nm-direction__fig { min-height: 0; }
  .nm-direction__fig img { position: relative; right: auto; bottom: auto; width: min(360px, 90%); margin: 0 0 0 auto; }
  .nm-direction__fig { display: flex; flex-direction: column; gap: 8px; }
  .nm-direction__fig figcaption { position: static; order: -1; }
}
@media (max-width: 900px) {
  .nm-works__visual { display: none; }
  .nm-works__detail { padding-left: 0; }
  .nm-works__thumb { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 20px; }
  .nm-works__title, .nm-works__item.is-on .nm-works__title { font-size: 19px; }
}

/* ---------- Movie (front page #movie) ---------- */
.nm-movie { position: relative; border-top: 1px solid var(--nm-line); padding: 0 var(--nm-gutter) 96px; background: var(--nm-paper); isolation: isolate; overflow: hidden; }
.nm-movie::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: radial-gradient(36% 50% at 88% 18%, rgba(224,242,238,0.85), rgba(224,242,238,0)), radial-gradient(30% 45% at 8% 80%, rgba(250,232,226,0.7), rgba(250,232,226,0)); }
.nm-movie__grid { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 32px 20px; }
.nm-movie__card { width: 100%; display: flex; flex-direction: column; gap: 14px; padding: 0; border: 0; background: transparent; color: var(--nm-ink); text-align: left; font: inherit; cursor: pointer; }
.nm-movie__card:focus-visible { outline: 2px solid var(--nm-ink); outline-offset: 4px; }
.nm-movie__media { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; background: #E4E6EA; }
.nm-movie__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.nm-movie__card:hover .nm-movie__media img { transform: scale(1.05); }
.nm-movie__cat { position: absolute; left: 12px; top: 12px; padding: 5px 10px; border-radius: 999px; background: rgba(244,245,247,0.86); font-family: var(--nm-font-en); font-size: 10px; font-weight: 500; letter-spacing: 0.14em; }
.nm-movie__play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; border-radius: 999px; transform: translate(-50%, -50%); background: rgba(20,20,22,0.55); border: 1px solid rgba(244,245,247,0.6); display: flex; align-items: center; justify-content: center; transition: transform 0.3s ease, background-color 0.3s ease; }
.nm-movie__play svg { margin-left: 3px; fill: var(--nm-paper); }
.nm-movie__card:hover .nm-movie__play { transform: translate(-50%, -50%) scale(1.08); background: rgba(20,20,22,0.78); }
.nm-movie__meta { display: flex; flex-direction: column; gap: 4px; padding: 0 2px; }
.nm-movie__row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.nm-movie__no { font-family: var(--nm-font-en); font-size: 11px; font-weight: 500; letter-spacing: 0.14em; color: #A9AEB6; }
.nm-movie__title { font-size: 15px; font-weight: 500; letter-spacing: 0.02em; }
.nm-movie__sub { font-family: var(--nm-font-en); font-size: 12px; color: var(--nm-muted); }
.nm-movie__note { font-size: 11px; line-height: 1.7; color: #8A8E96; }
.nm-movie__dialog { width: min(1100px, 92vw); max-width: none; max-height: 92vh; padding: 0; border: 0; background: transparent; overflow: visible; }
.nm-movie__dialog::backdrop { background: rgba(12,12,14,0.86); }
.nm-movie__dialog-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.nm-movie__dialog video { display: block; max-width: 100%; max-height: calc(92vh - 80px); border-radius: 16px; background: #000; box-shadow: 0 30px 80px -30px rgba(0,0,0,0.8); }
.nm-movie__dialog-bar { display: flex; align-items: center; gap: 24px; color: var(--nm-paper); font-size: 14px; }
.nm-movie__close { position: relative; min-height: 44px; padding: 0 22px; border: 1px solid var(--nm-paper); border-radius: 999px; background: transparent; color: var(--nm-paper); font-family: var(--nm-font-en); font-size: 12px; letter-spacing: 0.14em; cursor: pointer; }

/* Contact: operator info */
.nm-contact__info { margin: 0; display: grid; grid-template-columns: 96px 1fr; gap: 14px 16px; max-width: 440px; padding-top: 24px; border-top: 1px solid var(--nm-line); font-size: 14px; line-height: 1.8; }
.nm-contact__info dt { font-family: var(--nm-font-en); font-size: 11px; font-weight: 500; letter-spacing: 0.16em; color: var(--nm-muted); padding-top: 3px; }
.nm-contact__info dd { margin: 0; }
.nm-contact__info a { color: var(--nm-ink); }
.nm-foot__addr { margin: 0; font-size: 12px; line-height: 1.9; color: #A9AEB6; }
.nm-foot__addr a { color: var(--nm-paper); text-decoration: none; }

/* ---------- Format images lightbox (model list) ---------- */
.nm-tile__shot { cursor: zoom-in; transition: border-color 0.2s ease, transform 0.2s ease; }
.nm-tile.is-open .nm-tile__shot:hover, .nm-tile__shot:focus-visible { border-color: var(--nm-paper); transform: translateY(-2px); outline: none; }
.nm-shot { width: min(980px, 94vw); max-width: none; max-height: 94vh; padding: 0; border: 0; background: transparent; overflow: visible; }
.nm-shot::backdrop { background: rgba(12,12,14,0.86); }
.nm-shot__inner { display: flex; flex-direction: column; gap: 16px; }
.nm-shot__stage { position: relative; display: flex; align-items: center; justify-content: center; }
.nm-shot__img { display: block; max-width: 100%; max-height: calc(94vh - 150px); border-radius: 16px; background: #E4E6EA; box-shadow: 0 30px 80px -30px rgba(0,0,0,0.8); }
.nm-shot__nav { position: absolute; top: 50%; width: 52px; height: 52px; margin-top: -26px; border: 1px solid rgba(244,245,247,0.7); border-radius: 999px; background: rgba(20,20,22,0.5); color: var(--nm-paper); font-family: var(--nm-font-en); font-size: 18px; cursor: pointer; }
.nm-shot__nav--prev { left: -12px; }
.nm-shot__nav--next { right: -12px; }
.nm-shot__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; color: var(--nm-paper); }
.nm-shot__title { display: flex; align-items: baseline; gap: 12px; }
.nm-shot__name { font-family: var(--nm-font-mincho); font-size: 20px; letter-spacing: 0.08em; }
.nm-shot__label { font-size: 13px; color: #C5CBD3; }
.nm-shot__thumbs { display: flex; gap: 8px; }
.nm-shot__thumb { position: relative; width: 56px; height: 56px; padding: 0; border: 1px solid #5A5D63; border-radius: 8px; overflow: hidden; background: #2A2B2F; cursor: pointer; }
.nm-shot__thumb[aria-current="true"] { border-color: var(--nm-paper); box-shadow: 0 0 0 2px rgba(244,245,247,0.35); }
.nm-shot__thumb img { width: 100%; height: 100%; object-fit: cover; }
.nm-shot__thumb em { position: absolute; left: 3px; bottom: 3px; padding: 0 3px; border-radius: 3px; background: rgba(20,20,22,0.7); font-style: normal; font-size: 10px; color: var(--nm-paper); }
.nm-shot__actions { display: flex; align-items: center; gap: 12px; }
.nm-shot__detail, .nm-shot__close { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border: 1px solid var(--nm-paper); border-radius: 999px; background: transparent; color: var(--nm-paper); font-size: 13px; text-decoration: none; cursor: pointer; }
.nm-shot__detail { background: var(--nm-paper); color: var(--nm-ink); }
@media (max-width: 720px) { .nm-shot__nav--prev { left: 6px; } .nm-shot__nav--next { right: 6px; } }

/* Hover: 4-angle flip */
.nm-tile__spin { position: absolute; inset: 0; opacity: 0; transition: opacity 0.15s ease; pointer-events: none; }
.nm-tile__spin.is-on { opacity: 1; }
.nm-tile__spin img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; opacity: 0; }
.nm-tile__spin img.is-on { opacity: 1; }

/* ---------- Model detail ---------- */
.nm-model { padding: 32px var(--nm-gutter) 96px; }
.nm-model__crumb { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--nm-font-en); font-size: 12px; letter-spacing: 0.1em; color: var(--nm-muted); margin-bottom: 32px; }
.nm-model__crumb a { color: var(--nm-muted); text-decoration: none; }
.nm-model__crumb a:hover { color: var(--nm-ink); }
.nm-model__hero { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px 72px; }
.nm-model__viewer { flex: 1 1 520px; min-width: 0; max-width: 720px; display: flex; flex-direction: column; gap: 14px; outline: none; }
.nm-model__stage { position: relative; aspect-ratio: 1 / 1; border-radius: 24px; overflow: hidden; background: #E4E6EA; }
.nm-model__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.35s ease; }
.nm-model__stage img.is-on { opacity: 1; }
.nm-model__stage .nm-model__nav--prev, .nm-model__stage .nm-shot__nav--prev { left: 16px; }
.nm-model__stage .nm-model__nav--next, .nm-model__stage .nm-shot__nav--next { right: 16px; }
.nm-model__angle { position: absolute; left: 16px; bottom: 16px; padding: 6px 14px; border-radius: 999px; background: rgba(20,20,22,0.62); color: var(--nm-paper); font-size: 12px; letter-spacing: 0.08em; }
.nm-model__thumbs { display: flex; gap: 10px; }
.nm-model__thumbs .nm-shot__thumb { width: 84px; height: 84px; border-color: var(--nm-line); background: #E4E6EA; }
.nm-model__thumbs .nm-shot__thumb[aria-current="true"] { border-color: var(--nm-ink); box-shadow: 0 0 0 2px rgba(20,20,20,0.12); }
.nm-model__profile { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 18px; padding-top: 8px; }
.nm-model__name { margin: 0; font-family: var(--nm-font-mincho); font-size: 56px; font-weight: 400; line-height: 1.2; letter-spacing: 0.08em; }
.nm-model__roman { margin: -6px 0 0; font-family: var(--nm-font-en); font-size: 20px; letter-spacing: 0.08em; color: var(--nm-muted); }
.nm-model__badges { display: flex; flex-wrap: wrap; gap: 8px; }
.nm-model__badge { display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px; border: 1px solid var(--nm-ink); border-radius: 999px; font-family: var(--nm-font-en); font-size: 11px; font-weight: 500; letter-spacing: 0.14em; }
.nm-model__badge.is-ok { background: var(--nm-ink); color: var(--nm-paper); font-family: var(--nm-font-ja); letter-spacing: 0.04em; }
.nm-model__badge.is-muted { border-color: #A9AEB6; color: var(--nm-muted); font-family: var(--nm-font-ja); letter-spacing: 0.04em; }
.nm-model__spec { margin: 0; display: grid; grid-template-columns: 96px 1fr; border-top: 1px solid var(--nm-line); }
.nm-model__spec dt, .nm-model__spec dd { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--nm-line); font-size: 14px; }
.nm-model__spec dt { font-family: var(--nm-font-en); font-size: 11px; font-weight: 500; letter-spacing: 0.16em; color: var(--nm-muted); padding-top: 16px; }
.nm-model__note { margin: 0; font-size: 14px; line-height: 2; color: #2A2B2F; }
.nm-model__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.nm-model__btn { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 32px; border: 1px solid var(--nm-ink); border-radius: 999px; color: var(--nm-ink); font-size: 15px; letter-spacing: 0.04em; text-decoration: none; }
.nm-model__btn.is-primary { background: var(--nm-ink); color: var(--nm-paper); }
.nm-model__btn:hover { color: inherit; }
.nm-model__btn.is-primary:hover { color: var(--nm-paper); }
.nm-model__excl { margin: 0; font-size: 12px; line-height: 1.8; color: var(--nm-muted); }
.nm-model__works { margin-top: 80px; padding-top: 48px; border-top: 1px solid var(--nm-line); display: flex; flex-direction: column; gap: 20px; }
.nm-model__content { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.nm-model__content figure { margin: 0; }
.nm-model__content img { display: block; width: 100%; height: auto; border-radius: 20px; }
.nm-model__others { margin-top: 80px; padding-top: 48px; border-top: 1px solid var(--nm-line); }
.nm-model__others-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; margin-bottom: 28px; }
.nm-model__others-title { margin: 0; display: flex; align-items: baseline; gap: 16px; font-size: 15px; font-weight: 300; letter-spacing: 0.2em; }
.nm-model__others-title span { font-family: var(--nm-font-en); font-size: 40px; font-weight: 300; letter-spacing: 0.02em; }
.nm-model__others-grid { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 28px 18px; }
.nm-model__other { display: flex; flex-direction: column; gap: 10px; color: var(--nm-ink); text-decoration: none; }
.nm-model__other .nm-tile__media img { transition: transform 0.6s ease; }
.nm-model__other:hover .nm-tile__media img { transform: scale(1.04); }
.nm-model__other .nm-tile__name { font-size: 16px; }
@media (max-width: 720px) {
  .nm-model__name { font-size: 40px; }
  .nm-model__thumbs .nm-shot__thumb { width: 64px; height: 64px; }
}

/* ---------- Flow & FAQ (front page #flow) ---------- */
.nm-flow { position: relative; border-top: 1px solid var(--nm-line); padding: 0 var(--nm-gutter) 96px; background: var(--nm-paper); }
.nm-flow__lead { flex: 0 1 460px; }
.nm-flow__steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.nm-flow__step { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 28px 24px 30px; border-radius: 24px; border: 1px solid var(--nm-line); background: rgba(255,255,255,0.72); }
.nm-flow__step:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: -13px; width: 10px; height: 10px; border-top: 1px solid var(--nm-ink); border-right: 1px solid var(--nm-ink); transform: translateY(-50%) rotate(45deg); z-index: 1; background: transparent; }
.nm-flow__no { font-family: var(--nm-font-en); font-size: 40px; font-weight: 300; line-height: 1; letter-spacing: 0.02em; }
.nm-flow__en { font-family: var(--nm-font-en); font-size: 11px; font-weight: 500; letter-spacing: 0.16em; color: var(--nm-muted); }
.nm-flow__title { font-size: 17px; font-weight: 500; letter-spacing: 0.02em; }
.nm-flow__text { font-size: 13px; line-height: 1.9; color: #2A2B2F; }
.nm-faq { margin-top: 80px; display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 32px 72px; align-items: start; }
.nm-faq__title { margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; font-weight: 300; letter-spacing: 0.2em; }
.nm-faq__title span { font-family: var(--nm-font-en); font-size: 64px; font-weight: 300; line-height: 1; letter-spacing: 0.02em; }
.nm-faq__list { border-top: 1px solid var(--nm-line); }
.nm-faq__item { border-bottom: 1px solid var(--nm-line); }
.nm-faq__item summary { list-style: none; display: flex; align-items: center; gap: 20px; padding: 24px 4px; cursor: pointer; }
.nm-faq__item summary::-webkit-details-marker { display: none; }
.nm-faq__item summary:focus-visible { outline: 2px solid var(--nm-ink); outline-offset: 2px; }
.nm-faq__q { flex: none; width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--nm-ink); display: inline-flex; align-items: center; justify-content: center; font-family: var(--nm-font-en); font-size: 13px; font-weight: 500; }
.nm-faq__a .nm-faq__q { background: var(--nm-ink); color: var(--nm-paper); }
.nm-faq__qtext { flex: 1 1 auto; font-size: 17px; font-weight: 500; letter-spacing: 0.02em; }
.nm-faq__icon { position: relative; flex: none; width: 16px; height: 16px; }
.nm-faq__icon::before, .nm-faq__icon::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--nm-ink); transition: transform 0.25s ease; }
.nm-faq__icon::after { transform: rotate(90deg); }
.nm-faq__item[open] .nm-faq__icon::after { transform: rotate(0deg); }
.nm-faq__a { display: flex; gap: 20px; padding: 0 4px 28px; }
.nm-faq__a p { margin: 6px 0 0; font-size: 14px; line-height: 2; color: #2A2B2F; }
@media (max-width: 1100px) {
  .nm-flow__steps { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .nm-flow__step::after { display: none; }
  .nm-faq { grid-template-columns: 1fr; }
}

/* ---------- Fixed pages ---------- */
.nm-page { padding: 72px var(--nm-gutter) 96px; }
.nm-page__article { max-width: 760px; margin: 0 auto; }
.nm-page__head { display: flex; flex-direction: column; gap: 14px; padding-bottom: 32px; margin-bottom: 40px; border-bottom: 1px solid var(--nm-line); }
.nm-page__title { margin: 0; font-family: var(--nm-font-mincho); font-size: 40px; font-weight: 400; letter-spacing: 0.06em; }
.nm-page__body { font-size: 15px; line-height: 2.1; color: #2A2B2F; }
.nm-page__body h2 { margin: 48px 0 12px; font-size: 18px; font-weight: 500; color: var(--nm-ink); letter-spacing: 0.04em; }
.nm-page__body ul { padding-left: 1.4em; }
.nm-page__body a { color: var(--nm-ink); }
.nm-page__date { margin-top: 56px; font-size: 12px; color: var(--nm-muted); }

.nm-front__mark { display: block; height: 26px; width: auto; }
.nm-front__footer .nm-front__scroll { justify-self: end; }
@media (max-width: 720px) {
  .nm-front__footer { grid-template-columns: 1fr auto; }
  .nm-front__footer > span:first-child { grid-column: 1 / -1; order: 3; text-align: center; }
  .nm-front__mark { justify-self: start; }
}

/* phones: show her face first, then the copy */
@media (max-width: 760px) {
  .nm-front .nm-header { padding: 14px var(--nm-gutter) 4px; gap: 8px 20px; }
  .nm-front .nm-header__count { display: none; }
  .nm-front .nm-nav { font-size: 12px; gap: 6px 20px; }
  .nm-front .nm-hero { padding-top: 0; gap: 36px; }
  .nm-front .nm-live { order: -1; flex-basis: 100%; }
  .nm-front .nm-glass { margin-top: 40px; }
}

/* phones: model list in 2 columns */
@media (max-width: 760px) {
  .nm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; padding-top: 24px; }
  .nm-tile__name { font-size: 15px; letter-spacing: 0.04em; }
  .nm-tile__roman { font-size: 11px; }
  .nm-tile__names { gap: 2px 8px; }
  .nm-tile__tags { font-size: 10px; gap: 2px 10px; }
  .nm-tile__no { top: 8px; left: 8px; font-size: 10px; }
  .nm-tile__new { top: 8px; right: 8px; font-size: 10px; }
  .nm-tile__over { padding: 8px; gap: 6px; }
  .nm-tile__over-label { font-size: 9px; letter-spacing: 0.08em; }
  .nm-tile__fmt { gap: 3px; }
  .nm-tile__fmt span { height: 42px; padding: 2px; }
  .nm-tile__fmt em { font-size: 8.5px; padding: 0 2px; }
  .nm-tile__detail { font-size: 11px; margin-top: 4px; }
}

/* ---------- 写真を撮る: countdown, flash and a wallpaper present ---------- */
.nm-chip--shot { color: #3A3D44; border-color: #8E939B !important; }
.nm-chip--shot::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-radius: 50%; vertical-align: middle; background: #fff; box-shadow: 0 0 0 1px #8E939B, 0 0 6px 2px rgba(255,255,255,.9); }
@media (max-width: 760px) { .nm-play .nm-chip--shot::after { width: 5px; height: 5px; margin-left: 5px; } }
.nm-count { position: absolute; left: 50%; top: 34%; z-index: 4; transform: translate(-50%, -50%); pointer-events: none; font-family: var(--nm-font-en); font-weight: 300; font-size: 120px; line-height: 1; color: #fff; text-shadow: 0 2px 6px rgba(20,20,20,.45), 0 0 30px rgba(20,20,20,.35); opacity: 0; }
.nm-count.is-on { animation: nm-count .9s ease-out both; }
@keyframes nm-count { 0% { opacity: 0; transform: translate(-50%, -50%) scale(1.4); } 25% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(.9); } }
.nm-glass.is-flash::after { content: ""; position: absolute; inset: -90px 0 0; z-index: 5; background: #fff; pointer-events: none; animation: nm-flash .5s ease-out both; }
@keyframes nm-flash { 0% { opacity: 0; } 12% { opacity: .95; } 100% { opacity: 0; } }
.nm-gift { width: min(860px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 24px; background: var(--nm-paper); color: var(--nm-ink); box-shadow: 0 40px 80px -30px rgba(20,20,20,.5); overflow: auto; }
.nm-gift::backdrop { background: rgba(20,20,22,.55); }
.nm-gift[open] { animation: nm-gift-in .5s cubic-bezier(.2,.9,.25,1.05); }
@keyframes nm-gift-in { from { opacity: 0; transform: translateY(24px) scale(.97); } }
.nm-gift__in { position: relative; display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 40px; align-items: center; padding: 40px; }
.nm-gift__phone { position: relative; width: 280px; aspect-ratio: 1179 / 2546; border-radius: 40px; padding: 10px; background: #141414; box-shadow: 0 30px 50px -24px rgba(20,20,20,.55); }
.nm-gift__phone::before { content: ""; position: absolute; left: 50%; top: 20px; z-index: 1; width: 78px; height: 22px; margin-left: -39px; border-radius: 999px; background: #141414; }
.nm-gift__phone img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 31px; }
.nm-gift__text { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.nm-gift__text .nm-kicker { margin: 0; }
.nm-gift__title { margin: 0; font-family: var(--nm-font-mincho); font-size: 32px; line-height: 1.5; }
.nm-gift__lead { margin: 0; font-size: 14px; line-height: 2; color: var(--nm-ink-2); }
.nm-gift__name { display: flex; flex-direction: column; gap: 6px; width: 100%; max-width: 320px; font-size: 13px; font-weight: 500; }
.nm-gift__name em { margin-left: 8px; font-family: var(--nm-font-en); font-style: normal; font-size: 10px; letter-spacing: .14em; color: var(--nm-muted); }
.nm-gift__name input { min-height: 46px; padding: 0 16px; border: 1px solid var(--nm-line); border-radius: 12px; background: #fff; font: inherit; font-size: 16px; font-weight: 400; color: var(--nm-ink); }
.nm-gift__name input:focus { outline: none; border-color: var(--nm-ink); box-shadow: 0 0 0 3px rgba(20,20,20,.08); }
.nm-gift__hint { margin: -8px 0 0; font-size: 12px; color: var(--nm-muted); }
.nm-gift__ios { margin: -6px 0 0; font-size: 12px; color: var(--nm-muted); }
.nm-gift__note { margin: 0; font-size: 11px; line-height: 1.8; color: var(--nm-muted); }
.nm-gift__cta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; width: 100%; padding-top: 16px; border-top: 1px solid var(--nm-line); font-size: 13px; }
.nm-gift__close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; font-size: 22px; line-height: 1; cursor: pointer; color: var(--nm-ink); }
@media (max-width: 760px) {
  .nm-gift__in { grid-template-columns: 1fr; gap: 20px; padding: 28px 20px 24px; justify-items: center; }
  .nm-gift__phone { width: min(200px, 56vw); border-radius: 30px; padding: 7px; }
  .nm-gift__phone::before { top: 14px; width: 56px; height: 16px; margin-left: -28px; }
  .nm-gift__phone img { border-radius: 24px; }
  .nm-gift__title { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { .nm-count.is-on, .nm-glass.is-flash::after, .nm-gift[open] { animation: none; } }

/* ランウェイを歩く */
.nm-front.is-walk .nm-trip { opacity: 1; }
.nm-front.is-walk .nm-trip video { object-position: 50% 45%; }
.nm-front.is-walk .nm-trip::after { background-image: linear-gradient(90deg, rgba(246,246,248,.72) 0%, rgba(246,246,248,.5) 30%, rgba(246,246,248,0) 46%), linear-gradient(180deg, rgba(246,246,248,.45) 0%, rgba(246,246,248,0) 14%, rgba(246,246,248,0) 86%, rgba(246,246,248,.35) 100%); }
.nm-glass__faces, .nm-glass .nm-say, .nm-crepe { transition: opacity .8s ease; }
.nm-front.is-walk .nm-glass__faces, .nm-front.is-walk .nm-glass .nm-say, .nm-front.is-walk .nm-crepe { opacity: 0; }
.nm-front.is-walk .nm-glass__poke { pointer-events: none; }
.nm-front.is-walk .nm-play .nm-chip { background-color: rgba(255,255,255,.86); }
.nm-chip[disabled] { opacity: .5; cursor: default; }
@media (max-width: 760px) { .nm-front.is-walk .nm-trip video { object-position: 50% 30%; } .nm-front.is-walk .nm-trip::after { background-image: linear-gradient(180deg, rgba(246,246,248,.6) 0%, rgba(246,246,248,0) 30%, rgba(246,246,248,0) 80%, rgba(246,246,248,.35) 100%); } }
