@charset "utf-8";
html, body {
  overflow-x: hidden;
}

main {
  margin-top: 5.625rem;
  overflow-x: hidden;   /* 横スクロールを抑制 */
  width: 100%;          /* ビューポート幅を超えないように */
  box-sizing: border-box;
}

@media (max-width: 991px) {
  main {
    margin-top: 4rem;
  }
}

@media (max-width: 575.98px) {
  main {
    margin-top: 4rem;
  }
}

.container-fluid {
  margin: 0;
  padding: 0;
}

.container {
  padding: 0.2rem 0 0 0;
}

@media (max-width: 991px) {
  .container {
    padding-right: calc(var(--mdb-gutter-x)*0.5);
    padding-left: calc(var(--mdb-gutter-x)*0.5);
  }
}

article .container p a {
  text-decoration: underline;
}

article .container p a:hover {
  opacity: 0.7;
}

/*==============

各種リスト

==============*/

.note-list {
  overflow: hidden;
  /* font-size: 0.875rem; */
  margin-top: 1rem;
  padding-left: 0;
}

.note-list li {
  display: block;
  padding-left: 1.5rem;
  line-height: 1.6rem;
}
.note-list li:before {
  content: "※";
  display: block;
  float: left;
  text-align: left;
  margin-left: -1.5rem;
  width: 1.5rem;
}



/*==============

製品詳細

==============*/


/* Product-fv-block 製品詳細ファーストビュー */
.product-fv-block {
  margin: 1rem 0;
  /* border: 1px solid #ddd; */
  padding: 1.5rem;
  /* background: #fff; */
  /* border-radius: 12px; */
  /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); */
}

.pfv-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
}

.pfv-image img {
  max-width: 338px;
  height: auto;
  border-radius: 0;
  object-fit: cover;
}

.pfv-content {
  flex: 1;
  min-width: 260px;
}

.pfv-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.pfv-content p {
  font-size: 1rem;
  color: #333;
  margin-bottom: 1rem;
  line-height: 2;
}

.pfv-labels {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.pfv-label {
  background: #fff;
  color: #76c31d;
  border: 1px solid #76c31d;
  padding: 0.1rem 0.2rem;
  font-size: 0.8125rem;
  border-radius: 0;
}

.pfv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.2rem;
}


.pfv-actions.pfv-info {
  padding-top: 1rem;
  margin-top: 1rem;
  border-radius: 15px;
}

.pfv-actions.pfv-contact {
  padding-top: 1rem;
  margin-top: 1rem;
}

a.pfv-action {
  display: flex;
  flex: 0 0 112px;
  max-width: 112px;
  flex-direction: column;
  justify-content: flex-end;   /* 下部に寄せる */
  align-items: center;         /* 横中央 */
  text-align: center;
  padding: 0.8rem 0.5rem;
  box-shadow: 0 0 3px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: inherit;
  color: #fff;
  background: linear-gradient(40deg, #00a73c, #77c31d);
  border-radius: 16.5px;
  width: 112px;
  height: 112px;
  position: relative;
}

a.pfv-action::after {
  content: "";
  display: block;
  position: absolute;
}

a.pfv-action#sales::after {
  background: url("../img/pfv-action-icon-sales.svg") no-repeat center center;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 33px;
  height: 36px;
}

a.pfv-action#estimate::after {
  background: url("../img/pfv-action-icon-estimate.svg") no-repeat center center;
  top: 25px;
  left: 50%;
  transform: translateX(-50%);
  width: 27px;
  height: 34px;
}

a.pfv-action#contact::after {
  background: url("../img/icon-contact.svg") no-repeat center center;
  background-size: contain;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 26px;
}

a.pfv-action#sds {
  background: #fff!important;
  border: 1px solid #00a73c!important;
  color: #00a73c!important;
}

a.pfv-action#sds::after {
  background: url("../img/pfv-action-icon-sds.svg") no-repeat center center;
  top: 17px;
  left: 50%;
  transform: translateX(-50%);
  width: 47px;
  height: 44px;
}



.pfv-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pfv-action .icon {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 0.5rem;
}

.pfv-action .label {
  font-size: 0.9rem;
  font-weight: 500;
  display: block;
  line-height: 1.2;
  width: 100%;
  display: flex;
  align-items: center;     /* テキストを垂直方向に中央揃え */
  justify-content: center;   /* テキストを水平方向に中央揃え */
  height: 2.4em;           /* 2行分の高さを確保 (line-height 1.2 * 2行) */
}


