html {
  scroll-behavior: smooth;
}


/*タイトル系------------------------------------------------------------------------------------*/

.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(0.875rem, 0.784rem + 0.45vw, 1.125rem);
  font-weight: bold;
  text-align: left;
  letter-spacing: 0.05em;
  color: #484848;
  position: relative;
  letter-spacing: calc((60 * 1em) / 1000);
  text-align: left !important;
}

/*.c-section .u-pc-width .title-wrapper h2::before {
  font-size: clamp(1.5rem, 1.364rem + 0.68vw, 1.875rem);
  font-family: Roboto, sans-serif;
  margin-right: 0.5em;
  display: block;
  letter-spacing: calc((60 * 1em) / 1000);
  font-weight: 700;
}
  */


.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: 0;
}

.lead-title {
  font-size: clamp(0.875rem, 0.693rem + 0.91vw, 1.375rem);
  font-weight: bold;
  padding: 1rem 0;
  color: #484848 !important;
}

@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;
  }

  .page-title-h1 {
    padding-left: 15px;
  }

}





/*キーワードリスト用------------------------------------------------------------------------------------*/
.keyword-list-wrapper {
  width: 100%;
  margin: 0;
  overflow-x: auto;
}

.keyword-list {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 5px;
  width: auto;
  padding-bottom: 15px;
}

.keyword-list li a {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #004DA1;
  color: #004DA1;
  padding: 8px 16px;
  padding-right: 30px;
  position: relative;
  font-weight: normal;
  white-space: nowrap;
  font-size: 14px;
}

.keyword-list li a::after {
  position: absolute;
  top: calc(50% - 4px);
  right: 15px;
  width: 8px;
  height: 8px;
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
  border-right: 2px solid;
  border-bottom: 2px solid;
  content: '';
  border-color: #004DA1;
}

.keyword-list li a:hover {
  animation-name: hover-flash;
  animation-duration: 1s;
  opacity: 1;
  background: #fff;
  border: 1px solid #004DA1;
  color: #004DA1;
}







/*ランキングスライダー調整系------------------------------------------------------------------------------*/
.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;
}



/*新着用------------------------------------------------------------------------*/
.new-item-section .c-include-search-result .productMoreGrid .p-products-all-item__item::before {
  display: none;
}

/*カテゴリから選ぶ、その他------------------------------------------------------------------------*/
.category-section {
  background: #f6f6f6;
  padding: 1rem 0;
  margin-top: 4rem;
}

.search-result-top-category-list {
  display: flex;
  flex-direction: row;
  width: 100%;
  gap: 15px;
  padding-bottom: 20px;
  flex-wrap: wrap;
}

.search-result-top-category-list li {
  width: calc((100% - 60px) / 5);
}

.search-result-top-category-list__item a {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  padding: 5px 10px;
  transition: transform .2s;
  text-align: center;
  width: 100%;
  font-weight: bold;
  background: #fff;
  border-radius: 15px;
  gap: 5px;
}

.search-result-top-category-list__item .c-panel-arrow::before {
  right: 14px;
  bottom: 13px;
  border-color: #a3a3a3;
}

.search-result-top-category-list__item .c-panel-arrow::after {
  background-color: #ececec;
  border-radius: 2rem;
  right: 7px;
  bottom: 7px;
}

.search-result-top-category-list__item a img {
  width: 40%;
}

.search-result-top-category-list__item a p {
  text-align: left;
  line-height: 1.4;
  margin-left: 0;
  flex: 1;
}

.search-result-top-category-list__item a:hover {
  outline: 1px solid rgba(0, 162, 230, 0.5);
  filter: drop-shadow(5px 5px 5px rgba(0, 162, 230, 0.1));
}

@media screen and (max-width: 767px) {
  .search-result-top-category-list {
    width: 100%;
    gap: 10px;
  }

  .search-result-top-category-list li {
    width: calc((100% - 10px) / 2);
  }

  .search-result-top-category-list__item .c-panel-arrow::before {
    right: 13px;
    bottom: 12px;
  }

  .search-result-top-category-list__item a {
    padding: 10px 5px;
    border-radius: 6px;
    line-height: 1;
  }

  .search-result-top-category-list__item a img {
    width: 35%;
  }

  .search-result-top-category-list__item a p {
    margin-left: 8px;
    font-size: 14px;
  }

  .category-search-link-wrapper {
    margin: 0;
  }
}

.bnr-wrapper {
  display: flex;
  flex-direction: row;
  gap: 20px;
  justify-content: center;
  align-items: center;
}

.bnr-wrapper .bnr-item {
  width: calc((100% - 20px) / 2);
}

.bnr-wrapper .bnr-item img {
  width: 100%;
}


.campaign-seciton {
  margin-bottom: 60px;
}

.category-search-link-wrapper {
  margin: 10px 0 0px;
  text-align: right;
}

.category-section .category-search-link-wrapper {
  margin: 10px 0 20px;
}

.category-search-link-wrapper .beginner-link {
  position: relative;
}

.category-search-link-wrapper .beginner-link::before {
  content: '';
  position: absolute;
  z-index: 2;
  background-position: 0 0;
  background-repeat: no-repeat;
  background-size: 100%;
  background-image: url(../img/icon-beginner.webp?$staticlink$);
  top: -4px;
  left: -24px;
  width: 18px;
  height: 30px;
}

.category-search-btn-wrapper {
  display: flex;
  justify-content: center;
  margin: 30px 0 50px;
}

.category-search-btn-wrapper .c-button--secondaryA-blue {
  width: 80%;
}

@media screen and (max-width: 767px) {
  .bnr-wrapper {
    flex-direction: column;
  }

  .bnr-wrapper .bnr-item {
    width: 100%;
  }
}



