/*ランキングスライダー調整系--------------------------------------------------*/
.p-ranking-slider {
  max-width: 1140px;
  width: 100%;
  position: relative;
  padding: 0;
}

.p-ranking-slider .js-itemsliderhasnav-swiper-button-prev {
  left: -80px;
}

.p-ranking-slider .js-itemsliderhasnav-swiper-button-next {
  right: -80px;
}

/*ランキング系--------------------------------------------*/
.p-ranking-slider .ranking-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid #ccc;
  box-shadow: 3.5px 3.5px 0 0 rgba(72, 72, 72, 0.1);
  padding: .5rem 1rem 1.5rem;
  margin: .2rem;
  position: relative;
  transition: transform .2s, box-shadow .2s;
}

.p-ranking-slider .ranking-item::before {
  z-index: 1;
  position: absolute;
  right: 7px;
  bottom: 6px;
  width: 8px;
  height: 8px;
  -webkit-transform: scale(1, 0.95) rotate(45deg);
  transform: scale(1, 0.95) rotate(45deg);
  border-top: 2px solid;
  border-right: 2px solid;
  content: "";
  border-color: #fff;
}

.p-ranking-slider .ranking-item::after {
  z-index: auto;
  position: absolute;
  right: 0;
  bottom: 0;
  width: 20px;
  height: 20px;
  background-color: #ccc;
  content: "";
}

.p-ranking-slider .ranking-item:hover {
  box-shadow: 0 0 4px 0 rgb(0 162 230 / 70%);
  transform: translateY(-2px);
}

.ranking-item .p-ranking__icon {
  text-align: center;
}

.ranking-item .p-ranking__icon img {
  width: 40px;
  height: auto;
}

.ranking-item .p-ranking__image {
  text-align: center;
}

.ranking-item .p-ranking__image img {
  width: 70%;
  margin: 0 auto;
}

.ranking-item .p-ranking__name {
  font-size: clamp(0.75rem, 0.705rem + 0.23vw, 0.875rem);
  color: #333;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-weight: bold;
}

.ranking-item .p-ranking__price {
  color: #e43344;
  font-size: 12px;
}

.ranking-item .p-ranking__price span {
  font-weight: bold;
  font-size: 20px;
}

.ranking-item .p-ranking__spec {
  font-weight: normal;
  font-size: 12px;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  margin-top: 6px;
}

.ranking-item .p-ranking__review {
  font-size: 12px;
  margin: 4px 0;
}

.ranking-item .p-ranking__review .review-in-recommend__star {
  height: 12px;
  vertical-align: baseline;
}

/*タイトル調整系-----------------------------------------*/
.page-title-h1 {
  width: 100%;
  padding-top: 20px;
  padding-bottom: 20px;
  border-top: 1px solid #f6f6f6;
  border-bottom: 1px solid #ececec;
  background-color: #fff;
}

.page-title-h1 h1 {
  color: #484848;
  font-size: 16px;
  font-style: italic;
  font-weight: bold;
  letter-spacing: 1.92px;
  width: 100%;
  max-width: 1140px;
  margin: auto;
  padding-right: 150px;
}

.c-section .u-pc-width {
  font-size: clamp(0.875rem, 0.83rem + 0.23vw, 1rem);
  margin: 1.5rem auto;
}

.c-section .u-pc-width .title-wrapper {
  padding: .5rem 0 1rem;
}

.c-section .u-pc-width .title-wrapper h2 {
  font-size: clamp(1.125rem, 0.989rem + 0.68vw, 1.5rem);
  font-weight: bold;
  text-align: left;
  letter-spacing: 0.05em;
  color: #004da1;
}


@media screen and (max-width: 767px) {
  .page-title-h1 {
    padding: 10px 15px 10px 15px;
  }

  .page-title-h1 h1 {
    font-size: 3.4vw;
    letter-spacing: 1.32px;
  }
}

/*キーワード------------------------------------------------*/
.keyword-list-wrapper {
  width: 100%;
  margin: 30px 0;
  overflow-x: auto;
}

.keyword-list {
  display: flex;
  flex-direction: row;
  align-items: center;
  /*justify-content: center;*/
  justify-content: flex-start;
  gap: 5px;
  width: auto;
  padding-bottom: 15px;
}

.keyword-list li a {
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: 3px 3px 3px 0 rgba(150, 150, 150, 0.2);
  padding: 10px 15px;
  text-align: center;
  border-radius: 30px;
  border: 1px solid rgba(0, 0, 0, 0.4);
  font-weight: bold;
  white-space: nowrap;
}

.keyword-list li a:hover {
  animation-name: hover-flash;
  animation-duration: 1s;
  opacity: 1;
  color: #fff;
  background: rgba(0, 162, 230, 1);
  border: 1px solid rgba(0, 162, 230, 1);
}

@media screen and (max-width: 767px) {
  .c-section .u-pc-width {
    width: 94%;
    margin: 1rem auto;
  }

  .c-section .u-pc-width .title-wrapper {
    padding: .5rem 0;
  }

}



/*もともとあったcss*/
.p-ranking__wrapper h2 {
  margin-bottom: 15px;
}

.komeScroll {
  margin-bottom: 15px;
  font-size: 90%;
}

.rankScroll {
  overflow-x: scroll;
  margin-bottom: 15px;
}

.rankScroll .p-ranking__panel {
  width: 155%;
}

.rankScroll .p-ranking__panel li {
  width: 19%;
}

@media screen and (min-width: 768px),
print {
  .rankScroll .p-ranking__panel li {
    max-width: none;
  }
}

/*ポップアップ*/
input.popup_flg {
  display: none;
}

.popup_wrapper,
.popup_wrapper * {
  box-sizing: border-box;
}

input.popup_flg~.popup_bg_layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  margin: 0;
  opacity: 0;
  background: rgba(0, 0, 0, .6);
  transition: opacity .5s;
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
}

input.popup_flg:checked~.popup_bg_layer,
input.popup_flg:checked~.popup_content_wrapper {
  opacity: 1;
  pointer-events: all;
}

input.popup_flg~.popup_content_wrapper {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 5px;
  padding: 10px;
  z-index: 110;
  opacity: 0;
  pointer-events: none;
  width: 90vw;
  max-width: 1140px;
}

input.popup_flg~.popup_content_wrapper .popup_close_icon {
  position: absolute;
  top: 0;
  right: 0;
  transform: translateY(calc(-100% - 5px));
  color: #fff;
  border: 1px solid #fff;
  width: 1.3em;
  height: 1.3em;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 5px;
}

input.popup_flg~.popup_content_wrapper .popup_content {
  max-height: calc(85vh - 1em);
}

label.popup_trigger,
label.popup_close_icon {
  cursor: pointer;
}

body.scroll_stop {
  overflow: hidden;
}

label.popup_trigger>img:hover {
  pointer-events: painted;
  opacity: .7;
}

.service-offer_cont__inner label.popup_trigger {
  color: #036eb8;
}

.service-offer_cont__inner label.popup_trigger:hover {
  opacity: .7;
}

.popup_wrapper #container {
  margin-bottom: 0;
}

.p-ranking__wrapper img {
  max-width: 100%;
  height: auto;
}