@media (max-width: 991px) {
  .product-fv-block {
    padding: 0;
  }

  .pfv-inner {
    gap: 1rem;
    display: block;
  }

  .pfv-image {
    text-align: center;
  }

  .pfv-image img {
    width: 60%;
  }

  .pfv-content p {
    line-height: 1.6;
    margin-top: 2rem;
  }

  .pfv-actions {
    gap: 0.6rem;
  }

  .pfv-actions.pfv-contact {
    padding-top: 0;
    margin: 1rem 0;
  }
  
  a.pfv-action {
    flex: 0 0 22.85%;
    max-width: 22.85%;
    padding: 0.8rem 0rem;
    width: 78px;
    height: 78px;
    border-radius: 8px;
  }

  .pfv-action .label {
    font-size: 0.71rem;
    font-weight: 300;
    line-height: 1.3;
    height: 0.9rem;
  }

  a.pfv-action#sales::after {
    top: 14px;
    width: 23px;
    height: 25px;
  }

  a.pfv-action#estimate::after {
    top: 18px; 
    width: 26px;
    height: 23px;   
  }

  a.pfv-action#contact::after {
      top: 22px;
      width: 26px;
      height: 18px;
  }
  a.pfv-action#sds::after {
      top: 13px;
      width: 33px;
      height: 31px;
  }

}


/* pfv-info-block ページ内リンク */

.pfv-info-block {
  max-width: 1092px;
  /* max-width: calc(100dvw - 6rem); */
  margin: 4rem auto 0;
  text-align: center;
}

.pfv-info-wrapper {
  display: inline-block;
  max-width: 100%;
  /* padding: 0 1rem; */
  border-radius: 15px;
  box-shadow:   
  /* 下 */
  0 2px 20px -2px rgba(0, 0, 0, 0.035),
  0 8px 16px -2px rgba(0, 0, 0, 0.015),
  /* 上 */
  0 -2px 20px -2px rgba(0, 0, 0, 0.035),
  0 -8px 16px -2px rgba(0, 0, 0, 0.015),
  /* 右 */
  2px 0 20px -2px rgba(0, 0, 0, 0.035),
  8px 0 16px -2px rgba(0, 0, 0, 0.015),
  /* 左 */
  -2px 0 20px -2px rgba(0, 0, 0, 0.035),
  -8px 0 16px -2px rgba(0, 0, 0, 0.015);
}

.pfv-btn-list {
  width: auto; 
  display: flex!important;
  align-items: center!important;
  justify-content: center!important;
  list-style: none;
  margin:  0 auto;
  padding: 0;
}

.pfv-btn-list li {
  flex: 0 0 auto;
  text-align: center;
  min-width: 25%; 
  padding: 0 1.5rem;
}

/* liが4個のときだけ、.pfv-info-wrapper を親要素の100%幅にする */
.pfv-info-wrapper:has(.pfv-btn-list > li:nth-child(4):last-child) {
  display: block; /* inline-blockからblockに変更して幅指定を有効にする */
  width: 100%;
}

.pfv-btn-list li a {
  color: #000;
  font-size: 0.9375rem;
  font-weight: 500;
  display: block;
  position: relative;
  padding: 1.55rem 2.5rem 1.55rem 3rem;
  text-decoration: none;
  /* width: auto; */
  min-width: 210px;
  text-align: center;
}

.pfv-btn-list li a.pfv-btn-related {
  padding: 1.55rem 0rem;
}

.pfv-btn-list li a:hover {
  opacity: 0.7;
}

.pfv-btn-list li a::before {
  content: "";
  position: absolute;
  background-size: contain;
}

.pfv-btn-list li a.pfv-btn-catalog::before {
  background: url(../img/my-h2-text-icon-catalog.svg) no-repeat center;
  top: 1.5rem;
  left: 5px;
  width: 37px;
  height: 26px;
}

.pfv-btn-list li a.pfv-btn-articles::before {
  background: url(../img/my-h2-text-icon-articles.svg) no-repeat center;
  top: 1.3rem;
  left: 13px;
  width: 24px;
  height: 31px;
}

.pfv-btn-list li a.pfv-btn-videos::before {
  background: url(../img/my-h2-text-icon-videos.svg) no-repeat center;
  top: 1.5rem;
  left: 13px;
  width: 27px;
  height: 26px;
}

.pfv-btn-list li a.pfv-btn-related::before {
  background: url(../img/my-h2-text-icon-related.svg) no-repeat center;
  top: 1.5rem;
  left: 29px;
  width: 27px;
  height: 23px;
}

.pfv-btn-list li a::after {
  content: url(../img/icon-arrow-bottom-green.svg);
  width: 16px;
  height: 10px;
  position: absolute;
  right: 0;
  top: 1.6rem;
}

