/* =====================================================================
   SmartArms LP  -  style.css
   Brand: Black × Yellow × White / bold, industrial, confident
   ===================================================================== */

:root {
  --black: #0b0b0d;
  --ink: #17181c;
  --yellow: #ffd400;
  --yellow-deep: #f5b800;
  --white: #ffffff;
  --paper: #f4f4f2;
  --gray-100: #ececec;
  --gray-300: #c9cacd;
  --gray-500: #8a8c92;
  --gray-700: #4a4b50;

  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 4px;

  --font-jp: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN",
    "Yu Gothic", Meiryo, sans-serif;
  --font-en: "Oswald", "Noto Sans JP", sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-jp);
  color: var(--ink);
  background: var(--white);
  line-height: 1.8;
  font-weight: 400;
  letter-spacing: 0.02em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.nav-open { overflow: hidden; }

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.en { font-family: var(--font-en); font-weight: 600; letter-spacing: 0.08em; }

/* ---------------- Reveal animation ---------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal][data-reveal-delay="1"] { transition-delay: 0.09s; }
[data-reveal][data-reveal-delay="2"] { transition-delay: 0.18s; }
[data-reveal][data-reveal-delay="3"] { transition-delay: 0.27s; }
[data-reveal][data-reveal-delay="4"] { transition-delay: 0.36s; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------------- Buttons ---------------- */
.btn {
  --bg: var(--black);
  --fg: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.95em 1.9em;
  background: var(--bg);
  color: var(--fg);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  border: 2px solid var(--bg);
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
  line-height: 1;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn--yellow { --bg: var(--yellow); --fg: var(--black); border-color: var(--yellow); }
.btn--yellow:hover { background: var(--yellow-deep); border-color: var(--yellow-deep); }
.btn--outline { --bg: transparent; --fg: var(--black); border-color: var(--black); }
.btn--outline:hover { background: var(--black); color: var(--white); }
.btn--outline-light { --bg: transparent; --fg: var(--white); border-color: rgba(255,255,255,.5); }
.btn--outline-light:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.btn--block { width: 100%; }
.btn.is-loading { opacity: 0.8; pointer-events: none; }

.btn-spinner {
  width: 1em; height: 1em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  display: inline-block;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- Section scaffolding ---------------- */
.section { padding-block: clamp(72px, 11vw, 148px); position: relative; }
.section--paper { background: var(--paper); }
.section--dark { background: var(--black); color: var(--white); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray-700);
  margin: 0 0 1.1rem;
}
.section--dark .eyebrow { color: var(--yellow); }
.eyebrow::before {
  content: "";
  width: 30px; height: 2px;
  background: var(--yellow);
}

.section-title {
  font-size: clamp(1.9rem, 4.6vw, 3.2rem);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: 0.01em;
  margin: 0 0 1.2rem;
}
.section-title .hl { color: var(--yellow-deep); }
.section--dark .section-title .hl { color: var(--yellow); }
.lead {
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  color: var(--gray-700);
  max-width: 62ch;
  margin: 0;
}
.section--dark .lead { color: rgba(255,255,255,.72); }

/* =====================================================================
   Header
   ===================================================================== */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  height: 72px;
  transition: background 0.4s var(--ease), height 0.4s var(--ease), box-shadow 0.4s;
}
.header.is-scrolled {
  background: rgba(11,11,13,0.92);
  backdrop-filter: blur(10px);
  height: 62px;
  box-shadow: 0 1px 0 rgba(255,255,255,.08);
}
.header__inner {
  width: 100%; max-width: var(--maxw); margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
}
.header__logo { display: flex; align-items: center; gap: 0.55em; color: var(--white); }
.header__wordmark { width: 118px; height: auto; aspect-ratio: 1600 / 370; color: #fff; display: block; }
.header.is-scrolled .header__wordmark { width: 108px; }
.header__logo span { font-size: 0.62rem; letter-spacing: 0.1em; color: var(--yellow); align-self: flex-end; padding-bottom: 4px; }
@media (max-width: 480px) { .header__logo span { display: none; } }

.header__actions { display: flex; align-items: center; gap: clamp(0.9rem, 2.2vw, 2rem); }

/* CustomJapan.net へ戻るバッジ（色付きロゴを白地で視認性確保） */
.header__cj {
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border-radius: 9px; padding: 4px 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,.18);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
  flex: none;
}
.header__cj:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.3); }
.header__cj img { height: 40px; width: auto; display: block; }
.header.is-scrolled .header__cj img { height: 34px; }
@media (max-width: 480px) { .header__cj img { height: 34px; } }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.2rem); }
.nav a {
  color: rgba(255,255,255,.85);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color 0.25s;
}
.nav a:hover { color: var(--yellow); }
.nav .btn { padding: 0.65em 1.3em; font-size: 0.82rem; }

