/*
Theme Name: cpi-tech
Theme URI: https://cpi-tec.jp/
Author: OpenAI
Description: CPI-Tech custom hybrid theme.
Version: 1.1.0
Text Domain: cpi-tech
*/

/* =========================================
   Products Page
========================================= */
.page-products {
  background: #fff;
}

.inner {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: 72px 0;
}

.section--alt {
  background: #f7f9fc;
}

.page-hero--sub {
  background-image:
    linear-gradient(rgba(10,35,90,.18), rgba(10,35,90,.18)),
    url("assets/img/hero-page.jpg");
  background-position:center center;
  background-size:cover;
  background-repeat:no-repeat;
}

.page-hero__eyebrow {
  margin: 0 0 12px;
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .88;
}

.page-hero__title {
  margin: 0;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.15;
  font-weight: 700;
}

.breadcrumbs-wrap {
  padding: 18px 0;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
}

.breadcrumbs {
  font-size: 13px;
  color: #6b7280;
}

.section-title {
  margin: 0 0 28px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.3;
  font-weight: 700;
  color: #0b356b;
}

.products-index__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.products-index__grid a {
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid #d8e2ef;
  border-radius: 14px;
  color: #0b356b;
  text-decoration: none;
  font-weight: 600;
  transition: .25s ease;
}

.products-index__grid a:hover {
  transform: translateY(-2px);
  border-color: #2161ab;
  box-shadow: 0 10px 24px rgba(11, 53, 107, 0.08);
}

.product-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.product-card {
  display: block;
  height: 100%;
  background: #fff;
  border: 1px solid #d8e2ef;
  border-radius: 18px;
  text-decoration: none;
  color: #1f2937;
  transition: .25s ease;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: #2161ab;
  box-shadow: 0 16px 32px rgba(11, 53, 107, 0.10);
}

.product-card__body {
  padding: 24px;
}

.product-card__code {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  color: #2161ab;
  text-transform: uppercase;
}

.product-card__title {
  margin: 0 0 12px;
  font-size: 21px;
  line-height: 1.45;
  font-weight: 700;
  color: #0f172a;
}

.product-card__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: #475569;
}

.cta-box {
  padding: 40px;
  background: linear-gradient(135deg, #0b356b, #2161ab);
  border-radius: 24px;
  color: #fff;
  text-align: center;
}

.cta-box__title {
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.4;
}

.cta-box__text {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.8;
  opacity: .95;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 999px;
  background: #fff;
  color: #0b356b;
  font-weight: 700;
  text-decoration: none;
  transition: .25s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  opacity: .92;
}

html {
  scroll-behavior: smooth;
}

@media (max-width: 960px) {
  .products-index__grid,
  .product-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section {
    padding: 56px 0;
  }
}

@media (max-width: 640px) {
  .products-index__grid,
  .product-cards {
    grid-template-columns: 1fr;
  }

  .page-hero--sub {
    padding: 76px 0 56px;
  }

  .product-card__body,
  .cta-box {
    padding: 22px;
  }
}

.category-visual {
  margin: 0 0 28px;
  border-radius: 18px;
  overflow: hidden;
  background: #dbe4f0;
  box-shadow: 0 10px 24px rgba(11, 53, 107, 0.08);
}

.category-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  object-position: right center;
}

.category-visual img.is-centered {
  object-position: center center;
}

.category-visual__link {
  display: block;
}

.products-section__head[id],
.products-section__subhead[id] {
  scroll-margin-top: 156px;
}

.page-support-tech-cpi-wam .entry-content [id],
.page-support-tech-cpi-wam .page-content [id],
.page-support-tech-cpi-wam .product-content [id] {
  scroll-margin-top: 196px;
}

@media (max-width: 640px) {
  .category-visual {
    margin-bottom: 20px;
    border-radius: 14px;
  }
}

/* =========================================================
   Products Single
========================================================= */
.product-single {
  padding: 32px 0 80px;
}

.product-single .l-container {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
}

.product-breadcrumb {
  margin-bottom: 48px;
  font-size: 14px;
  line-height: 1.6;
}

.product-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.product-breadcrumb__item:not(:last-child)::after {
  content: ">";
  margin-left: 6px;
  color: #666;
}

.product-breadcrumb__item a {
  color: #005bac;
  text-decoration: none;
}

.product-breadcrumb__item a:hover {
  text-decoration: underline;
}

/* =========================================================
   Hero
========================================================= */
.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 56px;
  align-items: center;
  margin-bottom: 56px;
}

.product-hero__catch {
  margin: 0 0 24px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.8;
  color: #3a3a3a;
}

.product-hero__title {
  margin: 0 0 20px;
  font-size: clamp(40px, 5vw, 76px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #555;
}

.product-hero__subtitle {
  margin: 0 0 28px;
  padding-top: 24px;
  border-top: 1px solid #cfcfcf;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.7;
  color: #3f3f3f;
}

.product-hero__code {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  color: #333;
}

.product-hero__image {
  text-align: center;
}

.product-hero__image img {
  display: inline-block;
  max-width: 100%;
  height: auto;
}

.product-hero--subpage {
  display: block;
  margin-bottom: 32px;
}

.product-hero--subpage .product-hero__title {
  margin-bottom: 0;
  color: #1f2937;
  font-size: clamp(30px, 3vw, 48px);
  line-height: 1.35;
}

.product-entry--subpage .product-content > h1:first-child {
  display: none;
}

/* =========================================================
   Anchor nav
========================================================= */
.product-anchor-nav {
  margin: 0 0 48px;
  padding: 16px 24px;
  border-top: 1px solid #d9d9d9;
  border-bottom: 1px solid #d9d9d9;
}

.product-anchor-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.product-anchor-nav__list a {
  color: #005bac;
  text-decoration: none;
  font-weight: 700;
}

.product-anchor-nav__list a:hover {
  text-decoration: underline;
}

/* =========================================================
   Product content base
========================================================= */
.product-content {
  margin-bottom: 80px;
  color: #222;
}

.product-content > *:first-child {
  margin-top: 0;
}

.product-content h2 {
  margin: 72px 0 28px;
  font-size: 42px;
  line-height: 1.3;
  font-weight: 700;
  color: #222;
}

.product-content h3 {
  margin: 48px 0 20px;
  font-size: 28px;
  line-height: 1.4;
  font-weight: 700;
  color: #222;
}

.product-content h4 {
  margin: 32px 0 16px;
  font-size: 22px;
  line-height: 1.5;
  font-weight: 700;
  color: #222;
}

.product-content p {
  margin: 0 0 1.2em;
  line-height: 2;
}

.product-content ul,
.product-content ol {
  margin: 0.6em 0 1em 0;
  padding-left: 1em;
  line-height: 2;
}

.product-content li {
  margin: 0 0 0.28em;
  line-height: 1.6;
}

.product-content li + li {
  margin-top: 0;
}

.product-content img {
  max-width: 100%;
  height: auto;
}

/* =========================================================
   HTML table for specs
   既存HTMLテーブルをそのまま見やすくする
========================================================= */
.product-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 40px;
  font-size: 15px;
  line-height: 1.8;
  table-layout: auto;
  background: #fff;
}

.product-content .wp-block-table table,
.product-content table.has-fixed-layout {
  table-layout: auto !important;
}

.product-content table caption {
  text-align: left;
  margin-bottom: 12px;
  font-weight: 700;
  font-size: 20px;
}

.product-content table th,
.product-content table td {
  padding: 14px 16px;
  border: 1px solid #d7dce3;
  vertical-align: top;
}

.product-content table img {
  display: block;
  width: auto;
  max-width: min(140px, 100%);
  height: auto;
  margin-inline: auto;
}

.product-content table:has(img) td {
  vertical-align: middle;
}

.product-content table:has(img) td:has(img) {
  text-align: center;
}

.products-slug-boad .product-content table th:last-child,
.products-slug-boad .product-content table td:last-child,
.products-slug-cpi-wam800 .product-content table th:last-child,
.products-slug-cpi-wam800 .product-content table td:last-child {
  width: 24%;
}

.products-slug-boad .product-content table th:first-child,
.products-slug-boad .product-content table td:first-child,
.products-slug-cpi-wam800 .product-content table th:first-child,
.products-slug-cpi-wam800 .product-content table td:first-child {
  width: 20%;
  white-space: nowrap;
  word-break: keep-all;
}

.products-slug-boad .product-content table,
.products-slug-cpi-wam800 .product-content table {
  table-layout: fixed;
}

.products-slug-boad .product-content table th,
.products-slug-boad .product-content table td,
.products-slug-cpi-wam800 .product-content table th,
.products-slug-cpi-wam800 .product-content table td {
  word-break: normal;
}

.products-slug-boad .product-content table th:nth-child(2),
.products-slug-boad .product-content table td:nth-child(2),
.products-slug-boad .product-content table th:nth-child(3),
.products-slug-boad .product-content table td:nth-child(3),
.products-slug-cpi-wam800 .product-content table th:nth-child(2),
.products-slug-cpi-wam800 .product-content table td:nth-child(2),
.products-slug-cpi-wam800 .product-content table th:nth-child(3),
.products-slug-cpi-wam800 .product-content table td:nth-child(3) {
  width: 11.5%;
}

.products-slug-boad .product-content table th:nth-child(4),
.products-slug-boad .product-content table td:nth-child(4),
.products-slug-boad .product-content table th:nth-child(5),
.products-slug-boad .product-content table td:nth-child(5),
.products-slug-cpi-wam800 .product-content table th:nth-child(4),
.products-slug-cpi-wam800 .product-content table td:nth-child(4),
.products-slug-cpi-wam800 .product-content table th:nth-child(5),
.products-slug-cpi-wam800 .product-content table td:nth-child(5) {
  width: 10%;
  white-space: nowrap;
  text-align: center;
}

.products-slug-boad .product-content table th:last-child,
.products-slug-boad .product-content table td:last-child,
.products-slug-cpi-wam800 .product-content table th:last-child,
.products-slug-cpi-wam800 .product-content table td:last-child {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  text-align: left;
}

.product-content table th {
  background: #f5f8fc;
  font-weight: 700;
  color: #1f2d3d;
}

.product-content table thead th {
  background: #edf4fb;
  text-align: center;
}

.product-content table tbody tr:nth-child(even) {
  background: #fcfdff;
}

/* 左側の項目名が多い想定 */
.product-content table th:first-child,
.product-content table td:first-child {
/*  white-space: nowrap;*/
}

/* 注釈の赤字などがある場合に少し見やすく */
.product-content table .red,
.product-content table .note-red,
.product-content table font[color="red"] {
  color: #d60000;
  font-weight: 700;
}

/* 仕様表の下の注釈ブロックっぽいもの */
.product-content .spec-notes,
.product-content .table-notes {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.9;
  color: #555;
}

/* =========================================================
   Download / Related common
========================================================= */
.product-section {
  margin-top: 80px;
}

.product-section__title {
  margin: 0 0 24px;
  font-size: 32px;
  line-height: 1.4;
  font-weight: 700;
  color: #222;
}

.product-download__items,
.product-related__items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.product-download__item,
.product-related__item {
  height: 100%;
  padding: 24px;
  border: 1px solid #d9dfe8;
  background: #fff;
}

.product-download__thumb,
.product-related__thumb {
  margin-bottom: 16px;
}

.product-download__thumb img,
.product-related__thumb img {
  display: block;
  width: 100%;
  height: auto;
}

.product-download__title,
.product-related__name {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.5;
}

.product-download__title a,
.product-related__link {
  color: inherit;
  text-decoration: none;
}

.product-download__title a:hover,
.product-related__link:hover .product-related__name {
  color: #005bac;
}

.product-download__excerpt,
.product-related__summary {
  margin: 0;
  color: #444;
  line-height: 1.8;
}

/* =========================================================
   CTA - 添付2寄せ
========================================================= */
.product-inquiry {
  margin-top: 96px;
}

.product-inquiry__inner {
  padding: 72px 40px 62px;
  border-radius: 40px;
  background: linear-gradient(90deg, #103d7c 0%, #2e67bc 100%);
  text-align: center;
  color: #fff;
}

.product-inquiry__title {
  margin: 0 0 22px;
  font-size: clamp(30px, 4vw, 64px);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
}

.product-inquiry__text {
  margin: 0 0 36px;
  font-size: 18px;
  line-height: 1.9;
  font-weight: 700;
  color: #fff;
}

.product-inquiry__button {
  margin: 0;
}

.product-inquiry .c-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 320px;
  min-height: 88px;
  padding: 18px 40px;
  border: none;
  border-radius: 9999px;
  background: #fff;
  color: #123d7d;
  text-decoration: none;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.product-inquiry .c-button:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

/* =========================================================
   Responsive
========================================================= */
@media (max-width: 1024px) {
  .product-hero {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

@media (max-width: 767px) {
  .product-single {
    padding: 24px 0 56px;
  }

  .product-single .l-container {
    width: min(100%, calc(100% - 32px));
  }

  .product-breadcrumb {
    margin-bottom: 28px;
    font-size: 12px;
  }

  .product-hero {
    margin-bottom: 32px;
  }

  .product-hero__catch {
    margin-bottom: 16px;
    font-size: 15px;
  }

  .product-hero__title {
    margin-bottom: 14px;
    font-size: 42px;
  }

  .product-hero__subtitle {
    margin-bottom: 16px;
    padding-top: 16px;
    font-size: 18px;
  }

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

  .product-anchor-nav {
    margin-bottom: 32px;
    padding: 12px 0;
  }

  .product-anchor-nav__list {
    gap: 10px 18px;
  }

  .product-content h2 {
    margin: 48px 0 20px;
    font-size: 30px;
  }

  .product-content h3 {
    margin: 32px 0 16px;
    font-size: 24px;
  }

  .product-content p,
  .product-content li {
    line-height: 1.9;
  }

  .product-content table {
    display: table;
    overflow-x: visible;
    white-space: normal;
    table-layout: fixed;
    font-size: 12px;
  }

  .product-content table th,
  .product-content table td {
    padding: 10px 8px;
    white-space: normal;
    word-break: break-word;
  }

  .product-content table img {
    max-width: 100%;
  }

  .product-content table:has(img) td {
    vertical-align: middle;
  }

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

  .product-inquiry {
    margin-top: 64px;
  }

  .product-inquiry__inner {
    padding: 44px 20px 40px;
    border-radius: 24px;
  }

  .product-inquiry__title {
    margin-bottom: 16px;
    font-size: 28px;
  }

  .product-inquiry__text {
    margin-bottom: 24px;
    font-size: 15px;
    line-height: 1.8;
  }

  .product-inquiry .c-button {
    min-width: 100%;
    min-height: 64px;
    padding: 14px 24px;
    font-size: 18px;
  }
}

.product-content table th {
  width: 18%;
}

.product-content table td {
  width: auto;
}

/* =========================================
   Product Download Table
========================================= */
.product-download-table {
  border-top: 2px solid #1d4f9c;
  border-bottom: 1px solid #d9dfe8;
  background: #fff;
}

.product-download-table__row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 140px 180px;
  align-items: center;
  border-bottom: 1px solid #d9dfe8;
}

.product-download-table__row--head {
  background: #f5f8fc;
  font-weight: 700;
  color: #1f2d3d;
}

.product-download-table__cell {
  padding: 18px 16px;
  font-size: 15px;
  line-height: 1.6;
}

.product-download-table__cell--date,
.product-download-table__cell--action,
.product-download-table__cell--icon {
  white-space: nowrap;
}

.product-download-table__title {
  display: inline-block;
  font-weight: 700;
  color: #222;
}

.product-download-table__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 138px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid #1d4f9c;
  border-radius: 9999px;
  color: #1d4f9c;
  text-decoration: none;
  font-weight: 700;
  background: #fff;
  transition: all 0.2s ease;
}

.product-download-table__link:hover {
  background: #1d4f9c;
  color: #fff;
}

.product-file-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  height: 32px;
  padding: 0 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: #666;
}

.product-file-icon--pdf {
  background: #d83a2e;
}

.product-file-icon--zip {
  background: #f2a100;
}

.product-file-icon--doc,
.product-file-icon--docx {
  background: #2b6cb0;
}

.product-file-icon--xls,
.product-file-icon--xlsx {
  background: #1f7a3f;
}

.product-file-icon--file {
  background: #666;
}

@media (max-width: 767px) {
  .product-download-table {
    border-top-width: 1px;
  }

  .product-download-table__row {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 14px 0;
  }

  .product-download-table__row--head {
    display: none;
  }

  .product-download-table__cell {
    padding: 6px 0;
  }

  .product-download-table__cell--icon,
  .product-download-table__cell--date,
  .product-download-table__cell--action {
    white-space: normal;
  }

  .product-download-table__cell--title {
    order: 1;
  }

  .product-download-table__cell--icon {
    order: 2;
  }

  .product-download-table__cell--date {
    order: 3;
    font-size: 13px;
    color: #666;
  }

  .product-download-table__cell--action {
    order: 4;
    padding-top: 12px;
  }

  .product-download-table__link {
    min-width: 100%;
  }
}

/* =========================================
   Product Download Table
========================================= */
.product-download-table {
  width: 100%;
  border-top: 2px solid #1d4f9c;
  border-bottom: 1px solid #d9dfe8;
  background: #fff;
}

.product-download-table__row {
  display: grid !important;
  grid-template-columns: 110px minmax(0, 1fr) 140px 180px;
  align-items: center;
  border-bottom: 1px solid #d9dfe8;
}

.product-download-table__row--head {
  background: #f5f8fc;
}

.product-download-table__row--head .product-download-table__cell {
  font-weight: 700;
  color: #1f2d3d;
}

.product-download-table__cell {
  display: block;
  padding: 18px 16px;
  font-size: 15px;
  line-height: 1.6;
  color: #222;
  box-sizing: border-box;
}

.product-download-table__cell--icon,
.product-download-table__cell--date,
.product-download-table__cell--action {
  white-space: nowrap;
}

.product-download-table__cell--title {
  min-width: 0;
}

.product-download-table__title {
  display: inline-block;
  font-weight: 700;
  color: #222;
}

.product-download-table__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 138px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid #1d4f9c;
  border-radius: 9999px;
  background: #fff;
  color: #1d4f9c;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.4;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.product-download-table__link:hover {
  background: #1d4f9c;
  color: #fff;
}

.product-file-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  height: 32px;
  padding: 0 10px;
  border-radius: 9999px;
  background: #666;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  box-sizing: border-box;
}

.product-file-icon--pdf {
  background: #d83a2e;
}

.product-file-icon--zip {
  background: #f2a100;
  color: #222;
}

.product-file-icon--doc,
.product-file-icon--docx {
  background: #2b6cb0;
}

.product-file-icon--xls,
.product-file-icon--xlsx {
  background: #1f7a3f;
}

.product-file-icon--file {
  background: #666;
}

/* =========================================
   SP
========================================= */
@media (max-width: 767px) {
  .product-download-table {
    border-top-width: 1px;
  }

  .product-download-table__row {
    grid-template-columns: 1fr !important;
    gap: 0;
    padding: 14px 0;
  }

  .product-download-table__row--head {
    display: none !important;
  }

  .product-download-table__cell {
    padding: 6px 0;
  }

  .product-download-table__cell--title {
    order: 1;
    font-weight: 700;
  }

  .product-download-table__cell--icon {
    order: 2;
  }

  .product-download-table__cell--date {
    order: 3;
    font-size: 13px;
    color: #666;
  }

  .product-download-table__cell--action {
    order: 4;
    padding-top: 12px;
  }

  .product-download-table__link {
    width: 100%;
    min-width: 0;
  }
}