@media (max-width: 991px) {
  .pfv-info-block {
    margin: 3rem 0;
  }

  .pfv-info-wrapper {
    border-radius: 15px;
  }

  .pfv-btn-list {
    flex-wrap: wrap;
  }

  .pfv-btn-list li {
    width: 50%; /* 基本は幅50%で1行に2つ並べる */
    box-sizing: border-box;
    text-align: left;
    padding: 0;
  }

  /* liが1個のときだけwidthを100%にする */
  .pfv-btn-list li:only-child {
    width: 100%;
    padding: 0 1rem 0 0;
  }

  .pfv-btn-list li a {
    font-size: 0.8125rem;
    font-weight: 400;
    padding: 1rem 0 1rem 3rem !important;
    min-width: 178px;
    text-align: left;
  }

  .pfv-btn-list li a.pfv-btn-related {
    padding: 1rem 1rem 1rem 3rem;
  }

  .pfv-btn-list li a::after {
    content: url(../img/icon-arrow-bottom-green.svg);
    width: 12px;
    height: 7px;
    position: absolute;
    right: 16px;
    top: 1rem;
  }

  .pfv-btn-list li a.pfv-btn-catalog {
    padding: 1rem 1rem 1rem 3rem;
  }

  .pfv-btn-list li a.pfv-btn-catalog::before {
      top: 1rem;
      left: 1rem;
      width: 26px;
      height: 18px;
  }  

  .pfv-btn-list li a.pfv-btn-articles {
    padding: 1rem 1rem 1rem 2.6rem;
  }

  .pfv-btn-list li a.pfv-btn-articles::before {
      top: 0.8rem;
      left: 1rem;
      width: 16px;
      height: 21px;
  }

  .pfv-btn-list li a.pfv-btn-videos::before {
      top: 1.1rem;
      left: 1.3rem;
      width: 18px;
      height: 18px;
  }

  .pfv-btn-list li a.pfv-btn-related::before {
      top: 1.2rem;
      left: 1rem;
      width: 18px;
      height: 16px;
  }

  .pfv-btn-list li a.pfv-btn-related {
    padding: 1rem 1rem 1rem 2.6rem;
  }



}



/*==============

 タイトルブロック 

================*/

/*  H1見出し  */

/* 背景あり */

.h1-style-bg {
  padding: 5.25rem 0;
  background: url(../img/h1-style-bg.png) no-repeat;
  background-size: cover;
  text-align: center;
}


.h1-style-bg h1.h1-style-text {
  font-size: 2.5rem;
  margin: 0;
  color: #fff;
  /* filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5)); */
}


@media (max-width: 991px) {
  .h1-style-bg {
    padding: 2.5rem 0;
    background: url(../img/h1-style-bg-sp.png) no-repeat;
    background-size: cover;
  }

  .h1-style-bg h1.h1-style-text {
    font-size: 1.4rem;
    /* filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.5)); */
  }
}

/* サブコピー付き */

.h1-block-with-copy {
  /* max-width: 1200px;
  margin: 0 auto; */
}

.h1-with-copy-sub {
  color: #00a73c;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

h1.h1-with-copy-title {
  font-size: 2.375rem;
  font-weight: 600;
  /* text-shadow: 1px 2px 2px rgba(0, 0, 0, 0.15); */
}
@media (max-width: 991px) {
  .h1-with-copy-sub {
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 0.3rem;
  }
  h1.h1-with-copy-title {
    font-size: 1.4rem;
    font-weight: 600;
    /* text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.15); */
  }
}

/* H2見出し */
.my-h2-block {
  margin: 3rem 0 2.5rem 0;
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--bs-primary);
  position: relative;
}

.my-h2-block::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 244px;
  height: 10px;
  background: url(../img/my-h2-block-bg.svg) no-repeat left bottom;
  background-size: contain;
}

h2.my-h2-text { 
  font-size: 2.0rem;
  font-weight: 600;
}


@media (max-width: 991px) {
  .my-h2-block {
    margin: 1.5rem 0 2rem 0;
    padding: 0.8rem 0;
  }

  .my-h2-block::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -7px;
    width: 128px;
    height: 7px;
    background: url(../img/my-h2-block-bg-sp.svg) no-repeat left bottom;
    background-size: contain;  
  }

  h2.my-h2-text {
    font-size: 1.125rem;
  }
}


/* H3見出し */
h3.my-h3-block  {
  font-weight: 600;
  margin-top: 3rem;
}

/* H4見出し */
h4.my-h4-block  {
  font-weight: 600;
  margin-top: 3rem;
}

/*==============

 単体パーツ 

================*/

/* 画像 */
.wp-block-image {
  margin-bottom: 4rem;
}

/* ボタン */
.wp-block-my-button-block {
  margin-bottom: 4rem;
}


/*==============

 カードブロック

================*/


/* カード横型 */
.card-horizontal[href="#"]{
  pointer-events: none; /* クリックイベントを無効にする */
  cursor: default;      /* カーソルを通常の矢印にする */
  /* text-decoration: none; */
}

.card-horizontal[target="_blank"]:after {
  content: none;
}

.card-horizontal .card-horizontal-wrapper{
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: #f6f5f0;
  box-shadow: none;
  margin-bottom: 2.8rem;
  position: relative;
}

.card-horizontal.wp-block-my-card-horizontal:last-of-type .card-horizontal-wrapper {
  margin-bottom: 0; 
}

