@charset "utf-8";
.shopnews_container{
  margin: 0 auto;
}

.shopnews_container .result_contents, .shopnews_container .btn_container_right{
  padding: 0 calc(var(--space-side) + var(--space-inner-side));
}

.tablists_container{
  margin: 0 0 min(8vw, 60px);
  padding: 0 var(--space-side);
}

.tablists_shopnews{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(4, auto);
  justify-content: space-between;
  gap: 30px 12px;
  position: relative;
}

.tab_shopnews{
  padding: 12px 5px 8px;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  border: 1px solid var(--color-primary);
  background-color: var(--color-primary);
  text-align: center;
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 2;
  row-gap: 10px;
  transition: border var(--hover-animation), background-color var(--hover-animation), opacity var(--hover-animation);
  position: relative;
}

.tab_shopnews:not(.is-active):hover{
  opacity: var(--hover-opacity);
}

.tab_shopnews:not(:first-of-type)::before{
  content: "";
  position: absolute;
  width: 14px;
  height: 1px;
  bottom: -1px;
  left: -14px;
  background-color: var(--color-primary);
}

.tab_shopnews:first-of-type{
  row-gap: 0;
  grid-column: 1 / 5;
}

.tab_shopnews:nth-child(2) {
  grid-column: 5 / 9;
}

.tab_shopnews:nth-child(3) {
  grid-column: 9 / 13;
}

.tab_shopnews:nth-child(4) {
  grid-column: 1 / 4;
}

.tab_shopnews:nth-child(5) {
  grid-column: 4 / 7;
}

.tab_shopnews:nth-child(6) {
  grid-column: 7 / 10;
}

.tab_shopnews:nth-child(7) {
  grid-column: 10 / 13;
}

.tab_shopnews:nth-child(4)::before{
  content: none;
}

.tab_shopnews:not(.is-active){
  cursor: pointer;
}

.tablists_shopnews .is-active{
  background-color: transparent;
  border-top: 1px solid var(--color-primary);
  border-right: 1px solid var(--color-primary);
  border-left: 1px solid var(--color-primary);
  border-bottom: 1px solid transparent;
}

.tab_shopnews svg{
  width: 70%;
  height: 35px;
  margin: 0 auto;
  align-self: center;
}

.tab_shopnews .svg-stroke{
  transition: stroke var(--hover-animation);
}

.tab_shopnews:nth-of-type(2) svg{
  height: 45px;
}

.tab_shopnews:nth-of-type(4) svg, .tab_shopnews:nth-of-type(5) svg, .tab_shopnews:nth-of-type(7) svg{
  width: 52%;
}

.tablists_shopnews .is-active svg{
  stroke: var(--color-primary);
}

.text_tab{
  color: #fff;
  font-weight: var(--font-semibold);
  font-size: clamp(0.813rem, 0.384rem + 1.71vw, 1.188rem);
  line-height: 1.2;
  letter-spacing: .025em;
  display: flex;
  align-items: center;
  justify-content: center;
  align-content: space-around;
}

.tab_shopnews:first-of-type .text_tab{
  font-size: clamp(1.75rem, 1.393rem + 1.43vw, 2.063rem);
  letter-spacing: .045em;
  font-weight: var(--font-medium);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.tablists_shopnews .is-active .text_tab{
  color: var(--color-primary);
}

@media (600px <= width) {
  .tablists_shopnews{
    gap: 50px 16px;
  }

  .tab_shopnews{
    padding: 18px 10px 16px;
  }

  .tab_shopnews:not(:first-of-type)::before{
    width: 18px;
    left: -18px;
  }

  .tab_shopnews svg{
    width: 80%;
    height: 45px;
  }

  .tab_shopnews:nth-of-type(2) svg{
    height: 55px;
  }

  .tab_shopnews:nth-of-type(4) svg, .tab_shopnews:nth-of-type(5) svg, .tab_shopnews:nth-of-type(7) svg{
    width: 80%;
  }
}

@media (1024px < width) {
  .shopnews_container{
    padding: 0 calc(var(--space-side) + var(--space-inner-side));
    margin: 0 auto;
  }

  .shopnews_container .result_contents, .shopnews_container .btn_container_right{
    padding: 0;
  }
  
  .tablists_shopnews{
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: auto;
    grid-auto-flow: column;
    gap: 0 10px;
  }

  .tab_shopnews{
    padding: 10px;
  }

  .tab_shopnews:not(:first-of-type)::before{
    width: 11px;
    left: -11px;
  }

  .tab_shopnews:nth-child(4)::before{
    content: "";
  }

  .tab_shopnews:first-of-type, .tab_shopnews:nth-child(2), .tab_shopnews:nth-child(3), .tab_shopnews:nth-child(4), .tab_shopnews:nth-child(5), .tab_shopnews:nth-child(6), .tab_shopnews:nth-child(7){
    grid-column: auto;
  }

  .text_tab{
    font-size: .875rem;
  }

  .tab_shopnews:first-of-type .text_tab{
    font-size: 1.875rem;
  }
}