.product-status {
  display: inline-block;
  margin-left: 12px;
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  vertical-align: middle;
}

.product-status--end {
  color: #fff;
  background: #d83a2e;
}

.product-card .product-status,
.product-archive-item .product-status {
  margin-left: 0;
  margin-bottom: 10px;
}

.product-hero__title .product-status--end {
  position: relative;
  top: -4px;
}

/* ========================================
   見出し（ブロックエディタ統一）
======================================== */

/* H2 */
h2.product-section__title,
.entry-content h2,
.product-content h2 {
  font-size: 26px;
  border-left: 4px solid #1f4f8f; /* コーポレートブルー */
  padding-left: 12px;
}

/* H3（ついでに整える） */
.entry-content h3,
.product-content h3 {
  font-size: 22px;
  font-weight: 600;
  margin: 32px 0 16px;
}

/* H4 */
.entry-content h4,
.product-content h4 {
  font-size: 18px;
  margin: 24px 0 12px;
}

/* 製品詳細概要の下に余白 */
.product-overview {
  margin-bottom: 72px;
}

/* サムネ枠固定 */
.product-related__thumb {
  width: 100%;
  aspect-ratio: 4 / 3; /* ←これがキモ */
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* 画像を中央トリミング */
.product-related__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* coverでもOK（好み） */
}

/* No Image */
.product-related__thumb--noimage {
  font-size: 14px;
  color: #999;
  background: #eee;
}

.product-related__item {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-related__body {
  flex: 1;
}

/* 共通カードhover */
.product-related__item,
.product-card,
.product-archive-item {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.product-related__item:hover,
.product-card:hover,
.product-archive-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  border-color: #d6dce5;
}

/* リンク全体 */
.product-related__link,
.product-card__link,
.product-archive-item__link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.product-related__thumb img,
.product-card__thumb img,
.product-archive-item__thumb img {
  transition: transform 0.3s ease;
}

.product-related__item:hover .product-related__thumb img,
.product-card:hover .product-card__thumb img,
.product-archive-item:hover .product-archive-item__thumb img {
  transform: scale(1.03);
}

.product-noimage {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 14px;
}

/* ========================================
   Product Overview (ACF WYSIWYG)
======================================== */
.product-overview__body {
  font-size: 16px;
  line-height: 2;
  color: #222;
}

.product-overview__body p {
  margin: 0 0 1.2em;
}

.product-overview__body > *:first-child {
  margin-top: 0;
}

.product-overview__body > *:last-child {
  margin-bottom: 0;
}

/* リスト全体 */
.product-overview__body ul,
.product-overview__body ol {
  margin: 0.6em 0 1em 0;
  padding-left: 1em;
}

/* 箇条書き */
.product-overview__body ul {
  list-style: disc;
}

.product-overview__body ol {
  list-style: decimal;
}

/* 各項目 */
.product-overview__body li {
  margin: 0 0 0.28em;
  line-height: 1.6;
}

/* ネストしたリスト */
.product-overview__body li ul,
.product-overview__body li ol {
  margin-top: 0.4em;
  margin-bottom: 0.4em;
}

/* リンク */
.product-overview__body a {
  color: #1f4f8f;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.product-overview__body a:hover {
  text-decoration: none;
}

/* 太字 */
.product-overview__body strong {
  font-weight: 700;
}

/* 画像が入ったとき用 */
.product-overview__body img {
  max-width: 100%;
  height: auto;
}

/* 概要(ACF)と特長(ブロック)のリスト余白を揃える */
.product-content > ul,
.product-content > ol,
.product-content .wp-block-list {
  margin: 0.6em 0 1em 0 !important;
  padding-left: 1em !important;
  line-height: 2 !important;
}

.product-content > ul li,
.product-content > ol li,
.product-content .wp-block-list li {
  margin: 0 0 0.28em !important;
  line-height: 1.6 !important;
}

.product-content > ul li + li,
.product-content > ol li + li,
.product-content .wp-block-list li + li {
  margin-top: 0 !important;
}

/* スマホ */
@media (max-width: 767px) {
  .product-overview__body {
    font-size: 15px;
    line-height: 1.9;
  }

  .product-overview__body ul,
  .product-overview__body ol {
    padding-left: 1em;
  }

  .product-overview__body li {
    margin-bottom: 0.35em;
  }
}

/* WAM800系の製品リスト表をPCで破綻しないように最終上書き */
.products-slug-boad .product-content table,
.products-slug-cpi-wam800 .product-content table {
  width: 100% !important;
  table-layout: fixed !important;
}

.products-slug-boad .product-content table th:first-child,
.products-slug-boad .product-content table td:first-child,
.products-slug-cpi-wam800 .product-content table th:first-child,
.products-slug-cpi-wam800 .product-content table td:first-child {
  width: 18% !important;
  white-space: normal !important;
  word-break: keep-all !important;
  overflow-wrap: break-word !important;
}

.products-slug-boad .product-content table th:nth-child(2),
.products-slug-boad .product-content table td:nth-child(2),
.products-slug-boad .product-content table th:nth-child(3),
.products-slug-boad .product-content table td:nth-child(3),
.products-slug-cpi-wam800 .product-content table th:nth-child(2),
.products-slug-cpi-wam800 .product-content table td:nth-child(2),
.products-slug-cpi-wam800 .product-content table th:nth-child(3),
.products-slug-cpi-wam800 .product-content table td:nth-child(3) {
  width: 12% !important;
}

.products-slug-boad .product-content table th:nth-child(4),
.products-slug-boad .product-content table td:nth-child(4),
.products-slug-boad .product-content table th:nth-child(5),
.products-slug-boad .product-content table td:nth-child(5),
.products-slug-cpi-wam800 .product-content table th:nth-child(4),
.products-slug-cpi-wam800 .product-content table td:nth-child(4),
.products-slug-cpi-wam800 .product-content table th:nth-child(5),
.products-slug-cpi-wam800 .product-content table td:nth-child(5) {
  width: 7% !important;
  white-space: nowrap !important;
  text-align: center !important;
}

.products-slug-boad .product-content table td:last-child,
.products-slug-cpi-wam800 .product-content table td:last-child {
  width: 20% !important;
  white-space: normal !important;
  word-break: break-all !important;
  overflow-wrap: anywhere !important;
  font-size: 0.95em !important;
  line-height: 1.7 !important;
  text-align: left !important;
}

.products-slug-boad .product-content table th:last-child,
.products-slug-cpi-wam800 .product-content table th:last-child {
  width: 20% !important;
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
}

.products-slug-cpi-wam800 .product-content table > tbody > tr:nth-child(2) > th:last-child,
.products-slug-cpi-wam800 .product-content .wp-block-table table > tbody > tr:nth-child(2) > th:last-child {
  font-size: 15px !important;
  line-height: 1.5 !important;
  text-align: center !important;
  white-space: nowrap !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
}

/* WAM800系の表をPCでバランス良く、スマホで壊れないように最終固定 */
.products-slug-boad .product-content table,
.products-slug-cpi-wam800 .product-content table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact),
.products-slug-cpi-wam800 .product-content .wp-block-table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) table {
  table-layout: auto !important;
}

.products-slug-boad .product-content table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) th:first-child,
.products-slug-boad .product-content table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) td:first-child,
.products-slug-boad .product-content .wp-block-table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) table th:first-child,
.products-slug-boad .product-content .wp-block-table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) table td:first-child,
.products-slug-cpi-wam800 .product-content table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) th:first-child,
.products-slug-cpi-wam800 .product-content table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) td:first-child,
.products-slug-cpi-wam800 .product-content .wp-block-table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) table th:first-child,
.products-slug-cpi-wam800 .product-content .wp-block-table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) table td:first-child {
  width: 15rem !important;
}

.products-slug-boad .product-content table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) th:nth-child(2),
.products-slug-boad .product-content table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) td:nth-child(2),
.products-slug-boad .product-content table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) th:nth-child(3),
.products-slug-boad .product-content table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) td:nth-child(3),
.products-slug-boad .product-content .wp-block-table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) table th:nth-child(2),
.products-slug-boad .product-content .wp-block-table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) table td:nth-child(2),
.products-slug-boad .product-content .wp-block-table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) table th:nth-child(3),
.products-slug-boad .product-content .wp-block-table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) table td:nth-child(3),
.products-slug-cpi-wam800 .product-content table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) th:nth-child(2),
.products-slug-cpi-wam800 .product-content table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) td:nth-child(2),
.products-slug-cpi-wam800 .product-content table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) th:nth-child(3),
.products-slug-cpi-wam800 .product-content table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) td:nth-child(3),
.products-slug-cpi-wam800 .product-content .wp-block-table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) table th:nth-child(2),
.products-slug-cpi-wam800 .product-content .wp-block-table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) table td:nth-child(2),
.products-slug-cpi-wam800 .product-content .wp-block-table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) table th:nth-child(3),
.products-slug-cpi-wam800 .product-content .wp-block-table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) table td:nth-child(3) {
  width: 7rem !important;
}

.products-slug-boad .product-content table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) th:nth-child(4),
.products-slug-boad .product-content table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) td:nth-child(4),
.products-slug-boad .product-content table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) th:nth-child(5),
.products-slug-boad .product-content table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) td:nth-child(5),
.products-slug-boad .product-content .wp-block-table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) table th:nth-child(4),
.products-slug-boad .product-content .wp-block-table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) table td:nth-child(4),
.products-slug-boad .product-content .wp-block-table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) table th:nth-child(5),
.products-slug-boad .product-content .wp-block-table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) table td:nth-child(5),
.products-slug-cpi-wam800 .product-content table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) th:nth-child(4),
.products-slug-cpi-wam800 .product-content table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) td:nth-child(4),
.products-slug-cpi-wam800 .product-content table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) th:nth-child(5),
.products-slug-cpi-wam800 .product-content table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) td:nth-child(5),
.products-slug-cpi-wam800 .product-content .wp-block-table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) table th:nth-child(4),
.products-slug-cpi-wam800 .product-content .wp-block-table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) table td:nth-child(4),
.products-slug-cpi-wam800 .product-content .wp-block-table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) table th:nth-child(5),
.products-slug-cpi-wam800 .product-content .wp-block-table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) table td:nth-child(5) {
  width: 5.5rem !important;
}

.products-slug-boad .product-content table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) th:last-child,
.products-slug-boad .product-content table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) td:last-child,
.products-slug-boad .product-content .wp-block-table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) table th:last-child,
.products-slug-boad .product-content .wp-block-table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) table td:last-child,
.products-slug-cpi-wam800 .product-content table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) th:last-child,
.products-slug-cpi-wam800 .product-content table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) td:last-child,
.products-slug-cpi-wam800 .product-content .wp-block-table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) table th:last-child,
.products-slug-cpi-wam800 .product-content .wp-block-table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) table td:last-child {
  width: 17rem !important;
  word-break: normal !important;
}

.products-slug-cpi-wam800 .product-content table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) th:nth-child(2),
.products-slug-cpi-wam800 .product-content table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) td:nth-child(2),
.products-slug-cpi-wam800 .product-content table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) th:nth-child(3),
.products-slug-cpi-wam800 .product-content table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) td:nth-child(3),
.products-slug-cpi-wam800 .product-content .wp-block-table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) table th:nth-child(2),
.products-slug-cpi-wam800 .product-content .wp-block-table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) table td:nth-child(2),
.products-slug-cpi-wam800 .product-content .wp-block-table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) table th:nth-child(3),
.products-slug-cpi-wam800 .product-content .wp-block-table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) table td:nth-child(3) {
  text-align: center !important;
}

.products-slug-cpi-wam001 .product-content table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) th:nth-child(n+3),
.products-slug-cpi-wam001 .product-content table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) td:nth-child(n+3),
.products-slug-cpi-wam001 .product-content .wp-block-table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) table th:nth-child(n+3),
.products-slug-cpi-wam001 .product-content .wp-block-table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) table td:nth-child(n+3) {
  font-size: 1rem !important;
  line-height: 1.75 !important;
}

@media (min-width: 768px) {
  .products-slug-cardut-xp .product-content table,
  .products-slug-cardut-xp .product-content .wp-block-table table {
    table-layout: auto !important;
  }

  .products-slug-cardut-xp .product-content table th:nth-last-child(-n+2),
  .products-slug-cardut-xp .product-content table td:nth-last-child(-n+2),
  .products-slug-cardut-xp .product-content .wp-block-table table th:nth-last-child(-n+2),
  .products-slug-cardut-xp .product-content .wp-block-table table td:nth-last-child(-n+2) {
    width: 6.5rem !important;
    min-width: 6.5rem !important;
    white-space: normal !important;
    word-break: keep-all !important;
    overflow-wrap: break-word !important;
  }

  .products-slug-cardut-xp .product-content table th:last-child,
  .products-slug-cardut-xp .product-content table td:last-child,
  .products-slug-cardut-xp .product-content .wp-block-table table th:last-child,
  .products-slug-cardut-xp .product-content .wp-block-table table td:last-child {
    width: 7.5rem !important;
    min-width: 7.5rem !important;
  }
}

/* -----------------------------------------
   Final final page-scoped overrides
   既存指定に負けないよう末尾で個別上書き
----------------------------------------- */

/* support-tech-cpi-wam: 固定ヘッダ被りをさらに避ける */
body.page-support-tech-cpi-wam .entry-content [id],
body.page-support-tech-cpi-wam .page-content [id],
body.page-support-tech-cpi-wam .product-content [id],
body[class*="support-tech-cpi-wam"] .entry-content [id],
body[class*="support-tech-cpi-wam"] .page-content [id],
body[class*="support-tech-cpi-wam"] .product-content [id] {
  scroll-margin-top: 260px !important;
}

body.page-support-tech-cpi-wam .entry-content :target::before,
body.page-support-tech-cpi-wam .page-content :target::before,
body.page-support-tech-cpi-wam .product-content :target::before,
body[class*="support-tech-cpi-wam"] .entry-content :target::before,
body[class*="support-tech-cpi-wam"] .page-content :target::before,
body[class*="support-tech-cpi-wam"] .product-content :target::before {
  content: "";
  display: block;
  height: 260px;
  margin-top: -260px;
  visibility: hidden;
  pointer-events: none;
}

/* cpi-wam800: 製品リストの「子」列を明示的に中央揃え */
.products-slug-cpi-wam800 .product-content table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) tr:nth-child(2) th:last-child,
.products-slug-cpi-wam800 .product-content .wp-block-table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) table tr:nth-child(2) th:last-child,
.products-slug-cpi-wam800 .product-content table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) tr:nth-child(2) th[data-align="center"]:last-child,
.products-slug-cpi-wam800 .product-content .wp-block-table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) table tr:nth-child(2) th[data-align="center"]:last-child {
  text-align: center !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.products-slug-cpi-wam800 .product-content table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) td:nth-child(3),
.products-slug-cpi-wam800 .product-content .wp-block-table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) table td:nth-child(3) {
  text-align: center !important;
  vertical-align: middle !important;
}

/* cpi-wam800: 価格表ヘッダ「価格（税込）」を中央揃え */
.products-slug-cpi-wam800 .product-content table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) tr:first-child th:last-child,
.products-slug-cpi-wam800 .product-content .wp-block-table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) table tr:first-child th:last-child,
.products-slug-cpi-wam800 .product-content table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) tr:first-child th[data-align="center"]:last-child,
.products-slug-cpi-wam800 .product-content .wp-block-table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) table tr:first-child th[data-align="center"]:last-child {
  text-align: center !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* cpi-wam001: 内蔵アンテナ(-I) / 外部アンテナ(-E) 行の文字を強めに補正 */
.products-slug-cpi-wam001 .product-content table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) td:nth-child(3),
.products-slug-cpi-wam001 .product-content table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) td:nth-child(4),
.products-slug-cpi-wam001 .product-content table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) th:nth-child(3),
.products-slug-cpi-wam001 .product-content table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) th:nth-child(4),
.products-slug-cpi-wam001 .product-content .wp-block-table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) table td:nth-child(3),
.products-slug-cpi-wam001 .product-content .wp-block-table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) table td:nth-child(4),
.products-slug-cpi-wam001 .product-content .wp-block-table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) table th:nth-child(3),
.products-slug-cpi-wam001 .product-content .wp-block-table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) table th:nth-child(4) {
  font-size: 1.0625rem !important;
  line-height: 1.85 !important;
}

.products-slug-cpi-wam001 .product-content table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) td:nth-child(3) *,
.products-slug-cpi-wam001 .product-content table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) td:nth-child(4) *,
.products-slug-cpi-wam001 .product-content table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) th:nth-child(3) *,
.products-slug-cpi-wam001 .product-content table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) th:nth-child(4) *,
.products-slug-cpi-wam001 .product-content .wp-block-table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) table td:nth-child(3) *,
.products-slug-cpi-wam001 .product-content .wp-block-table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) table td:nth-child(4) *,
.products-slug-cpi-wam001 .product-content .wp-block-table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) table th:nth-child(3) *,
.products-slug-cpi-wam001 .product-content .wp-block-table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) table th:nth-child(4) * {
  font-size: inherit !important;
  line-height: inherit !important;
}

@media (max-width: 767px) {
  .product-content table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact),
  .product-content .wp-block-table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) table,
  .product-content table.has-fixed-layout:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    white-space: normal !important;
    table-layout: auto !important;
  }

  .products-slug-boad .product-content table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact),
  .products-slug-cpi-wam800 .product-content table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) {
    min-width: 760px !important;
  }

  .product-download-table {
    border-top: 0 !important;
    border-bottom: 0 !important;
    background: transparent !important;
  }

  .product-download-table__row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    grid-template-areas:
      "title title"
      "icon date"
      "size size"
      "action action" !important;
    gap: 10px 16px !important;
    margin-bottom: 16px !important;
    padding: 18px 16px !important;
    border: 1px solid #d9dfe8 !important;
    border-radius: 20px !important;
    background: #fff !important;
  }

  .product-download-table__row--head {
    display: none !important;
  }

  .product-download-table__cell {
    padding: 0 !important;
  }

  .product-download-table__cell::before {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 700;
    color: #6b7280;
  }

  .product-download-table__cell--title {
    grid-area: title;
  }

  .product-download-table__cell--title::before {
    content: "タイトル";
  }

  .product-download-table__cell--icon {
    grid-area: icon;
    white-space: normal !important;
  }

  .product-download-table__cell--icon::before {
    content: "種別";
  }

  .product-download-table__cell--date {
    grid-area: date;
    white-space: normal !important;
  }

  .product-download-table__cell--date::before {
    content: "更新日";
  }

  .product-download-table__cell--size {
    grid-area: size;
  }

  .product-download-table__cell--size::before {
    content: "サイズ";
  }

  .product-download-table__cell--action {
    grid-area: action;
    white-space: normal !important;
    padding-top: 6px !important;
  }

  .product-download-table__cell--action::before {
    content: "ダウンロード";
  }

  .product-download-table__link {
    width: 100% !important;
    min-width: 0 !important;
  }
}

.product-file-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  height: 32px;
  padding: 0 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  color: #fff;
  background: #666;
  box-sizing: border-box;
}