/* メディア部分（画像/動画対応） */
.card-horizontal .card-horizontal-wrapper .card-media,
.card-horizontal .card-horizontal-wrapper .card-image {
  flex: 0 0 50%;
  max-width: 50%;
}

.card-horizontal .card-horizontal-wrapper .card-media iframe {
  width: 100%;
  height: 200px;
  border-radius: 0;
}

.card-horizontal .card-horizontal-wrapper .card-image img {
  width: 100%;
  height: auto;
  border-radius: 0;
}

/* コンテンツ部分 */
.card-horizontal .card-horizontal-wrapper .card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.5rem;
}

.card-horizontal .card-horizontal-wrapper .card-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.6;
  color: #00a73c;
  margin: 0 0 1.5rem 0;
}

.card-horizontal .card-horizontal-wrapper .card-content p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #000;
  margin: 0 0 0.75rem;
}

.card-horizontal .card-horizontal-wrapper .card-content:hover {
  opacity: 0.7;
}

/* ラベル */
.card-horizontal .card-horizontal-wrapper .card-labels {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.card-horizontal .card-horizontal-wrapper .card-labels li {
  background: #0073aa;
  color: #fff;
  padding: 0.2rem 0.6rem;
  font-size: 0.8rem;
  border-radius: 4px;
}

/* リンク */
.card-horizontal .card-horizontal-wrapper a {
  text-decoration: none;
  color: inherit;
}



.card-horizontal .card-horizontal-wrapper .card-footer {
  position: absolute;
  border-top: none;
  bottom: 2.5rem;
  right: 2.5rem;
}

.card-horizontal .card-horizontal-wrapper .card-footer .card-link-text {
  color: #00a73c;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  padding-right: 1.8rem;
  text-align: right;
}


.card-horizontal .card-horizontal-wrapper .card-footer .card-link-text::after {
  content: url(../img/icon-arrow-green.svg);
  transform: scale(0.7);
  position: absolute;
  right: 2px;
  bottom: -5px;
}

.card-horizontal .card-horizontal-wrapper:hover .card-footer {
  opacity: 0.7;
}


/* レスポンシブ */
@media (max-width: 991px) {
  .card-horizontal .card-horizontal-wrapper {
    flex-direction: column;
  }

  .card-horizontal .card-horizontal-wrapper .card-media,
  .card-horizontal .card-horizontal-wrapper .card-image,
  .card-horizontal .card-horizontal-wrapper .card-content {
    flex: 1;
    max-width: 100%;
  }

  .card-horizontal .card-horizontal-wrapper .card-content {
    padding: 1.3rem 1.3rem 0 1.3rem;
  }

  .card-horizontal .card-horizontal-wrapper .card-content h3 {
    font-size: 1.125rem;
    margin: 0 0 0.2rem 0;
  }

  .card-horizontal .card-horizontal-wrapper .card-content p {
    margin: 0 0 0.2rem 0;
  }

  .card-horizontal .card-horizontal-wrapper .card-footer {
    position: static;
    padding: 0 1.5rem 1.5rem;
    display: flex;
    justify-content: flex-end;
    width: 100%;
  }

  .card-horizontal .card-horizontal-wrapper .card-footer .card-link-text {
    padding-right: 1.5rem;
  }

  .card-horizontal .card-horizontal-wrapper .card-footer .card-link-text::after {
    transform: scale(0.5);
    position: absolute;
    right: 1.5rem;
    bottom: 1.2rem;
  }
}



/* カード横型 Youtube */
.card-horizontal-youtube {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: #f6f5f0;
  box-shadow: none;
  margin-bottom: 2.8rem;
  position: relative;
}

/* メディア部分（画像/動画対応） */
.card-horizontal-youtube .card-media,
.card-horizontal-youtube .card-image {
  flex: 0 0 50%;
  max-width: 50%;
}



.card-horizontal-youtube .card-media .video-wrapper {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 のアスペクト比 */
  overflow: hidden;
}

.card-horizontal-youtube .card-media .video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.card-horizontal-youtube .card-image img {
  width: 100%;
  height: auto;
  border-radius: 0;
}

/* コンテンツ部分 */
.card-horizontal-youtube .card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.5rem;
}

.card-horizontal-youtube .card-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.6;
  color: #00a73c;
  margin: 0 0 1.5rem 0;
}

.card-horizontal-youtube .card-content p {
  font-size: 0.95rem;
  margin: 0 0 0.75rem;
  line-height: 1.8;
}

