/* ********************************** サイドバー ********************************** */
aside {
  width: 250px;
  height: calc(100% - 179px);
  position: absolute;
  top: 0;
  right: 0;
  border-left: 15px solid var(--maincolor);
}

#aside_wrapper {
  position: -webkit-sticky;
  position: sticky;
  top: 40px;
}

aside .aside_inner_box{
  height: 100vh;
  position: relative;
}

aside .aside_inner_box .text_list{
  position: absolute;
  top: 40px; /* 上から40pxの位置に固定 */
  left: 50%; /* 左から50%の位置に配置（中央揃えの準備） */
  transform: translateX(-50%); /* 左右中央揃えのために要素の幅の半分を左に移動 */
  width: 65%; /* 要素の幅を65%に設定 */
}

aside .aside_inner_box .text_list a{
  font-size: 1.1em;
  padding-bottom: 1.8em;
}

aside .aside_inner_box .text_list a span{
  font-size: 0.7em;
}

#aside_wrapper ul {
  margin: 0 auto;
}

#aside_wrapper ul li:nth-child(1){
  width: 75px;
  margin: 0 auto 1.5em auto;
}

#aside_wrapper ul li:nth-child(1) .logo_boarder{
  border-bottom: 2px solid var(--maincolor);
  padding-bottom: 6px;
  width: 1em;
  margin: 0 auto;
  transition: width 0.5s ease; /* アニメーションの設定 */
}

#aside_wrapper ul li:nth-child(1) a:hover{
  opacity: 0.8;
}

#aside_wrapper ul li:nth-child(1) a:hover .logo_boarder{
  width: 100%;
}

#aside_wrapper ul li:nth-child(2),
#aside_wrapper ul li:nth-child(3),
#aside_wrapper ul li:nth-child(4),
#aside_wrapper ul li:nth-child(5){
  padding-left: 45px;
  position: relative;
}

#aside_wrapper ul li:nth-child(2) a span,
#aside_wrapper ul li:nth-child(3) a span,
#aside_wrapper ul li:nth-child(4) a span,
#aside_wrapper ul li:nth-child(5) a span{
  border-bottom: 2px solid transparent; /* 初期状態では透明に */
  transition: border-bottom-color 0.5s ease; /* アニメーションの設定 */
}

#aside_wrapper ul li:nth-child(2) a:hover span,
#aside_wrapper ul li:nth-child(3) a:hover span,
#aside_wrapper ul li:nth-child(4) a:hover span,
#aside_wrapper ul li:nth-child(5) a:hover span{
  border-bottom: 2px solid var(--maincolor);
}

aside .new_item_news::before {
  content: "";
  background: url(../images/systems/icon/cart_icon.svg) no-repeat;
  background-size: contain;
  width: 33px;
  height: 33px;
  display: inline-block;
  position: absolute;
  top: 0.3em;
  left: -4px;
}

aside .total_news::before {
  content: "";
  background: url(../images/systems/icon/speaker_icon.svg) no-repeat;
  background-size: contain;
  width: 28px;
  height: 28px;
  display: inline-block;
  position: absolute;
  top: 0.5em;
  left: 0px;
}

aside .company_news::before {
  content: "";
  background: url(../images/systems/icon/information_icon.svg) no-repeat;
  background-size: contain;
  width: 28px;
  height: 28px;
  display: inline-block;
  position: absolute;
  top: 0.4em;
  left: -1px;
}

aside .item_topics::before {
  content: "";
  background: url(../images/systems/icon/kuma_icon.svg) no-repeat;
  background-size: contain;
  width: 35px;
  height: 35px;
  display: inline-block;
  position: absolute;
  left: -1px;
}

#aside_wrapper ul li a {
  display: inline-block;
}









aside #item_search_box a,
aside #contact_box a {
  width: 100%;
  margin: 0 auto;
  margin-bottom: 1.2em;
  border: 1px solid white;
  border-radius: 20px;
  position: relative;
  display: block;
}

aside #item_search_box a{
  background-color: var(--maincolor);
  color: white;
  transition: background-color 0.2s, color 0.3s; /* ホバー時の変化に1秒かける */
  border: 2px solid white;
}

aside #contact_box a {
  border: 2px solid var(--maincolor);
  color: var(--maincolor);
  transition: background-color 0.2s, color 0.3s; /* ホバー時の変化に1秒かける */
  background-color: white;
}