.product-file-icon--pdf {
  background: #d83a2e;
}

.product-file-icon--zip {
  background: #1f7a3f;
}

.product-file-icon--file {
  background: #666;
}

.product-download-table__row {
  display: grid !important;
  grid-template-columns: 120px minmax(0, 1fr) 160px 120px 180px;
  align-items: center;
  border-bottom: 1px solid #d9dfe8;
}

@media (max-width: 767px) {
  .product-download-table > .product-download-table__row--head,
  .product-download-table > .product-download-table__row:first-child.product-download-table__row--head {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
  }

  .product-download-table > .product-download-table__row:not(.product-download-table__row--head) {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    grid-template-areas:
      "title title"
      "icon date"
      "size size"
      "action action" !important;
    gap: 10px 16px !important;
    margin-bottom: 16px !important;
    padding: 18px 16px !important;
    border: 1px solid #d9dfe8 !important;
    border-radius: 20px !important;
    background: #fff !important;
  }

  .product-download-table > .product-download-table__row:not(.product-download-table__row--head) .product-download-table__cell--action::before {
    content: none !important;
    display: none !important;
  }
}

.product-download-table__cell--size {
  white-space: nowrap;
}
@media (max-width: 767px) {
  .product-download-table__cell--size {
    order: 4;
    font-size: 13px;
    color: #666;
  }

  .product-download-table__cell--action {
    order: 5;
  }
}

/* ===== リンク共通スタイル ===== */
.product-content a,
.product-overview a {
  color: #2f5fa7; /* CPI系ブルー寄りに調整 */
  text-decoration: underline;
  transition: opacity 0.2s ease;
}

/* hover */
.single-products .product-content .is-table-scroll,
.single-products .product-content .is-table-stack,
.single-products .product-content .is-table-compact,
.single-products .product-content .wp-block-table.is-table-scroll,
.single-products .product-content .wp-block-table.is-table-stack,
.single-products .product-content .wp-block-table.is-table-compact {
  margin: 24px 0 40px !important;
}
.product-content a:hover,
.product-overview a:hover {
  opacity: 0.7;
}

/* visited（必要なら） */
.product-content a:visited,
.product-overview a:visited {
  color: #2f5fa7;
}

/* 外部リンクっぽく少しだけ変化つける場合（任意） */
.product-content a[target="_blank"],
.product-overview a[target="_blank"] {
  text-decoration: underline;
}

.product-alert {
  margin: 24px 0;
  padding: 2px 20px;
  border-radius: 6px;
  font-size: 15px;
  line-height: 1.7;
}

/* 通常 */
.product-alert--info {
  background: #eef4ff;
  border-left: 4px solid #1f4fa3;
}

/* 注意 */
.product-alert--warning {
  background: #fff8e6;
  border-left: 4px solid #e0a800;
}

/* 重要 */
.product-alert--danger {
  background: #fdecea;
  border-left: 4px solid #c83a3a;
}

/* 中のリンク */
.product-alert a {
  color: #1f4fa3;
  text-decoration: underline;
}

/* =========================================
   Products Archive
========================================= */

.archive-products,
.page-products {
  background: #fff;
}

.products-localnav-wrap {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.admin-bar .products-localnav-wrap {
  top: 32px;
}

.products-localnav {
  padding: 18px 0;
}

.products-localnav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.products-localnav__item {
  margin: 0;
}

.products-localnav__link {
  position: relative;
  display: inline-block;
  padding: 6px 0 6px 16px;
  color: #0b356b;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  transition: opacity .25s ease;
}

.products-localnav__link::before {
  content: "›";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-52%);
  color: #2161ab;
  font-size: 14px;
  font-weight: 700;
}

.products-localnav__link::after {
  content: "";
  position: absolute;
  left: 16px;
  bottom: 0;
  width: calc(100% - 16px);
  height: 2px;
  background: #2161ab;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .25s ease;
}

.products-localnav__link:hover {
  opacity: .85;
}

.products-localnav__link:hover::after {
  transform: scaleX(1);
}

.products-section__head {
  margin-bottom: 20px;
}

.category-visual {
  margin: 0 0 28px;
  border-radius: 18px;
  overflow: hidden;
  background: #dbe4f0;
  box-shadow: 0 10px 24px rgba(11, 53, 107, 0.08);
}

.category-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  object-position: right center;
}

.category-visual img.is-centered {
  object-position: center center;
}

.product-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.product-card {
  min-width: 0;
}

.product-card__link {
  display: block;
  height: 100%;
  background: #fff;
  border: 1px solid #d8e2ef;
  border-radius: 18px;
  color: #1f2937;
  text-decoration: none;
  overflow: hidden;
  transition: .25s ease;
}

.product-card__link:hover {
  transform: translateY(-4px);
  border-color: #c4d3e7;
  box-shadow: 0 16px 34px rgba(11, 53, 107, 0.12);
}

.product-card__image,
.product-card__thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #FFF;
  border-bottom: 1px solid #f1f5f9;
}

.product-card__image img,
.product-card__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .3s ease;
}

.product-card__link:hover .product-card__image img,
.product-card__link:hover .product-card__thumb img {
  transform: scale(1.03);
}

.product-card__body {
  padding: 24px;
}

.product-card__status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef2f7;
  color: #b91c1c;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.product-card__code {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  color: #2161ab;
  text-transform: uppercase;
}

.product-card__title {
  margin: 0 0 12px;
  font-size: 21px;
  line-height: 1.45;
  font-weight: 700;
  color: #0f172a;
}

.product-card__text {
  font-size: 14px;
  line-height: 1.8;
  color: #475569;

  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 1024px) {
  .product-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 782px) {
  .admin-bar .products-localnav-wrap {
    top: 46px;
  }
}

@media (max-width: 640px) {
  .products-localnav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .products-localnav__list {
    flex-wrap: nowrap;
    width: max-content;
    gap: 10px 18px;
    padding-bottom: 2px;
  }

  .category-visual {
    margin-bottom: 20px;
    border-radius: 14px;
  }

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

  .product-card__body {
    padding: 16px;
  }

  .product-card__title {
    font-size: 15px;
    line-height: 1.4;
  }

  .product-card__code {
    font-size: 11px;
  }

  .product-card__text {
    font-size: 12px;
    -webkit-line-clamp: 2;
  }
}

/* =========================================
   Product Category Archive
========================================= */

.page-products-taxonomy .products-section {
  padding-top: 32px;
}

.page-products-taxonomy .section-title {
  margin-bottom: 24px;
}

.page-products-taxonomy .category-visual {
  margin-bottom: 32px;
}

.page-products-taxonomy .product-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.products-pagination {
  margin-top: 40px;
}

.products-pagination ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.products-pagination a,
.products-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #d8e2ef;
  border-radius: 999px;
  text-decoration: none;
  color: #0b356b;
  background: #fff;
  font-weight: 700;
}

.products-pagination .current {
  background: #2161ab;
  border-color: #2161ab;
  color: #fff;
}

@media (max-width: 1024px) {
  .page-products-taxonomy .product-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .page-products-taxonomy .product-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .page-products-taxonomy .category-visual {
    margin-bottom: 24px;
  }
}

.product-status-wrap {
  margin: 0 0 24px;
}

.product-status--large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 9999px;
  background: #d83a2e;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

@media (max-width: 767px) {
  .product-status-wrap {
    margin-bottom: 18px;
  }

  .product-status--large {
    font-size: 14px;
    padding: 8px 14px;
  }
}

.pdl-hub__table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.pdl-hub__table th,
.pdl-hub__table td {
  padding: 18px 16px;
  border-bottom: 1px solid #dbe3ef;
  vertical-align: middle;
  word-break: break-word;
}

.pdl-hub__table th {
  background: #f3effb;
  color: #203864;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 700;
  text-align: center;
  white-space: normal;
}

.pdl-hub__table td {
  text-align: center;
}

.pdl-hub__product {
  text-align: left !important;
  width: 290px;
}

.pdl-hub__product-link {
  display: flex;
  align-items: center;
  gap: 16px;
  color: inherit;
  text-decoration: none;
}

.pdl-hub__product-link:hover {
  text-decoration: none;
}

.pdl-hub__product img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #dbe3ef;
}

.pdl-hub__product-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pdl-hub__product-name {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  color: #222;
}

.pdl-hub__product-code {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.4;
}

.pdl-hub__download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 10px 16px;
  background: #284f91;
  color: #fff !important;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 700;
  line-height: 1.2;
  transition: opacity .2s ease;
}

.pdl-hub__download-btn:hover {
  opacity: .85;
  text-decoration: none;
}

.pdl-hub__na {
  color: #8b95a7;
}

.pdl-hub__count {
  margin: 16px 0;
  font-weight: 700;
}

@media (max-width: 1024px) {
  .pdl-hub__table-wrap {
    overflow-x: auto;
  }

  .pdl-hub__table {
    min-width: 1200px;
  }
}

.pdl-hub__table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.pdl-hub__table th,
.pdl-hub__table td {
  padding: 18px 16px;
  border-bottom: 1px solid #dbe3ef;
  vertical-align: middle;
  word-break: break-word;
}

.pdl-hub__table th {
  background: #f3effb;
  color: #203864;
  font-weight: 700;
  text-align: center;
}

.pdl-hub__table td {
  text-align: center;
}

.pdl-hub__product {
  text-align: left !important;
  width: 300px;
}

.pdl-hub__product-link {
  display: flex;
  align-items: center;
  gap: 16px;
  color: inherit;
  text-decoration: none;
}

.pdl-hub__product-link:hover {
  text-decoration: none;
}

.pdl-hub__product img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #dbe3ef;
}

.pdl-hub__product-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pdl-hub__product-name {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  color: #222;
}

.pdl-hub__product-code {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.4;
}

.pdl-hub__download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 10px 16px;
  background: #fff;
  color: #284f91 !important;
  border: 1px solid #284f91;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.2;
  transition: all .2s ease;
}

.pdl-hub__download-btn:hover {
  background: #284f91;
  color: #fff !important;
  text-decoration: none;
}

.pdl-hub__na {
  color: #8b95a7;
}

@media (max-width: 1024px) {
  .pdl-hub__table-wrap {
    overflow-x: auto;
  }

  .pdl-hub__table {
    min-width: 1280px;
  }
}

.pdl-hub__table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.pdl-hub__table {
  width: 100%;
  min-width: 1480px;
  border-collapse: collapse;
  table-layout: fixed;
}

.pdl-hub__table th,
.pdl-hub__table td {
  padding: 18px 16px;
  border-bottom: 1px solid #dbe3ef;
  vertical-align: middle;
  text-align: center;
}

.pdl-hub__table th:nth-child(1),
.pdl-hub__table td:nth-child(1) {
  width: 300px;
  text-align: left;
}

.pdl-hub__table th:nth-child(2),
.pdl-hub__table td:nth-child(2),
.pdl-hub__table th:nth-child(3),
.pdl-hub__table td:nth-child(3),
.pdl-hub__table th:nth-child(4),
.pdl-hub__table td:nth-child(4),
.pdl-hub__table th:nth-child(5),
.pdl-hub__table td:nth-child(5),
.pdl-hub__table th:nth-child(6),
.pdl-hub__table td:nth-child(6) {
  width: 140px;
}

.pdl-hub__table th:nth-child(7),
.pdl-hub__table td:nth-child(7) {
  width: 110px;
}

.pdl-hub__table th:nth-child(8),
.pdl-hub__table td:nth-child(8) {
  width: 120px;
}

.pdl-hub__table th:nth-child(9),
.pdl-hub__table td:nth-child(9) {
  width: 100px;
}

.pdl-hub__product-link {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
}

.pdl-hub__product img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #dbe3ef;
  flex: 0 0 72px;
}

.pdl-hub__product-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.pdl-hub__product-name {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  word-break: break-word;
}

.pdl-hub__product-code {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.4;
}

.pdl-hub__download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  min-height: 48px;
  padding: 10px 18px;
  background: #fff;
  color: #284f91 !important;
  border: 1px solid #284f91;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  transition: all .2s ease;
}

.pdl-hub__download-btn:hover {
  background: #284f91;
  color: #fff !important;
  text-decoration: none;
}

.pdl-hub__na {
  color: #8b95a7;
}

.product-card--category .product-card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #f6f8fb;
}

.product-card--category .product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 78% center; /* 右寄り */
  transform: scale(1.08);      /* 少し拡大 */
  display: block;
}

.product-card--category .product-card__image--noimage {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  background: #f6f8fb;
  border-bottom: 1px solid #e3e8f0;
}

.product-card--category .product-card__image--noimage span {
  font-size: 14px;
  font-weight: 700;
  color: #7b8597;
  letter-spacing: 0.04em;
}

.topics-section__more {
  margin-top: 28px;
  text-align: center;
}

.topics-section__more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 12px 24px;
  background: #fff;
  color: #284f91;
  border: 1px solid #284f91;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: all .2s ease;
}

.topics-section__more-btn:hover {
  background: #284f91;
  color: #fff;
  text-decoration: none;
}

.top-cta {
  padding-top: 80px;
  padding-bottom: 80px;
}

.top-cta .cta-box {
  max-width: 1280px;
  margin: 0 auto;
}

.top-hero {
  position: relative;
  overflow: hidden;
}

.top-hero__curve {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  display: block;
  width: 100%;
  line-height: 0;
  pointer-events: none;
  z-index: 2;
}

.top-hero__curve img {
  display: block;
  width: 100%;
  height: auto;
}

.top-search-band {
  position: relative;
  z-index: 3;
  margin-top: -28px;
}

@media (max-width: 767px) {
  .top-search-band {
    margin-top: -18px;
  }
}

.page-hero {
  position: relative;
  overflow: hidden;
}

.page-hero__curve {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  display: block;
  width: 100%;
  line-height: 0;
  pointer-events: none;
  z-index: 2;
}

.page-hero__curve img {
  display: block;
  width: 100%;
  height: auto;
}

.topics-section {
  padding: 72px 0;
}

.topics-section__title {
  margin: 0 0 28px;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 700;
  color: #203864;
  text-align: center;
}

.topics-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #dbe3ef;
}

.topics-list__item {
  border-bottom: 1px solid #dbe3ef;
}

.topics-list__link {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  align-items: center;
  padding: 18px 0;
  text-decoration: none;
  color: inherit;
}

.topics-list__date {
  font-size: 14px;
  color: #6b7280;
  white-space: nowrap;
}

.topics-list__title {
  font-size: 16px;
  line-height: 1.6;
  font-weight: 500;
  color: #222;
}

@media (max-width: 767px) {
  .topics-section {
    padding: 56px 0;
  }

  .topics-section__title {
    font-size: 26px;
    margin-bottom: 20px;
  }

  .topics-list__link {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 14px 0;
  }

  .topics-list__date {
    font-size: 13px;
  }

  .topics-list__title {
    font-size: 15px;
    line-height: 1.5;
  }
}

.top-hero {
  position: relative;
  overflow: hidden;
}

/* カーブ画像 */
.top-hero__curve {
  position: absolute;
  left: 0;
  bottom: -1px; /* ←隙間防止 */
  width: 100%;
  line-height: 0;
  pointer-events: none;
  z-index: 2;
}

.top-hero__curve img {
  width: 100%;
  height: auto;
  display: block;
}

/* 下の白エリアを自然につなぐ */
.top-search-band {
  position: relative;
  z-index: 3;
}

.top-hero {
  position: relative;
  overflow: hidden;
  padding-bottom: 90px;
}

.top-hero__curve {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  line-height: 0;
  pointer-events: none;
  z-index: 3;
}

.top-hero__curve img {
  display: block;
  width: 100%;
  height: auto;
}

.top-search-band {
  position: relative;
  z-index: 4;
  margin-top: -58px;   /* ここでカーブに重ねる */
  background: transparent; /* 白ベタを消す */
}

.top-search-band__inner {
  position: relative;
}

.top-search--hero {
  max-width: 920px;
  margin: 0 auto;
}

/* =========================================================
   TOP HERO / CURVE / SEARCH BAND
   最後に置いて上書き確定
========================================================= */

.front-page {
  background: #fff;
}

.top-hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  padding: 120px 0 180px;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.top-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(8, 32, 76, 0.18), rgba(8, 32, 76, 0.18));
  z-index: 1;
}

.top-hero__inner {
  position: relative;
  z-index: 2;
}

.top-hero__content {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  color: #fff;
}

.top-hero__title {
  margin: 0 0 24px;
  font-size: clamp(34px, 4.6vw, 70px);
  line-height: 1.25;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
}

.top-hero__lead {
  margin: 0;
  font-size: clamp(16px, 1.5vw, 22px);
  line-height: 2;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* カーブ画像 */
.top-hero__curve {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  line-height: 0;
  pointer-events: none;
  z-index: 3;
}

.top-hero__curve img {
  display: block;
  width: 100%;
  height: auto;
}

/* 検索帯は白ベタ面を持たせず、カーブに乗せる */
.top-search-band {
  position: relative;
  z-index: 4;
  margin-top: -92px;
  padding: 0 0 20px;
  background: transparent;
}

.top-search-band__inner {
  position: relative;
}

.top-search--hero {
  max-width: 980px;
  margin: 0 auto;
}

/* Ajax Search Lite 本体 */
.top-search--hero .asl_w_container {
  margin: 0 !important;
  box-shadow: none !important;
}

.top-search--hero .probox,
.top-search--hero .promagnifier,
.top-search--hero .proinput,
.top-search--hero .proclose {
  box-shadow: none !important;
}

.top-search--hero .probox {
  border-radius: 999px !important;
  overflow: hidden !important;
  border: 1px solid #d7dfeb !important;
  background: #fff !important;
  min-height: 72px !important;
}

.top-search--hero .proinput input.orig,
.top-search--hero .proinput input.autocomplete {
  height: 72px !important;
  font-size: 18px !important;
  padding: 0 24px !important;
}

.top-search--hero .promagnifier {
  min-width: 110px !important;
  width: 110px !important;
  background: #3569b8 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.top-search--hero .promagnifier svg {
  fill: #fff !important;
}

/* 下のプルダウン */
.top-search__filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.top-search__filters select {
  min-width: 180px;
  height: 48px;
  padding: 0 16px;
  border: 1px solid #d7dfeb;
  border-radius: 10px;
  background: #fff;
  color: #1f2937;
  font-size: 16px;
}

/* =========================================================
   TOP CATEGORY SLIDER
========================================================= */

.top-products {
  padding: 36px 0 72px;
}

.top-products__slider-wrap {
  position: relative;
  padding: 0 58px;
}

.top-products .swiper-slide {
  height: auto;
}

.top-products .product-card--category {
  height: 100%;
}

.top-products .product-card--category .product-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.top-products .product-card--category .product-card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #f5f7fb;
  border-bottom: 1px solid #d8e2ef;
}

.top-products .product-card--category .product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 78% center;
  transform: scale(1.08);
  display: block;
}

.top-products .product-card--category .product-card__image img.is-centered {
  object-position: center center !important;
  transform: scale(1.18);
}

/* =========================================================
   CPI-UR001 Data Article
========================================================= */
.cpi-ur001-data {
  color: #1f2937;
  font-size: 16px;
  line-height: 1.9;
}

.cpi-ur001-data__header {
  margin-bottom: 34px;
}

