/* ============================================================
   page-product.css — Product page styles (Design A)
   ============================================================ */

/* KV は nissin-common.css の共通 cs-kv を使用 */

/* ═══ Product Intro CTA ═══ */
.pd-intro-cta {
  padding: 64px 0;
}
.pd-intro-cta__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 95px;
}
.pd-intro-cta__text {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #444;
  line-height: 2;
  letter-spacing: 0.04em;
  margin-bottom: 48px;
}
.pd-intro-cta__buttons {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.pd-intro-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: #4a9fd9;
  color: #fff;
  text-decoration: none;
  padding: 20px 36px;
  border-radius: 8px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: background 0.3s;
}
.pd-intro-cta__btn:hover {
  background: #3a8bc5;
}
.pd-intro-cta__btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #fff;
  border-radius: 6px;
  color: #4a9fd9;
  flex-shrink: 0;
}
.pd-intro-cta__btn-icon svg {
  display: block;
}

/* Product Lineup */
.pd-lineup-section { padding: 48px 0 80px; }
.pd-lineup-section__inner { max-width: 1440px; margin: 0 auto; padding: 0 95px; }
.pd-lineup-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.pd-lineup-heading__en {
  font-family: 'Montserrat', sans-serif;
  font-size: 51px;
  font-weight: 700;
  color: #4a9fd9;
  letter-spacing: 0.887px;
  line-height: 1.2;
}
.pd-lineup-heading__sub {
  display: block;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #555;
  margin-top: 8px;
}
.pd-lineup-heading__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.pd-lineup-heading__accents {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.pd-lineup-heading__accent {
  display: block;
}
.pd-lineup-heading__accent--blue {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #0056b3;
}
.pd-lineup-heading__accent--orange {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: #ff5722;
  align-self: flex-end;
}
.pd-lineup-heading__body {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  line-height: 1.8;
  color: #555;
  text-align: right;
}
/* ═══ Layout (sidebar + cards) ═══ */
.pd-lineup-layout {
  display: flex;
  gap: 40px;
}
.pd-sidebar {
  width: 220px;
  flex-shrink: 0;
  position: sticky;
  top: 110px;
  align-self: flex-start;
  order: 2;
}
.pd-sidebar__title {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #4a9fd9;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #4a9fd9;
}
.pd-sidebar__group {
  margin-bottom: 8px;
}
.pd-sidebar__group-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 14px;
  background: rgba(74,159,217,0.08);
  border: none;
  border-radius: 8px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  transition: background 0.3s;
}
.pd-sidebar__group-btn:hover {
  background: rgba(74,159,217,0.16);
}
.pd-sidebar__group-btn::after {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 2px solid #4a9fd9;
  border-bottom: 2px solid #4a9fd9;
  transform: rotate(45deg);
  transition: transform 0.3s;
  flex-shrink: 0;
}
.pd-sidebar__group.is-open .pd-sidebar__group-btn::after {
  transform: rotate(-135deg);
}
.pd-sidebar__items {
  display: none;
  padding: 6px 0 6px 8px;
}
.pd-sidebar__group.is-open .pd-sidebar__items {
  display: block;
}
.pd-sidebar__item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 7px 14px;
  background: none;
  border: none;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.8125rem;
  color: #555;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.pd-sidebar__item:hover {
  background: rgba(74,159,217,0.08);
  color: #4a9fd9;
}
.pd-lineup-layout > .product-cards {
  order: 1;
  flex: 1;
  min-width: 0;
}

/* ═══ Product Cards (index style) ═══ */
.pd-lineup-section .product-cards {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.pd-lineup-section .product-card {
  display: block;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.pd-lineup-section .product-card__img {
  margin: 0;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.pd-lineup-section .product-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}
.pd-lineup-section .product-card:hover .product-card__img img {
  transform: scale(1.05);
}
.pd-lineup-section .product-card__body {
  padding: 24px 0 16px;
}
.pd-lineup-section .product-card__body-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.pd-lineup-section .product-card__tag {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: #4a9fd9;
  padding: 4px 14px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.pd-lineup-section .product-card__sub {
  font-size: 0.875rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}
.pd-lineup-section .product-card__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 20px;
}
.pd-lineup-section .product-card__desc {
  font-size: 0.9rem;
  line-height: 1.85;
  color: #555;
}
.pd-lineup-section .product-card__arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #4a9fd9;
  border-radius: 8px;
  color: #4a9fd9;
  font-size: 1.2rem;
  transition: background 0.3s, color 0.3s;
}
.pd-lineup-section .product-card:hover .product-card__arrow {
  background: #4a9fd9;
  color: #fff;
}
.pd-lineup-section .product-card__tag--tech {
  background: #0f3068;
}

/* Watermark */
.pd-watermark {
  font-family: 'Montserrat', sans-serif;
  font-size: 100px;
  font-weight: 700;
  color: rgba(15,48,104,0.04);
  white-space: nowrap;
  overflow: hidden;
  line-height: 1;
  padding: 20px 0;
}

/* Message */
.pd-message {
  position: relative;
  min-height: 762px;
  overflow: hidden;
  padding: 80px 0;
}
.pd-message__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.pd-message__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}
.pd-message__inner {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 146px;
}
.pd-message__small {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: rgba(15,48,104,0.4);
  letter-spacing: 2.1px;
  text-transform: uppercase;
}
.pd-message__en {
  font-family: 'Montserrat', sans-serif;
  font-size: 51px;
  font-weight: 700;
  color: #4a9fd9;
  margin-top: 8px;
  line-height: 1.2;
}
.pd-message__title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #0f3068;
  margin-top: 60px;
  line-height: 1.4;
}
.pd-message__body {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16.4px;
  font-weight: 350;
  color: #444;
  line-height: 32.8px;
  letter-spacing: 0.887px;
  margin-top: 24px;
  max-width: 694px;
}
.pd-message__body + .pd-message__body {
  margin-top: 16px;
  max-width: 685px;
}