.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex; flex-direction: column; gap: 5px;
    background: none; border: 0; cursor: pointer; padding: 8px; z-index: 120;
  }
  .nav-toggle span { width: 26px; height: 2px; background: var(--white); transition: transform 0.35s var(--ease), opacity 0.25s; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav {
    position: fixed; inset: 0;
    flex-direction: column; justify-content: center;
    gap: 1.8rem;
    background: rgba(11,11,13,0.98);
    backdrop-filter: blur(6px);
    opacity: 0; visibility: hidden;
    transition: opacity 0.4s var(--ease), visibility 0.4s;
  }
  body.nav-open .nav { opacity: 1; visibility: visible; }
  .nav a { font-size: 1.15rem; }
}

/* =====================================================================
   Hero
   ===================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--black);
  color: var(--white);
  overflow: hidden;
  padding-top: 72px;
}
/* full-bleed lifestyle background */
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 58% center; }
.hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(8,8,10,.95) 0%, rgba(8,8,10,.82) 32%, rgba(8,8,10,.4) 62%, rgba(8,8,10,.12) 100%),
    linear-gradient(0deg, rgba(8,8,10,.55), rgba(8,8,10,0) 45%);
}
/* yellow signature accent bar, bottom */
.hero::before {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 6px; background: var(--yellow); z-index: 3;
}
@media (max-width: 860px) {
  .hero__bg img { object-position: 60% center; }
  .hero__bg::after {
    background: linear-gradient(180deg, rgba(8,8,10,.72) 0%, rgba(8,8,10,.5) 38%, rgba(8,8,10,.9) 100%);
  }
}

.hero__inner {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--maxw); margin-inline: auto;
  padding-inline: var(--gutter);
}
.hero__text { max-width: 620px; }