.cpi-ur001-data__eyebrow {
  margin: 0 0 8px;
  color: #2f64be;
  font-weight: 700;
  letter-spacing: .08em;
}

.cpi-ur001-data__title {
  margin: 0;
  color: #0f2f60;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.35;
}

.cpi-ur001-data__section {
  margin-top: 44px;
}

.cpi-ur001-data__section h2 {
  margin: 0 0 16px;
  padding-left: 16px;
  border-left: 5px solid #2f64be;
  color: #0f2f60;
  font-size: 24px;
  line-height: 1.5;
}

.cpi-ur001-data__summary {
  margin: 0;
  border: 1px solid #d8e2ef;
  border-radius: 18px;
  overflow: hidden;
}

.cpi-ur001-data__summary div {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  border-top: 1px solid #d8e2ef;
}

.cpi-ur001-data__summary div:first-child {
  border-top: 0;
}

.cpi-ur001-data__summary dt,
.cpi-ur001-data__summary dd {
  margin: 0;
  padding: 18px 20px;
}

.cpi-ur001-data__summary dt {
  background: #f2f6fc;
  color: #0f2f60;
  font-weight: 700;
}

.cpi-ur001-data__notice {
  padding: 28px;
  border-radius: 20px;
  background: #f2f6fc;
}

.cpi-ur001-data__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  background: #2f64be;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.cpi-ur001-data__button:hover {
  opacity: .9;
}

.cpi-ur001-data__figure {
  margin: 18px 0 0;
}

.cpi-ur001-data__figure img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid #d8e2ef;
  border-radius: 14px;
  background: #fff;
}

.cpi-ur001-data__map {
  overflow: hidden;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid #d8e2ef;
  border-radius: 16px;
  background: #f2f6fc;
}

.cpi-ur001-data__map iframe {
  display: block;
  width: 100%;
  height: 100%;
}

.cpi-ur001-data__graph-button {
  display: block;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.cpi-ur001-data__graph-button img {
  transition: opacity .2s ease, transform .2s ease;
}

.cpi-ur001-data__graph-button:hover img {
  opacity: .92;
  transform: translateY(-2px);
}

.cpi-ur001-data__back {
  margin-top: 56px;
  font-weight: 700;
}

@media (max-width: 767px) {
  .cpi-ur001-data__summary div {
    grid-template-columns: 1fr;
  }

  .cpi-ur001-data__summary dt {
    padding-bottom: 8px;
  }

  .cpi-ur001-data__summary dd {
    padding-top: 8px;
  }
}

.top-products .product-card--category .product-card__image--noimage {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  background: #f5f7fb;
  border-bottom: 1px solid #d8e2ef;
}

.top-products .product-card--category .product-card__image--noimage span {
  font-size: 14px;
  font-weight: 700;
  color: #7b8597;
  letter-spacing: .04em;
}

.top-products .product-card--category .product-card__body {
  flex: 1;
  padding: 26px 28px;
}

.top-products .product-card--category .product-card__title {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
}

/* 矢印 */
.top-products__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 5;
}

.top-products__nav--prev {
  left: 0;
}

.top-products__nav--next {
  right: 0;
}

.top-products__nav::before {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  margin: 0 auto;
  border-top: 3px solid #97a6bb;
  border-right: 3px solid #97a6bb;
}

.top-products__nav--prev::before {
  transform: rotate(-135deg);
}

.top-products__nav--next::before {
  transform: rotate(45deg);
}

/* =========================================================
   TOPICS
========================================================= */

.topics-section {
  padding: 72px 0;
  background: #f7fbff;
}

.topics-section__title {
  margin: 0 0 28px;
  text-align: center;
  font-size: 34px;
  line-height: 1.2;
  font-weight: 700;
  color: #203864;
}

.topics-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #dbe3ef;
}

.topics-list__item {
  border-bottom: 1px solid #dbe3ef;
}

.topics-list__link {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  align-items: center;
  padding: 18px 0;
  text-decoration: none;
  color: inherit;
}

.topics-list__date {
  font-size: 14px;
  color: #6b7280;
  white-space: nowrap;
}

.topics-list__title {
  font-size: 16px;
  line-height: 1.6;
  font-weight: 500;
  color: #222;
}

.topics-section__more {
  margin-top: 28px;
  text-align: center;
}

.topics-section__more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 12px 24px;
  border: 1px solid #284f91;
  border-radius: 999px;
  background: #fff;
  color: #284f91;
  font-weight: 700;
  text-decoration: none;
  transition: all .2s ease;
}

.topics-section__more-btn:hover {
  background: #284f91;
  color: #fff;
}

/* =========================================================
   TOP CTA
========================================================= */

.front-page .page-cta,
.front-page .top-cta {
  padding: 72px 0 88px;
}

.front-page .cta-box {
  max-width: 1280px;
  margin: 0 auto;
}

/* =========================================================
   Responsive
========================================================= */

@media (max-width: 1024px) {
  .top-hero {
    min-height: 560px;
    padding: 96px 0 150px;
  }

  .top-search-band {
    margin-top: -72px;
  }

  .top-products__slider-wrap {
    padding: 0 44px;
  }
}

@media (max-width: 767px) {
  .top-hero {
    min-height: auto;
    padding: 64px 0 100px;
  }

  .top-hero__title {
    font-size: 34px;
    line-height: 1.35;
  }

  .top-hero__lead {
    font-size: 14px;
    line-height: 1.9;
  }

  .top-search-band {
    margin-top: -48px;
    padding-bottom: 8px;
  }

  .top-search--hero .probox {
    min-height: 56px !important;
  }

  .top-search--hero .proinput input.orig,
  .top-search--hero .proinput input.autocomplete {
    height: 56px !important;
    font-size: 15px !important;
    padding: 0 16px !important;
  }

  .top-search--hero .promagnifier {
    min-width: 72px !important;
    width: 72px !important;
  }

  .top-search__filters {
    gap: 8px;
    margin-top: 12px;
  }

  .top-search__filters select {
    min-width: 110px;
    height: 40px;
    font-size: 14px;
    padding: 0 10px;
  }

  .top-products {
    padding: 20px 0 48px;
  }

  .top-products__slider-wrap {
    padding: 0 30px;
  }

  .top-products .product-card--category .product-card__body {
    padding: 18px 18px 20px;
  }

  .top-products .product-card--category .product-card__title {
    font-size: 15px;
    line-height: 1.5;
  }

  .top-products__nav {
    width: 28px;
    height: 28px;
  }

  .top-products__nav::before {
    width: 12px;
    height: 12px;
    border-width: 2px;
  }

  .topics-section {
    padding: 56px 0;
  }

  .topics-section__title {
    font-size: 26px;
    margin-bottom: 20px;
  }

  .topics-list__link {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 14px 0;
  }

  .topics-list__date {
    font-size: 13px;
  }

  .topics-list__title {
    font-size: 15px;
    line-height: 1.5;
  }

  .front-page .page-cta,
  .front-page .top-cta {
    padding: 56px 0 72px;
  }
}

/* =========================================================
   Category Archive (TOPICS / BLOG)
========================================================= */

.archive-posts {
  background: #fff;
}

.archive-posts__hero {
  padding: 72px 0 56px;
  background: linear-gradient(135deg, #f7fbff 0%, #eef4fb 100%);
  border-bottom: 1px solid #e5e7eb;
}

.archive-posts__hero-content {
  text-align: center;
}

.archive-posts__title {
  margin: 0 0 12px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.2;
  font-weight: 700;
  color: #0b356b;
}

.archive-posts__lead {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: #5b6575;
}

.archive-posts__section {
  padding-top: 64px;
  padding-bottom: 88px;
}

.archive-posts__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #dbe3ef;
}

.archive-posts__item {
  border-bottom: 1px solid #dbe3ef;
}

.archive-posts__link {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  align-items: start;
  padding: 22px 0;
  text-decoration: none;
  color: inherit;
  transition: opacity .2s ease;
}

.archive-posts__link:hover {
  opacity: .78;
}

.archive-posts__date {
  font-size: 14px;
  line-height: 1.6;
  color: #6b7280;
  white-space: nowrap;
}

.archive-posts__body {
  min-width: 0;
}

.archive-posts__item-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  font-weight: 600;
  color: #1f2937;
}

.archive-posts__excerpt {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: #64748b;
}

.archive-posts__pagination {
  margin-top: 36px;
  text-align: center;
}

.archive-posts__pagination .nav-links {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.archive-posts__pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid #d8e2ef;
  border-radius: 999px;
  background: #fff;
  color: #0b356b;
  text-decoration: none;
  font-weight: 600;
}

.archive-posts__pagination .page-numbers.current {
  background: #2161ab;
  border-color: #2161ab;
  color: #fff;
}

.archive-posts__empty {
  margin: 0;
  font-size: 15px;
  color: #64748b;
}

@media (max-width: 767px) {
  .archive-posts__hero {
    padding: 56px 0 40px;
  }

  .archive-posts__title {
    font-size: 30px;
  }

  .archive-posts__lead {
    font-size: 14px;
  }

  .archive-posts__section {
    padding-top: 48px;
    padding-bottom: 64px;
  }

  .archive-posts__link {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px 0;
  }

  .archive-posts__date {
    font-size: 13px;
  }

  .archive-posts__item-title {
    font-size: 16px;
    line-height: 1.55;
  }

  .archive-posts__excerpt {
    font-size: 13px;
    line-height: 1.7;
  }
}

/* =========================================================
   FRONT PAGE CLEANUP
   最後に置いて上書き確定
========================================================= */

/* ---------- TOP HERO ---------- */
.front-page {
  background: #fff;
}

.top-hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  padding: 120px 0 140px;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.top-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(8, 32, 76, 0.18), rgba(8, 32, 76, 0.18));
  z-index: 1;
}

.top-hero__inner {
  position: relative;
  z-index: 2;
}

.top-hero__content {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  color: #fff;
}

.top-hero__title {
  margin: 0 0 24px;
  font-size: clamp(34px, 4.6vw, 70px);
  line-height: 1.25;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
}

.top-hero__lead {
  margin: 0;
  font-size: clamp(16px, 1.5vw, 22px);
  line-height: 2;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* HEROカーブはいったん無効化して最後に再調整 */
.top-hero__curve {
  display: none !important;
}

/* ---------- SEARCH BAND ---------- */
.top-search-band {
  position: relative;
  z-index: 4;
  margin-top: -64px;
  padding: 0 0 24px;
  background: transparent;
}

.top-search-band__inner {
  position: relative;
}

.top-search--hero {
  max-width: 980px;
  margin: 0 auto;
}

.top-search--hero .asl_w_container {
  margin: 0 !important;
  box-shadow: none !important;
}

.top-search--hero .probox,
.top-search--hero .promagnifier,
.top-search--hero .proinput,
.top-search--hero .proclose {
  box-shadow: none !important;
}

.top-search--hero .probox {
  min-height: 72px !important;
  border-radius: 999px !important;
  overflow: hidden !important;
  border: 1px solid #d7dfeb !important;
  background: #fff !important;
}

.top-search--hero .proinput input.orig,
.top-search--hero .proinput input.autocomplete {
  height: 72px !important;
  font-size: 18px !important;
  padding: 0 24px !important;
}

.top-search--hero .promagnifier {
  min-width: 110px !important;
  width: 110px !important;
  background: #3569b8 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.top-search--hero .promagnifier svg {
  fill: #fff !important;
}

.top-search__filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.top-search__filters select {
  min-width: 180px;
  height: 48px;
  padding: 0 16px;
  border: 1px solid #d7dfeb;
  border-radius: 10px;
  background: #fff;
  color: #1f2937;
  font-size: 16px;
}

/* ---------- CATEGORY SLIDER ---------- */
.top-products {
  padding: 24px 0 72px;
}

.top-products__slider-wrap {
  position: relative;
  padding: 0 58px;
}

.top-products .swiper-slide {
  height: auto;
}

.top-products .product-card--category {
  height: 100%;
}

.top-products .product-card--category .product-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.top-products .product-card--category .product-card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #f5f7fb;
  border-bottom: 1px solid #d8e2ef;
}

.top-products .product-card--category .product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 78% center;
  transform: scale(1.08);
  display: block;
}

.top-products .product-card--category .product-card__image--noimage {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  background: #f5f7fb;
  border-bottom: 1px solid #d8e2ef;
}

.top-products .product-card--category .product-card__image--noimage span {
  font-size: 14px;
  font-weight: 700;
  color: #7b8597;
  letter-spacing: .04em;
}

.top-products .product-card--category .product-card__body {
  flex: 1;
  padding: 22px 24px;
}

.top-products .product-card--category .product-card__title {
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
}

.top-products__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 5;
}

.top-products__nav--prev {
  left: 0;
}

.top-products__nav--next {
  right: 0;
}

.top-products__nav::before {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  margin: 0 auto;
  border-top: 3px solid #97a6bb;
  border-right: 3px solid #97a6bb;
}

.top-products__nav--prev::before {
  transform: rotate(-135deg);
}

.top-products__nav--next::before {
  transform: rotate(45deg);
}

/* ---------- TOPICS ---------- */
.topics-section {
  padding: 72px 0;
  background: #f7fbff;
}

.topics-section__title {
  margin: 0 0 28px;
  text-align: center;
  font-size: 34px;
  line-height: 1.2;
  font-weight: 700;
  color: #203864;
}

.topics-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #dbe3ef;
}

.topics-list__item {
  border-bottom: 1px solid #dbe3ef;
}

.topics-list__link {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  align-items: center;
  padding: 18px 0;
  text-decoration: none;
  color: inherit;
}

.topics-list__date {
  font-size: 14px;
  color: #6b7280;
  white-space: nowrap;
}

.topics-list__title {
  font-size: 16px;
  line-height: 1.6;
  font-weight: 500;
  color: #222;
}

.topics-section__more {
  margin-top: 28px;
  text-align: center;
}

.topics-section__more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 12px 24px;
  border: 1px solid #284f91;
  border-radius: 999px;
  background: #fff;
  color: #284f91;
  font-weight: 700;
  text-decoration: none;
  transition: all .2s ease;
}

.topics-section__more-btn:hover {
  background: #284f91;
  color: #fff;
}

/* ---------- TOP CTA ---------- */
.front-page .page-cta,
.front-page .top-cta {
  padding: 72px 0 88px;
}

.front-page .cta-box {
  max-width: 1280px;
  margin: 0 auto;
}

/* ---------- SP ---------- */
@media (max-width: 1024px) {
  .top-hero {
    min-height: 560px;
    padding: 96px 0 120px;
  }

  .top-search-band {
    margin-top: -52px;
  }

  .top-products__slider-wrap {
    padding: 0 44px;
  }
}

@media (max-width: 767px) {
  .top-hero {
    min-height: auto;
    padding: 64px 0 88px;
  }

  .top-hero__title {
    font-size: 34px;
    line-height: 1.35;
  }

  .top-hero__lead {
    font-size: 14px;
    line-height: 1.9;
  }

  .top-search-band {
    margin-top: -36px;
    padding-bottom: 8px;
  }

  .top-search--hero .probox {
    min-height: 56px !important;
  }

  .top-search--hero .proinput input.orig,
  .top-search--hero .proinput input.autocomplete {
    height: 56px !important;
    font-size: 15px !important;
    padding: 0 16px !important;
  }

  .top-search--hero .promagnifier {
    min-width: 72px !important;
    width: 72px !important;
  }

  .top-search__filters {
    gap: 8px;
    margin-top: 12px;
  }

  .top-search__filters select {
    min-width: 110px;
    height: 40px;
    font-size: 14px;
    padding: 0 10px;
  }

  .top-products {
    padding: 20px 0 48px;
  }

  .top-products__slider-wrap {
    padding: 0 30px;
  }

  .top-products .product-card--category .product-card__body {
    padding: 18px 18px 20px;
  }

  .top-products .product-card--category .product-card__title {
    font-size: 15px;
    line-height: 1.5;
  }

  .top-products__nav {
    width: 28px;
    height: 28px;
  }

  .top-products__nav::before {
    width: 12px;
    height: 12px;
    border-width: 2px;
  }

  .topics-section {
    padding: 56px 0;
  }

  .topics-section__title {
    font-size: 26px;
    margin-bottom: 20px;
  }

  .topics-list__link {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 14px 0;
  }

  .topics-list__date {
    font-size: 13px;
  }

  .topics-list__title {
    font-size: 15px;
    line-height: 1.5;
  }

  .front-page .page-cta,
  .front-page .top-cta {
    padding: 56px 0 72px;
  }
}

/* =========================================
   Post nav / Blog back button
========================================= */

.post-backlink,
.single-post__back,
.article-backlink {
  margin: 28px 0 0;
}

.post-backlink a,
.single-post__back a,
.article-backlink a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  min-height: 56px;
  padding: 0 24px;
  border: 1.5px solid #2f5fa7;
  border-radius: 999px;
  background: #fff;
  color: #2f5fa7;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  transition: all 0.2s ease;
}

.post-backlink a:hover,
.single-post__back a:hover,
.article-backlink a:hover {
  background: #2f5fa7;
  color: #fff;
  transform: translateY(-1px);
}

/* 記事内の「こちらをクリック」系も少し整える */
.entry-content .wp-block-button__link,
.product-content .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  min-height: 56px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1.5px solid #2f5fa7;
  background: #fff;
  color: #2f5fa7 !important;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.entry-content .wp-block-button__link:hover,
.product-content .wp-block-button__link:hover {
  background: #2f5fa7;
  color: #fff !important;
}

/* =========================================
   Download hub table compact
========================================= */

.pdl-hub__table,
.download-hub__table,
.product-download-hub__table {
  width: 100%;
  table-layout: fixed;
}

/* もし grid ベースならこちらが効く */
.pdl-hub__row,
.download-hub__row {
  grid-template-columns: minmax(260px, 1.8fr) repeat(5, minmax(120px, 0.9fr)) !important;
}

/* 製品列 */
.pdl-hub__product,
.download-hub__product {
  min-width: 0;
}

.pdl-hub__product-title,
.download-hub__product-title,
.pdl-hub__name,
.download-hub__name {
  font-size: 17px;
  line-height: 1.45;
}

.pdl-hub__product-code,
.download-hub__product-code,
.pdl-hub__code,
.download-hub__code {
  font-size: 13px;
  line-height: 1.4;
  color: #7a8598;
}

/* 各資料セル */
.pdl-hub__cell,
.download-hub__cell {
  min-width: 0;
  padding-left: 10px;
  padding-right: 10px;
}

/* ボタンをコンパクト化 */
.pdl-hub__download-btn,
.download-hub__download-btn,
.product-download-table__link {
  min-width: 112px !important;
  min-height: 40px !important;
  padding: 8px 14px !important;
  font-size: 15px !important;
  line-height: 1.2 !important;
  border-width: 1.5px !important;
  border-radius: 999px !important;
  white-space: nowrap;
}

/* 見出しの文字も少し締める */
.pdl-hub__head,
.download-hub__head,
.product-download-table__row--head .product-download-table__cell {
  font-size: 15px;
}

/* 製品サムネを少し小さく */
.pdl-hub__thumb,
.download-hub__thumb {
  width: 84px;
  min-width: 84px;
}

.pdl-hub__thumb img,
.download-hub__thumb img {
  width: 84px;
  height: auto;
}

