@charset "utf-8";

:root {
  --detail-bg: #07111f;
  --detail-surface: rgba(12, 22, 36, 0.72);
  --detail-border: rgba(255, 255, 255, 0.12);
  --detail-text: #f6f8fb;
  --detail-text-muted: rgba(246, 248, 251, 0.72);
  --detail-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
  --detail-radius: 0px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body.product-page {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 26%),
    linear-gradient(180deg, #091120 0%, #07111f 50%, #040811 100%);
  color: var(--detail-text);
  font-family: "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
}

body.product-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.03), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 20%);
  pointer-events: none;
  opacity: 0.8;
}

body.product-page--material {
  --accent: #62d8ff;
  --accent-soft: rgba(12, 167, 208, 0.18);
  --hero-image: url("../../img/item/material/top.jpg");
}

body.product-page--module {
  --accent: #90c8ff;
  --accent-soft: rgba(63, 133, 214, 0.18);
  --hero-image: url("../../img/item/device/top.jpg");
}

body.product-page--energy {
  --accent: #d8ff6a;
  --accent-soft: rgba(131, 198, 55, 0.18);
  --hero-image: url("../../img/item/energy/top.jpg");
}

a {
  color: inherit;
}

.product-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: 24px;
}

.product-topbar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}

.product-topnav {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.product-language-switcher {
  position: relative;
  flex: 0 0 auto;
  margin-left: auto;
  font-family: "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
  perspective: 900px;
}

.product-language-switcher .language-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  font: inherit;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  transition:
    color 0.28s ease,
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-language-switcher .language-toggle::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 5px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-language-switcher .language-toggle:hover,
.product-language-switcher.is-open .language-toggle {
  color: #fff;
  transform: translateY(-1px);
}

.product-language-switcher .language-toggle:hover::after,
.product-language-switcher .language-toggle:focus-visible::after,
.product-language-switcher.is-open .language-toggle::after {
  transform: scaleX(1);
}

.product-language-switcher .language-toggle:focus-visible {
  outline: none;
  color: #fff;
}

.product-language-switcher .language-caret {
  width: 8px;
  height: 8px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-language-switcher.is-open .language-caret {
  transform: rotate(-135deg) translateY(-1px);
}

.product-language-switcher .language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  min-width: 150px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0;
  background: rgba(7, 12, 20, 0.96);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.36);
  opacity: 0;
  transform: translateY(-4px) scale(0.98) rotateX(-6deg);
  transform-origin: top right;
  visibility: hidden;
  backdrop-filter: blur(12px);
  transition:
    opacity 0.26s ease,
    transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.28s ease;
}

.product-language-switcher.is-open .language-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1) rotateX(0);
}

.product-language-switcher .language-menu button {
  position: relative;
  width: 100%;
  padding: 14px 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.74);
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
  letter-spacing: 0.1em;
  text-align: left;
  transition:
    background-color 0.26s ease,
    color 0.26s ease,
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-language-switcher .language-menu button::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 10px;
  height: 1px;
  background: var(--accent);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left center;
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.26s ease;
}

.product-language-switcher .language-menu button:hover,
.product-language-switcher .language-menu button.is-active,
.product-language-switcher .language-menu button:focus-visible {
  outline: none;
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
}

.product-language-switcher .language-menu button:hover::before,
.product-language-switcher .language-menu button.is-active::before,
.product-language-switcher .language-menu button:focus-visible::before {
  opacity: 1;
  transform: scaleX(1);
}

.product-language-switcher .language-menu button[hidden] {
  display: none;
}

.product-topbar-separator {
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.92rem;
}

.product-toplink {
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition: background-size 0.35s ease, color 0.35s ease;
}

.product-toplink:hover {
  color: #fff;
  background-size: 100% 1px;
}

.product-hero {
  position: relative;
  overflow: hidden;
  min-height: 88vh;
  margin-top: 20px;
  padding: clamp(2rem, 4vw, 3rem);
  border: 1px solid var(--detail-border);
  border-radius: 0;
  background: rgba(6, 10, 17, 0.65);
  box-shadow: var(--detail-shadow);
}

.product-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(112deg, rgba(4, 8, 16, 0.98) 22%, rgba(4, 8, 16, 0.54) 58%, rgba(4, 8, 16, 0.72) 100%),
    var(--hero-image) center / cover no-repeat;
  transform: scale(1.04);
}

.product-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 36%),
    linear-gradient(90deg, transparent 44%, rgba(255, 255, 255, 0.08) 44.2%, transparent 44.4%),
    linear-gradient(90deg, transparent 68%, rgba(255, 255, 255, 0.06) 68.2%, transparent 68.4%);
  opacity: 0.9;
  pointer-events: none;
}

.product-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: end;
  min-height: calc(88vh - clamp(4rem, 8vw, 6rem));
}

.product-hero-copy {
  max-width: 760px;
}

