/* =========================================================
   NovaPoint — base styles
   Light, clean layout (PSOFT) + bold product cards (Plugin Everything).
   ========================================================= */

:root {
  --c-bg: #ffffff;
  --c-bg-soft: #f6f6f4;
  --c-dark: #111216;
  --c-text: #1d1e22;
  --c-text-sub: #63666f;
  --c-line: #e4e4e0;
  --c-accent: #1a4ecf; /* logo blue */
  --c-accent-dark: #143da3;
  --c-accent-soft: #e2e9fb;

  --font: "Inter", "Noto Sans JP", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: 14px;
  --max: 1160px;
  --header-h: 72px;
  --shadow-hard: 6px 6px 0 var(--c-dark);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img,
video { max-width: 100%; height: auto; display: block; }

/* Japanese: break lines only at the <wbr> that build.py adds between phrases */
html:lang(ja) { word-break: keep-all; overflow-wrap: anywhere; line-break: strict; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

/* ---------- Header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.logo__sub {
  margin-left: 4px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--c-text-sub);
}

.logo__img {
  width: 30px;
  height: 30px;
  border-radius: 9px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav a:not(.lang a) { color: var(--c-text-sub); transition: color 0.2s; }
.nav a:not(.lang a):hover,
.nav a[aria-current="page"] { color: var(--c-accent); }

.lang {
  display: flex;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  overflow: hidden;
  font-size: 12px;
}

.lang a { padding: 4px 12px; color: var(--c-text-sub); }
.lang a[aria-current="true"] { background: var(--c-dark); color: #fff; }

.menu-btn {
  display: none;
  background: none;
  border: 0;
  font-size: 24px;
  cursor: pointer;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.btn--primary { background: var(--c-accent); color: #fff; }
.btn--primary:hover { background: var(--c-accent-dark); }

.btn--outline { border: 1.5px solid currentColor; }
.btn--outline:hover { background: rgba(127, 127, 127, 0.1); }

.btn--light { background: #fff; color: var(--c-dark); }
.btn--light:hover { transform: translateY(-2px); }

/* ---------- Hero banner (home, full width) ---------- */

.banner {
  position: relative;
  overflow: hidden;
  background: var(--c-dark);
  color: #fff;
}

.banner__inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
  min-height: 480px;
  padding-top: 64px;
  padding-bottom: 64px;
}

.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 40%, rgba(26, 78, 207, 0.6), transparent 45%),
    repeating-linear-gradient(0deg, transparent 0 47px, rgba(255, 255, 255, 0.05) 47px 48px),
    repeating-linear-gradient(90deg, transparent 0 47px, rgba(255, 255, 255, 0.05) 47px 48px);
}

.banner > * { position: relative; }

.banner__img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.banner__label {
  display: inline-block;
  margin-bottom: 16px;
  padding: 2px 10px;
  border-radius: 4px;
  background: var(--c-accent);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.banner h1 {
  margin: 0 0 16px;
  font-size: clamp(44px, 8vw, 96px);
  line-height: 1;
  letter-spacing: -0.03em;
}

.banner p {
  max-width: 480px;
  margin: 0 0 32px;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.75);
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Intro (company statement under the banner) ---------- */

.intro {
  padding: 72px 0 0;
  text-align: center;
}
.intro h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 3.4vw, 34px);
  letter-spacing: -0.01em;
}
.intro p { margin: 0 auto; max-width: 640px; color: var(--c-text-sub); }

/* ---------- Page head (sub pages): dark title bar, like the product bar ---------- */

.crumbs {
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--c-text-sub);
}
.crumbs a:hover { color: var(--c-accent); }
.page-lead { margin: 24px 0 0; color: var(--c-text-sub); }
.container:has(.page-lead) + .section { padding-top: 40px; }

/* ---------- Sections ---------- */

.section { padding: 88px 0; }
.section--soft { background: var(--c-bg-soft); }

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 40px;
}
.section__head h2 {
  margin: 0;
  padding-left: 14px;
  border-left: 4px solid var(--c-accent);
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.4;
}
.section__head p { margin: 12px 0 0; color: var(--c-text-sub); }
.section__head .more {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--c-text-sub);
}
.section__head .more:hover { color: var(--c-accent); }