/* ラベル */
.card-horizontal-youtube .card-labels {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.card-horizontal-youtube .card-labels li {
  background: #0073aa;
  color: #fff;
  padding: 0.2rem 0.6rem;
  font-size: 0.8rem;
  border-radius: 4px;
}

/* リンク */
.card-horizontal-youtube a {
  text-decoration: none;
  color: inherit;
}

.card-horizontal-youtube .card-footer {
  position: absolute;
  border-top: none;
  bottom: 2.5rem;
  right: 2.5rem;
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.card-horizontal-youtube .card-footer .card-link-text {
  color: #00a73c;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  padding-right: 1.8rem;
  text-align: right;
}


.card-horizontal-youtube .card-footer .card-link-text::after {
  content: url(../img/icon-arrow-green.svg);
  transform: scale(0.7);
  position: absolute;
  right: 2px;
  bottom: -5px;
}

.card-horizontal-youtube .card-footer .card-link-text:hover {
  opacity: 0.7;
}

/* レスポンシブ */
@media (max-width: 991px) {
  .card-horizontal-youtube {
    flex-direction: column;
  }

  .card-horizontal-youtube .card-media,
  .card-horizontal-youtube .card-image,
  .card-horizontal-youtube .card-content {
    flex: 1;
    max-width: 100%;
  }

  .card-horizontal-youtube .card-media {
    width: 100%;
    flex: none;
  }

  .card-horizontal-youtube .card-content {
    padding: 1.3rem 1.3rem 0 1.3rem;
  }

  .card-horizontal-youtube .card-content h3 {
    font-size: 1.125rem;
    margin: 0 0 0.2rem 0;
  }

  .card-horizontal-youtube .card-content p {
    margin: 0 0 0.2rem 0;
  }

  .card-horizontal-youtube .card-footer {
    position: static;
    padding: 0 1.5rem 1.5rem;
    display: flex;
    justify-content: flex-end;
  }

  .card-horizontal-youtube .card-footer .card-link-text {
    padding-right: 1.5rem;
  }

  .card-horizontal-youtube .card-footer .card-link-text::after {
    transform: scale(0.5);
    position: absolute;
    right: 1.5rem;
    bottom: 1.2rem;
  }
}




/* カードリスト全体 */
.card-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: flex-start;
  align-items: flex-start;
  margin: 2.8rem 0;
}

.card-list.no-link .card-footer {
  display: none;
}

.card-list.no-link .card-block:hover h3, 
.card-list.no-link .card-block:hover .card-flexible {
  opacity: 1.0!important;
}

.card-list#image-block {
  gap: 3rem;
}

.card-list#image-block .card-item-wrapper {
  box-shadow: none!important;
  border: none!important;
}


.card-list .card-item-wrapper {
  box-sizing: border-box;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s;
  flex: none;
  border: 1px solid #dadada;
  box-shadow: 0 2px 15px -3px rgba(0, 0, 0, 0.1), 0 10px 20px -2px rgba(0, 0, 0, 0.04);
  margin-bottom: 2rem;
}

@media (max-width: 991px) {
  .card-list {
      gap: 1.5rem;
      margin: 1rem 0 2.8rem;
  }
  .card-list .card-item-wrapper {
      margin-bottom: 1rem;
  }
}

/* gap: 0.5rem × (列数 - 1) を引いて調整 */
.card-list.columns-1 .card-item-wrapper { width: 100%; }
.card-list.columns-2 .card-item-wrapper { width: calc((100% - 2rem) / 2); }
.card-list.columns-3 .card-item-wrapper { width: calc((100% - 6rem) / 3); }
.card-list.columns-4 .card-item-wrapper { width: calc((100% - 9rem) / 4); }
.card-list.columns-5 .card-item-wrapper { width: calc((100% - 12rem) / 5); }
.card-list.columns-6 .card-item-wrapper { width: calc((100% - 15rem) / 6); }

@media (max-width: 991px) {
  .card-list.columns-2 .card-item-wrapper,
  .card-list.columns-3 .card-item-wrapper,
  .card-list.columns-4 .card-item-wrapper,
  .card-list.columns-5 .card-item-wrapper,
  .card-list.columns-6 .card-item-wrapper {
    width: 100%;
  }
}


/* 中身のカードボックス */
.card-list .card-block {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
}




/* 固定ゾーン（画像＋タイトル） */
.card-list .card-fixed {
  margin-bottom: 0.4rem;
  position: relative;
  overflow: hidden;
  /* flex-grow: 1; */
}

.card-list .card-fixed img {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
  /* padding: 0 29%; */
  padding: 0;
  transform-origin: 50% 20%;
}

.card-list .card-fixed h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  word-break: break-word;
  padding: 0 1.125rem;
}

.card-list .card-fixed:hover h3 {
  opacity: 0.7;
}

.card-list .hover-zoom {
  display: inline;
}

.hover-zoom:hover .card-fixed img {
    transform: scale(1.1); /* 1.1から1.05に削減 */
}

.hover-zoom .card-block,
.hover-zoom .card-image {
    overflow: hidden!important;
}

.card-list.image-has-padding .card-image {
  padding: 10px;
}

