/* Apple-ish product storytelling skin
   - minimal shadows, generous whitespace
   - sticky local-nav
   - subtle motion with prefers-reduced-motion
*/
:root{
  --brandbar-h: 48px; /* brand bar height */
  --brandbar-gap: 10px;
  --bg: #ffffff;
  --alt: #f5f5f7;
  --ink: #0b1220;
  --muted: rgba(11,18,32,.66);
  --hair: rgba(11,18,32,.10);
  --hair2: rgba(11,18,32,.14);
  --brand: #0b5cff; /* CTA accent */
  --wrap: 1120px;

  --r1: 16px;
  --r2: 22px;

  --shadow: 0 10px 30px rgba(0,0,0,.06);
  --shadow2: 0 18px 60px rgba(0,0,0,.10);

  --ease: cubic-bezier(.2,.8,.2,1);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  color:var(--ink);
  background:var(--bg);
  font-family: system-ui, -apple-system, "SF Pro Display", "SF Pro Text", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-top: calc(var(--brandbar-h) + var(--brandbar-gap));
}

a{ color:inherit; }
img{ max-width:100%; height:auto; display:block; }

/* No-upscale: supplied images are shown up to their natural pixel width (prevents blur) */
img[data-no-upscale]{
  width: 100%;
  height: auto;
  max-width: min(100%, var(--nw, 100%));
  margin-inline: auto;
}


.wrap{
  width:min(var(--wrap), calc(100% - 40px));
  margin-inline:auto;
}

/* Top progress */
.top-progress{
  position:fixed; inset:0 0 auto 0;
  height:2px; z-index:9999;
  background:transparent;
}
.top-progress__bar{
  height:100%;
  width:0%;
  background: linear-gradient(90deg, rgba(11,92,255,1), rgba(11,92,255,.35));
}

/* Local Nav */
.lnav{
  position:sticky;
  top:0;
  z-index:999;
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--hair);
}
.lnav__inner{
  width:min(var(--wrap), calc(100% - 24px));
  margin-inline:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding: 12px 0;
}
.lnav__product{
  font-weight:700;
  letter-spacing:-0.02em;
}
.lnav__sub{
  font-size:12px;
  color:var(--muted);
  margin-top:2px;
}
.lnav__right{
  display:flex;
  gap:14px;
  align-items:center;
}
.lnav__link{
  font-size:14px;
  color:rgba(11,18,32,.78);
  text-decoration:none;
  padding:8px 10px;
  border-radius:999px;
}
.lnav__link:hover{ background: rgba(11,18,32,.06); }
.lnav__link.is-active{ background: rgba(11,92,255,.10); color: rgba(11,92,255,1); }

.lnav__cta{
  text-decoration:none;
  font-size:14px;
  padding:9px 14px;
  border-radius:999px;
  background: var(--brand);
  color:#fff;
  box-shadow: 0 8px 22px rgba(11,92,255,.25);
}
.lnav__cta:hover{ filter: brightness(1.02); }

.lnav__more{
  display:none;
  margin-left:auto;
  border:1px solid var(--hair);
  background:#fff;
  border-radius:999px;
  padding:8px 12px;
  font-size:14px;
}
.lnav__panel{
  border-top:1px solid var(--hair);
  padding: 8px 0 14px;
}
.lnav__plink{
  display:block;
  width:min(var(--wrap), calc(100% - 24px));
  margin: 0 auto;
  padding: 10px 0;
  text-decoration:none;
  color: rgba(11,18,32,.86);
}

@media (max-width: 860px){
  .lnav__right{ display:none; }
  .lnav__more{ display:inline-flex; }
}

/* Hero */
.hero{
  background: radial-gradient(1200px 600px at 50% 0%, rgba(11,92,255,.12), transparent 55%),
              radial-gradient(900px 500px at 20% 10%, rgba(0,0,0,.06), transparent 60%);
  padding: clamp(44px, 7vw, 92px) 0 26px;
}
.hero__wrap{ position:relative; }
.hero__eyebrow{
  margin:0 0 10px;
  color: rgba(11,18,32,.72);
  font-weight:600;
  letter-spacing: .02em;
}
.hero__title{
  margin:0;
  font-size: clamp(44px, 6.2vw, 92px);
  line-height: .95;
  letter-spacing: -0.04em;
}
.hero__lead{
  margin: 14px 0 0;
  font-size: clamp(16px, 1.8vw, 20px);
  color: rgba(11,18,32,.70);
  max-width: 62ch;
}

.hero__metrics{
  margin-top: 26px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}
.metric{
  border: 1px solid var(--hair);
  border-radius: var(--r2);
  background: rgba(255,255,255,.70);
  padding: 16px 16px 14px;
}
.metric__kicker{
  font-size: 12px;
  color: rgba(11,18,32,.62);
}
.metric__value{
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 6px;
  font-size: clamp(18px, 2.2vw, 26px);
}
.metric__unit{
  font-size: 12px;
  color: rgba(11,18,32,.55);
  margin-top: 6px;
}