.hero__logo { width: clamp(210px, 25vw, 310px); height: auto; color: #fff; display: block; margin-bottom: clamp(1.4rem, 3vw, 2.1rem); }

.hero h1 {
  font-size: clamp(2.4rem, 6.6vw, 4.9rem);
  font-weight: 900;
  line-height: 1.07;
  letter-spacing: 0.005em;
  margin: 0 0 1.3rem;
  text-wrap: balance;
  text-shadow: 0 2px 30px rgba(0,0,0,.4);
}
.hero h1 .y { color: var(--yellow); }
.hero__copy {
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  color: rgba(255,255,255,.86);
  max-width: 40ch;
  margin: 0 0 2.2rem;
  text-shadow: 0 1px 16px rgba(0,0,0,.5);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.hero__scroll {
  position: absolute;
  left: 50%; bottom: 26px;
  transform: translateX(-50%);
  z-index: 3;
  font-family: var(--font-en);
  font-size: 0.7rem; letter-spacing: 0.24em;
  color: rgba(255,255,255,.6);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.hero__scroll::after {
  content: ""; width: 1px; height: 44px;
  background: linear-gradient(var(--yellow), transparent);
  animation: scrolldrop 1.8s var(--ease) infinite;
}
@keyframes scrolldrop { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 50.1% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (max-width: 860px) { .hero__scroll { display: none; } }

/* =====================================================================
   Marquee strip
   ===================================================================== */
.strip {
  background: var(--yellow);
  color: var(--black);
  overflow: hidden;
  border-block: 3px solid var(--black);
}
.strip__track {
  display: flex;
  gap: 3rem;
  padding-block: 0.85rem;
  white-space: nowrap;
  animation: marquee 26s linear infinite;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.strip__track span { display: inline-flex; align-items: center; gap: 3rem; }
.strip__track span::after { content: "◆"; font-size: 0.6em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =====================================================================
   Concept
   ===================================================================== */
.concept__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 820px) { .concept__grid { grid-template-columns: 1fr; } }

.concept__media { position: relative; }
.concept__media::before {
  content: ""; position: absolute; z-index: 0;
  left: -18px; top: -18px; width: 52%; height: 56%;
  background: var(--yellow); border-radius: 12px;
}
.concept__media img {
  position: relative; z-index: 1;
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 10px; box-shadow: 0 22px 50px rgba(0,0,0,.14);
}
@media (max-width: 820px) { .concept__media { order: -1; } }

.concept__quote {
  font-size: clamp(1.5rem, 3.2vw, 2.3rem);
  font-weight: 900;
  line-height: 1.5;
  margin: 0 0 1.6rem;
}
.concept__quote .mark { color: var(--yellow-deep); }

.needs { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; gap: 0.9rem; }
.needs li {
  display: flex; align-items: flex-start; gap: 0.9em;
  font-weight: 500;
  padding: 0.95em 1.1em;
  background: var(--white);
  border-left: 4px solid var(--yellow);
  box-shadow: 0 6px 22px rgba(0,0,0,.05);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.needs li svg { flex: none; width: 22px; height: 22px; color: var(--black); margin-top: 3px; }

/* =====================================================================
   Grip feature (intro of Values)
   ===================================================================== */
.grip__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
}
@media (max-width: 820px) { .grip__grid { grid-template-columns: 1fr; gap: 28px; } }
.grip__media img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 26px 64px rgba(0,0,0,.55);
}

/* =====================================================================
   Values
   ===================================================================== */
.values__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.12);
  margin-top: clamp(32px, 5vw, 56px);
}
@media (max-width: 960px) { .values__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .values__grid { grid-template-columns: 1fr; } }

.value {
  background: var(--black);
  padding: clamp(24px, 3vw, 38px) clamp(20px, 2.4vw, 28px);
  transition: background 0.35s var(--ease);
}
.value:hover { background: #16161a; }
.value__no { font-family: var(--font-en); font-size: 0.78rem; letter-spacing: 0.2em; color: var(--yellow); }
.value__icon { width: 40px; height: 40px; color: var(--yellow); margin: 1.1rem 0 1rem; }
.value h3 { font-size: 1.06rem; font-weight: 700; margin: 0 0 0.5rem; line-height: 1.5; }
.value p { font-size: 0.86rem; color: rgba(255,255,255,.62); margin: 0; line-height: 1.75; }

/* =====================================================================
   Lineup (product cards)
   ===================================================================== */
.lineup__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 1.8vw, 24px);
  margin-top: clamp(36px, 5vw, 60px);
}
@media (max-width: 1000px) { .lineup__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .lineup__grid { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(0,0,0,.12); border-color: var(--gray-300); }
.card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #fafafa;
  display: flex; align-items: center; justify-content: center;
  padding: 12px;
}
.card__media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.card__badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--yellow); color: var(--black);
  font-family: var(--font-en); font-weight: 700;
  font-size: 0.66rem; letter-spacing: 0.1em;
  padding: 0.35em 0.7em; border-radius: 2px;
  z-index: 2;
}
.card__body { padding: 1.2rem 1.25rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.card__type { font-family: var(--font-en); font-size: 0.72rem; letter-spacing: 0.14em; color: var(--gray-500); text-transform: uppercase; }
.card__name { font-size: 1.06rem; font-weight: 700; margin: 0.3rem 0 0.55rem; line-height: 1.45; }
.card__catch { font-size: 0.82rem; color: var(--gray-700); margin: 0 0 1rem; line-height: 1.7; flex: 1; }
.card__price { display: flex; align-items: baseline; gap: 0.6em; margin-bottom: 0.2rem; }
.card__price .now { font-family: var(--font-en); font-weight: 700; font-size: 1.5rem; color: var(--black); }
.card__price .list { font-size: 0.85rem; color: var(--gray-500); text-decoration: line-through; }
.card__tax { font-size: 0.7rem; color: var(--gray-500); margin: 0 0 1rem; }
.card__actions { display: grid; gap: 0.5rem; }

/* =====================================================================
   Product detail (alternating)
   ===================================================================== */
.detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(30px, 5vw, 80px);
}
.detail + .detail { margin-top: clamp(64px, 9vw, 120px); }
.detail--reverse .detail__media { order: 2; }
@media (max-width: 860px) {
  .detail { grid-template-columns: 1fr; gap: 24px; }
  .detail--reverse .detail__media { order: 0; }
}