/* Hexagons area */
.pd-hexagons {
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  width: 450px;
  height: 550px;
}
.pd-hexagon {
  position: absolute;
  width: 223px;
  height: 223px;
}
.pd-hexagon--tl { top: 100px; left: 0; }
.pd-hexagon--tr { top: 0; right: 0; }
.pd-hexagon--bl { bottom: 50px; left: 0; }
.pd-hexagon--br { bottom: 150px; right: 0; }
.pd-hexagon__outer,
.pd-hexagon__inner { position: absolute; }
.pd-hexagon__outer { inset: 0; }
.pd-hexagon__inner { inset: 9px; }
.pd-hexagon__outer img,
.pd-hexagon__inner img {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.pd-hexagon__img {
  position: absolute;
  width: 126px;
  height: 119px;
  top: 50px;
  left: 54px;
  overflow: hidden;
  border-radius: 4px;
}
.pd-hexagon__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: none;
}
.pd-hexagon__label {
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #0f3068;
  white-space: nowrap;
  letter-spacing: 0.5px;
}
.pd-hexagons__ellipse-outer,
.pd-hexagons__ellipse-inner { position: absolute; }
.pd-hexagons__ellipse-outer {
  width: 583px;
  height: 593px;
  right: -80px;
  top: -20px;
  pointer-events: none;
}
.pd-hexagons__ellipse-inner {
  width: 448px;
  height: 448px;
  right: -40px;
  top: 40px;
  pointer-events: none;
}
.pd-hexagons__ellipse-outer img,
.pd-hexagons__ellipse-inner img {
  width: 100%;
  height: 100%;
}

/* CTA Footer (Recruit / Contact cards) */
.pd-cta-footer {
  display: flex;
  width: 100%;
}
.pd-cta-footer__card {
  flex: 1;
  min-height: 450px;
}
.pd-cta-footer__card a {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 450px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
}
.pd-cta-footer__bg {
  position: absolute;
  inset: 0;
  margin: 0;
}
.pd-cta-footer__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pd-cta-footer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1;
}
.pd-cta-footer__content {
  position: relative;
  z-index: 2;
  padding: 56px;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 450px;
}
.pd-cta-footer__gradient {
  width: 60px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, #e63e1c 0%, #f5a623 20%, #d4c826 40%, #2ea854 60%, #2b7ec1 80%, #a8d8ea 100%);
  margin-bottom: 24px;
}
.pd-cta-footer__en {
  font-family: 'Montserrat', sans-serif;
  font-size: 51px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  letter-spacing: 1.024px;
}
.pd-cta-footer__ja {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15.8px;
  font-weight: 350;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.887px;
  margin-top: 8px;
}
.pd-cta-footer__desc {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16.4px;
  font-weight: 350;
  color: #fff;
  line-height: 29.52px;
  letter-spacing: 0.887px;
  margin-top: auto;
  padding-top: 40px;
}
.pd-cta-footer__link {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
  justify-content: flex-end;
}
.pd-cta-footer__link-text {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 17.7px;
  font-weight: 350;
  color: #fff;
  letter-spacing: 0.887px;
}
.pd-cta-footer__link svg {
  flex-shrink: 0;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .pd-intro-cta__inner { padding: 0 40px; }
  .pd-lineup-section__inner { padding: 0 40px; }
  .pd-lineup-heading { flex-direction: column; align-items: flex-start; gap: 16px; }
  .pd-lineup-heading__en { font-size: 36px; }
  .pd-lineup-heading__right { align-items: flex-start; }
  .pd-lineup-heading__body { text-align: left; }
  .pd-lineup-layout { gap: 24px; }
  .pd-sidebar { width: 180px; }
  .pd-lineup-section .product-cards { grid-template-columns: repeat(2, 1fr); }
  .pd-cta-footer__en { font-size: 36px; }
  .pd-cta-footer__content { padding: 40px; }
}
@media (max-width: 768px) {
  .pd-intro-cta__inner { padding: 0 20px; }
  .pd-intro-cta__text { font-size: 15px; }
  .pd-intro-cta__btn { padding: 16px 24px; font-size: 14px; }
  .pd-intro-cta__buttons { flex-direction: column; }
  .pd-lineup-section__inner { padding: 0 20px; }
  .pd-lineup-heading__en { font-size: 28px; }
  .pd-lineup-layout { flex-direction: column; }
  .pd-sidebar { width: 100%; position: static; order: -1; }
  .pd-sidebar__group { display: inline-block; margin-right: 8px; }
  .pd-sidebar__group-btn { font-size: 0.8125rem; padding: 8px 12px; }
  .pd-sidebar__items { display: none !important; }
  .pd-lineup-section .product-cards { grid-template-columns: 1fr; }
  .pd-watermark { font-size: 40px; }
  .pd-cta-footer { flex-direction: column; }
  .pd-cta-footer__card a { min-height: 350px; }
  .pd-cta-footer__content { min-height: 350px; padding: 32px 24px; }
  .pd-cta-footer__en { font-size: 28px; }
}
