/*----- ソリューションページ -------------------*/

/**
余計なコンテナが入っているので無効化する
htmlの構造をそのままでrowのギャップを0にする
*/

#masonryContainer .container {
  width: 100%;
  --bs-gutter-x: 0;
  --bs-gutter-y: 0;
}

#masonryContainer .container .row {
  --bs-gutter-x: 0;
  --bs-gutter-y: 0;
}

.img-responsive {
  display: block;
  height: auto;
  max-width: 100%;
}
.panel {
  padding: 15px;
  margin-top: 10rem;
}
.panel a {
  color: #333;
}
.panel-default {
  border-bottom: solid 1px #000;
  color: #333;
}
.solution-menu,
.tab-index,
.solution-items {
  margin: 0 auto;
  width: 85%;
}

.categories-sel {
  background-color: #f0f0f0;
  padding: 3rem;
  color: #333;
}
.categories-sel a {
  font-size: 1.8rem;
  color: #333;
  font-family:  "メイリオ", "Meiryo", "ＭＳ ゴシック", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN", sans-serif;
  font-weight: 100;
  line-height: 3.5rem;
}

.categories li {
  display: inline-block;
  list-style: none;
}

.categories li:not(.list1) {
  margin-left: 4rem;
}

/* タグフィルター：非activeの場合は先頭に "#" を表示 */
.portfolio_filter a:not(.active):before {
  content: "#";  
}

.tabtype-str li {
  display: inline-block;
  list-style: none;
  margin-right: 1rem;
  background-color: #f0f0f0;
  padding: 0.3rem 1rem;
  margin-bottom: 0.6rem;
  border-radius: 1rem;
}

.tabtype-str li:before {
  content: "#";
}

.parent {
  position: relative;
  height: 7rem;
}

.panel-body p {
  overflow: auto;
  height: 18rem;
}

.panel-body h3 {
  margin-top: 0.6rem;
  text-align: center;
  position: absolute;
  width: 100%;
  top: 50%;
  transform : translateY(-50%);
}

.panel-footer {
  padding: 0px 15px;
  font-size: 1.4rem;
  height: 5rem;
  font-family: "メイリオ", "Meiryo", "ＭＳ ゴシック", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN", sans-serif;
}

.solution-menu {
  margin-bottom: 4rem;
}

.img-wrapper {
  overflow: hidden;
  position: relative;
  aspect-ratio: 600 / 350;
}

.product-archive-mv {
  object-fit: cover;
  width: 100%;
}

.product-archive-logo {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  width: 80%;
}

.panel-body img {
  transition:0.5s all;
}
.solution-items img:hover {
  transform:scale(1.1,1.1);
  transition:0.5s all;
}

.panel-default:hover img {
  transform:scale(1.1,1.1);
}
.panel-default:hover p {
  color: #333;
}
.panel-default:hover .solution-item-arrow {
  background: #222;
  color: #fff;
  transition: all .3s ease;
}

/*------------------------------*/
/* 試作 businessから---------------------------*/

.content-left {
  margin: 0 12rem;
  padding: 10rem 0 2rem;
}
.content-inner {
  padding: 10rem 0 2rem;
}

/*--- Solution Tabs (Category Filter) ---*/
.solution-tabs {
  display: flex;
  justify-content: center;
  border-bottom: 0.2rem solid #ddd;
  position: relative;
}

.solution-tabs ul {
  display: flex;
}

.solution-tabs li {
  color: #333;
  padding: 2rem 2rem;
  font-size: 2rem;
}

.solution-tabs li a {
  position: relative;
  text-decoration: none;
  padding: 2rem 2rem;
  color: #222;
}

.solution-tabs .active a {
  height: 100%;
  font-weight: bold;
}

.solution-tabs a::before {
  content: '';
  width: 100%;
  height: 0.5rem;
  display: block;
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  transition: all 0.3s ease;
  transform: scaleX(0);
}