.detail__media { position: relative; border-radius: 10px; }
.detail__media::before {
  content: "";
  position: absolute; z-index: 0;
  right: -18px; bottom: -18px;
  width: 56%; height: 62%;
  background: var(--yellow);
  border-radius: 12px;
}
.detail--reverse .detail__media::before { right: auto; left: -18px; }
.detail__media img {
  position: relative; z-index: 1;
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 22px 50px rgba(0,0,0,.16);
}

.detail__index { font-family: var(--font-en); font-size: 3.4rem; font-weight: 700; color: var(--yellow-deep); line-height: 1; opacity: 0.9; }
.detail__name { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 900; margin: 0.2rem 0 0.4rem; line-height: 1.25; }
.detail__type { font-family: var(--font-en); font-size: 0.82rem; letter-spacing: 0.16em; color: var(--gray-500); text-transform: uppercase; }
.detail__desc { color: var(--gray-700); margin: 1rem 0 1.6rem; }
.detail__features { list-style: none; margin: 0 0 1.8rem; padding: 0; display: grid; gap: 0.7rem; }
.detail__features li { display: flex; align-items: center; gap: 0.7em; font-weight: 500; font-size: 0.95rem; }
.detail__features li svg { flex: none; width: 20px; height: 20px; color: var(--yellow-deep); }
.detail__buy { display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem; }
.detail__pricebox { display: flex; align-items: baseline; gap: 0.55em; }
.detail__pricebox .now { font-family: var(--font-en); font-weight: 700; font-size: 1.9rem; }
.detail__pricebox .list { font-size: 0.9rem; color: var(--gray-500); text-decoration: line-through; }
.detail__pricebox .tax { font-size: 0.72rem; color: var(--gray-500); }

/* =====================================================================
   Logo story
   ===================================================================== */
.logostory { text-align: center; }
.logostory__mark {
  width: clamp(110px, 16vw, 170px); height: auto;
  margin: 0 auto clamp(28px, 4vw, 44px);
  color: var(--yellow);
}
.logostory p { max-width: 56ch; margin-inline: auto; color: rgba(255,255,255,.78); }

/* =====================================================================
   Future / brand summary
   ===================================================================== */
.summary__grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(30px, 5vw, 70px); align-items: start;
}
@media (max-width: 820px) { .summary__grid { grid-template-columns: 1fr; } }

.spec { border-top: 2px solid var(--black); }
.spec__row { display: grid; grid-template-columns: 0.5fr 1fr; gap: 1rem; padding: 1.15rem 0; border-bottom: 1px solid var(--gray-100); }
.spec__row dt { font-weight: 700; font-size: 0.9rem; }
.spec__row dd { margin: 0; color: var(--gray-700); font-size: 0.92rem; }
.spec__row dd ul { margin: 0; padding-left: 1.1em; }

/* =====================================================================
   CTA band
   ===================================================================== */
.cta {
  background: var(--yellow);
  color: var(--black);
  text-align: center;
}
.cta h2 { font-size: clamp(1.8rem, 4.4vw, 3rem); font-weight: 900; margin: 0 0 1rem; line-height: 1.2; }
.cta p { max-width: 52ch; margin: 0 auto 2rem; font-weight: 500; }
.cta .btn--dark { --bg: var(--black); --fg: var(--yellow); }

/* =====================================================================
   Footer
   ===================================================================== */
.footer { background: var(--black); color: rgba(255,255,255,.68); padding-block: clamp(40px, 6vw, 64px); }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: center; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__brand { display: flex; align-items: center; gap: 0.7em; color: var(--white); }
.footer__wordmark { width: 150px; height: auto; aspect-ratio: 1600 / 370; color: #fff; display: block; }
.footer__links { display: flex; flex-wrap: wrap; gap: 1.4rem; font-size: 0.86rem; }
.footer__links a:hover { color: var(--yellow); }
.footer__bottom { padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 0.76rem; color: rgba(255,255,255,.45); }
.footer__bottom .en { letter-spacing: 0.1em; }