aside #item_search_box a:hover,
aside #contact_box a:hover{
  background-color: var(--pointcolor);
  border: 2px solid var(--pointcolor);
  color: white;
}

/* 通常時のsvgの色設定 */
aside #item_search_box .search_icon {
  filter: invert(100%) sepia(100%) saturate(11%) hue-rotate(209deg) brightness(104%) contrast(101%);
}

/* 通常時のsvgの色設定 */
aside #contact_box .mail_icon{
  filter: invert(61%) sepia(82%) saturate(4203%) hue-rotate(12deg) brightness(100%) contrast(101%);
}

/* ホバー時にsvgをホワイトに色変更 */
aside #contact_box a:hover .mail_icon{
  filter: invert(100%) sepia(100%) saturate(11%) hue-rotate(209deg) brightness(104%) contrast(101%);
}





aside #item_search_box p,
aside #contact_box p{
  text-align: center;
  padding-top: 100px;
}

aside #item_search_box img,
aside #contact_box img{
  position: absolute;
  inset: 50% auto auto 50%;
  translate: -50% -50%;
  width: 60px; /* 子要素の幅 */
}

aside #item_search_box img{
  top: 60px;
}

aside #contact_box img{
  top: 60px;
  width: 50px;
}










/* ********************************** モーダル表示 ********************************** */
/* モーダル背景 */
#modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;  /* 画面幅を100%に設定 */
  height: 100vh; /* 画面高さを100%に設定 */
  background: rgba(0, 0, 0, 0.5); /* 半透明のグレー */
  z-index: 9998;
  display: none; /* 初期状態は非表示 */
}

.modal_wrapper{
  width: 100%;
  height: 100%;
}

/* モーダルコンテンツ */
.modal {
  position: fixed;
  top: 50%; /* 画面の上下中央に配置するために50% */
  left: 50%; /* 画面の左右中央に配置するために50% */
  transform: translate(-50%, -50%); /* 要素の中心を基準にして左上に移動する */
  z-index: 9999;
  height: 90%;
  width: 90%;
  overflow-y: auto; /* コンテンツ内のみスクロール可能に */
  display: none; /* 初期状態は非表示 */
  border: 12px solid var(--accentcolor);
  background-color: white;
}

.modal-content-inner{
  padding: 60px;
}

/* 閉じるボタン */
.close {
  position: sticky;
  position: -webkit-sticky;
  top: 30px;
  right: 30px;
  background: white;
  cursor: pointer;
  color: #000;
  border: 4px solid var(--maincolor);
  padding: 0.7em;
  text-align: center;
  width: 70px;
  height: 70px;
  float: right;
  z-index: 1;
}

.close .search_icon {
  width: 40px;
  height: 40px;
  filter: invert(61%) sepia(82%) saturate(4203%) hue-rotate(12deg) brightness(100%) contrast(101%);
}

.close:hover {
  background-color: var(--maincolor);
  border: 4px solid var(--accentcolor);
}

.close:hover .search_icon {
  filter: invert(100%) sepia(100%) saturate(11%) hue-rotate(209deg) brightness(104%) contrast(101%);
}

/* ページのスクロールを無効にするクラス */
body.modal-open {
  overflow: hidden;
}

.modal_wrapper .information {
  background-color: var(--assortcolor);
  color: black;
  width: 100%;
  text-align: center;
  padding: 0.3em;
  margin-bottom: 1em;
}

.modal_wrapper .orange_border{
  margin: 4em 0 4em 0;
}









/* ********************************** 複合条件で探すフォーム部分 ********************************** */
.modal_search_box .modal_search_title img{
  width: 1em;
  height: 1em;
  margin-right: 0.15em;
}

.modal_search_box .search_box_wrapper{
  max-width: unset;
  width: fit-content;
  margin: 0 auto;
}

.modal_search_box .search_container{
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75em;
}

.modal_search_box .search_box_wrapper .custom_input,
.search_box_wrapper .custom_input,
.search_box_wrapper .custom_select,
.search_box_wrapper .custom-search-button{
  margin-right: unset !important;
  field-sizing: content;
}












/* ********************************** カテゴリーボタンと連携した投稿記事の表示 ********************************** */

/* カテゴリーボタンを押すと、カテゴリーを絞り込んだ投稿を表示する */
/* ボタンのデザイン */
.category-buttons_wrapper {
  align-items: center;
  width: 75%;
  margin: 0 auto;
}