/* ---------- Product cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--c-bg);
  border: 2px solid var(--c-dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--c-dark);
}

.card__thumb img,
.news__thumb img,
.product__media img { width: 100%; height: 100%; object-fit: cover; }

.card__thumb {
  aspect-ratio: 16 / 9;
  border-bottom: 2px solid var(--c-dark);
  background: var(--c-dark);
}

.card__ribbon {
  position: absolute;
  top: 14px;
  right: -34px;
  width: 120px;
  transform: rotate(45deg);
  background: var(--c-accent);
  color: #fff;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.card__body { padding: 16px 20px 20px; flex: 1; display: flex; flex-direction: column; }

.card__name {
  align-self: flex-start;
  margin: 0 0 8px;
  padding: 0 8px;
  background: var(--c-accent-soft);
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.card__body p { margin: 0 0 16px; font-size: 14px; color: var(--c-text-sub); flex: 1; }

.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge {
  padding: 2px 8px;
  border: 1px solid var(--c-line);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c-text-sub);
}

.card--soon {
  border-style: dashed;
  border-color: #b9bab5;
  box-shadow: none;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  background: transparent;
  color: var(--c-text-sub);
  font-family: var(--font-mono);
  font-size: 13px;
}
.card--soon:hover { transform: none; box-shadow: none; }

/* ---------- News (PSOFT style) ---------- */

.news { list-style: none; margin: 0; padding: 0; }
.news li + li { border-top: 1px solid var(--c-line); }
.news a {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  align-items: center;
  padding: 20px 0;
}
.news a:hover h3 { color: var(--c-accent); }
.news__thumb {
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: var(--c-dark);
}
.news h3 { margin: 0 0 6px; font-size: 16px; font-weight: 600; transition: color 0.2s; }
.news__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.news time { font-family: var(--font-mono); font-size: 12px; color: var(--c-text-sub); }
.tag {
  padding: 1px 8px;
  border-radius: 4px;
  background: #e9e9e5;
  font-size: 11px;
  font-weight: 600;
  color: var(--c-text-sub);
}
.tag--accent { background: var(--c-accent-soft); color: var(--c-accent-dark); }

/* ---------- Short items (features, steps) ---------- */

.grid-3,
.grid-2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.item {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--c-bg);
  border: 1px solid var(--c-line);
}
.item__num { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--c-accent); }
.item h3 { margin: 8px 0; font-size: 18px; }
.item p { margin: 0; font-size: 14px; color: var(--c-text-sub); }

/* ---------- Product detail ---------- */

.product {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 48px 0 88px;
}

.product__media {
  aspect-ratio: 16 / 9;
  border: 2px solid var(--c-dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
  overflow: hidden;
  background: var(--c-dark);
}

.product h1 {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1;
  text-transform: uppercase;
}
.product p { margin: 0 0 20px; color: var(--c-text-sub); }
.product .badges { margin-bottom: 28px; }
.product small { display: block; margin-top: 12px; color: var(--c-text-sub); font-size: 12px; }

.video {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--c-dark);
}
.video iframe { width: 100%; height: 100%; border: 0; display: block; }

.spec { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--c-bg); }
.spec th,
.spec td { padding: 16px 20px; border-bottom: 1px solid var(--c-line); text-align: left; vertical-align: top; }
.spec th { width: 32%; color: var(--c-text-sub); font-weight: 500; }
.spec a { color: var(--c-accent); }

/* ---------- Image + text rows ---------- */

.media-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.media-row + .media-row { margin-top: 72px; }
.media-row--rev > img,
.media-row--rev > video { order: 2; }
.media-row h3 { margin: 8px 0 12px; font-size: clamp(22px, 2.6vw, 28px); }
.media-row p { margin: 0; color: var(--c-text-sub); }