.card-list .card-fixed:hover .card-link-text {
    opacity: 0.7;
}
.card-list .card-block:hover h3{
  opacity: 0.7;
}
.card-list .card-block:hover .card-footer{
  opacity: 0.7;
}

/* 可変ゾーン（説明文＋ラベル） */
.card-list .card-flexible {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  padding: 0 1.125rem;
}

.card-list .description-html {
  font-size: 0.91rem;
  color: #000000;
  margin-bottom: 0.75rem;
}

.card-list .card-block:hover .card-flexible{
  opacity: 0.7;
}

@media (max-width: 991px) {
  .card-list .card-fixed h3 {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
  }

  .card-list .description-html {
    font-size: 0.92rem;
    margin-bottom: 0.2rem;
  }

  .card-list .card-flexible {
    justify-content: normal;
  }
}


/* ラベル */
.card-list .card-labels {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  /* margin: 0 0 2rem 0; */
  /* padding: 1.125rem; */
}

.card-list .card-labels li {
  background: #fff;
  color: #76c31d;
  border: 1px solid #76c31d;
  padding: 0.1rem 0.2rem;
  font-size: 0.8125rem;
  border-radius: 0;
}

@media (max-width: 991px) {
  .card-list .card-labels {
    /* margin-bottom: -2rem; */
  }
}

/* 下部固定リンク */
.card-list .card-footer {
  position: relative;
  border: none!important;
  margin: auto 1.125rem 1.125rem;
}

.card-list .card-footer .card-link-text {
  color: #00a73c;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  padding-right: 1.8rem;
  text-align: right;
}


.card-list .card-footer .card-link-text::after {
  content: url(../img/icon-arrow-green.svg);
  transform: scale(0.7);
  position: absolute;
  right: 2px;
  bottom: -5px;
}



@media (max-width: 991px) {
  .card-list .card-footer .card-link-text {
    font-size: 0.8125rem;
    margin-top: 0;
  }

  .card-list .card-footer .card-link-text::after {
    transform: scale(0.5);
  }

  .horizontal-scroll {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: scroll;
    -webkit-overflow-scrolling: touch!important;
    padding-bottom: 1.5rem;
    scrollbar-width: thin!important;
    scrollbar-color: #787878 #d2d2d2!important; 
  }

  .horizontal-scroll::-webkit-scrollbar {
    width: 12px!important;
    height: 12px!important;
  }
  .horizontal-scroll::-webkit-scrollbar-track {
    background-color: #d2d2d2!important;
    border-radius: 15px!important;
  }

  .horizontal-scroll::-webkit-scrollbar-thumb {
    background-color: #787878!important;
    border-radius: 15px!important;
    width: 40%!important;
  }

  .horizontal-scroll .card-item-wrapper {
    flex: 0 0 auto!important;
    width: 81%!important;
  }  

}

/* スマホ対応 */
@media screen and (max-width: 768px) {
  .card-list .card-item-wrapper {
    /* width: 100% !important; */
  }
}

/* === スマホ時：カードリストを横スク化（任意のときだけ .is-scroll を付ける） === */
@media (max-width: 768px) {
  .card-list.is-scroll {
    display: flex;
    flex-wrap: nowrap;               /* 折り返さない */
    overflow-x: auto;                /* 横スク有効 */
    -webkit-overflow-scrolling: touch; /* iOS慣性スクロール */
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;   /* スナップ任意 */
    padding-bottom: 8px;             /* スクロールバー分の余白 */
    gap: 0.5rem;                     /* 既存gapと合わせる */
  }

  /* 各カードを“横並びの固定幅要素”にする */
  .card-list.is-scroll .card-item-wrapper {
    flex: 0 0 auto;
    width: 75% !important;           /* 見やすい幅。60〜85%で調整可 */
    max-width: 75% !important;
    scroll-snap-align: start;        /* スナップ任意 */
  }

  /* 画像のはみ出し防止 */
  .card-list.is-scroll .card-item-wrapper img {
    display: block;
    width: 100%;
    height: auto;
  }

  /* スクロールバー見える化（WebKit） */
  /* .card-list.is-scroll::-webkit-scrollbar { height: 8px; }
  .card-list.is-scroll::-webkit-scrollbar-track { background: #eee; }
  .card-list.is-scroll::-webkit-scrollbar-thumb { background: #bbb; border-radius: 4px; } */

  /* Firefox用 */
  /* .card-list.is-scroll { scrollbar-width: thin; scrollbar-color: #bbb #eee; } */
}



/* 管理画面のエディタ内だけに適用 */
.block-editor-block-list__block .card-block {
  display: block !important;
  height: auto !important;
}

/* 必要ならフレックス解除（高さを合わせない） */
.block-editor-block-list__block .card-block {
  display: block !important;
  align-items: flex-start !important;
}

/* カード単体用 */
.card-single {
  max-width: 600px;
  margin: 2rem auto;
}