.category-buttons_wrapper .category-buttons_box {
  position: relative;
}

.category-buttons_wrapper .category-buttons {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory; /* 小要素をスナップさせる */
  scroll-behavior: smooth; /* スムーズなスクロール */
  white-space: nowrap;
  width: calc(100% - 80px); /* Adjusted for padding between buttons */
  margin: 0 40px; /* Ensure scroll buttons are visible */
  border-left: 2px solid var(--assortcolor);
  border-right: 2px solid var(--assortcolor);
}


.category-buttons_wrapper .category-buttons button {
  scroll-snap-align: start; /* 小要素のスナップ位置を指定 */
  display: inline-block;
  width: fit-content;
  padding: 1em 5em;
  background-color: white;
  border: 2px solid var(--assortcolor);
  margin-right: 2px; /* Set margin between buttons */
}

.category-buttons_wrapper .category-buttons button:hover,
.category-buttons_wrapper .category-buttons button.active {
  background-color: var(--maincolor);
  border: 2px solid var(--maincolor);
  color: white;
}

.category-buttons_wrapper .category-buttons li:fast-of-type button:fast-child {
  margin-left: 0;
  border-left: unset;
}

.category-buttons_wrapper .category-buttons li:last-of-type button:last-child {
  margin-right: 0;
  border-right: unset;
}

.category-buttons_wrapper #scroll-left, #scroll-right {
  background-color: unset;
  border: unset;
  position: absolute; /* これより下記は親要素の上下中央に揃える */
  top: 30%;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  width: 1.5em;
}

.category-buttons_wrapper #scroll-left {
  left: -1em;
  transform: rotate(90deg);
}

.category-buttons_wrapper #scroll-right {
  right: -1em;
  transform: rotate(270deg);
}

/* スクロールバーのカスタマイズ */
.category-buttons_wrapper .category-buttons::-webkit-scrollbar,
.category-buttons_wrapper .scroll_content::-webkit-scrollbar{
  height: 3px; /* スクロールバーの高さ */
}

.category-buttons_wrapper .category-buttons::-webkit-scrollbar-track,
.category-buttons_wrapper .scroll_content::-webkit-scrollbar-track{
  background: white; /* スクロールバーの背景色 */
}

.category-buttons_wrapper .category-buttons::-webkit-scrollbar-thumb,
.category-buttons_wrapper .scroll_content::-webkit-scrollbar-thumb{
  background: var(--maincolor); /* スクロールバーの色 */
  max-width: 12px; /* スクロールバーのthumbの最大幅 */
}


/* ボタンが無効化された状態のスタイル */
.category-buttons_wrapper #scroll-left:disabled,
.category-buttons_wrapper #scroll-right:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ボタンが無効化された状態のスタイル */
.category-buttons_wrapper #scroll-left:disabled img,
.category-buttons_wrapper #scroll-right:disabled img {
  filter: invert(95%) sepia(67%) saturate(0%) hue-rotate(164deg) brightness(90%) contrast(91%);
}

/* ボタンが有効な状態のスタイル */
.category-buttons_wrapper #scroll-left img,
.category-buttons_wrapper #scroll-right img {
  filter: invert(61%) sepia(82%) saturate(4203%) hue-rotate(12deg) brightness(100%) contrast(101%);
}

/* ホバー時のスタイル */
.category-buttons_wrapper #scroll-left img:hover,
.category-buttons_wrapper #scroll-right img:hover {
  filter: invert(61%) sepia(82%) saturate(4203%) hue-rotate(12deg) brightness(100%) contrast(101%);
}

/* 有効な状態でホバー時のスタイル */
.category-buttons_wrapper #scroll-left:not(:disabled) img:hover,
.category-buttons_wrapper #scroll-right:not(:disabled) img:hover {
  filter: invert(61%) sepia(82%) saturate(4203%) hue-rotate(12deg) brightness(100%) contrast(101%);
  cursor: pointer;
}








/* ここからモーダルスワイパーのスライド表示 */
.category_post_wrapper{
  width: 100%;
  max-width: 900px;
  margin: 2.5em auto 0 auto;
  position: relative;
}

.category_post_wrapper .swiper-button-prev{
  left: -4em;
}

.category_post_wrapper .swiper-button-next{
  right: -4em;
}

/* スワイパーのデフォルト値のナビゲーション（矢印）を一旦削除 */
.swiper-button-prev:after,
.swiper-button-next:after{
  content: unset;
}