.solution-tabs li:hover a::before {
  content: '';
  background-color: rgb(145, 195, 30);
  transform: scaleX(1);
}
.solution-tabs li a:hover {
  color: #aaa;
}
/* 追加：カテゴリフィルターのアクティブ項目は常時下線表示 */
.solution-tabs li.active a::before {
  background-color: rgb(145, 195, 30);
  transform: scaleX(1);
}

/*--- Portfolio Filter (Tag Filter) ---*/
/* 元々の設定はそのまま：非activeの場合は先頭に "#" を表示 */
.portfolio_filter li a {
  position: relative;
  text-decoration: none;
  color: #333;
}
/* 追加：選択されているタグ（active）の文字色を #91c31e に変更 */
ul.portfolio_filter li.active > a {
  color: #91c31e;
}
/* 追加：activeタグの疑似要素（"#"）は非表示 */
ul.portfolio_filter li.active > a:before {
  content: "";
}

.img-placeholder {
  background-color: #fff;
  width: 100%;
  height: 100%;
  display: block;
}

/*--- 既存の矢印部分（影響を与えない） ---*/
/* こちらの設定は元の状態のまま維持 */
.solution-item-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  padding: 1.5rem;
  border: 0.1rem solid #222;
  border-radius: 50%;
  text-decoration: none;
  color: #222;
  background: #fff;
  font-size: 1.8rem;
  transition: all .3s ease;
}

.solution-item-arrow:hover {
  background: #222;
  color: #fff;
  transition: all .3s ease;
}

/*---------------------*/
/* ページネーション */
.pagination {
  text-align: center;
  margin: 2rem 0;
}

.pagination a,
.pagination span {
  display: inline-block;
  margin: 0 0.5rem;
  padding: 0.75rem 1.25rem;
  font-size: 1.2rem;
  color: #00373E;
  background-color: #fff;
  border: 1px solid #ccc;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
}

.pagination a:hover {
  background-color: rgba(145, 195, 30, 0.8);
  color: #fff;
}

.pagination .current {
  background-color: #91c31e;
  color: #fff;
  border-color: #91c31e;
}

/*--- swaiper バナー--------------------------*/

/* 前への矢印 */
.solution-banner .swiper-button-prev {
  left: -50px;
  color: #333;
}
/* 次への矢印 */
.solution-banner .swiper-button-next {
  right: -50px;
  color: #333;
}
.solution-banner {
  margin: 12rem 0;
}
.solution-banner {
  margin-left: auto;
  margin-right: auto;
  max-width: 80vw;
  position: relative;
}
.solution-banner .swiper {
  max-width: 100%;
}
.swiper-slide img {
  height: auto;
  width: 100%;
}

/*--------------------- Responsive ---------------------*/
@media screen and (max-width: 768px) {
  .panel-footer {
    height: 7rem;
  }

  .solution-item-arrow {
    margin-top: 0.5rem;
  }

  .solution-banner .swiper-button-prev {
    left: 0;
  }
  .solution-banner .swiper-button-next {
    right: 0;
  }
  .solution-banner {
    max-width: 100vw;
    margin: 0.5rem 0;
  }

  .content-left {
    margin: 0;
    padding: 0;
  }
  .content-ttl {
    font-size: 4.2rem;
    margin: 0 0 4rem;
    padding: 2rem 2rem;
  }

  .solution-tabs {
    justify-content: left;
    padding-bottom: 1rem;
  }

  .solution-tabs ul {
    display: block;
  }
  .solution-tabs li {
    display: block;
    width: 100%;
    padding: 0.5rem 0;
    font-size: 1.2rem;
  }
  .solution-tabs li a {
    text-decoration: none;
    padding: 0.5rem 0 0 0;
    color: #222;
  }
  .solution-tabs a::before {
    height: 0.2rem;
  }

  .solution-menu,
  .tab-index,
  .solution-items {
    width: 97%;
  }

  .panel-footer{
    flex-wrap: nowrap;
  }

  .solution-sp{
    width: fit-content;
  }

}