.card-single .card-block {
  border: 1px solid #ccc;
  padding: 1rem;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* 画像とタイトル部分（.card-fixed） */
.card-single .card-fixed img {
  max-width: 100%;
  display: block;
  margin-bottom: 0.75rem;
  border-radius: 6px;
}

.card-single .card-fixed h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

/* タイトルの色変更 */
.card-title-green {
  color: #00a73c; /* 緑色 */
}

.card-title-black {
  color: #000; /* 黒色 */
}



/* 説明文部分 */
.card-single .description-html p {
  font-size: 1rem;
  color: #333;
  margin-bottom: 0.75rem;
}

/* ラベル */
.card-single .card-labels {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.card-single .card-labels li {
  background: #0073aa;
  color: #fff;
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
  border-radius: 4px;
}




/* カタログ一覧 */

.my-h2-block:has(> h2#catalog) {
  margin-top: 2rem;
}

h2.my-h2-text#catalog {
  padding-left: 5rem;
  position: relative;
}

h2.my-h2-text#catalog::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 1px;
  width: 56px;
  height: 50px;
  background: url(../img/my-h2-text-icon-catalog.svg) no-repeat center;
  background-size: contain;
}



.card-list#image-block .card-block {
  display: inline;
  padding: 0;
  border: none;
  box-shadow: none;
  background: transparent;
}

.card-list#image-block .card-block .custom-image-block {
  margin: 0;
  transition: opacity 0.5s;
}

.card-list#image-block .card-block .custom-image-block:hover {
  opacity: 0.7;
}

.card-list#image-block .card-block .custom-image-block .card-image {
  display: inline-block;
}

.card-list#image-block .card-block .custom-image-block img {
  border: 1px solid #d3d5da;
  display: inline-block;
  max-width: 100%;
  height: auto;
}

.card-list#image-block .card-block .custom-image-block img.with-shadow {
  border: none;
}

.card-list#image-block .card-block .custom-image-block .caption {
  margin: 1rem 0 0 0;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.65;
  color: #000;
  text-align: left;
  display: flex;
  align-items: baseline;
}

.card-list#image-block a[target="_blank"] .caption::before {
  content: url('../img/icon-blank-arrow-green.svg'); 
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-right: 0.8rem;
  position: relative;
  top: 3px;
}

.card-list#image-block a[target="_blank"]::after {
  content: none;
}

.card-list#image-block .hover-zoom {
  display: inline;
}

/*image-blockのときだけhoverアニメーションを無効*/
.card-list#image-block .hover-zoom:hover img {
    transform: none !important;
}

@media (max-width: 991px) {
  h2.my-h2-text#catalog {
    padding-left: 3.5rem;
  }

  h2.my-h2-text#catalog::before {
    top: -0.1rem;
    left: 1px;
    width: 37px;
    height: 27px;  
  }

  .card-list.horizontal-scroll#image-block .card-item-wrapper {
    width: 52%;
  }

  .card-list#image-block a[target="_blank"] .caption::before {
    width: 16px;
    height: 16px;    
  }

  .card-list#image-block .card-block .custom-image-block .caption {
    font-size: 0.97rem;
    font-weight: 500;
    line-height: 1.4;
    display: inline-flex;
    text-align: center;
    margin: 0;
  }

  .card-list#image-block {
    gap: 1.8rem;
  }

}



/* 関連記事 */

h2.my-h2-text#articles {
  padding-left: 4rem;
  position: relative;
}

h2.my-h2-text#articles::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 0px;
  width: 40px;
  height: 50px;
  background: url(../img/my-h2-text-icon-articles.svg) no-repeat center;
  background-size: contain;
}

/* .card-list#articles-list .card-fixed h3 {
  font-size: 1.125rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.card-list#articles-list .card-fixed img {
  padding: 0 0%;
  width: 100%;
} */

.card-list a[target="_blank"]::after {
  content: none;
}

@media (max-width: 991px) {
  h2.my-h2-text#articles {
    padding-left: 2.6rem;
  }

  h2.my-h2-text#articles::before {
    top: -0.6rem;
    left: 0px;
    width: 28px;
    height: 34px;
  }

}


/* 関連動画 */

h2.my-h2-text#videos {
  padding-left: 4rem;
  position: relative;
}

h2.my-h2-text#videos::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0px;
  width: 44px;
  height: 50px;
  background: url(../img/my-h2-text-icon-videos.svg) no-repeat center;
  background-size: contain;
}

@media (max-width: 991px) {
  h2.my-h2-text#videos {
    padding-left: 2.6rem;
  }
  
  h2.my-h2-text#videos::before {
    top: -0.8rem;
    left: 1px;
    width: 27px;
    height: 49px;
  }
}


/* 関連製品 */

h2.my-h2-text#related {
  padding-left: 4.5rem;
  position: relative;
}