.hero__visual{
  margin-top: clamp(22px, 4vw, 34px);
}
\.hero__figure{
  border-radius: 28px;
  overflow:hidden;
  border: 1px solid var(--hair);
  background: linear-gradient(180deg, rgba(255,255,255,.78), rgba(255,255,255,.60));
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  padding: clamp(14px, 2.2vw, 24px);
}
\.hero__img{
  width:100%;
  max-width: min(100%, var(--nw, 100%));
  padding: 0; /* padding moved to figure (prevents accidental upscale) */
  transform: translateZ(0);
}
.hero__cap{
  padding: 12px 16px 16px;
  margin:0;
  color: rgba(11,18,32,.58);
  font-size: 12px;
  border-top: 1px solid var(--hair);
  background: rgba(255,255,255,.65);
}
.hero__badges{
  margin-top: 16px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.badge{
  border: 1px solid var(--hair);
  background: rgba(255,255,255,.72);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  color: rgba(11,18,32,.76);
}

.hero__hint{
  margin-top: 30px;
  display:flex;
  align-items:center;
  gap:10px;
  color: rgba(11,18,32,.55);
  font-size: 12px;
}
.hero__hint .dot{
  width: 26px; height: 26px;
  border-radius: 999px;
  border:1px solid var(--hair2);
  position:relative;
}
.hero__hint .dot::after{
  content:"";
  position:absolute;
  left:50%; top:7px;
  width:4px; height:4px;
  border-radius:999px;
  background: rgba(11,18,32,.55);
  transform: translateX(-50%);
  animation: dot 1.8s var(--ease) infinite;
}
@keyframes dot{
  0%{ transform: translate(-50%, 0); opacity:.9;}
  70%{ transform: translate(-50%, 10px); opacity:.15;}
  100%{ transform: translate(-50%, 0); opacity:.9;}
}

@media (max-width: 860px){
  .hero__metrics{ grid-template-columns: 1fr; }
}

/* Sections */
.slab{
  padding: clamp(54px, 8vw, 98px) 0;
}
.slab--alt{
  background: var(--alt);
}
.h2{
  font-size: clamp(28px, 3.6vw, 48px);
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  line-height: 1.05;
}
.h3{
  font-size: 20px;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.lead{
  font-size: 18px;
  color: rgba(11,18,32,.72);
  max-width: 68ch;
  margin: 0 0 28px;
}
.note{
  margin-top: 18px;
  color: rgba(11,18,32,.58);
  font-size: 12.5px;
  line-height: 1.7;
}

/* Highlights */
.hl{
  border: 1px solid var(--hair);
  border-radius: 28px;
  overflow:hidden;
  background: rgba(255,255,255,.75);
  box-shadow: var(--shadow);
}
.hl__tabs{
  display:flex;
  gap: 10px;
  padding: 14px 16px;
  overflow:auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--hair);
}
.hl__tabs::-webkit-scrollbar{ display:none; }
.hl__tab{
  border: 1px solid var(--hair);
  background: rgba(255,255,255,.72);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
  white-space: nowrap;
}
.hl__tab.is-active{
  border-color: rgba(11,92,255,.30);
  background: rgba(11,92,255,.10);
  color: rgba(11,92,255,1);
}
.hl__panes{
  padding: 22px 18px 26px;
}
.hl__pane{ display:none; }
.hl__pane.is-active{ display:block; }
.hl__lead{
  margin:0 0 10px;
  font-size: clamp(18px, 2.1vw, 24px);
  letter-spacing: -0.02em;
}
.hl__text{
  margin:0;
  color: rgba(11,18,32,.72);
  line-height: 1.8;
}

/* Value cards */
.grid3{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}
.vcard{
  border:1px solid var(--hair);
  border-radius: 28px;
  padding: 20px 18px 18px;
  background: rgba(255,255,255,.76);
  box-shadow: var(--shadow);
}
.vcard p{
  margin:0;
  color: rgba(11,18,32,.72);
  line-height: 1.8;
}
@media (max-width: 960px){
  .grid3{ grid-template-columns: 1fr; }
}

/* Film */
.film__layout{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 22px;
  align-items:start;
}
.film__sticky{
  position: sticky;
  top: 96px;
}
.film__frame{
  border-radius: 30px;
  border: 1px solid var(--hair);
  background: rgba(255,255,255,.78);
  box-shadow: var(--shadow2);
  overflow:hidden;
  padding: 18px;
  position:relative;
  transform: translateZ(0);
}
.film__frame img{
  width:100%;
  transition: transform 700ms var(--ease), filter 700ms var(--ease);
  transform: scale(var(--filmScale, 1)) translateY(var(--filmY, 0px));
  filter: saturate(var(--filmSat, 1));
}
.film__glow{
  position:absolute; inset:-20%;
  background: radial-gradient(circle at 30% 10%, rgba(11,92,255,.18), transparent 55%),
              radial-gradient(circle at 70% 85%, rgba(0,0,0,.10), transparent 58%);
  pointer-events:none;
}

.film__steps{
  display:flex;
  flex-direction:column;
  gap: 14px;
}
.step{
  border: 1px solid var(--hair);
  border-radius: 24px;
  padding: 18px 16px;
  background: rgba(255,255,255,.75);
  box-shadow: var(--shadow);
  opacity: .78;
}
.step.is-active{
  opacity: 1;
  border-color: rgba(11,92,255,.26);
  box-shadow: 0 18px 50px rgba(11,92,255,.10);
}
.step p{
  margin:0;
  color: rgba(11,18,32,.72);
  line-height: 1.8;
}
.step__meta{
  margin-top: 10px;
  font-size: 12.5px;
  color: rgba(11,18,32,.56);
}

@media (max-width: 980px){
  .film__layout{ grid-template-columns: 1fr; }
  .film__sticky{ top: 86px; }
}

/* Specs */
.specgrid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
}
.spec{
  border:1px solid var(--hair);
  border-radius: 22px;
  padding: 16px 14px 14px;
  background: rgba(255,255,255,.76);
  box-shadow: var(--shadow);
}
.spec__k{
  font-size: 12px;
  color: rgba(11,18,32,.62);
}
.spec__v{
  margin-top: 6px;
  font-weight:700;
  letter-spacing:-0.02em;
  font-size: 18px;
}
.spec__u{
  margin-top: 6px;
  font-size: 12px;
  color: rgba(11,18,32,.56);
}
@media (max-width: 980px){
  .specgrid{ grid-template-columns: 1fr; }
}

