@charset "UTF-8";

.custom-icon {
  position: relative;
}

.rental-sale-icon {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.new-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
}

.rental-sale-icon p,
.new-icon p {
  margin: 0;
}

.custom-icon .sale,
.custom-icon .rental,
.custom-icon .new {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 2px;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: .088em;
  line-height: 1;
}

.custom-icon .sale {
  background: #033870;
}

.custom-icon .rental {
  background: #02741d;
}

.custom-icon .new {
  background: #fc101d;
}

/* ---------------------------------------
  taxonomy_products_cat 共通
--------------------------------------- */
.tax-products-default-grid,
.tax-products-water__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 24px;
}

.tax-products-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: calc((100% - 48px) / 3);
  min-height: 100%;
  text-decoration: none;
  color: #1e2a37;
  background: unset;
  border: 1px solid rgba(0, 68, 140, .10);
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    0 10px 30px rgba(16, 52, 90, .08),
    0 2px 8px rgba(16, 52, 90, .04);
  transition:
    transform .35s ease,
    box-shadow .35s ease,
    border-color .35s ease,
    opacity .35s ease;
}

.tax-products-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 16px 36px rgba(16, 52, 90, .12),
    0 4px 12px rgba(16, 52, 90, .06);
  border-color: rgba(0, 68, 140, .22);
}

.tax-products-card__title {
  order: 1;
  margin: 0;
  padding: 28px 15px 8px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  color: #1e2a37;
}

.tax-products-card__subtitle {
  order: 2;
  margin: 0;
  padding: 0 15px 0px;
  font-size: 14px;
  line-height: 1.8;
  color: #4c5a67;
}

.tax-products-card__image {
  order: 3;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: unset;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tax-products-card__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: unset;
  z-index: 1;
  pointer-events: none;
}

.tax-products-card__image .imgC,
.tax-products-card__image img,
.tax-products-card__image .wp-post-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 60px 20px 20px 20px;
}

/* ---------------------------------------
  水質計カテゴリ専用
--------------------------------------- */
.tax-products-water {
  margin-top: 10px;
}

.tax-products-water__section + .tax-products-water__section {
  margin-top: 56px;
}

.tax-products-water__heading {
  margin: 0 0 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #d8d8d8;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.5;
  color: #222;
}

.tax-products-water .tax-products-card {
  width: calc((100% - 48px) / 3);
}

.tax-products-water .tax-products-card.is-wide {
  width: 100%;
}

.tax-products-water .tax-products-card.is-wide .tax-products-card__subtitle {
  min-height: 0;
}

.tax-products-water .tax-products-card.is-wide .tax-products-card__image {
  aspect-ratio: auto;
  min-height: 320px;
  align-items: center;
  justify-content: center;
}

.tax-products-water .tax-products-card.is-wide .tax-products-card__image .imgC,
.tax-products-water .tax-products-card.is-wide .tax-products-card__image img,
.tax-products-water .tax-products-card.is-wide .tax-products-card__image .wp-post-image {
  width: 100%;
  height: auto;
  max-width: 700px;
  padding: 40px 0px 40px;
}

.tax-products-water .tax-products-card.is-wide .tax-products-card__title {
  padding-bottom: 8px;
}

.tax-products-water .tax-products-card.is-wide .tax-products-card__subtitle {
  padding-bottom: 16px;
}

/*****************************
  products_single
*****************************/

.product-single-wrap {
  padding: 0 0 80px;
}

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

.product-single {
  display: grid;
  gap: 56px;
}

.product-hero {
  padding: 40px;
  border: 1px solid #dce3eb;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,.04);
}

.product-hero__head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 28px;
}

.product-hero__title {
  margin: 0;
  font-size: 3.6rem;
  line-height: 1.35;
}

.product-hero__subtitle {
  margin: 12px 0 0;
  color: #5d6b78;
  font-size: 1.8rem;
  line-height: 1.7;
}

.product-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 30px;
  border-radius: 0px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.product-badge--sale {
  background: #033870;
}

.product-badge--rental {
  background: #02741d;
}

.product-badge--red {
  background: #fc101d;
}

.product-hero__body {
  display: grid;
  gap: 24px;
  width: min(800px, 100%);
  margin: 0 auto;
}