.media-row__img {
  width: 100%;
  border: 2px solid var(--c-dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
}
.media-row__img--panel { max-width: 360px; justify-self: center; }


.note {
  margin-top: 40px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--c-bg);
  border: 1px solid var(--c-line);
}

.spec--params th { width: 36%; color: var(--c-text); font-size: 13px; }

/* ---------- Product page (PSOFT style) ---------- */

.pbar {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  background: var(--c-dark);
  color: #fff;
}
.pbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 52px;
}
.pbar__name { flex: none; margin: 0; font-size: 18px; font-weight: 700; }
.pbar--page { position: static; }
.pbar--page .pbar__inner { height: 64px; }
.pbar--page .pbar__name { font-size: 22px; }
.pbar__name span {
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
}
.pbar__nav {
  display: flex;
  align-items: center;
  gap: 24px;
  overflow-x: auto;
  font-size: 14px;
  white-space: nowrap;
}
.pbar__nav a { color: rgba(255, 255, 255, 0.8); }
.pbar__nav a:hover { color: #fff; }
.pbar__nav .pbar__buy {
  padding: 4px 16px;
  border-radius: 999px;
  background: var(--c-accent);
  color: #fff;
  font-weight: 600;
}
.pbar__nav .pbar__buy:hover { background: var(--c-accent-dark); }

.phero {
  display: flex;
  justify-content: center;
  background: var(--hero-bg, var(--c-dark));
}
.phero img { width: 100%; max-width: 940px; }

.crumbs--page { margin: 20px 0 0; }

.pdoc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 56px;
  padding: 32px 0 96px;
}
.pdoc [id] { scroll-margin-top: calc(var(--header-h) + 72px); }
.pdoc__main h1 { margin: 0 0 16px; font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.01em; }
.pdoc__main > p { margin: 0 0 16px; }
.pdoc__main .badges { margin: 8px 0 32px; }
.pdoc__main h2 {
  margin: 72px 0 24px;
  padding-left: 14px;
  border-left: 4px solid var(--c-accent);
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.4;
}
.note-text { color: var(--c-text-sub); font-size: 14px; }
.pdoc--single { grid-template-columns: minmax(0, 820px); padding-top: 0; }
.pdoc--single h2:first-child { margin-top: 32px; }
.pdoc__main ul { margin: 0 0 16px; padding-left: 1.4em; }
.pdoc__main li + li { margin-top: 4px; }
.pdoc__main p a { color: var(--c-accent); text-decoration: underline; text-underline-offset: 3px; }

.toc {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 32px;
  margin: 0;
  padding-left: 1.4em;
}
.toc a { color: var(--c-accent); text-decoration: underline; text-underline-offset: 3px; }

.pfeature { margin-top: 56px; }
.pfeature h3 { margin: 0 0 8px; font-size: 20px; }
.pfeature p { margin: 0 0 20px; }
.pfeature__media {
  width: 100%;
  border: 2px solid var(--c-dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
}
.pfeature__media--narrow { max-width: 360px; }

.steps { margin: 0; padding-left: 1.4em; display: grid; gap: 20px; }
.steps h3 { margin: 0 0 4px; font-size: 17px; }
.steps p { margin: 0; color: var(--c-text-sub); }

.pdoc__side h4 {
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--c-accent);
  font-size: 16px;
}
.side-links { list-style: none; margin: 0 0 24px; padding: 0; font-size: 14px; }
.side-links li { border-bottom: 1px solid var(--c-line); }
.side-links a { display: block; padding: 10px 4px; }
.side-links a:hover { color: var(--c-accent); }
.pdoc__side { position: sticky; top: calc(var(--header-h) + 76px); align-self: start; }

/* ---------- Profile (About) ---------- */

.profile {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 40px;
}
.profile__logo { border-radius: 30px; }
.profile p { margin: 0 0 12px; max-width: 760px; }

.social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--c-text-sub);
}
.social:hover { color: var(--c-accent); }

/* ---------- Contact form ---------- */