/* 1280以下でさらに締める */
@media (max-width: 1280px) {
  .pdl-hub__row,
  .download-hub__row {
    grid-template-columns: minmax(220px, 1.6fr) repeat(5, minmax(104px, 0.85fr)) !important;
  }

  .pdl-hub__download-btn,
  .download-hub__download-btn,
  .product-download-table__link {
    min-width: 98px !important;
    min-height: 38px !important;
    padding: 7px 12px !important;
    font-size: 14px !important;
  }

  .pdl-hub__product-title,
  .download-hub__product-title,
  .pdl-hub__name,
  .download-hub__name {
    font-size: 16px;
  }
}

/* =========================================================
   Download Hub Table - fix
========================================================= */

.pdl-hub__table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.pdl-hub__table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}

.pdl-hub__table th,
.pdl-hub__table td {
  padding: 18px 12px;
  vertical-align: middle;
  box-sizing: border-box;
}

/* 1列目はしっかり幅を持たせる */
.pdl-hub__table th:first-child,
.pdl-hub__table td:first-child {
  min-width: 420px;
  width: 420px;
}

/* 他の列はややコンパクト */
.pdl-hub__table th:not(:first-child),
.pdl-hub__table td:not(:first-child) {
  min-width: 150px;
  text-align: center;
}

/* 製品情報 */
.pdl-hub__product {
  display: flex;
  align-items: center;
  gap: 18px;
}

.pdl-hub__product img {
  width: 108px;
  min-width: 108px;
  height: auto;
}