.product-hero__lead,
.product-hero__note,
.product-free-text,
.product-notice {
  font-size: 1.6rem;
  line-height: 2;
  color: #243342;
}

.product-hero__image img,
.product-free-image img,
.product-gallery-grid__item img,
.product-function-card__image img,
.product-machine-card__figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

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

.product-detail-section {
  display: grid;
  gap: 24px;
}

.product-section-head {
  display: grid;
  gap: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid #dce3eb;
}

.product-section-head__en {
  margin: 0;
  color: #0D5DC2;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.product-section-head__ja {
  margin: 0;
  font-size: 2.8rem;
  line-height: 1.4;
}

.product-feature-list,
.product-case-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.product-feature-list li,
.product-case-list li {
  position: relative;
  padding: 18px 22px;
  border-radius: 14px;
  background: #f7fafd;
  font-size: 1.6rem;
  line-height: 1.9;
}

.product-spec-table {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #dce3eb;
}

.product-spec-table__row {
  display: grid;
  grid-template-columns: 240px 1fr;
  border-bottom: 1px solid #dce3eb;
}

.product-spec-table__head {
  margin: 0;
  padding: 20px;
  background: #f7fafd;
  font-weight: 700;
}

.product-spec-table__body {
  padding: 20px;
}

.product-spec-table__body p {
  margin: 0;
  line-height: 1.9;
}

.product-video-list {
  display: grid;
  gap: 24px;
}

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

.product-video-item {
  position: relative;
  padding-top: 56.25%;
}

.product-video-item iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 16px;
}

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

.product-function-card,
.product-machine-card {
  padding: 24px;
  border: 1px solid #dce3eb;
  border-radius: 20px;
  background: #fff;
}

.product-function-card__title,
.product-machine-card__title {
  margin: 0 0 16px;
  font-size: 2rem;
  line-height: 1.5;
}

.product-machine-blocks {
  display: grid;
  gap: 24px;
}

.product-machine-card__text {
  margin-bottom: 20px;
  line-height: 1.9;
}

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

.product-machine-card__figure {
  margin: 0;
}

.product-machine-card__figure figcaption {
  margin-top: 8px;
  font-size: 1.3rem;
  line-height: 1.6;
  text-align: center;
}

.product-bottom-cta {
  margin-top: 64px;
}

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

.product-bottom-cta__card {
  display: grid;
  gap: 8px;
  padding: 22px;
  border-radius: 18px;
  background: #f7fafd;
  text-decoration: none;
  color: inherit;
  border: 1px solid #dce3eb;
  transition: .3s ease;
}

.product-bottom-cta__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
}

.product-bottom-cta__card strong {
  font-size: 1.7rem;
}

.product-bottom-cta__card span {
  font-size: 1.4rem;
  line-height: 1.7;
  color: #566371;
}

.product-bottom-cta__card--yellow {
  background: #f4c400;
  border-color: #f4c400;
}

.product-bottom-nav {
  margin-top: 40px;
}

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

.product-bottom-nav__btn {
  display: grid;
  gap: 8px;
  padding: 24px 22px;
  border-radius: 18px;
  background: linear-gradient(135deg, #0D5DC2 0%, #003c88 100%);
  text-decoration: none;
  color: #fff;
  box-shadow: 0 12px 24px rgba(13, 93, 194, .18);
  transition: .3s ease;
}

.product-bottom-nav__btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(13, 93, 194, .22);
}

.product-bottom-nav__btn-sub {
  display: block;
  font-size: 1.2rem;
  letter-spacing: .08em;
  opacity: .8;
}

.product-bottom-nav__btn-main {
  display: block;
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.6;
}

@media only screen and (max-width: 1024px) {
  .tax-products-card,
  .tax-products-water .tax-products-card {
    width: calc((100% - 24px) / 2);
  }

  .tax-products-water .tax-products-card.is-wide {
    width: 100%;
  }

  .product-feature-list--2col,
  .product-case-list--2col,
  .product-video-list--2col,
  .product-function-grid,
  .product-bottom-cta__grid,
  .product-bottom-nav__grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

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

  .product-spec-table__row {
    grid-template-columns: 180px 1fr;
  }
}