/* Details + tables */
.details{
  margin-top: 18px;
  border:1px solid var(--hair);
  border-radius: 28px;
  background: rgba(255,255,255,.72);
  overflow:hidden;
  box-shadow: var(--shadow);
}
.details__sum{
  list-style:none;
  cursor:pointer;
  padding: 18px 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-bottom:1px solid var(--hair);
  position:relative;
}
.details__sum::-webkit-details-marker{ display:none; }
.details__sum::after{
  content:"＋";
  position:absolute;
  right:18px;
  top:50%;
  transform: translateY(-50%);
  color: rgba(11,18,32,.55);
  font-weight:700;
}
details[open] .details__sum::after{ content:"−"; }
.details__body{
  padding: 18px 18px 22px;
}

.table-wrap{
  overflow:auto;
  border-radius: 18px;
  border: 1px solid var(--hair);
  background: rgba(255,255,255,.85);
}
table{
  width:100%;
  border-collapse: collapse;
  min-width: 720px;
}
caption{
  text-align:left;
  padding: 12px 12px 8px;
  font-size: 12px;
  color: rgba(11,18,32,.55);
}
th,td{
  padding: 10px 12px;
  border-top: 1px solid var(--hair);
  vertical-align: top;
  font-size: 13px;
  line-height: 1.6;
}
th{
  text-align:left;
  color: rgba(11,18,32,.70);
  background: rgba(11,18,32,.03);
}
tbody tr:hover td{ background: rgba(11,92,255,.05); }

/* Contact + buttons */
.contact{ text-align:left; }
.cta{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 16px;
  border-radius: 999px;
  text-decoration:none;
  background: var(--brand);
  color:#fff;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(11,92,255,.24);
}
.btn:hover{ filter: brightness(1.02); }
.btn--ghost{
  background: transparent;
  color: rgba(11,18,32,.86);
  border: 1px solid var(--hair2);
  box-shadow: none;
}
.btn--ghost:hover{ background: rgba(11,18,32,.06); }

/* Footer */
.footer{
  padding: 26px 0 40px;
  background: var(--alt);
  border-top: 1px solid var(--hair);
}
.footer__wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  color: rgba(11,18,32,.62);
  font-size: 12px;
}
.footer__top{
  text-decoration:none;
  width: 36px;
  height: 36px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius: 999px;
  border:1px solid var(--hair2);
  background: rgba(255,255,255,.75);
}

/* Reveal */
.reveal{
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 650ms var(--ease), transform 650ms var(--ease);
}
.reveal.in{
  opacity:1;
  transform:none;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  *{ scroll-behavior:auto !important; }
  .hero__hint .dot::after{ animation:none; }
  .reveal{ opacity:1; transform:none; }
  .film__frame img{ transition:none; }
}


.film__frame img[data-no-upscale]{
  max-width: min(100%, var(--nw, 100%));
  margin-inline: auto;
}


/* --- Nikko Kikai brand bar (Apple-like) --- */
.brandbar{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--brandbar-h);
  z-index: 1000;
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--hair);
}
.brandbar__wrap{
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.brandbar__brand{
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: .02em;
}
.brandbar__mark{
  font-weight: 700;
  font-size: 14px;
}
.brandbar__sub{
  font-weight: 600;
  font-size: 12px;
  color: var(--muted);
}
.brandbar__meta{
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brandbar__pill{
  font-size: 12px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--hair2);
  background: rgba(245,245,247,.85);
  color: rgba(11,18,32,.78);
  white-space: nowrap;
}
/* Make sure top progress sits under brandbar */
.top-progress{ top: var(--brandbar-h); }