.pdl-hub__product span {
  display: block;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 700;
  color: #1f2937;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.pdl-hub__code,
.pdl-hub__product-code {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.4;
  color: #7a8598;
}

/* 見出し */
.pdl-hub__table th {
  font-size: 15px;
  line-height: 1.4;
  white-space: nowrap;
}

/* ボタンだけ小さく */
.pdl-hub__download-btn,
.pdl-hub__table a[class*="download"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  min-height: 38px;
  padding: 6px 14px;
  border: 1.5px solid #2f5fa7;
  border-radius: 999px;
  background: #fff;
  color: #2f5fa7;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  box-sizing: border-box;
}

.pdl-hub__download-btn:hover,
.pdl-hub__table a[class*="download"]:hover {
  background: #2f5fa7;
  color: #fff;
}

/* 1280以下だけ少し詰める */
@media (max-width: 1280px) {
  .pdl-hub__table th:first-child,
  .pdl-hub__table td:first-child {
    min-width: 360px;
    width: 360px;
  }

  .pdl-hub__table th:not(:first-child),
  .pdl-hub__table td:not(:first-child) {
    min-width: 132px;
  }

  .pdl-hub__download-btn,
  .pdl-hub__table a[class*="download"] {
    min-width: 88px;
    min-height: 36px;
    padding: 6px 12px;
    font-size: 12px;
  }
}

.pdl-hub__table th:first-child,
.pdl-hub__table td:first-child {
  min-width: 320px;
  width: 320px;
}

.pdl-hub__table th:not(:first-child),
.pdl-hub__table td:not(:first-child) {
  min-width: 126px;
  text-align: center;
}

.pdl-hub__product {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pdl-hub__product img {
  width: 88px;
  min-width: 88px;
  height: auto;
}

.pdl-hub__product span {
  display: block;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 700;
  color: #1f2937;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.pdl-hub__download-btn,
.pdl-hub__table a[class*="download"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  min-height: 34px;
  padding: 5px 10px;
  border: 1.5px solid #2f5fa7;
  border-radius: 999px;
  background: #fff;
  color: #2f5fa7;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  box-sizing: border-box;
}

/* =========================================
   CPI download hub/table width tuning
   まずは既存CSSの最後に追記
========================================= */

/* テーブル全体 */
.pdl-hub__table,
.download-hub__table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

/* 見出し・セルを少し詰める */
.pdl-hub__table th,
.pdl-hub__table td,
.download-hub__table th,
.download-hub__table td {
  padding: 16px 10px;
  box-sizing: border-box;
  vertical-align: middle;
}

/* 1列目（製品名列）を圧縮 */
.pdl-hub__table th:first-child,
.pdl-hub__table td:first-child,
.download-hub__table th:first-child,
.download-hub__table td:first-child {
  width: 33%;
  min-width: 0;
}

/* 2列目以降を均等寄りに */
.pdl-hub__table th:not(:first-child),
.pdl-hub__table td:not(:first-child),
.download-hub__table th:not(:first-child),
.download-hub__table td:not(:first-child) {
  width: 13.4%;
  min-width: 0;
  text-align: center;
}

/* 見出しを少し小さく、必要なら改行可 */
.pdl-hub__table th,
.download-hub__table th {
  font-size: 13px;
  line-height: 1.35;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* 1列目の中身 */
.pdl-hub__product,
.download-hub__product {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

/* アイキャッチ枠を小さく＆余白を消す */
.pdl-hub__thumb,
.download-hub__thumb {
  width: 72px;
  min-width: 72px;
  flex: 0 0 72px;
  margin: 0;
  padding: 0;
  line-height: 0;
}

.pdl-hub__thumb img,
.download-hub__thumb img {
  display: block;
  width: 72px;
  height: auto;
  margin: 0;
}

/* 製品名側も省スペース */
.pdl-hub__product-info,
.download-hub__product-info {
  min-width: 0;
  flex: 1 1 auto;
}

.pdl-hub__product-title,
.download-hub__product-title,
.pdl-hub__name,
.download-hub__name {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 700;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.pdl-hub__product-code,
.download-hub__product-code,
.pdl-hub__code,
.download-hub__code {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.35;
}

/* ボタンをコンパクト化 */
.pdl-hub__download-btn,
.download-hub__download-btn,
.pdl-hub__table a[class*="download"],
.download-hub__table a[class*="download"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  min-height: 36px;
  padding: 6px 12px;
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
  box-sizing: border-box;
  border-radius: 999px;
}

/* ハイフンだけのセルも中央に */
.pdl-hub__table td,
.download-hub__table td {
  word-break: break-word;
}

/* 1400px以下でさらに少し締める */
@media (max-width: 1400px) {
  .pdl-hub__table th,
  .download-hub__table th {
    font-size: 12px;
  }

  .pdl-hub__thumb,
  .download-hub__thumb {
    width: 64px;
    min-width: 64px;
    flex-basis: 64px;
  }

  .pdl-hub__thumb img,
  .download-hub__thumb img {
    width: 64px;
  }

  .pdl-hub__product-title,
  .download-hub__product-title,
  .pdl-hub__name,
  .download-hub__name {
    font-size: 13px;
  }

  .pdl-hub__download-btn,
  .download-hub__download-btn,
  .pdl-hub__table a[class*="download"],
  .download-hub__table a[class*="download"] {
    min-width: 84px;
    min-height: 34px;
    padding: 5px 10px;
    font-size: 12px;
  }
}

/* 1200px以下では見出しだけ2行許容 */
@media (max-width: 1200px) {
  .pdl-hub__table th,
  .download-hub__table th {
    font-size: 11px;
    line-height: 1.3;
  }
}

/* SPは横スクロール許容（PC優先で調整） */
@media (max-width: 767px) {
  .pdl-hub__table-wrap,
  .download-hub__table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .pdl-hub__table,
  .download-hub__table {
    min-width: 960px;
    table-layout: auto;
  }
}

.pdl-hub__table th,
.download-hub__table th {
  word-break: keep-all;
}

.pdl-hub__table th:nth-child(5),
.download-hub__table th:nth-child(5) {
  letter-spacing: -0.02em;
}
/* =========================================
   FINAL OVERRIDE : DOWNLOAD HUB TABLE 2026-04-07
   現行style.cssを維持しつつ、ダウンロード表だけ最終上書き
========================================= */

.pdl-hub__table-wrap,
.download-hub__table-wrap,
.product-download-hub__table-wrap {
  width: 100%;
  overflow-x: visible;
}

.pdl-hub__table,
.download-hub__table,
.product-download-hub__table {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

.pdl-hub__table th,
.pdl-hub__table td,
.download-hub__table th,
.download-hub__table td,
.product-download-hub__table th,
.product-download-hub__table td {
  padding: 14px 10px;
  vertical-align: middle;
  box-sizing: border-box;
}

.pdl-hub__table th,
.download-hub__table th,
.product-download-hub__table th {
  font-size: 12px;
  line-height: 1.35;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-align: center;
}

.pdl-hub__table th:first-child,
.pdl-hub__table td:first-child,
.download-hub__table th:first-child,
.download-hub__table td:first-child,
.product-download-hub__table th:first-child,
.product-download-hub__table td:first-child {
  width: 34% !important;
  min-width: 0 !important;
}

.pdl-hub__table th:not(:first-child),
.pdl-hub__table td:not(:first-child),
.download-hub__table th:not(:first-child),
.download-hub__table td:not(:first-child),
.product-download-hub__table th:not(:first-child),
.product-download-hub__table td:not(:first-child) {
  width: 13.2% !important;
  min-width: 0 !important;
  text-align: center;
}

.pdl-hub__product,
.download-hub__product,
.product-download-hub__product {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.pdl-hub__thumb,
.download-hub__thumb,
.product-download-hub__thumb,
.pdl-hub__product img,
.download-hub__product img,
.product-download-hub__product img {
  width: 64px !important;
  min-width: 64px !important;
  flex: 0 0 64px;
  margin: 0;
  padding: 0;
  line-height: 0;
  height: auto;
}

.pdl-hub__thumb img,
.download-hub__thumb img,
.product-download-hub__thumb img {
  display: block;
  width: 64px !important;
  height: auto;
  margin: 0;
}

.pdl-hub__product-info,
.download-hub__product-info,
.product-download-hub__product-info {
  min-width: 0;
  flex: 1 1 auto;
}

.pdl-hub__product-title,
.download-hub__product-title,
.product-download-hub__product-title,
.pdl-hub__name,
.download-hub__name,
.product-download-hub__name,
.pdl-hub__product span,
.download-hub__product span,
.product-download-hub__product span {
  margin: 0;
  font-size: 14px !important;
  line-height: 1.45;
  font-weight: 700;
  color: #1f2937;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.pdl-hub__product-code,
.download-hub__product-code,
.product-download-hub__product-code,
.pdl-hub__code,
.download-hub__code,
.product-download-hub__code {
  display: block;
  margin-top: 6px;
  font-size: 12px !important;
  line-height: 1.35;
  color: #7a8598;
}

.pdl-hub__cell,
.download-hub__cell,
.product-download-hub__cell {
  min-width: 0;
  padding-left: 8px;
  padding-right: 8px;
}

.pdl-hub__download-btn,
.download-hub__download-btn,
.product-download-hub__download-btn,
.pdl-hub__table a[class*="download"],
.download-hub__table a[class*="download"],
.product-download-hub__table a[class*="download"],
.product-download-table__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px !important;
  min-height: 34px !important;
  padding: 5px 10px !important;
  border: 1.5px solid #2f5fa7;
  border-radius: 999px !important;
  background: #fff;
  color: #2f5fa7;
  font-size: 12px !important;
  font-weight: 700;
  line-height: 1.2 !important;
  white-space: nowrap;
  text-decoration: none;
  box-sizing: border-box;
}

.pdl-hub__download-btn:hover,
.download-hub__download-btn:hover,
.product-download-hub__download-btn:hover,
.pdl-hub__table a[class*="download"]:hover,
.download-hub__table a[class*="download"]:hover,
.product-download-hub__table a[class*="download"]:hover,
.product-download-table__link:hover {
  background: #2f5fa7;
  color: #fff;
}

@media (max-width: 1400px) {
  .pdl-hub__table th,
  .download-hub__table th,
  .product-download-hub__table th {
    font-size: 11px;
  }

  .pdl-hub__thumb,
  .download-hub__thumb,
  .product-download-hub__thumb,
  .pdl-hub__product img,
  .download-hub__product img,
  .product-download-hub__product img {
    width: 56px !important;
    min-width: 56px !important;
    flex-basis: 56px;
  }

  .pdl-hub__product-title,
  .download-hub__product-title,
  .product-download-hub__product-title,
  .pdl-hub__name,
  .download-hub__name,
  .product-download-hub__name,
  .pdl-hub__product span,
  .download-hub__product span,
  .product-download-hub__product span {
    font-size: 13px !important;
  }

  .pdl-hub__download-btn,
  .download-hub__download-btn,
  .product-download-hub__download-btn,
  .pdl-hub__table a[class*="download"],
  .download-hub__table a[class*="download"],
  .product-download-hub__table a[class*="download"],
  .product-download-table__link {
    min-width: 78px !important;
    min-height: 32px !important;
    padding: 4px 8px !important;
    font-size: 11px !important;
  }
}

@media (max-width: 1200px) {
  .pdl-hub__table th:first-child,
  .pdl-hub__table td:first-child,
  .download-hub__table th:first-child,
  .download-hub__table td:first-child,
  .product-download-hub__table th:first-child,
  .product-download-hub__table td:first-child {
    width: 32% !important;
  }

  .pdl-hub__table th:not(:first-child),
  .pdl-hub__table td:not(:first-child),
  .download-hub__table th:not(:first-child),
  .download-hub__table td:not(:first-child),
  .product-download-hub__table th:not(:first-child),
  .product-download-hub__table td:not(:first-child) {
    width: 13.6% !important;
  }
}

@media (max-width: 767px) {
  .pdl-hub__table-wrap,
  .download-hub__table-wrap,
  .product-download-hub__table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .pdl-hub__table,
  .download-hub__table,
  .product-download-hub__table {
    min-width: 900px;
    table-layout: auto;
  }
}

/* =========================================================
   Download Hub Table - FINAL OVERRIDE v2
   vertical text collapse fix
========================================================= */

.pdl-hub__table-wrap,
.download-hub__table-wrap,
.product-download-hub__table-wrap {
  width: 100%;
  overflow-x: visible !important;
  -webkit-overflow-scrolling: touch;
}

.pdl-hub__table,
.download-hub__table,
.product-download-hub__table {
  width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed !important;
  border-collapse: collapse;
}

.pdl-hub__table th,
.pdl-hub__table td,
.download-hub__table th,
.download-hub__table td,
.product-download-hub__table th,
.product-download-hub__table td {
  padding: 16px 10px !important;
  vertical-align: middle !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  white-space: normal;
}

.pdl-hub__table th,
.download-hub__table th,
.product-download-hub__table th {
  background: #f3effb;
  color: #203864;
  font-size: 12px !important;
  line-height: 1.35 !important;
  font-weight: 700;
  text-align: center;
}

.pdl-hub__table td,
.download-hub__table td,
.product-download-hub__table td {
  text-align: center;
}

/* 1列目 */
.pdl-hub__table th:first-child,
.pdl-hub__table td:first-child,
.download-hub__table th:first-child,
.download-hub__table td:first-child,
.product-download-hub__table th:first-child,
.product-download-hub__table td:first-child {
  width: 34% !important;
  min-width: 0 !important;
  text-align: left !important;
}

/* 2列目以降 */
.pdl-hub__table th:not(:first-child),
.pdl-hub__table td:not(:first-child),
.download-hub__table th:not(:first-child),
.download-hub__table td:not(:first-child),
.product-download-hub__table th:not(:first-child),
.product-download-hub__table td:not(:first-child) {
  width: 13.2% !important;
  min-width: 0 !important;
  text-align: center !important;
}

/* 製品情報ブロック */
.pdl-hub__product,
.download-hub__product,
.product-download-hub__product,
.pdl-hub__product-link,
.download-hub__product-link {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  min-width: 0 !important;
  width: 100%;
  text-align: left !important;
}

/* サムネ */
.pdl-hub__thumb,
.download-hub__thumb,
.product-download-hub__thumb {
  width: 64px !important;
  min-width: 64px !important;
  flex: 0 0 64px !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0;
}

.pdl-hub__thumb img,
.download-hub__thumb img,
.product-download-hub__thumb img,
.pdl-hub__product img,
.download-hub__product img {
  display: block;
  width: 64px !important;
  min-width: 64px !important;
  height: auto !important;
  object-fit: contain;
  margin: 0 !important;
}

/* 製品テキスト */
.pdl-hub__product-info,
.download-hub__product-info,
.product-download-hub__product-info,
.pdl-hub__product-text,
.download-hub__product-text {
  display: block;
  min-width: 0 !important;
  flex: 1 1 auto;
}

.pdl-hub__product-title,
.download-hub__product-title,
.pdl-hub__name,
.download-hub__name,
.pdl-hub__product-name,
.download-hub__product-name,
.pdl-hub__product span,
.download-hub__product span {
  display: block !important;
  margin: 0 !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
  font-weight: 700;
  color: #1f2937;
  white-space: normal !important;
  word-break: keep-all !important;
  overflow-wrap: break-word !important;
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
}

.pdl-hub__product-code,
.download-hub__product-code,
.pdl-hub__code,
.download-hub__code {
  display: block !important;
  margin-top: 6px !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
  color: #6b7280;
  white-space: normal !important;
  word-break: normal !important;
  writing-mode: horizontal-tb !important;
}

/* ボタン */
.pdl-hub__download-btn,
.download-hub__download-btn,
.product-download-table__link,
.pdl-hub__table a[class*="download"],
.download-hub__table a[class*="download"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 82px !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 5px 10px !important;
  border: 1.5px solid #2f5fa7 !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #2f5fa7 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
}

.pdl-hub__download-btn:hover,
.download-hub__download-btn:hover,
.product-download-table__link:hover,
.pdl-hub__table a[class*="download"]:hover,
.download-hub__table a[class*="download"]:hover {
  background: #2f5fa7 !important;
  color: #fff !important;
}

.pdl-hub__na,
.download-hub__na {
  color: #8b95a7;
}

@media (max-width: 1280px) {
  .pdl-hub__table th,
  .download-hub__table th,
  .product-download-hub__table th {
    font-size: 11px !important;
  }

  .pdl-hub__table th:first-child,
  .pdl-hub__table td:first-child,
  .download-hub__table th:first-child,
  .download-hub__table td:first-child,
  .product-download-hub__table th:first-child,
  .product-download-hub__table td:first-child {
    width: 32% !important;
  }

  .pdl-hub__table th:not(:first-child),
  .pdl-hub__table td:not(:first-child),
  .download-hub__table th:not(:first-child),
  .download-hub__table td:not(:first-child),
  .product-download-hub__table th:not(:first-child),
  .product-download-hub__table td:not(:first-child) {
    width: 13.6% !important;
  }

  .pdl-hub__thumb,
  .download-hub__thumb,
  .product-download-hub__thumb,
  .pdl-hub__thumb img,
  .download-hub__thumb img,
  .product-download-hub__thumb img,
  .pdl-hub__product img,
  .download-hub__product img {
    width: 56px !important;
    min-width: 56px !important;
    flex-basis: 56px !important;
  }

  .pdl-hub__product-title,
  .download-hub__product-title,
  .pdl-hub__name,
  .download-hub__name,
  .pdl-hub__product-name,
  .download-hub__product-name,
  .pdl-hub__product span,
  .download-hub__product span {
    font-size: 13px !important;
  }

  .pdl-hub__download-btn,
  .download-hub__download-btn,
  .product-download-table__link,
  .pdl-hub__table a[class*="download"],
  .download-hub__table a[class*="download"] {
    min-width: 74px !important;
    height: 32px !important;
    min-height: 32px !important;
    padding: 4px 8px !important;
    font-size: 11px !important;
  }
}

@media (max-width: 767px) {
  .pdl-hub__table-wrap,
  .download-hub__table-wrap,
  .product-download-hub__table-wrap {
    overflow-x: auto !important;
  }

  .pdl-hub__table,
  .download-hub__table,
  .product-download-hub__table {
    min-width: 920px !important;
    table-layout: fixed !important;
  }
}

/* =========================================
   pdl-hub product cell fix
   一番最後に追記
========================================= */

/* セル自体 */
.pdl-hub__table td.pdl-hub__product {
  width: 30%;
  min-width: 320px;
  padding: 14px 16px;
  text-align: left;
  vertical-align: middle;
}

/* リンク全体を横並びコンテナ化 */
.pdl-hub__table td.pdl-hub__product > .pdl-hub__product-link {
  display: flex !important;
  align-items: center !important;
  gap: 14px;
  width: 100%;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

/* 画像 */
.pdl-hub__table td.pdl-hub__product > .pdl-hub__product-link > img {
  display: block;
  width: 72px;
  min-width: 72px;
  max-width: 72px;
  height: auto;
  flex: 0 0 72px;
  margin: 0;
}

/* テキスト親 */
.pdl-hub__table .pdl-hub__product-text {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
  width: auto;
}

/* 製品名 */
.pdl-hub__table .pdl-hub__product-name {
  display: block !important;
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 700;
  writing-mode: horizontal-tb !important;
  white-space: normal !important;
  word-break: keep-all !important;
  overflow-wrap: anywhere !important;
  line-break: auto;
}

/* 型番 */
.pdl-hub__table .pdl-hub__product-code {
  display: block !important;
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 700;
  color: #1f2937;
  writing-mode: horizontal-tb !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: anywhere !important;
}

/* 念のため、製品セル内のspan全部を横書きに固定 */
.pdl-hub__table td.pdl-hub__product span {
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
}

/* ほかの列を少し締める */
.pdl-hub__table th,
.pdl-hub__table td {
  padding-left: 10px;
  padding-right: 10px;
}

.pdl-hub__table th {
  font-size: 12px;
  line-height: 1.3;
  white-space: normal;
}

/* Downloadボタンを少しだけ小さく */
.pdl-hub__download-btn,
.pdl-hub__table td a.pdl-hub__download-btn {
  min-width: 96px;
  height: 40px;
  padding: 6px 14px;
  font-size: 13px;
  line-height: 1;
}

/* 更新日、サイズ、バージョンを詰める */
.pdl-hub__table th:nth-child(7),
.pdl-hub__table td:nth-child(7),
.pdl-hub__table th:nth-child(8),
.pdl-hub__table td:nth-child(8),
.pdl-hub__table th:nth-child(9),
.pdl-hub__table td:nth-child(9) {
  white-space: nowrap;
  width: 8.5%;
}

/* サポートソフトウェア列 */
.pdl-hub__table th:nth-child(5),
.pdl-hub__table td:nth-child(5) {
  width: 10%;
}

/* 技術資料列 */
.pdl-hub__table th:nth-child(6),
.pdl-hub__table td:nth-child(6) {
  width: 9%;
}

/* もし table 側に min-width が入っていたら無効化 */
.pdl-hub__table {
  width: 100%;
  min-width: 0 !important;
  table-layout: fixed;
}

@media (max-width: 1400px) {
  .pdl-hub__table td.pdl-hub__product {
    min-width: 280px;
  }

  .pdl-hub__table td.pdl-hub__product > .pdl-hub__product-link > img {
    width: 64px;
    min-width: 64px;
    max-width: 64px;
    flex-basis: 64px;
  }

  .pdl-hub__table .pdl-hub__product-name {
    font-size: 15px;
  }

  .pdl-hub__table .pdl-hub__product-code {
    font-size: 13px;
  }

  .pdl-hub__download-btn,
  .pdl-hub__table td a.pdl-hub__download-btn {
    min-width: 88px;
    height: 36px;
    font-size: 12px;
  }
}

@media (max-width: 767px) {
  .pdl-hub__table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .pdl-hub__table {
    min-width: 1200px !important;
    table-layout: auto;
  }

  .pdl-hub__table td.pdl-hub__product {
    min-width: 260px;
  }
}

/* =========================================
   pdl-hub product cell fix
   一番最後に追記
========================================= */

/* セル自体 */
.pdl-hub__table td.pdl-hub__product {
  width: 30%;
  min-width: 320px;
  padding: 14px 16px;
  text-align: left;
  vertical-align: middle;
}

/* リンク全体を横並びコンテナ化 */
.pdl-hub__table td.pdl-hub__product > .pdl-hub__product-link {
  display: flex !important;
  align-items: center !important;
  gap: 14px;
  width: 100%;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

/* 画像 */
.pdl-hub__table td.pdl-hub__product > .pdl-hub__product-link > img {
  display: block;
  width: 72px;
  min-width: 72px;
  max-width: 72px;
  height: auto;
  flex: 0 0 72px;
  margin: 0;
}

/* テキスト親 */
.pdl-hub__table .pdl-hub__product-text {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
  width: auto;
}

/* 製品名 */
.pdl-hub__table .pdl-hub__product-name {
  display: block !important;
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 700;
  writing-mode: horizontal-tb !important;
  white-space: normal !important;
  word-break: keep-all !important;
  overflow-wrap: anywhere !important;
  line-break: auto;
}

/* 型番 */
.pdl-hub__table .pdl-hub__product-code {
  display: block !important;
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 700;
  color: #1f2937;
  writing-mode: horizontal-tb !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: anywhere !important;
}

/* 念のため、製品セル内のspan全部を横書きに固定 */
.pdl-hub__table td.pdl-hub__product span {
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
}

/* ほかの列を少し締める */
.pdl-hub__table th,
.pdl-hub__table td {
  padding-left: 10px;
  padding-right: 10px;
}

.pdl-hub__table th {
  font-size: 12px;
  line-height: 1.3;
  white-space: normal;
}

/* Downloadボタンを少しだけ小さく */
.pdl-hub__download-btn,
.pdl-hub__table td a.pdl-hub__download-btn {
  min-width: 96px;
  height: 40px;
  padding: 6px 14px;
  font-size: 13px;
  line-height: 1;
}

/* 更新日、サイズ、バージョンを詰める */
.pdl-hub__table th:nth-child(7),
.pdl-hub__table td:nth-child(7),
.pdl-hub__table th:nth-child(8),
.pdl-hub__table td:nth-child(8),
.pdl-hub__table th:nth-child(9),
.pdl-hub__table td:nth-child(9) {
  white-space: nowrap;
  width: 8.5%;
}

/* サポートソフトウェア列 */
.pdl-hub__table th:nth-child(5),
.pdl-hub__table td:nth-child(5) {
  width: 10%;
}

/* 技術資料列 */
.pdl-hub__table th:nth-child(6),
.pdl-hub__table td:nth-child(6) {
  width: 9%;
}

/* もし table 側に min-width が入っていたら無効化 */
.pdl-hub__table {
  width: 100%;
  min-width: 0 !important;
  table-layout: fixed;
}

@media (max-width: 1400px) {
  .pdl-hub__table td.pdl-hub__product {
    min-width: 280px;
  }

  .pdl-hub__table td.pdl-hub__product > .pdl-hub__product-link > img {
    width: 64px;
    min-width: 64px;
    max-width: 64px;
    flex-basis: 64px;
  }

  .pdl-hub__table .pdl-hub__product-name {
    font-size: 15px;
  }

  .pdl-hub__table .pdl-hub__product-code {
    font-size: 13px;
  }

  .pdl-hub__download-btn,
  .pdl-hub__table td a.pdl-hub__download-btn {
    min-width: 88px;
    height: 36px;
    font-size: 12px;
  }
}

@media (max-width: 767px) {
  .pdl-hub__table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .pdl-hub__table {
    min-width: 1200px !important;
    table-layout: auto;
  }

  .pdl-hub__table td.pdl-hub__product {
    min-width: 260px;
  }
}
.pdl-hub__product-link { display:flex !important; }
.pdl-hub__product-text { display:flex !important; flex-direction:column; }
.pdl-hub__product-name { writing-mode:horizontal-tb !important; word-break:keep-all !important; }

/* =========================================
   download hub final authority
========================================= */
.pdl-hub {
  overflow-x: clip;
}

.pdl-hub__table-wrap {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
}

.pdl-hub__table {
  width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed !important;
}

.pdl-hub__table .pdl-hub__col--product {
  width: 30% !important;
}

.pdl-hub__table .pdl-hub__col--catalog,
.pdl-hub__table .pdl-hub__col--manual,
.pdl-hub__table .pdl-hub__col--firmware,
.pdl-hub__table .pdl-hub__col--tech {
  width: 9.5% !important;
}

.pdl-hub__table .pdl-hub__col--support {
  width: 11% !important;
}

.pdl-hub__table .pdl-hub__col--date,
.pdl-hub__table .pdl-hub__col--size {
  width: 11% !important;
}

.pdl-hub__table .pdl-hub__col--version {
  width: 8.5% !important;
}

.pdl-hub__table th,
.pdl-hub__table td {
  min-width: 0 !important;
  padding: 14px 10px !important;
  vertical-align: middle !important;
}

.pdl-hub__table th:nth-child(1),
.pdl-hub__table td:nth-child(1) {
  width: 30% !important;
}

.pdl-hub__table th:nth-child(2),
.pdl-hub__table td:nth-child(2),
.pdl-hub__table th:nth-child(3),
.pdl-hub__table td:nth-child(3),
.pdl-hub__table th:nth-child(4),
.pdl-hub__table td:nth-child(4),
.pdl-hub__table th:nth-child(6),
.pdl-hub__table td:nth-child(6) {
  width: 9.5% !important;
}

.pdl-hub__table th:nth-child(5),
.pdl-hub__table td:nth-child(5) {
  width: 11% !important;
}

.pdl-hub__table th:nth-child(7),
.pdl-hub__table td:nth-child(7),
.pdl-hub__table th:nth-child(8),
.pdl-hub__table td:nth-child(8) {
  width: 11% !important;
  white-space: nowrap !important;
}

.pdl-hub__table th:nth-child(9),
.pdl-hub__table td:nth-child(9) {
  width: 8.5% !important;
  white-space: nowrap !important;
}

.pdl-hub__table td.pdl-hub__product {
  width: auto !important;
  min-width: 0 !important;
  padding-inline: 16px 12px !important;
}

.pdl-hub__table td.pdl-hub__product,
.pdl-hub__table td.pdl-hub__product * {
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
}

.pdl-hub__table td.pdl-hub__product > .pdl-hub__product-link {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  min-width: 0 !important;
  width: 100% !important;
}

.pdl-hub__table td.pdl-hub__product > .pdl-hub__product-link > img {
  display: block !important;
  width: 72px !important;
  min-width: 72px !important;
  max-width: 72px !important;
  flex: 0 0 72px !important;
}

.pdl-hub__table .pdl-hub__product-text {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 6px !important;
  min-width: 0 !important;
}

.pdl-hub__table .pdl-hub__product-name,
.pdl-hub__table .pdl-hub__product-code {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: anywhere !important;
  line-break: auto !important;
}

.pdl-hub__table .pdl-hub__product-name {
  font-size: 15px !important;
  line-height: 1.45 !important;
}

.pdl-hub__table .pdl-hub__product-code {
  font-size: 13px !important;
  line-height: 1.4 !important;
}

@media (max-width: 1199px) {
  .pdl-hub__table {
    min-width: 1120px !important;
  }
}

@media (max-width: 767px) {
  .pdl-hub__table {
    min-width: 1120px !important;
  }
}

/* =========================================
   download hub mobile card layout
========================================= */
@media (max-width: 767px) {
  .pdl-hub {
    overflow: visible !important;
  }

  .pdl-hub__form {
    margin-inline: 0 !important;
  }

  .pdl-hub__row--filters {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .pdl-hub__field,
  .pdl-hub__field select,
  .pdl-hub__row--keyword input,
  .products-filter__check,
  .pdl-hub__buttons,
  .pdl-hub__btn {
    width: 100% !important;
  }

  .pdl-hub__table-wrap {
    overflow: visible !important;
  }

  .pdl-hub__table,
  .pdl-hub__table tbody,
  .pdl-hub__table tr,
  .pdl-hub__table td {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .pdl-hub__table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border: 0 !important;
    table-layout: auto !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .pdl-hub__table colgroup,
  .pdl-hub__table thead {
    display: none !important;
  }

  .pdl-hub__table tbody tr {
    margin: 0 0 22px !important;
    padding: 20px !important;
    border: 1px solid #dbe5f2 !important;
    border-radius: 22px !important;
    background: #fff !important;
    box-shadow: 0 14px 34px rgba(11, 53, 107, .08) !important;
  }

  .pdl-hub__table td,
  .pdl-hub__table th,
  .pdl-hub__table td:nth-child(n) {
    width: 100% !important;
    padding: 14px 0 !important;
    border: 0 !important;
    border-top: 1px solid #e8eef7 !important;
    text-align: left !important;
    white-space: normal !important;
  }

  .pdl-hub__table td:first-child {
    border-top: 0 !important;
    padding-top: 0 !important;
  }

  .pdl-hub__table td:not(.pdl-hub__product)::before {
    content: attr(data-label);
    display: inline-flex;
    min-width: 9.5em;
    margin: 0 14px 0 0;
    color: #0f2f60;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
  }

  .pdl-hub__table td.pdl-hub__product {
    padding: 0 0 16px !important;
  }

  .pdl-hub__table td.pdl-hub__product > .pdl-hub__product-link {
    display: grid !important;
    grid-template-columns: 96px minmax(0, 1fr) !important;
    gap: 16px !important;
    align-items: center !important;
  }

  .pdl-hub__table td.pdl-hub__product > .pdl-hub__product-link > img {
    width: 96px !important;
    min-width: 96px !important;
    max-width: 96px !important;
    height: 72px !important;
    object-fit: contain !important;
    border: 1px solid #e8eef7 !important;
    border-radius: 10px !important;
    background: #fff !important;
  }

  .pdl-hub__table .pdl-hub__product-name {
    font-size: 17px !important;
    line-height: 1.55 !important;
  }

  .pdl-hub__table .pdl-hub__product-code {
    margin-top: 4px !important;
    font-size: 14px !important;
  }

  .pdl-hub__download-btn,
  .pdl-hub__table td a.pdl-hub__download-btn {
    width: auto !important;
    min-width: 118px !important;
    max-width: 100% !important;
    height: 38px !important;
    padding: 7px 18px !important;
    font-size: 13px !important;
  }

  .pdl-hub__na {
    display: inline-block !important;
    color: #9aa4b2 !important;
  }
}

/* =========================================================
   Product detail responsive tables - scoped final layer
   Gutenberg may put the custom class on either figure or table.
   Keep desktop untouched; stabilize only product-detail SP tables.
========================================================= */
@media (max-width: 767px) {
  body.single-products {
    overflow-x: hidden;
  }

  .single-products .product-content,
  .single-products .product-overview__body {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  .single-products .product-content {
    overflow-x: hidden;
  }

  .single-products .product-content > *:not(.wp-block-table),
  .single-products .product-content .wp-block-group,
  .single-products .product-content .wp-block-columns,
  .single-products .product-content .wp-block-column,
  .single-products .product-content .wp-block-media-text,
  .single-products .product-content .wp-block-embed,
  .single-products .product-content .wp-block-image,
  .single-products .product-content .wp-block-gallery,
  .single-products .product-content .alignwide,
  .single-products .product-content .alignfull,
  .single-products .product-content figure:not(.wp-block-table) {
    width: auto;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .single-products .product-content p,
  .single-products .product-content li,
  .single-products .product-content figcaption,
  .single-products .product-overview__body p,
  .single-products .product-overview__body li {
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: normal;
  }

  .single-products .product-overview__body ul,
  .single-products .product-overview__body ol,
  .single-products .product-content ul,
  .single-products .product-content ol {
    width: 100%;
    max-width: 100%;
    padding-left: 1.65em !important;
    margin-left: 0 !important;
    margin-top: 0.9em;
    margin-bottom: 1.2em;
    box-sizing: border-box;
    list-style-position: outside;
    overflow: visible;
  }

  .single-products .product-overview__body ol,
  .single-products .product-content ol {
    padding-left: 1.9em !important;
  }

  .single-products .product-overview__body li,
  .single-products .product-content li {
    margin: 0 0 0.55em;
    padding-left: 0;
    font-size: 15px;
    line-height: 1.75;
  }

  .single-products .product-content img,
  .single-products .product-overview__body img {
    max-width: 100% !important;
    height: auto !important;
  }

  .single-products .product-content .wp-block-image,
  .single-products .product-content figure.wp-block-image {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .single-products .product-content .wp-block-image img,
  .single-products .product-content figure.wp-block-image > img,
  .single-products .product-content figure:not(.wp-block-table) > img {
    display: block;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .single-products .product-content .wp-block-table.is-table-scroll,
  .single-products .product-content .wp-block-table.is-table-stack,
  .single-products .product-content .wp-block-table.is-table-compact,
  .single-products .product-content table.is-table-scroll,
  .single-products .product-content table.is-table-stack,
  .single-products .product-content table.is-table-compact,
  .single-products .product-content .cpi-table-scroll-wrap {
    box-sizing: border-box !important;
    max-width: 100% !important;
    -webkit-text-size-adjust: 100% !important;
    text-size-adjust: 100% !important;
  }

  /* Scroll tables: preserve the table shape and keep horizontal scroll inside the block. */
  .single-products .product-content .wp-block-table.is-table-scroll:not(.is-table-stack):not(.is-table-compact),
  .single-products .product-content .cpi-table-scroll-wrap:not(:has(> table.is-table-stack)):not(:has(> table.is-table-compact)) {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 24px 0 32px !important;
    padding: 0 0 8px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-inline: contain;
    scrollbar-color: rgba(47, 99, 184, 0.28) transparent;
    scrollbar-width: thin;
  }

  .single-products .product-content .wp-block-table.is-table-scroll:not(.is-table-stack):not(.is-table-compact)::before,
  .single-products .product-content .cpi-table-scroll-wrap:not(:has(> table.is-table-stack)):not(:has(> table.is-table-compact))::before {
    display: block !important;
    content: "左右にスクロールできます" !important;
    margin: 0 0 8px !important;
    color: #6f7b8d !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
  }

  .single-products .product-content .wp-block-table.is-table-scroll .cpi-table-scroll-wrap::before {
    display: none !important;
    content: none !important;
  }

  .single-products .product-content .cpi-table-scroll-wrap:not(:has(> table.is-table-stack)):not(:has(> table.is-table-compact))::-webkit-scrollbar {
    height: 6px !important;
  }

  .single-products .product-content .cpi-table-scroll-wrap:not(:has(> table.is-table-stack)):not(:has(> table.is-table-compact))::-webkit-scrollbar-thumb {
    background: rgba(47, 99, 184, 0.28) !important;
    border-radius: 999px !important;
  }

  .single-products .product-content .wp-block-table.is-table-scroll:not(.is-table-stack):not(.is-table-compact) table,
  .single-products .product-content .cpi-table-scroll-wrap:not(:has(> table.is-table-stack)):not(:has(> table.is-table-compact)) > table,
  .single-products .product-content table.is-table-scroll:not(.is-table-stack):not(.is-table-compact) {
    display: table !important;
    width: 640px !important;
    min-width: 640px !important;
    max-width: none !important;
    margin: 0 !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    table-layout: fixed !important;
  }

  .single-products .product-content .wp-block-table.is-table-scroll:not(.is-table-stack):not(.is-table-compact) th,
  .single-products .product-content .wp-block-table.is-table-scroll:not(.is-table-stack):not(.is-table-compact) td,
  .single-products .product-content .cpi-table-scroll-wrap:not(:has(> table.is-table-stack)):not(:has(> table.is-table-compact)) > table th,
  .single-products .product-content .cpi-table-scroll-wrap:not(:has(> table.is-table-stack)):not(:has(> table.is-table-compact)) > table td,
  .single-products .product-content table.is-table-scroll:not(.is-table-stack):not(.is-table-compact) th,
  .single-products .product-content table.is-table-scroll:not(.is-table-stack):not(.is-table-compact) td {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    padding: 7px 6px !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
  }

  .single-products .product-content .wp-block-table.is-table-scroll:not(.is-table-stack):not(.is-table-compact) th:first-child,
  .single-products .product-content .wp-block-table.is-table-scroll:not(.is-table-stack):not(.is-table-compact) td:first-child,
  .single-products .product-content .cpi-table-scroll-wrap:not(:has(> table.is-table-stack)):not(:has(> table.is-table-compact)) > table th:first-child,
  .single-products .product-content .cpi-table-scroll-wrap:not(:has(> table.is-table-stack)):not(:has(> table.is-table-compact)) > table td:first-child,
  .single-products .product-content table.is-table-scroll:not(.is-table-stack):not(.is-table-compact) th:first-child,
  .single-products .product-content table.is-table-scroll:not(.is-table-stack):not(.is-table-compact) td:first-child {
    width: 160px !important;
    overflow-wrap: break-word !important;
  }

  .single-products .product-content .cpi-table-scroll-wrap:has(> table.is-table-stack),
  .single-products .product-content .cpi-table-scroll-wrap:has(> table.is-table-compact),
  .single-products .product-content .wp-block-table.is-table-stack .cpi-table-scroll-wrap,
  .single-products .product-content .wp-block-table.is-table-compact .cpi-table-scroll-wrap {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 24px 0 32px !important;
    padding: 0 !important;
    overflow: hidden !important;
    scrollbar-width: auto !important;
  }

  .single-products .product-content .cpi-table-scroll-wrap:has(> table.is-table-stack)::before,
  .single-products .product-content .cpi-table-scroll-wrap:has(> table.is-table-compact)::before,
  .single-products .product-content .wp-block-table.is-table-stack .cpi-table-scroll-wrap::before,
  .single-products .product-content .wp-block-table.is-table-compact .cpi-table-scroll-wrap::before,
  .single-products .product-content .wp-block-table.is-table-stack::before,
  .single-products .product-content table.is-table-stack::before {
    display: none !important;
    content: none !important;
  }

  /* Stack tables: turn each table row into a full-width card. */
  .single-products .product-content .wp-block-table.is-table-stack,
  .single-products .product-content table.is-table-stack {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 24px 0 32px !important;
    padding: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .single-products .product-content .wp-block-table.is-table-stack table,
  .single-products .product-content .wp-block-table.is-table-stack .cpi-table-scroll-wrap > table,
  .single-products .product-content table.is-table-stack {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    table-layout: auto !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .single-products .product-content .wp-block-table.is-table-stack thead,
  .single-products .product-content table.is-table-stack thead {
    display: none !important;
  }

  .single-products .product-content .wp-block-table.is-table-stack tbody,
  .single-products .product-content .wp-block-table.is-table-stack .cpi-table-scroll-wrap > table tbody,
  .single-products .product-content table.is-table-stack tbody {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .single-products .product-content .wp-block-table.is-table-stack tr,
  .single-products .product-content .wp-block-table.is-table-stack .cpi-table-scroll-wrap > table tr,
  .single-products .product-content table.is-table-stack tr {
    display: block !important;
    width: calc(100vw - 32px) !important;
    max-width: 100% !important;
    min-width: 0 !important;
    inline-size: calc(100vw - 32px) !important;
    max-inline-size: 100% !important;
    margin: 0 0 16px !important;
    padding: 16px !important;
    border: 1px solid #d7dce3 !important;
    border-radius: 18px !important;
    background: #fff !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .single-products .product-content .wp-block-table.is-table-stack th,
  .single-products .product-content .wp-block-table.is-table-stack td,
  .single-products .product-content .wp-block-table.is-table-stack .cpi-table-scroll-wrap > table th,
  .single-products .product-content .wp-block-table.is-table-stack .cpi-table-scroll-wrap > table td,
  .single-products .product-content table.is-table-stack th,
  .single-products .product-content table.is-table-stack td {
    display: block !important;
    float: none !important;
    clear: both !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    inline-size: 100% !important;
    max-inline-size: 100% !important;
    margin: 0 !important;
    padding: 5px 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #222 !important;
    text-align: left !important;
    font-size: 13px !important;
    line-height: 1.65 !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  body.single-products .product-content .wp-block-table.is-table-stack table:not(.is-table-scroll):not(.is-table-compact) tr > th,
  body.single-products .product-content .wp-block-table.is-table-stack table:not(.is-table-scroll):not(.is-table-compact) tr > td,
  body.single-products .product-content .wp-block-table.is-table-stack .cpi-table-scroll-wrap > table tr > th,
  body.single-products .product-content .wp-block-table.is-table-stack .cpi-table-scroll-wrap > table tr > td,
  body.single-products .product-content .wp-block-table.is-table-stack table:not(.is-table-scroll):not(.is-table-compact) tr > th:first-child,
  body.single-products .product-content .wp-block-table.is-table-stack table:not(.is-table-scroll):not(.is-table-compact) tr > td:first-child,
  body.single-products .product-content .wp-block-table.is-table-stack table:not(.is-table-scroll):not(.is-table-compact) tr > th:nth-child(n),
  body.single-products .product-content .wp-block-table.is-table-stack table:not(.is-table-scroll):not(.is-table-compact) tr > td:nth-child(n),
  body.single-products .product-content table.is-table-stack tr > th,
  body.single-products .product-content table.is-table-stack tr > td,
  body.single-products .product-content table.is-table-stack tr > th:first-child,
  body.single-products .product-content table.is-table-stack tr > td:first-child,
  body.single-products .product-content table.is-table-stack tr > th:nth-child(n),
  body.single-products .product-content table.is-table-stack tr > td:nth-child(n) {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    inline-size: 100% !important;
    max-inline-size: 100% !important;
  }

  .single-products .product-content .wp-block-table.is-table-stack td:first-child,
  .single-products .product-content table.is-table-stack td:first-child {
    padding-top: 0 !important;
  }

  .single-products .product-content .wp-block-table.is-table-stack td:first-child:has(img),
  .single-products .product-content table.is-table-stack td:first-child:has(img) {
    text-align: center !important;
  }

  .single-products .product-content .wp-block-table.is-table-stack td:nth-child(2),
  .single-products .product-content table.is-table-stack td:nth-child(2) {
    font-size: 14px !important;
    font-weight: 700 !important;
  }

  .single-products .product-content .wp-block-table.is-table-stack img,
  .single-products .product-content .wp-block-table.is-table-stack .cpi-table-scroll-wrap > table img,
  .single-products .product-content table.is-table-stack img {
    display: block !important;
    float: none !important;
    width: auto !important;
    max-width: 120px !important;
    height: auto !important;
    margin: 0 auto 10px !important;
  }

  /* Compact tables: keep columns visible by tightening spacing. */
  .single-products .product-content .wp-block-table.is-table-compact,
  .single-products .product-content table.is-table-compact {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 24px 0 32px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .single-products .product-content .wp-block-table.is-table-compact table,
  .single-products .product-content table.is-table-compact {
    display: table !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    table-layout: fixed !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
  }

  .single-products .product-content .wp-block-table.is-table-compact th,
  .single-products .product-content .wp-block-table.is-table-compact td,
  .single-products .product-content table.is-table-compact th,
  .single-products .product-content table.is-table-compact td {
    width: auto !important;
    min-width: 0 !important;
    padding: 6px 5px !important;
    font-size: 12px !important;
    line-height: 1.55 !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
    box-sizing: border-box !important;
  }

  .single-products .product-content .wp-block-table.is-table-compact img,
  .single-products .product-content table.is-table-compact img {
    max-width: 80px !important;
    height: auto !important;
  }
}
/* =========================================
   is-table-stack / rowspan support for SP
   製品詳細本文内のstack表のみ対象
========================================= */

.single-products .product-content table.is-table-stack .cpi-stack-rowspan-clone {
  display: none !important;
}

@media (max-width: 767px) {
  .single-products .product-content table.is-table-stack .cpi-stack-head-row {
    display: none !important;
  }

  .single-products .product-content table.is-table-stack .cpi-stack-rowspan-clone {
    display: block !important;
  }

  .single-products .product-content table.is-table-stack th[data-cpi-stack-label]::before,
  .single-products .product-content table.is-table-stack td[data-cpi-stack-label]::before {
    content: attr(data-cpi-stack-label);
    display: block;
    margin: 0 0 4px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
  }

  .single-products .product-content table.is-table-stack td[data-cpi-stack-label]:has(img)::before,
  .single-products .product-content table.is-table-stack th[data-cpi-stack-label]:has(img)::before {
    text-align: left;
  }
}

/* =========================================
   Product-specific final overrides
   影響範囲を個別ページに限定
========================================= */

/* support-tech-cpi-wam: fixed header offset for in-page anchors */
.page-support-tech-cpi-wam .entry-content [id],
.page-support-tech-cpi-wam .page-content [id],
.page-support-tech-cpi-wam .product-content [id] {
  scroll-margin-top: 220px !important;
}

.page-support-tech-cpi-wam .entry-content :target::before,
.page-support-tech-cpi-wam .page-content :target::before,
.page-support-tech-cpi-wam .product-content :target::before {
  content: "";
  display: block;
  height: 220px;
  margin-top: -220px;
  visibility: hidden;
  pointer-events: none;
}

/* cpi-wam800: keep 親/子 columns visually centered */
.products-slug-cpi-wam800 .product-content table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) th:nth-child(2),
.products-slug-cpi-wam800 .product-content table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) td:nth-child(2),
.products-slug-cpi-wam800 .product-content table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) th:nth-child(3),
.products-slug-cpi-wam800 .product-content table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) td:nth-child(3),
.products-slug-cpi-wam800 .product-content .wp-block-table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) table th:nth-child(2),
.products-slug-cpi-wam800 .product-content .wp-block-table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) table td:nth-child(2),
.products-slug-cpi-wam800 .product-content .wp-block-table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) table th:nth-child(3),
.products-slug-cpi-wam800 .product-content .wp-block-table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) table td:nth-child(3) {
  text-align: center !important;
  vertical-align: middle !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* cpi-wam001: antenna labels were rendering too small */
.products-slug-cpi-wam001 .product-content table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) th,
.products-slug-cpi-wam001 .product-content table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) td,
.products-slug-cpi-wam001 .product-content .wp-block-table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) table th,
.products-slug-cpi-wam001 .product-content .wp-block-table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) table td {
  font-size: 1rem !important;
  line-height: 1.75 !important;
}

.products-slug-cpi-wam001 .product-content table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) th *,
.products-slug-cpi-wam001 .product-content table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) td *,
.products-slug-cpi-wam001 .product-content .wp-block-table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) table th *,
.products-slug-cpi-wam001 .product-content .wp-block-table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) table td * {
  font-size: inherit !important;
  line-height: inherit !important;
}

/* -----------------------------------------
   Final page-scoped overrides
   影響範囲は個別ページに限定
----------------------------------------- */

/* support-tech-cpi-wam: fixed header offset for page anchors */
.page-support-tech-cpi-wam .entry-content [id],
.page-support-tech-cpi-wam .page-content [id],
.page-support-tech-cpi-wam .product-content [id] {
  scroll-margin-top: 240px !important;
}

.page-support-tech-cpi-wam .entry-content :target::before,
.page-support-tech-cpi-wam .page-content :target::before,
.page-support-tech-cpi-wam .product-content :target::before {
  content: "";
  display: block;
  height: 240px;
  margin-top: -240px;
  visibility: hidden;
  pointer-events: none;
}

/* cpi-wam800: 親/子列のうち、2段目ヘッダの「子」が left で上書きされないよう補正 */
.products-slug-cpi-wam800 .product-content table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) tr:nth-child(2) th:last-child,
.products-slug-cpi-wam800 .product-content .wp-block-table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) table tr:nth-child(2) th:last-child {
  text-align: center !important;
}

/* cpi-wam800: 親/子のセルは常に中央揃え */
.products-slug-cpi-wam800 .product-content table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) th:nth-child(2),
.products-slug-cpi-wam800 .product-content table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) td:nth-child(2),
.products-slug-cpi-wam800 .product-content table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) th:nth-child(3),
.products-slug-cpi-wam800 .product-content table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) td:nth-child(3),
.products-slug-cpi-wam800 .product-content .wp-block-table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) table th:nth-child(2),
.products-slug-cpi-wam800 .product-content .wp-block-table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) table td:nth-child(2),
.products-slug-cpi-wam800 .product-content .wp-block-table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) table th:nth-child(3),
.products-slug-cpi-wam800 .product-content .wp-block-table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) table td:nth-child(3) {
  text-align: center !important;
  vertical-align: middle !important;
}