h2.my-h2-text#related::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 0px;
  width: 47px;
  height: 50px;
  background: url(../img/my-h2-text-icon-related.svg) no-repeat center;
  background-size: contain;
}

/* .card-list#related-list .card-fixed img {
  padding: 0;
  width: 100%;
} */



@media (max-width: 991px) {
  h2.my-h2-text#related {
    padding-left: 2.8rem;
  }

  h2.my-h2-text#related::before {
    top: -0.5rem;
    left: 1px;
    width: 28px;
    height: 41px;
  }
}

/* その他製品に関する事項 */

.card-list#info-list .card-block {
  padding: 0 0 1.125rem 0;
}

.card-list#info-list .card-fixed h3 {
  padding:0 1.125rem;
}

.card-list#info-list .card-fixed img {
  padding: 0;
  width: 100%;
}

.card-list#info-list .card-flexible {
  padding:0 1.125rem;
}

.card-list#info-list .card-footer {
  padding:0 1.125rem;
}

.card-list#info-list .card-footer .card-link-text {
  margin-top: 0.5rem;
}

.card-list#info-list .card-footer .card-link-text::after {
  right: 18px;
}

.card-list#info-list .hover-zoom {
  display: inline;
}

/*==============

汎用ブロック

================*/



/* === 画像ブロック === */
.custom-image-block {
  margin: 1.5em 0;
  text-align: center; /* 画像を中央にするため */
}

.custom-image-block .caption {
  margin-top: 0.5em;
  font-size: 0.9em;
  color: #555;
}

.card-block:hover .custom-image-block .caption {
  opacity: 0.7;
}


.with-shadow {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2)!important;
  /* display: inline-block; */
  max-width: 100%;
  height: auto;
}

/* === 表ブロック === */
.table-scroll {
  overflow-x: auto;
}

.my-custom-table {
  border-collapse: collapse;
  width: 100%;
  margin: 1rem 0;
  table-layout: fixed;
}

.horizontal-scroll .my-custom-table {
  min-width: 750px;
}

.my-custom-table th,
.my-custom-table td {
  border: 1px solid #ccc;
  padding: 1rem;
  text-align: center;

}

.my-custom-table th {
  background: #f4f4f4;
  font-weight: 500;
  width: 30%;
  white-space: normal;
  word-break: break-word;
  text-align: left;
  vertical-align: top;
}


.my-custom-table.table-center th,
.my-custom-table.table-center td {
  text-align: center;
}

.my-custom-table.table-center img {
    display: block; /* 画像をブロック要素に変更 */
    margin-left: auto;
    margin-right: auto;
}

p.scrool-mention {
  font-size: 0.6875rem;
  display: none;
}

@media (max-width: 991px) {
  p.scrool-mention {
    display: block;
    margin: 1.5rem 0 0 0;
  }

  .my-table-block {
    margin-bottom: 1.5rem;
  }

  .my-custom-table th,
  .my-custom-table td {
    padding: 0.5rem;
    font-size: 0.9375rem;
  }

  .my-custom-table th {
    width: 40%;
  }

}


/* 横スクロール行（スマホ時） */
@media (max-width: 768px) {
  /* 親コンテナ：Groupブロックに付けたクラス */
  .item-scroll-row {
    display: flex;                 /* 横並び */
    gap: 12px;                     /* 画像同士の間隔 */
    overflow-x: auto;              /* 横スクロールON */
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch; /* iOS慣性スクロール */
    scroll-snap-type: x mandatory; /* スナップ（任意） */
    padding-bottom: 8px;           /* スクロールバー分の余白 */
  }

  /* 子要素（あなたの画像ブロックの外枠） */
  .item-scroll-row .custom-image-block {
    flex: 0 0 auto;                /* 折り返さない固定幅要素に */
    width: 75%;                    /* 見やすい幅に（好みで調整） */
    scroll-snap-align: start;      /* スナップ位置（任意） */
  }

  /* 画像のはみ出し防止 */
  .item-scroll-row .custom-image-block img {
    display: block;
    width: 100%;
    height: auto;
  }

  /* スクロールバーを見える化（WebKit） */
  .item-scroll-row::-webkit-scrollbar { height: 8px; }
  .item-scroll-row::-webkit-scrollbar-track { background: #eee; }
  .item-scroll-row::-webkit-scrollbar-thumb { background: #bbb; border-radius: 4px; }

  /* Firefox用の簡易スタイル */
  .item-scroll-row { scrollbar-width: thin; scrollbar-color: #bbb #eee; }
}

.btn-wide {
    padding: 1.7rem 6.5rem !important;
    margin-top: 2rem;
}
@media (max-width: 991px) {
    .btn-wide {
        /* margin-bottom: 1.5rem; */
        width: 100%;
        margin-top: 0.5rem;
    }

}

.scroll-mention { display: none; }
 
@media only screen and (max-width: 991px) {
  .scroll-mention { display: block; }
}
