
html {
  scroll-behavior: smooth;
}

#globalMain,
#globalContents{
  overflow: visible;
}

#globalWrapper {
  box-sizing: border-box;
}

:root {
  scroll-padding: 150px;
}
:root .anker-container {
  --color-base: #333;
  --color-main: #00cbeb;
  --swiper-pagination-color:#cc5249;
}

.anker-container .swiper-pagination{
  pointer-events: none;
}


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

.anker-container {
  max-width: 1120px;
  margin: 30px auto;
}
@media (max-width: 1024px) {
  .anker-container {
    margin: 0 auto 30px;
  }
}

.anker-container ul {
  padding-inline-start: 0;
  list-style-type: none;
}
.anker-container p {
    margin-bottom: 0;
}
/*========================= */
.anker-container {
  margin: 30px auto;
  font-size: 16px;
  line-height: 1.4;
  color: var(--color-base);
  padding-bottom: 5rem;
}

.anker-container section{
  margin-top: 70px;
}
.anker-container .wrapper{
  margin-top: 2rem;
  overflow: hidden;
}
.anker-container img{
  max-width: 100%;
  height: auto;
}
.anker-container h2{
  color: var(--color-blue);
  text-align: center;
  font-size: 48px;
  font-weight: bold;
  font-family: arial;
}
.anker-container h2 + p {
  text-align:center;
  font-size: 18px;
}

/*========================= */
.anker-container .content-head {
  overflow:hidden;
}
.anker-container .content-head img {
  width: 100%;
  height: auto;
}

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

ul.category-flexbox {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 20px;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1200px;
  width: 100%;
}

ul.category-flexbox > li {
  width: calc((100% - (20px * 3)) / 4);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  box-sizing: border-box;
  padding: 0 16px;
}

ul.category-flexbox > li div {
  width: 100%;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
  margin-left: -16px;
  margin-right: -16px;
  width: calc(100% + 32px);
}

ul.category-flexbox > li img[src] {
  width: auto;
  height: auto;
  max-width: 80%;
  max-height: 85%;
  object-fit: contain;
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
ul.category-flexbox > li img.cate-img-l {
  max-width: 70%;
  max-height: 75%;
}

ul.category-flexbox > li > a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  text-decoration: none;
}

ul.category-flexbox .category-large {
  font-size: 16px;
  font-weight: bold;
  line-height: 1.4;
  margin: 0 0 8px 0;
  color: #000;
  text-align: left;
  width: 100%;
}

ul.category-flexbox .category-large a {
  color: inherit;
  text-decoration: none;
}

ul.category-flexbox > li > ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  align-items: flex-start;
  text-align: left;
}

ul.category-flexbox > li > ul li {
  font-size: 12px;
  line-height: 1.4;
  color: #666;
}

ul.category-flexbox > li > ul a {
  color: #666;
  text-decoration: none;
}

ul.category-flexbox a:hover {
  opacity: 0.7;
  text-decoration: underline;
}

@media screen and (max-width: 1024px) {
  ul.category-flexbox {
    gap: 32px 16px;
  }
  ul.category-flexbox > li {
    width: calc((100% - (16px * 2)) / 3);
    padding: 0 12px;
  }
  ul.category-flexbox > li div {
    height: 150px;
    margin-left: -12px;
    margin-right: -12px;
    width: calc(100% + 24px);
  }
}

@media screen and (max-width: 600px) {
  ul.category-flexbox {
    gap: 30px 15px;
  }
  
  ul.category-flexbox > li {
    width: calc((100% - 15px) / 2);
    padding: 0;
  }

  ul.category-flexbox > li div {
    height: 120px;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }
}

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

.anker-container .wrapper-news .swiper-pagination {
  margin-top: 20px;
  position: relative;
}

.anker-container .wrapper-middle{
  width: 90%;
  margin: auto;
  margin-top: 2rem;
  text-align:center;
}

.anker-container .swiper{
  margin-top: 2rem;
}


/*========================= */
.anker-container .carousel-news {

  & .swiper-slide {
    width: 25%;
    max-width: 600px;
  }
  
  & .swiper-slide a {
    text-decoration: none;
  }
  
  & .swiper-slide a:link,
  & .swiper-slide a:visited {
    color: var(--color-base);
  }
  
  & .news-text {
    margin-top: .5em;
  }
  
  & .news-text span {
    font-size: 14px;
  }
}


/*========================= */
/* 売れ筋ランキング */
@keyframes showTab {
  from {
    opacity: 0;
  } to {
    opacity: 1;
  }
}
.anker-container .wrap-tab {
  margin-top: 2rem;
}
.anker-container .wrap-tab input {
  display: none;
}
.anker-container .wrap-tab .tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  overflow-x: auto;
  
}
.anker-container .wrap-tab .tabs label {
  padding: 6px 8px 4px;
  cursor: pointer;
  transition: .4s;
  border-radius: 8px;
  text-align: center;
  border: 1px solid #aaa;
}