@media only screen and (max-width: 767px) {
  .tax-products-default-grid,
  .tax-products-water__grid {
    gap: 24px;
  }

  .tax-products-card,
  .tax-products-water .tax-products-card,
  .tax-products-water .tax-products-card.is-wide {
    width: 100%;
    border-radius: 20px;
  }

  .tax-products-card__title {
    padding: 22px 18px 8px;
    font-size: 1.8rem;
  }

  .tax-products-card__subtitle {
    min-height: 0;
    padding: 0 18px 14px;
    font-size: 1.4rem;
  }

  .tax-products-card__image .imgC,
  .tax-products-card__image img,
  .tax-products-card__image .wp-post-image {
    padding: 56px 16px 16px;
  }

  .tax-products-water__section + .tax-products-water__section {
    margin-top: 40px;
  }

  .tax-products-water__heading {
    margin-bottom: 16px;
    font-size: 1.9rem;
  }

  .tax-products-water .tax-products-card.is-wide .tax-products-card__image {
    min-height: 0;
  }

  .tax-products-water .tax-products-card.is-wide .tax-products-card__image .imgC,
  .tax-products-water .tax-products-card.is-wide .tax-products-card__image img,
  .tax-products-water .tax-products-card.is-wide .tax-products-card__image .wp-post-image {
    max-width: 100%;
    padding: 56px 16px 16px;
  }

  .product-single-wrap {
    padding-bottom: 56px;
  }

  .product-single-inner {
    width: min(100% - 24px, 100%);
  }

  .product-single {
    gap: 40px;
  }

  .product-hero {
    padding: 24px 18px;
    border-radius: 18px;
  }

  .product-hero__head {
    flex-direction: column;
    margin-bottom: 20px;
  }

  .product-hero__title {
    font-size: 2.6rem;
  }

  .product-hero__subtitle {
    font-size: 1.5rem;
  }

  .product-gallery-grid,
  .product-feature-list--2col,
  .product-case-list--2col,
  .product-video-list--2col,
  .product-function-grid,
  .product-bottom-cta__grid,
  .product-bottom-nav__grid,
  .product-machine-card__images {
    grid-template-columns: 1fr;
  }

  .product-spec-table__row {
    /* grid-template-columns: 1fr; */
    grid-template-columns: 140px 1fr;
  }

  .product-spec-table__head,
  .product-spec-table__body {
    padding: 10px;
    font-size: 16px;
  }

  .product-section-head__ja {
    font-size: 2.2rem;
  }

  .product-feature-list li,
  .product-case-list li {
    padding: 16px;
    font-size: 1.5rem;
  }

  .product-bottom-nav__btn {
    padding: 20px 18px;
  }

  .product-bottom-nav__btn-main {
    font-size: 1.6rem;
  }
}


.product-spec-table__body p{
    display: flex;
    flex: 1;
}
.product-spec-table__body p span {
    display: inline-block;
    padding: 0 2%;
    border-right: 1px solid #7B7B7B;
    width: 100%;
    line-break: anywhere;
    line-height: 1.4;
}

.product-spec-table__body p span:first-of-type {
    padding-left: 0;
}
.product-spec-table__body p span:last-of-type {
    border-right: 0;
}

/* ---------------------------------------
 テーブルエリア
--------------------------------------- */
@media screen and (max-width: 768px) {

  .product-spec-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
    display: block;
    padding-bottom: 12px;
  }

  .product-spec-table__row {
    min-width: 720px;
  }

  .product-spec-table::before {
    content: "横にスクロールできます";
    display: inline-block;
    position: sticky;
    left: 0;
    margin-bottom: 10px;
    padding: 6px 12px 6px 32px;
    border-radius: 999px;
    background: #18395c;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
    z-index: 2;
  }

  .product-spec-table::after {
    content: "→";
    position: sticky;
    left: 12px;
    display: inline-block;
    margin-left: -100%;
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    z-index: 3;
    animation: product-scroll-hint 1.2s ease-in-out infinite;
  }

  @keyframes product-scroll-hint {
    0%, 100% {
      transform: translateX(0);
    }
    50% {
      transform: translateX(6px);
    }
  }
}


@media screen and (max-width: 768px) {

  .product-spec-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .product-spec-table__row {
    min-width: 720px;
  }

}

.scroll-hint-icon-wrap {
  opacity: 1;
}

.scroll-hint-text {
  font-size: 1.2rem;
  color: #18395c;
}