
/* =========================================================
   New Products unified layer
   Purpose: series-wide header and heading baseline only.
   Loaded last so page-specific layout remains mostly intact.
   ========================================================= */
:root {
  --bg: #000000;
  --np-header-bg: var(--bg);
  --np-header-text: #cfc3dd;
  --np-header-height: 64px;
  --np-max: var(--max, 1200px);
  --np-heading-color: var(--text, #f7f2ff);
  --np-heading-letter: .04em;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, "Noto Sans JP", sans-serif;
}

/* Header: same structure and behavior across index / product pages */
.header {
  position: sticky !important;
  top: 0 !important;
  left: auto !important;
  right: auto !important;
  z-index: 1000 !important;
  height: auto !important;
  min-height: var(--np-header-height) !important;
  display: block !important;
  padding: 0 !important;
  background: var(--np-header-bg) !important;
  background-color: var(--np-header-bg) !important;
  border-bottom: 1px solid rgba(255,255,255,.08) !important;
  backdrop-filter: blur(22px);
}

.header .nav,
header.header > .nav {
  width: 100% !important;
  max-width: var(--np-max) !important;
  min-width: 0 !important;
  min-height: var(--np-header-height) !important;
  margin: 0 auto !important;
  padding: 10px 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px !important;
  color: var(--np-header-text) !important;
  font-size: 15px !important;
  letter-spacing: .055em !important;
}

.header .nav > a:first-child {
  display: inline-flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
}

.header img {
  display: block !important;
  height: auto !important;
  max-width: 100% !important;
}

.header .links {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 34px !important;
  color: var(--np-header-text) !important;
  font-size: 15px !important;
  white-space: nowrap !important;
  overflow: visible !important;
}

.header .links a,
.header .nav a {
  color: inherit !important;
  text-decoration: none !important;
  opacity: .9;
}

.header .links a:hover,
.header .nav a:hover {
  color: #fff !important;
  opacity: 1;
}

/* Do not use NovaPort standalone header parts after normalization */
.header > .logo,
.header > .meta,
.header > nav.nav:not(:only-child) {
  /* left intentionally harmless; normalized HTML no longer uses this form */
}

/* Heading baseline: keep each page's layout, normalize weight/line-height rhythm */
h1, h2, h3,
.hero-h1,
.sectionTitle h2,
.section-head h2,
.pe-intro h2,
.closing h2 {
  color: var(--np-heading-color);
  font-weight: 900;
  letter-spacing: var(--np-heading-letter);
  text-wrap: balance;
}

h1, .hero-h1 {
  line-height: 1.16;
}

h2,
.sectionTitle h2,
.section-head h2,
.pe-intro h2,
.closing h2 {
  line-height: 1.24;
}

h3 {
  line-height: 1.42;
}

/* Page-specific guardrails: avoid large visual layout changes */
body.page-novaport h2,
body.page-novaport h3,
body.page-polaris h2,
body.page-polaris h3,
body.page-novacore h2,
body.page-novacore h3 {
  margin-top: inherit;
}

@media (max-width: 900px) {
  .header .nav,
  header.header > .nav {
    min-height: 58px !important;
    padding: 9px 14px !important;
  }

  .header .links {
    gap: 18px !important;
    font-size: 12px !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .header .links::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 640px) {
  :root { --np-header-height: 56px; }

  .header .nav,
  header.header > .nav {
    gap: 12px !important;
  }

  .header .links {
    max-width: calc(100vw - 96px);
  }

  .header img {
    width: 64px !important;
  }
}

/* =========================
   Common products cards
========================= */

.products {
    padding: 90px 0;
}

.products-head {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 36px;
    align-items: end;
    margin-bottom: 34px;
}

.pg {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.pc {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 22px;
    min-height: 410px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.pi {
    height: 190px;
    background: transparent;
    border: none;
    border-radius: 0;
    display: grid;
    place-items: center;
}

.mini {
    width: 86px;
    height: 142px;
    border-radius: 20px;
    background: linear-gradient(145deg, #302b3b, #0b0b10);
    border: 1px solid rgba(255,255,255,.18);
}

.pc h3 {
    font-size: 22px;
}

.pc p {
    font-size: 14px;
}

.spec {
    margin-top: auto;
    display: grid;
    gap: 8px;
}

.spec div {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(255,255,255,.09);
    padding-top: 8px;
    font-size: 13px;
    color: var(--muted, #bcb5cc);
}

.spec b {
    color: #fff;
}

@media (max-width: 900px) {
    .products {
        padding: 58px 0;
    }

    .products-head {
        grid-template-columns: 1fr;
    }

    .pg {
        grid-template-columns: 1fr;
    }

    .pc {
        min-height: auto;
    }
}

/* ===============================
   Product Grid / Product Card
=============================== */

.product-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:24px;
    margin-top:32px;
}

.product{
    display:flex;
    flex-direction:column;
    gap:16px;
    padding:24px;
    border:1px solid rgba(255,255,255,.14);
    background:rgba(255,255,255,.04);
    min-height:100%;
}

.product-visual{
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:180px;
    background:rgba(255,255,255,.035);
}

.tiny-outlet{
    width:100%;
    display:flex;
    align-items:center;
    justify-content:center;
}

.tiny-outlet img{
    display:block;
    max-width:100%;
    max-height:160px;
    width:auto;
    height:auto;
}

.product h3{
    margin:0;
    font-size:22px;
    line-height:1.45;
}

.product p{
    margin:0;
    font-size:15px;
    line-height:1.8;
}

.product .meta{
    display:grid;
    gap:8px;
    margin-top:auto;
}

.product .meta div{
    display:flex;
    justify-content:space-between;
    gap:16px;
    padding-top:8px;
    border-top:1px solid rgba(255,255,255,.12);
    font-size:14px;
    line-height:1.5;
}

.product .meta span{
    color:rgba(255,255,255,.6);
    white-space:nowrap;
}

@media (max-width:900px){

.product-grid{
    grid-template-columns:repeat(2,1fr);
    gap:18px;
}

}

@media (max-width:640px){

.product-grid{
    grid-template-columns:1fr;
}

.product{
    padding:20px;
}

.product-visual{
    min-height:160px;
}

.product h3{
    font-size:20px;
}

.product p{
    font-size:14px;
}

.product .meta div{
    font-size:13px;
}

}

.product-visual{
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:180px;
    background:rgba(255,255,255,.035);
}

/* 製品カード内の画像枠をフラット化 */
.product-visual{
    background:transparent !important;
    border:none !important;
    box-shadow:none !important;
}

.tiny-outlet{
    background:transparent !important;
    border:none !important;
    box-shadow:none !important;
}

.tiny-outlet img{
    display:block;
    max-width:100%;
    max-height:160px;
    width:auto;
    height:auto;
}