.anker-container .wrap-tab .tabs label:hover {
  background: #eee;
}

.anker-container .wrap-tab .tab-content {
  display: none;
}

#tab-radio-1:checked ~ .tabs #tab-label-1 { background: var(--color-main); color: #fff; cursor: default; }
#tab-radio-1:checked ~ #tab-content-1 { display: block; animation: showTab .4s; }
#tab-radio-2:checked ~ .tabs #tab-label-2 { background: var(--color-main); color: #fff; cursor: default; }
#tab-radio-2:checked ~ #tab-content-2 { display: block; animation: showTab .4s; }
#tab-radio-3:checked ~ .tabs #tab-label-3 { background: var(--color-main); color: #fff; cursor: default; }
#tab-radio-3:checked ~ #tab-content-3 { display: block; animation: showTab .4s; }
#tab-radio-4:checked ~ .tabs #tab-label-4 { background: var(--color-main); color: #fff; cursor: default; }
#tab-radio-4:checked ~ #tab-content-4 { display: block; animation: showTab .4s; }
#tab-radio-5:checked ~ .tabs #tab-label-5 { background: var(--color-main); color: #fff; cursor: default; }
#tab-radio-5:checked ~ #tab-content-5 { display: block; animation: showTab .4s; }

.anker-container .tab-content {
  margin-top: 16px;
}

.anker-container .list-ranking {
  display: flex;
  list-style: none;
}
.anker-container .list-ranking li {
  width: 20%;
}
.anker-container .list-ranking li a {
  align-items: center;
  padding: 16px;
  color: #888;

}
.anker-container .rank span {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-weight: bold;
  font-size: 18px;
  width: 32px;
  height: 32px;
  background: #888;
}
.anker-container .list-ranking li:nth-child(1) .rank span {
  background: #f5b000;
}
.anker-container .list-ranking li:nth-child(2) .rank span {
  background: #bfc8d2;
}
.anker-container .list-ranking li:nth-child(3) .rank span {
  background: #d78353;
}

.anker-container .list-ranking .img {
  width: 100%;
  & img {
    display: block;
    margin: auto;
    width: 100%;
  }
}

.anker-container .list-ranking .name {
  font-weight: bold;
  font-size: 14px;
  color: #888;
  text-align: center;
  padding: 1em;
}


/*========================= */
.carousel-movie{
  position: relative;
}
.carousel-movie .swiper-slide {
  width: 300px;
  height: auto;
}
.carousel-movie .swiper-slide a {
  display: block;
  color: var(--color-base);
}
.carousel-movie li a::after {
  position: absolute;
  display: block;
  content: "";
  width: 100%;
  height: 0;
  padding-top: 56.25%;
  top: 0;
  left: 0;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" height="100%" version="1.1" viewBox="0 0 68 48" width="100%" fill="%23ffffff"><path d="M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z" fill="%23f00"></path><path d="M 45,24 27,14 27,34" fill="%23fff"></path></svg>') no-repeat center center;
  background-size: 25%;
}
.carousel-movie li a p{
  margin-top: .5em;
}
.swiper{
  margin-top: 2rem;
  overflow: visible;
}


/*========================= */
.anker-container .about p { 
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: .05em;
}

.anker-container .about p span{
  display: block;
  margin-top: 1em;
  text-align: left;
}

#anker-about {
    background: white;
    padding: 60px 0 70px;
}

.about img {
    margin-bottom:30px;
    max-width: 500px;
}


.sp-display {
  display: none;
}

/*------------------------------------------ */

@media (max-width: 1120px) {

  .anker-container .wrapper {
    margin-left: 16px;
    margin-right: 16px;
  }

}


@media (max-width: 800px) {

  .anker-container .carousel-news {
    & .swiper-slide {
      width: 50%;
      max-width: 500px;
    }
  }
  #anker-about {
    padding: 0;
  }
  .anker-container section{
    margin-top: 20px;
  }

}


@media (max-width: 600px) {

.anker-container {
  margin:  0 auto 20px;
  font-size: 14px;
  padding-bottom: 0;
}
.anker-container .wrapper{
  margin-top: 1rem;
}
.anker-container h2{
  font-size: 30px;
}
.anker-container h2 + p {
  font-size: 16px;
}
.anker-container .wrap-tab .tabs {
  margin: 0 8px;s
  align-items: stretch;
}
.anker-container .wrap-tab .tabs > * {
    display: flex;
    align-items: center; 
    justify-content: center;
}
.anker-container .wrap-tab .tabs label {
  padding: 3px 5px;
}
.anker-container .list-ranking {
 flex-direction: column;
 padding: 16px;
}
.anker-container .list-ranking li {
  width: 100%;
}
#anker-about {
  padding: 0 0 20px;
}
.anker-container .about p { 
  font-size: 14px;
}
.about img {
    margin-bottom: 10px;
    width: 80%;
}

.sp-display {
  display: inline;
}

}