/*bottom用--------------------------------------------*/
.section-guide {
  background: #fff;
  padding: 1.5rem 0;
}

.search-result-top-footer-wrapper {
  background: #fff;
  border-radius: 16px;
  padding: 0;
  margin: 1rem 0 2rem;
  width: 100%;
}

#category-guide h3 {
  font-size: clamp(0.875rem, 0.693rem + 0.91vw, 1.375rem);
  font-weight: bold;
  padding: 1rem 0;
}

#category-guide p {
  line-height: 1.5;
}

.search-result-top-footer-btn .c-button--primary-blue {
  width: 100%;
}





/*よくあるご質問--------------------------------------------*/
.p-top-faq__list {
  interpolate-size: allow-keywords;
  /* height:0（数値型） → auto（文字型） のアニメーションを可能にするための指定 */
  display: flex;
  flex-wrap: wrap;
}

.p-top-faq__list-item {
  width: calc(100% - 20px);
  height: 100%;
  padding: 15px 0;
  border-bottom: 1px solid #f1f1f1;
}

.p-top-faq__list .p-top-faq__list-item:first-of-type {
  border-top: 1px solid #f1f1f1;
  ;
}

.p-top-faq__list-item details summary {
  cursor: pointer;
  font-size: clamp(0.875rem, 0.83rem + 0.23vw, 1rem);
  list-style: none;
  position: relative;
  display: block;
  align-items: center;
  padding-left: 8px;
}

.p-top-faq__list-item details summary::after {
  position: absolute;
  top: calc((100% - 16px) / 2);
  right: 25px;
  width: 12px;
  height: 12px;
  transform: rotate(45deg);
  content: "";
  border-right: 2px solid rgb(72, 72, 72);
  border-bottom: 2px solid rgb(72, 72, 72);
  border-color: rgb(72, 72, 72);
  transition: transform 0.4s;
}

.p-top-faq__list-item details[open] summary::after {
  transform: rotate(-135deg);
}

.p-top-faq__list-item details summary::-webkit-details-marker {
  display: none;
}

.p-top-faq__list-item details summary span {
  font-weight: bold;
  font-size: clamp(1.125rem, 1.08rem + 0.23vw, 1.25rem);
  line-height: 1;
  color: #004da1;
  padding-right: 10px;
  position: relative;
  top: 0px;
}

.p-top-faq__list-item details {
  &::details-content {
    transition: height 0.4s, opacity 0.4s, content-visibility 0.4s allow-discrete;
    height: 0;
    opacity: 0;
    overflow: hidden;
  }

  &[open]::details-content {
    opacity: 1;
    height: auto;
  }
}

.p-top-faq__list-item-body {
  margin-top: 20px;
  line-height: 1.8;
}

.p-top-faq__list-item-body div {
  margin: 0;
  background: #e5f6fc;
  padding: 16px;
  border-radius: 8px;
  font-size: 14px;
}

.p-top-faq__list-item-body .qanda-link {
  color: #00a2e6;
  text-decoration: underline;
}

.p-top-faq__list-item-body .qanda-link:hover {
  color: #80d1f3;
}


@media screen and (max-width: 767px) {
  .p-top-faq__list {
    width: 100%;
    margin: 0 auto;
    padding: 0;
  }

  .p-top-faq__list-item {
    width: 100%;
    font-size: 14px;
    padding: 20px 0px;
  }

  .p-top-faq__list-item details summary {
    font-size: 14px;
    padding-right: 30px;
    grid-template-columns: 36px 1fr;
    text-indent: -40px;
    padding: 0 40px 0;
  }

  details summary span {
    font-size: 24px;
  }

  .p-top-faq__list-item details summary::after {
    right: 10px;
    width: 8px;
    height: 8px;
  }

  .search-result-top-footer-wrapper {
    padding: 20px 0px;
  }

  .p-top-faq__list-item details summary {
    font-size: 14px;
    text-indent: -27px;
    padding: 0 25px 0 30px;
  }

  .p-top-faq__list-item details summary span {
    font-weight: bold;
    font-size: clamp(1.125rem, 1.08rem + 0.23vw, 1.25rem);
    line-height: 1;
    color: #004da1;
    padding-right: 5px;
    position: relative;
    top: 0px;
  }

}








/*以下、もともとあった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;
}



/* キーボードサイズの選び方---------------------------*/
.category-guide-flex {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 20px;
}

.category-guide-flex div {
  margin: 0;
  background: none;
  padding: 0;
  border-radius: 0;
}

.category-guide-flex .category-guide-flex--item {
  width: calc((100% - 40px) / 3);
  background: #fff;
  padding: 20px 10px;
  border-radius: 16px;
  text-align: center;
  font-weight: bold;
  line-height: 1;
}

.category-guide-flex .category-guide-flex--item__img {
  width: 60%;
  margin: 0 auto;
  padding: 0;
}

.category-guide-flex .category-guide-flex--item__text {
  width: 100%;
  font-weight: normal;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

.category-guide-flex .category-guide-flex--item__img img {
  width: 100%;
  margin: 0 auto;
}

@media screen and (max-width: 767px) {
  .category-guide-flex .category-guide-flex--item {
    width: calc((100% - 10px) / 2);
    padding: 8px 4px;
    border-radius: 8px;
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
  }

  .category-guide-flex--change {
    gap: 10px;
    padding: 20px 0px !important;
    flex-direction: column;
  }

  .category-guide-flex--change .category-guide-flex--item {
    width: 100%;
  }

  .category-guide-flex--change .category-guide-flex--item__img {
    width: 40%;
  }

  .category-guide-flex--change .category-guide-flex--item__text {
    width: 60%;
    margin-right: 5px;
    text-align: left;
  }

}