/* cpi-wam001: 対応アンテナ表記が小さくならないようセル全体を底上げ */
.products-slug-cpi-wam001 .product-content table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) th,
.products-slug-cpi-wam001 .product-content table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) td,
.products-slug-cpi-wam001 .product-content .wp-block-table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) table th,
.products-slug-cpi-wam001 .product-content .wp-block-table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) table td {
  font-size: 1rem !important;
  line-height: 1.8 !important;
}

.products-slug-cpi-wam001 .product-content table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) th small,
.products-slug-cpi-wam001 .product-content table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) td small,
.products-slug-cpi-wam001 .product-content .wp-block-table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) table th small,
.products-slug-cpi-wam001 .product-content .wp-block-table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) table td small {
  font-size: 1em !important;
}

@media (min-width: 768px) {
  .products-slug-cardut-xp .product-content table,
  .products-slug-cardut-xp .product-content .wp-block-table table,
  .products-slug-cardutpro-xp .product-content table,
  .products-slug-cardutpro-xp .product-content .wp-block-table table,
  .products-slug-cardutpro-41 .product-content table,
  .products-slug-cardutpro-41 .product-content .wp-block-table table,
  .products-slug-cardutpro-41e .product-content table,
  .products-slug-cardutpro-41e .product-content .wp-block-table table {
    table-layout: auto !important;
  }

  .products-slug-cardut-xp .product-content table th:nth-last-child(-n+2),
  .products-slug-cardut-xp .product-content table td:nth-last-child(-n+2),
  .products-slug-cardut-xp .product-content .wp-block-table table th:nth-last-child(-n+2),
  .products-slug-cardut-xp .product-content .wp-block-table table td:nth-last-child(-n+2),
  .products-slug-cardutpro-xp .product-content table th:nth-last-child(-n+2),
  .products-slug-cardutpro-xp .product-content table td:nth-last-child(-n+2),
  .products-slug-cardutpro-xp .product-content .wp-block-table table th:nth-last-child(-n+2),
  .products-slug-cardutpro-xp .product-content .wp-block-table table td:nth-last-child(-n+2),
  .products-slug-cardutpro-41 .product-content table th:nth-last-child(-n+2),
  .products-slug-cardutpro-41 .product-content table td:nth-last-child(-n+2),
  .products-slug-cardutpro-41 .product-content .wp-block-table table th:nth-last-child(-n+2),
  .products-slug-cardutpro-41 .product-content .wp-block-table table td:nth-last-child(-n+2),
  .products-slug-cardutpro-41e .product-content table th:nth-last-child(-n+2),
  .products-slug-cardutpro-41e .product-content table td:nth-last-child(-n+2),
  .products-slug-cardutpro-41e .product-content .wp-block-table table th:nth-last-child(-n+2),
  .products-slug-cardutpro-41e .product-content .wp-block-table table td:nth-last-child(-n+2) {
    width: 6.5rem !important;
    min-width: 6.5rem !important;
    white-space: normal !important;
    word-break: keep-all !important;
    overflow-wrap: break-word !important;
  }

  .products-slug-cardut-xp .product-content table th:last-child,
  .products-slug-cardut-xp .product-content table td:last-child,
  .products-slug-cardut-xp .product-content .wp-block-table table th:last-child,
  .products-slug-cardut-xp .product-content .wp-block-table table td:last-child,
  .products-slug-cardutpro-xp .product-content table th:last-child,
  .products-slug-cardutpro-xp .product-content table td:last-child,
  .products-slug-cardutpro-xp .product-content .wp-block-table table th:last-child,
  .products-slug-cardutpro-xp .product-content .wp-block-table table td:last-child,
  .products-slug-cardutpro-41 .product-content table th:last-child,
  .products-slug-cardutpro-41 .product-content table td:last-child,
  .products-slug-cardutpro-41 .product-content .wp-block-table table th:last-child,
  .products-slug-cardutpro-41 .product-content .wp-block-table table td:last-child,
  .products-slug-cardutpro-41e .product-content table th:last-child,
  .products-slug-cardutpro-41e .product-content table td:last-child,
  .products-slug-cardutpro-41e .product-content .wp-block-table table th:last-child,
  .products-slug-cardutpro-41e .product-content .wp-block-table table td:last-child {
    width: 7.5rem !important;
    min-width: 7.5rem !important;
  }
}

/* ===== 2026-05-19 final actual-DOM overrides ===== */

/* support-tech-cpi-wam: actual page is a single post (postid-541), not a static page */
body.postid-541 .entry-content [id],
body.postid-541 .site-main [id] {
  scroll-margin-top: 132px !important;
}

body.postid-541 .entry-content :target::before,
body.postid-541 .site-main :target::before {
  content: "";
  display: block;
  height: 132px;
  margin-top: -132px;
  visibility: hidden;
  pointer-events: none;
}

/* cpi-wam800: force centered alignment and fixed 15px sizing on explicit center-marked headers */
.products-slug-cpi-wam800 .product-content .wp-block-table table th[style*="text-align: center"],
.products-slug-cpi-wam800 .product-content .wp-block-table table th.has-text-align-center,
.products-slug-cpi-wam800 .product-content .wp-block-table table th[data-align="center"],
.products-slug-boad.products-slug-cpi-wam800 .product-content .wp-block-table table th[style*="text-align: center"],
.products-slug-boad.products-slug-cpi-wam800 .product-content .wp-block-table table th.has-text-align-center,
.products-slug-boad.products-slug-cpi-wam800 .product-content .wp-block-table table th[data-align="center"] {
  font-size: 15px !important;
  line-height: 1.7 !important;
  text-align: center !important;
}