.form {
  display: grid;
  gap: 20px;
  max-width: 760px;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cfd0cb;
  border-radius: 8px;
  background: var(--c-bg);
  font: inherit;
  font-weight: 400;
  color: var(--c-text);
}
.form input:focus,
.form select:focus,
.form textarea:focus { outline: 2px solid var(--c-accent); outline-offset: 1px; border-color: transparent; }
.form textarea { resize: vertical; }
.form__req {
  margin-left: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--c-accent);
}
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form__actions .btn { border: 0; cursor: pointer; }
.form__actions .btn:disabled { opacity: 0.6; cursor: wait; }
.form__status { margin: 0; font-size: 14px; }
.form__status.is-ok { color: #1c7c3a; }
.form__status.is-error { color: #c62828; }
.form small { color: var(--c-text-sub); font-size: 13px; }
.form small a { color: var(--c-accent); }
.form__note { margin: 0; font-size: 13px; color: var(--c-text-sub); }
.form__note a { color: var(--c-accent); text-decoration: underline; }
.note h3 { margin: 0 0 8px; font-size: 18px; }
.note p { margin: 0 0 20px; color: var(--c-text-sub); font-size: 14px; }

/* ---------- CTA band (Plugin Everything style) ---------- */

.band {
  padding: 80px 0;
  background: var(--c-accent);
  color: #fff;
  text-align: center;
}
.band h2 { margin: 0 0 12px; font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -0.01em; }
.band p { margin: 0 0 32px; opacity: 0.9; }
.band .actions { justify-content: center; }
.band small { display: block; margin-top: 16px; font-size: 12px; opacity: 0.8; }
.band small a { text-decoration: underline; }

/* ---------- Placeholder visual ---------- */

.ph {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(18px, 3vw, 32px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background:
    radial-gradient(circle at 70% 30%, rgba(26, 78, 207, 0.65), transparent 55%),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(255, 255, 255, 0.06) 31px 32px),
    repeating-linear-gradient(90deg, transparent 0 31px, rgba(255, 255, 255, 0.06) 31px 32px),
    var(--c-dark);
}
.ph--sm { font-size: 13px; }

/* ---------- Footer (PSOFT style) ---------- */

.footer {
  padding: 56px 0 28px;
  background: var(--c-bg-soft);
  border-top: 1px solid var(--c-line);
  color: var(--c-text-sub);
  font-size: 14px;
}
.footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--c-line);
}
.footer .logo { color: var(--c-text); margin-bottom: 8px; }
.footer__links { display: flex; gap: 56px; }
.footer__links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer__links h4 {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-text);
}
.footer__links a:hover { color: var(--c-accent); }
.footer__bottom { padding-top: 20px; font-size: 12px; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .banner__inner { grid-template-columns: 1fr; gap: 32px; }
  .media-row { grid-template-columns: 1fr; gap: 24px; }
  .media-row--rev > img,
  .media-row--rev > video { order: 0; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .product { grid-template-columns: 1fr; gap: 32px; }
  .pdoc { grid-template-columns: 1fr; gap: 40px; }
  .pdoc__side { position: static; }
  .grid-3,
  .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .logo__sub { display: none; }
}

@media (max-width: 720px) {
  :root { --header-h: 60px; }
  .container { padding: 0 16px; }
  .menu-btn { display: block; }
  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 24px 16px;
    background: var(--c-bg);
    border-bottom: 1px solid var(--c-line);
    display: none;
  }
  .nav.is-open { display: flex; }
  .banner__inner { min-height: 0; padding-top: 40px; padding-bottom: 40px; }
  .section { padding: 64px 0; }
  .cards { grid-template-columns: 1fr; }
  .news a { grid-template-columns: 96px 1fr; gap: 16px; }
  .spec th,
  .spec td { padding: 12px; }
  .spec th { width: 40%; }
  .footer__links { gap: 40px; }
  .form__row { grid-template-columns: 1fr; }
  .toc { grid-template-columns: 1fr; }
  .pbar__name span { display: none; }
  .pbar__nav a:not(.pbar__buy) { display: none; }
  .profile { grid-template-columns: 1fr; gap: 20px; }
  .profile__logo { width: 72px; border-radius: 17px; }
}