.category_post_wrapper .modal_swiper-button-prev,
.category_post_wrapper .modal_swiper-button-next{
  width: 50px;
  height: 50px;
  position: absolute;
  top: 50%;
  z-index: 10;
  cursor: pointer;
}

/* スワイパーのナビゲーション（矢印）を差し替え */
.category_post_wrapper .modal_swiper-button-prev {
  content: url('../images/systems/icon/dot_arrow_icon_gray.svg');
  transform: scale(-1, 1);
}

.category_post_wrapper .modal_swiper-button-next {
  content: url('../images/systems/icon/dot_arrow_icon_gray.svg');
}

/* ホバー時のスタイル */
.category_post_wrapper .modal_swiper-button-prev:hover,
.category_post_wrapper .modal_swiper-button-next:hover {
  content: url('../images/systems/icon/dot_arrow_icon.png');
}

.category_post_wrapper .post-thumbnail {
  width: 200px;
  height: 200px;
  overflow: hidden;
  border: 5px solid var(--assortcolor);
  border-radius: 1.2em;
  display: flex; /* 中央揃えのために flex コンテナにする */
  justify-content: center; /* 横方向の中央揃え */
  align-items: center; /* 縦方向の中央揃え */
}

.category_post_wrapper .post-thumbnail img {
  height: 100%;
  width: auto;
  object-fit: cover;
}

.category_post_wrapper .post_title {
  margin-top: 01em;
  line-height: 1.5em;
}



/* 下記とセットで必要 */
.seen_category_contents {
  margin: 4em auto 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 5列のグリッドを作成 */
  gap: 1.5em; /* グリッド間のマージンを設定 */
}

/* 最後のliの余白スペースを埋めるための要素 */
.seen_category_contents::after {
  content: "";
  grid-column: span 5; /* 5列にわたって配置 */
}

.seen_category_contents > li {
  display: block;
  height: 250px;
  border: 3px solid var(--assortcolor);
  position: relative;
}








.seen_category_contents > li a{
  display: block;
  width: 100%;
  height: 100%;
}

.seen_category_contents li:hover{
  background-color: var(--hovercolor);
  border: 6px solid var(--maincolor);
  border-radius: 30px;
}



.seen_category_contents li:hover .seen_ttl{
  position: absolute;
  bottom: 1.8em; /* 下端に配置 */
}


.seen_category_contents li img{
  position: absolute; /* 絶対位置を指定 */
  top: 50%; /* 上端を親要素の中央に配置 */
  left: 50%; /* 左端を親要素の中央に配置 */
  transform: translate(-50%, -50%); /* 中心を親要素の中央に移動 */
  width: 120px;
  height: auto;
  filter: invert(61%) sepia(82%) saturate(4203%) hue-rotate(12deg) brightness(100%) contrast(101%);
}

.seen_category_contents li:nth-child(1) img,
.seen_category_contents li:nth-child(2) img,
.seen_category_contents li:nth-child(10) img,
.seen_category_contents li:nth-child(11) img,
.seen_category_contents li:nth-child(12) img{
  width: 150px;
}


.seen_category_contents li:nth-child(3) img{
  width: 130px;
}


.seen_category_contents li:nth-child(5) img,
.seen_category_contents li:nth-child(8) img{
  width: 165px;
}

.seen_category_contents li:nth-child(6) img,
.seen_category_contents li:nth-child(7) img,
.seen_category_contents li:nth-child(9) img{
  width: 145px;
}

.seen_category_contents li:nth-child(1) img,
.seen_category_contents li:nth-child(4) img,
.seen_category_contents li:nth-child(6) img,
.seen_category_contents li:nth-child(9) img,
.seen_category_contents li:nth-child(10) img{
  top: 45%;
}

.seen_category_contents li:nth-child(11) img,
.seen_category_contents li:nth-child(12) img{
  top: 40%;
}







.seen_category_contents li .seen_ttl{
  position: absolute;
  bottom: 2em; /* 下端に配置 */
  left: 50%; /* 左端を中央に配置 */
  transform: translateX(-50%); /* 左端を中央に移動 */
  width: 100%;
  text-align: center;
  line-height: 1.25em;
}

.seen_category_contents li .seen_ttl::before{
  content: "▷";
}

.seen_category_contents li .seen_ttl br{
  display: none;
}







