/* cpi-wam800: explicit 2nd row "親 / 子" header and centered marker columns */
.products-slug-cpi-wam800 .product-content .wp-block-table table tr:nth-child(2) > th,
.products-slug-boad.products-slug-cpi-wam800 .product-content .wp-block-table table tr:nth-child(2) > th,
.products-slug-cpi-wam800 .product-content .wp-block-table table td:nth-child(2),
.products-slug-cpi-wam800 .product-content .wp-block-table table td:nth-child(3),
.products-slug-boad.products-slug-cpi-wam800 .product-content .wp-block-table table td:nth-child(2),
.products-slug-boad.products-slug-cpi-wam800 .product-content .wp-block-table table td:nth-child(3) {
  font-size: 15px !important;
  line-height: 1.7 !important;
  text-align: center !important;
  vertical-align: middle !important;
}

/* cpi-wam800: specific price header */
.products-slug-cpi-wam800 .product-content .wp-block-table table th[data-cpi-stack-label="価格（税込）"],
.products-slug-boad.products-slug-cpi-wam800 .product-content .wp-block-table table th[data-cpi-stack-label="価格（税込）"] {
  font-size: 15px !important;
  line-height: 1.7 !important;
  text-align: center !important;
}

/* cpi-wam800: tune PC column balance for product list and price table */
@media (min-width: 768px) {
  .products-slug-cpi-wam800 .product-content .wp-block-table table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact),
  .products-slug-boad.products-slug-cpi-wam800 .product-content .wp-block-table table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) {
    table-layout: fixed !important;
    width: 100% !important;
  }

  .products-slug-cpi-wam800 .product-content .wp-block-table table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) tr:first-child > th:nth-child(1):not([data-cpi-stack-label]),
  .products-slug-boad.products-slug-cpi-wam800 .product-content .wp-block-table table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) tr:first-child > th:nth-child(1):not([data-cpi-stack-label]) {
    width: 27% !important;
  }

  .products-slug-cpi-wam800 .product-content .wp-block-table table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) tr:first-child > th:nth-child(2):not([data-cpi-stack-label]),
  .products-slug-boad.products-slug-cpi-wam800 .product-content .wp-block-table table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) tr:first-child > th:nth-child(2):not([data-cpi-stack-label]) {
    width: 18% !important;
  }

  .products-slug-cpi-wam800 .product-content .wp-block-table table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) tr:first-child > th:nth-child(3):not([data-cpi-stack-label]),
  .products-slug-boad.products-slug-cpi-wam800 .product-content .wp-block-table table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) tr:first-child > th:nth-child(3):not([data-cpi-stack-label]) {
    width: 10% !important;
  }

  .products-slug-cpi-wam800 .product-content .wp-block-table table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) tr:first-child > th:nth-child(4):not([data-cpi-stack-label]),
  .products-slug-boad.products-slug-cpi-wam800 .product-content .wp-block-table table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) tr:first-child > th:nth-child(4):not([data-cpi-stack-label]) {
    width: 10% !important;
  }

  .products-slug-cpi-wam800 .product-content .wp-block-table table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) tr:first-child > th:nth-child(5):not([data-cpi-stack-label]),
  .products-slug-boad.products-slug-cpi-wam800 .product-content .wp-block-table table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) tr:first-child > th:nth-child(5):not([data-cpi-stack-label]) {
    width: 35% !important;
    white-space: nowrap !important;
  }

  .products-slug-cpi-wam800 .product-content .wp-block-table table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) td:nth-child(5),
  .products-slug-boad.products-slug-cpi-wam800 .product-content .wp-block-table table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) td:nth-child(5) {
    font-size: 15px !important;
    line-height: 1.5 !important;
    white-space: nowrap !important;
  }

  .products-slug-cpi-wam800 .product-content .wp-block-table table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) tr:first-child > th[data-cpi-stack-label="価格（税込）"],
  .products-slug-boad.products-slug-cpi-wam800 .product-content .wp-block-table table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) tr:first-child > th[data-cpi-stack-label="価格（税込）"] {
    width: 22% !important;
    white-space: nowrap !important;
    text-align: center !important;
  }

  .products-slug-cpi-wam800 .product-content .wp-block-table table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) th[data-cpi-stack-label="型番"],
  .products-slug-boad.products-slug-cpi-wam800 .product-content .wp-block-table table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) th[data-cpi-stack-label="型番"] {
    width: 18% !important;
  }

  .products-slug-cpi-wam800 .product-content .wp-block-table table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) th[data-cpi-stack-label="内容・構成"],
  .products-slug-boad.products-slug-cpi-wam800 .product-content .wp-block-table table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) th[data-cpi-stack-label="内容・構成"] {
    width: 20% !important;
  }

  .products-slug-cpi-wam800 .product-content .wp-block-table table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) td:nth-child(4),
  .products-slug-boad.products-slug-cpi-wam800 .product-content .wp-block-table table:not(.is-table-scroll):not(.is-table-stack):not(.is-table-compact) td:nth-child(4) {
    white-space: nowrap !important;
  }
}

/* cpi-wam001: specific antenna label headers/cells override inline x-small with a fixed 15px */
.products-slug-cpi-wam001 .product-content th[style*="font-size:x-small"],
.products-slug-cpi-wam001 .product-content td[style*="font-size:x-small"],
.products-slug-cpi-wam001 .product-content th[style*="font-size: x-small"],
.products-slug-cpi-wam001 .product-content td[style*="font-size: x-small"] {
  font-size: 15px !important;
  line-height: 1.7 !important;
}

/* cpi-wam800: split desktop balancing between product-list table and price table */
@media (min-width: 768px) {
  .products-slug-cpi-wam800 .product-content .wp-block-table table:has(tr:first-child > th:nth-child(5):not([data-cpi-stack-label])),
  .products-slug-boad.products-slug-cpi-wam800 .product-content .wp-block-table table:has(tr:first-child > th:nth-child(5):not([data-cpi-stack-label])) {
    table-layout: fixed !important;
    width: 100% !important;
  }

  .products-slug-cpi-wam800 .product-content .wp-block-table table:has(tr:first-child > th:nth-child(5):not([data-cpi-stack-label])) tr:first-child > th:nth-child(1),
  .products-slug-boad.products-slug-cpi-wam800 .product-content .wp-block-table table:has(tr:first-child > th:nth-child(5):not([data-cpi-stack-label])) tr:first-child > th:nth-child(1) {
    width: 26% !important;
  }

  .products-slug-cpi-wam800 .product-content .wp-block-table table:has(tr:first-child > th:nth-child(5):not([data-cpi-stack-label])) tr:first-child > th:nth-child(2),
  .products-slug-boad.products-slug-cpi-wam800 .product-content .wp-block-table table:has(tr:first-child > th:nth-child(5):not([data-cpi-stack-label])) tr:first-child > th:nth-child(2) {
    width: 13% !important;
  }

  .products-slug-cpi-wam800 .product-content .wp-block-table table:has(tr:first-child > th:nth-child(5):not([data-cpi-stack-label])) tr:first-child > th:nth-child(3),
  .products-slug-boad.products-slug-cpi-wam800 .product-content .wp-block-table table:has(tr:first-child > th:nth-child(5):not([data-cpi-stack-label])) tr:first-child > th:nth-child(3) {
    width: 8% !important;
  }

  .products-slug-cpi-wam800 .product-content .wp-block-table table:has(tr:first-child > th:nth-child(5):not([data-cpi-stack-label])) tr:first-child > th:nth-child(4),
  .products-slug-boad.products-slug-cpi-wam800 .product-content .wp-block-table table:has(tr:first-child > th:nth-child(5):not([data-cpi-stack-label])) tr:first-child > th:nth-child(4) {
    width: 8% !important;
  }

  .products-slug-cpi-wam800 .product-content .wp-block-table table:has(tr:first-child > th:nth-child(5):not([data-cpi-stack-label])) tr:first-child > th:nth-child(5),
  .products-slug-boad.products-slug-cpi-wam800 .product-content .wp-block-table table:has(tr:first-child > th:nth-child(5):not([data-cpi-stack-label])) tr:first-child > th:nth-child(5) {
    width: 45% !important;
    white-space: nowrap !important;
  }

  .products-slug-cpi-wam800 .product-content .wp-block-table table:has(tr:first-child > th:nth-child(5):not([data-cpi-stack-label])) tr:nth-child(2) > th:nth-child(2),
  .products-slug-cpi-wam800 .product-content .wp-block-table table:has(tr:first-child > th:nth-child(5):not([data-cpi-stack-label])) tr:nth-child(2) > th:nth-child(3),
  .products-slug-boad.products-slug-cpi-wam800 .product-content .wp-block-table table:has(tr:first-child > th:nth-child(5):not([data-cpi-stack-label])) tr:nth-child(2) > th:nth-child(2),
  .products-slug-boad.products-slug-cpi-wam800 .product-content .wp-block-table table:has(tr:first-child > th:nth-child(5):not([data-cpi-stack-label])) tr:nth-child(2) > th:nth-child(3) {
    font-size: 15px !important;
    line-height: 1.5 !important;
    text-align: center !important;
    white-space: nowrap !important;
  }

  .products-slug-cpi-wam800 .product-content .wp-block-table table:has(tr:first-child > th:nth-child(5):not([data-cpi-stack-label])) th:nth-child(5),
  .products-slug-cpi-wam800 .product-content .wp-block-table table:has(tr:first-child > th:nth-child(5):not([data-cpi-stack-label])) td:nth-child(5),
  .products-slug-boad.products-slug-cpi-wam800 .product-content .wp-block-table table:has(tr:first-child > th:nth-child(5):not([data-cpi-stack-label])) th:nth-child(5),
  .products-slug-boad.products-slug-cpi-wam800 .product-content .wp-block-table table:has(tr:first-child > th:nth-child(5):not([data-cpi-stack-label])) td:nth-child(5) {
    font-size: 15px !important;
    line-height: 1.5 !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
  }

  .products-slug-cpi-wam800 .product-content .wp-block-table table:has(th[data-cpi-stack-label="価格（税込）"]),
  .products-slug-boad.products-slug-cpi-wam800 .product-content .wp-block-table table:has(th[data-cpi-stack-label="価格（税込）"]) {
    table-layout: fixed !important;
    width: 100% !important;
  }

  .products-slug-cpi-wam800 .product-content .wp-block-table table:has(th[data-cpi-stack-label="価格（税込）"]) tr:first-child > th:nth-child(1),
  .products-slug-boad.products-slug-cpi-wam800 .product-content .wp-block-table table:has(th[data-cpi-stack-label="価格（税込）"]) tr:first-child > th:nth-child(1) {
    width: 16% !important;
  }

  .products-slug-cpi-wam800 .product-content .wp-block-table table:has(th[data-cpi-stack-label="価格（税込）"]) tr:first-child > th:nth-child(2),
  .products-slug-boad.products-slug-cpi-wam800 .product-content .wp-block-table table:has(th[data-cpi-stack-label="価格（税込）"]) tr:first-child > th:nth-child(2) {
    width: 20% !important;
  }

  .products-slug-cpi-wam800 .product-content .wp-block-table table:has(th[data-cpi-stack-label="価格（税込）"]) tr:first-child > th:nth-child(3),
  .products-slug-boad.products-slug-cpi-wam800 .product-content .wp-block-table table:has(th[data-cpi-stack-label="価格（税込）"]) tr:first-child > th:nth-child(3) {
    width: 34% !important;
  }

  .products-slug-cpi-wam800 .product-content .wp-block-table table:has(th[data-cpi-stack-label="価格（税込）"]) tr:first-child > th:nth-child(4),
  .products-slug-boad.products-slug-cpi-wam800 .product-content .wp-block-table table:has(th[data-cpi-stack-label="価格（税込）"]) tr:first-child > th:nth-child(4) {
    width: 30% !important;
    text-align: center !important;
  }

  .products-slug-cpi-wam800 .product-content .wp-block-table table:has(th[data-cpi-stack-label="価格（税込）"]) td:nth-child(4),
  .products-slug-boad.products-slug-cpi-wam800 .product-content .wp-block-table table:has(th[data-cpi-stack-label="価格（税込）"]) td:nth-child(4) {
    width: 30% !important;
    white-space: nowrap !important;
    text-align: left !important;
    padding-left: 16px !important;
    padding-right: 12px !important;
  }

  .products-slug-cpi-wam800 .product-content .wp-block-table table:has(th[data-cpi-stack-label="価格（税込）"]) td:nth-child(3),
  .products-slug-boad.products-slug-cpi-wam800 .product-content .wp-block-table table:has(th[data-cpi-stack-label="価格（税込）"]) td:nth-child(3) {
    line-height: 1.6 !important;
  }
}
/* =========================================
   CPI final fix 2026-05-20
   cardUT系CTA / 横スクロール案内二重表示
========================================= */

/* cardUT系ページ：CTAが白背景になる事故をページ限定で固定 */
.products-slug-cardut-xp .product-inquiry__inner,
.products-slug-cardutpro-xp .product-inquiry__inner,
.products-slug-cardutpro-41 .product-inquiry__inner,
.products-slug-cardutpro-41e .product-inquiry__inner {
  background: linear-gradient(90deg, #103d7c 0%, #2e67bc 100%) !important;
  color: #fff !important;
}

.products-slug-cardut-xp .product-inquiry__title,
.products-slug-cardut-xp .product-inquiry__text,
.products-slug-cardutpro-xp .product-inquiry__title,
.products-slug-cardutpro-xp .product-inquiry__text,
.products-slug-cardutpro-41 .product-inquiry__title,
.products-slug-cardutpro-41 .product-inquiry__text,
.products-slug-cardutpro-41e .product-inquiry__title,
.products-slug-cardutpro-41e .product-inquiry__text {
  color: #fff !important;
}

.products-slug-cardut-xp .product-inquiry .c-button,
.products-slug-cardutpro-xp .product-inquiry .c-button,
.products-slug-cardutpro-41 .product-inquiry .c-button,
.products-slug-cardutpro-41e .product-inquiry .c-button {
  background: #fff !important;
  color: #123d7d !important;
}


/* support-tech-cpi-wam：横スクロール案内が二重表示される件の補正 */
/* 直前の「左右にスクロールできます」だけを消し、もう一方を残す */
@media (max-width: 767px) {
  body.page-support-tech-cpi-wam .product-content p:has(+ .wp-block-table.is-table-scroll),
  body.page-support-tech-cpi-wam .product-content p:has(+ figure.wp-block-table.is-table-scroll),
  body[class*="support-tech-cpi-wam"] .product-content p:has(+ .wp-block-table.is-table-scroll),
  body[class*="support-tech-cpi-wam"] .product-content p:has(+ figure.wp-block-table.is-table-scroll) {
    display: none !important;
  }
}
/* =========================================
   CPI final fix: is-table-scroll 3段構造の案内文を1つに統一
   figure > .cpi-table-scroll-wrap > table.is-table-scroll
========================================= */
@media (max-width: 767px) {
  /* figure側の案内文は出さない */
  .single-products .product-content figure.wp-block-table.is-table-scroll:has(> .cpi-table-scroll-wrap > table.is-table-scroll)::before {
    content: "" !important;
    display: none !important;
  }

  /* table側にis-table-scrollが付いていても、table自身では案内文を出さない */
  .single-products .product-content figure.wp-block-table.is-table-scroll > .cpi-table-scroll-wrap > table.is-table-scroll::before {
    content: "" !important;
    display: none !important;
  }

  /* wrap側だけに案内文を出す */
  .single-products .product-content figure.wp-block-table.is-table-scroll > .cpi-table-scroll-wrap::before {
    content: "左右にスクロールできます" !important;
    display: block !important;
    margin: 0 0 8px !important;
    color: #6f7b8d !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
  }
}

/* cpi-wam800: PCの製品リスト表だけ、入力/出力を等幅に固定 */
@media (min-width: 768px) {
  .products-slug-cpi-wam800 .product-content table.is-table-scroll > tbody > tr:first-child > th:nth-child(1),
  .products-slug-boad.products-slug-cpi-wam800 .product-content table.is-table-scroll > tbody > tr:first-child > th:nth-child(1),
  .products-slug-cpi-wam800 .product-content table.is-table-scroll > tbody > tr:nth-child(n+3) > th:nth-child(1),
  .products-slug-boad.products-slug-cpi-wam800 .product-content table.is-table-scroll > tbody > tr:nth-child(n+3) > th:nth-child(1) {
    width: 26% !important;
  }

  .products-slug-cpi-wam800 .product-content table.is-table-scroll > tbody > tr:first-child > th:nth-child(2),
  .products-slug-boad.products-slug-cpi-wam800 .product-content table.is-table-scroll > tbody > tr:first-child > th:nth-child(2) {
    width: 12% !important;
  }

  .products-slug-cpi-wam800 .product-content table.is-table-scroll > tbody > tr:nth-child(2) > th:nth-child(1),
  .products-slug-cpi-wam800 .product-content table.is-table-scroll > tbody > tr:nth-child(2) > th:nth-child(2),
  .products-slug-boad.products-slug-cpi-wam800 .product-content table.is-table-scroll > tbody > tr:nth-child(2) > th:nth-child(1),
  .products-slug-boad.products-slug-cpi-wam800 .product-content table.is-table-scroll > tbody > tr:nth-child(2) > th:nth-child(2),
  .products-slug-cpi-wam800 .product-content table.is-table-scroll > tbody > tr:nth-child(n+3) > td:nth-child(2),
  .products-slug-cpi-wam800 .product-content table.is-table-scroll > tbody > tr:nth-child(n+3) > td:nth-child(3),
  .products-slug-boad.products-slug-cpi-wam800 .product-content table.is-table-scroll > tbody > tr:nth-child(n+3) > td:nth-child(2),
  .products-slug-boad.products-slug-cpi-wam800 .product-content table.is-table-scroll > tbody > tr:nth-child(n+3) > td:nth-child(3) {
    width: 6% !important;
  }

  .products-slug-cpi-wam800 .product-content table.is-table-scroll > tbody > tr:first-child > th:nth-child(3),
  .products-slug-cpi-wam800 .product-content table.is-table-scroll > tbody > tr:first-child > th:nth-child(4),
  .products-slug-boad.products-slug-cpi-wam800 .product-content table.is-table-scroll > tbody > tr:first-child > th:nth-child(3),
  .products-slug-boad.products-slug-cpi-wam800 .product-content table.is-table-scroll > tbody > tr:first-child > th:nth-child(4),
  .products-slug-cpi-wam800 .product-content table.is-table-scroll > tbody > tr:nth-child(n+3) > td:nth-child(4),
  .products-slug-cpi-wam800 .product-content table.is-table-scroll > tbody > tr:nth-child(n+3) > td:nth-child(5),
  .products-slug-boad.products-slug-cpi-wam800 .product-content table.is-table-scroll > tbody > tr:nth-child(n+3) > td:nth-child(4),
  .products-slug-boad.products-slug-cpi-wam800 .product-content table.is-table-scroll > tbody > tr:nth-child(n+3) > td:nth-child(5) {
    width: 10% !important;
    text-align: center !important;
    white-space: nowrap !important;
  }

  .products-slug-cpi-wam800 .product-content table.is-table-scroll > tbody > tr:first-child > th:nth-child(5),
  .products-slug-boad.products-slug-cpi-wam800 .product-content table.is-table-scroll > tbody > tr:first-child > th:nth-child(5),
  .products-slug-cpi-wam800 .product-content table.is-table-scroll > tbody > tr:nth-child(n+3) > td:nth-child(6),
  .products-slug-boad.products-slug-cpi-wam800 .product-content table.is-table-scroll > tbody > tr:nth-child(n+3) > td:nth-child(6) {
    width: 42% !important;
  }
}