.product-kicker {
  display: inline-flex;
  align-items: center;
  margin: 0 0 1rem;
  color: var(--accent);
  font-family: "Barlow Condensed", "Noto Sans JP", sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.product-title {
  margin: 0;
  font-size: clamp(4rem, 10vw, 7.6rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0.04em;
}

.product-lead {
  width: min(100%, 34rem);
  margin: 1.4rem 0 0;
  color: var(--detail-text-muted);
  font-size: 1.05rem;
  line-height: 1.95;
  text-wrap: balance;
}

.product-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: min(100%, 520px);
  margin-top: 2rem;
}

.product-metric {
  padding: 1rem 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
}

.product-metric-value {
  display: block;
  color: #fff;
  font-family: "Barlow Condensed", "Noto Sans JP", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.product-metric-label {
  display: block;
  margin-top: 0.2rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-hero-side {
  align-self: start;
  padding: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  background: rgba(8, 14, 24, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.product-side-kicker {
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.product-anchor-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.product-anchor {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.7rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.94rem;
  text-decoration: none;
  transition: transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.product-anchor:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.product-main {
  padding: 28px 0 40px;
}

.product-lead,
.product-section-note,
.product-card-text,
.product-list-item,
.product-flow-text,
.product-cta-copy p {
  transition: color 0.35s ease;
}

.product-lead:hover,
.product-section-note:hover,
.product-card-text:hover,
.product-list-item:hover,
.product-flow-text:hover,
.product-cta-copy p:hover {
  color: rgba(255, 255, 255, 0.9);
}

.product-inline-underline {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition:
    background-size 0.35s ease,
    color 0.35s ease;
}

.product-lead:hover .product-inline-underline,
.product-section-note:hover .product-inline-underline,
.product-card-text:hover .product-inline-underline,
.product-list-item:hover .product-inline-underline,
.product-flow-text:hover .product-inline-underline,
.product-cta-copy p:hover .product-inline-underline,
.product-inline-underline:hover {
  background-size: 100% 1px;
}

.product-section {
  margin-top: 28px;
}

.product-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.product-section-kicker {
  margin: 0 0 0.65rem;
  color: var(--accent);
  font-family: "Barlow Condensed", "Noto Sans JP", sans-serif;
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.product-section-title {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.product-section-note {
  max-width: 28rem;
  margin: 0;
  color: var(--detail-text-muted);
  font-size: 0.96rem;
  line-height: 1.8;
  text-wrap: balance;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--detail-radius);
  background: var(--detail-surface);
  box-shadow: var(--detail-shadow);
  scroll-margin-top: 24px;
}

.product-card--wide {
  grid-column: auto;
}

.product-card-media {
  position: relative;
  min-height: 260px;
  background:
    linear-gradient(180deg, rgba(7, 12, 20, 0.14), rgba(7, 12, 20, 0.42)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 40%),
    var(--card-image) var(--card-position, center) / cover no-repeat;
}

.product-card-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 0 48%, rgba(255, 255, 255, 0.08) 48.3%, transparent 48.6%),
    linear-gradient(180deg, transparent 0 76%, rgba(4, 8, 16, 0.5) 100%);
}

.product-card-code {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.9);
  font-family: "Barlow Condensed", "Noto Sans JP", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.product-card-code::before {
  content: "";
  width: 32px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.product-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.35rem 1.35rem 1.45rem;
}

.product-card-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.product-card-text {
  flex: 1;
  margin: 0.9rem 0 0;
  color: var(--detail-text-muted);
  font-size: 0.96rem;
  line-height: 1.86;
  text-wrap: pretty;
}

.product-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1.05rem;
}

.product-card-tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

.product-insight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.product-panel {
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--detail-radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    rgba(7, 12, 22, 0.8);
  box-shadow: var(--detail-shadow);
}

.product-panel-kicker {
  margin: 0 0 0.55rem;
  color: var(--accent);
  font-family: "Barlow Condensed", "Noto Sans JP", sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.product-panel-title {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 700;
}

.product-list {
  display: grid;
  gap: 12px;
  margin-top: 1rem;
}

.product-list-item {
  position: relative;
  padding-left: 1.1rem;
  color: var(--detail-text-muted);
  line-height: 1.85;
  text-wrap: pretty;
}

.product-list-item::before {
  content: "";
  position: absolute;
  top: 0.72rem;
  left: 0;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--accent);
}

.product-flow {
  display: grid;
  gap: 12px;
  margin-top: 1rem;
}

.product-flow-step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: start;
  padding: 0.95rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.product-flow-step:first-child {
  border-top: none;
  padding-top: 0;
}

.product-flow-index {
  color: rgba(255, 255, 255, 0.44);
  font-family: "Barlow Condensed", "Noto Sans JP", sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.product-flow-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.product-flow-text {
  margin: 0.35rem 0 0;
  color: var(--detail-text-muted);
  line-height: 1.8;
  text-wrap: pretty;
}

.product-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  margin-top: 28px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--detail-radius);
  background:
    linear-gradient(135deg, var(--accent-soft), rgba(255, 255, 255, 0.03)),
    rgba(7, 12, 22, 0.88);
  box-shadow: var(--detail-shadow);
}

.product-cta-copy h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.product-cta-copy p {
  margin: 0.55rem 0 0;
  color: var(--detail-text-muted);
  line-height: 1.8;
  text-wrap: balance;
}

.product-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.product-cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  min-height: 48px;
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.08em;
  transition: transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.product-cta-link--primary {
  background: #fff;
  color: #06101d;
}

.product-cta-link--secondary {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.product-cta-link:hover {
  transform: translateY(-2px);
}

@media (max-width: 1100px) {
  .product-hero-grid,
  .product-insight-grid {
    grid-template-columns: 1fr;
  }

  .product-hero {
    min-height: auto;
  }

  .product-hero-grid {
    min-height: auto;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-card,
  .product-card--wide {
    grid-column: auto;
  }
}

@media (max-width: 767px) {
  .product-shell {
    padding: 16px;
  }

  .product-hero {
    padding: 1.35rem;
    border-radius: 0;
  }

  .product-title {
    font-size: clamp(3rem, 16vw, 4.6rem);
  }

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

  .product-section-head,
  .product-cta {
    display: block;
  }

  .product-section-note,
  .product-cta-copy p {
    margin-top: 0.75rem;
  }

  .product-card-media {
    min-height: 220px;
  }

  .product-flow-step {
    grid-template-columns: 56px 1fr;
  }

  .product-cta-actions {
    margin-top: 1rem;
  }
}
