@charset "utf-8";

.content-container-wrapper {
  container-type: inline-size;
  container-name: content-container-wrapper;
}

.content-container * { box-sizing: border-box; }

:root .content-container {
  --color-black: #1b1b1d;
  --color-gray: #353639;
  --color-white: #fff;
  --color-lightgray: #fcfcfc; 
  --color-main: #3c3269;
  --color-primary: #f5f5f5;
  --color-secoundary: #dbdbdb;


  --bg-gray: #f8fafc;
  --border-gray: #e2e8f0;
  --bg--hover: #fffdf9;
  --color-accent: #ff9f1c;

  --transitionall: all 0.3s ease;
}


/*-- common --*/ 
.content-container {
  max-width: 1420px;
  margin-inline: auto;
  padding-bottom: 3rem;
  background-color: var(--color-white);
  color: var(--color-black);
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: 0.05em;
  section {
    padding-block: 1em;
    max-width: 1300px;
    margin-inline: auto;
    padding-inline: 1.5em;
  }
  /*section:last-child {
    padding-bottom: 0;
  }*/
  figure { 
    text-align: center;
    overflow: hidden;
  }
  img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
  }
  a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
    &:hover img{
      opacity: 0.7;
    }
  }
  span {
    color: inherit;
    font-weight: inherit;
  }
}

@media (max-width: 820px) {
  .content-container{ font-size: 14px;}
}
@media (max-width: 350px) {
  .content-container{ font-size: 13px;}
}

/*-- 共通パーツ --*/
.content-container {
  counter-reset: heading;
  .heading {
    font-weight: bold;
    font-size: 1.4em;
    margin-bottom: .7em;
    position: relative;
    display: flex;
    align-items: center;
    gap: .2em;
    padding-left: .5em;
    border-left: 7px solid var(--color-accent);
    /*@media (max-width:1024px) {
      position: sticky;
      left: 0;
    }*/
    @media (max-width:768px) {
      font-size: 1.4em;
      align-items: flex-start;
      word-break: auto-phrase;
    }
    &::before { /*見出しの先頭に数字*/
      counter-increment: heading;
      content: counter(heading)".";
	    display: inline-block;
    @media (max-width:768px) {
      font-size: 1em;
    }
    }
  }
  .sub-heading {
    font-weight: bold;
    margin-bottom: .5em;
    > span {
    padding-bottom: .2em;
    border-bottom: 3px solid var(--color-accent);}
  }
  .emoji {
    font-family: "Noto Color Emoji", sans-serif;
  }
  .card {
    background: var(--bg-gray);
    border: solid 1px var(--border-gray);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: .5em;
    align-items: center;
    /*justify-content: space-between;*/
    padding: 1em;
    &:hover {
      background: var(--bg--hover);
      border-color: var(--color-accent);
    }
    .ttl {
      font-weight: bold;
      color: #0d2c54;
    }
    .desc {
      font-size: .8em;
      color: #64748b;
      display: flex;
      align-items: center;
      justify-content: center;
      flex: 1;
      word-break: auto-phrase;
      text-align: center;
    }
  }
  .cta-btn {
    display: inline-block;
    font-size: .9em;
    padding: .3em 1em;
    border-radius: 5px;
    background: var(--color-main);
    color: var(--color-white);
    &::after {
      content: " >";
    }
    &:hover {
      opacity: 0.7;
    }
  }
  .fx-expansion { /* img：祖先要素ホバーで拡大 */
    img {
      transition: var(--transitionall);
    }
    &:hover img {
      transform: scale(1.03);
    }
  }
}



/*========= ヘッダー =========*/
.content-container header {  
  background: url(../img/head.jpg?a) no-repeat center / cover;
}
.content-container .head-inner{
  max-width: 1350px;
  margin: 0 auto;
  color: var(--color-white);
  padding: 1.5em;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  gap: 1em;
  justify-content: space-between;
  h2 {
    font-size: 60px;
    font-family: Anton, Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    line-height: 1;
    margin-bottom: 10px;
  }
  @media (max-width:768px) {
    background: 
      linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url(../img/head.jpg?a) no-repeat center right 15% / cover;
    .h-text {
      padding-bottom: .5em;
    }
  }
  .catch-point {
    width: 50%;
    display: grid;
    grid-template-columns: repeat(2, 200px);
    gap: 1em;
    @media (max-width:400px) {
      width: 100%;
      margin-top: 2em;
      grid-template-columns: auto auto;
    }
    li {
      display: flex;
      gap: .5em;
      align-items: center;
      p {
        word-break: auto-phrase;
        font-weight: bold;
      }
      img {
        background: var(--color-main);
        border-radius: 50%;
        aspect-ratio: 1 / 1;
        padding: .5em;
        width: 50px;
      }
    }
  }
}

/*========= 価格帯 / カテゴリー / おすすめブランド =========*/
.select-pricerange,
.select-category,
.select-brand {
  .pricerange-wrap,
  .category-wrap,
  .brand-list {
    display: grid;
    gap: 1em;
    grid-template-columns: repeat(4,1fr);
    @media (max-width:768px) {
      justify-content: flex-start;
    }
  }
  .category-wrap,
  .brand-list {
    grid-template-columns: repeat(5,1fr);
  }
  .category-wrap {
    .ttl {
      font-size: .95em;
      word-break: auto-phrase;
      text-align: center;
    }
  }
  .brand-list {
    .card {
      font-weight: bold;
      font-size: .9em;
      p {
        flex: 1;
        display: flex;
        text-align: center;
        justify-content: center;
        align-items: center;
      }
      &:hover {
        color: var(--color-accent);
      }
    }
    @media (max-width:1024px) {
      width: 1600px;
      grid-template-columns: repeat(10,1fr);
    }
    &.text-list {
      margin-top: 1em;
      grid-template-columns: repeat(6,1fr);
      @media (max-width:1024px) {
        width: auto;  
        display: flex;
        flex-wrap: wrap;
        gap: 1em;
      }
    }
  }
}

/*========= ランキング =========*/
.ranking {
  .ranking-wrap {
    input[type="radio"]{
      position: absolute;
      width: 1px;
      height: 1px;
      margin: -1px;
      padding: 0;
      overflow: hidden;
      clip-path: inset(50%);
      border: 0;
      white-space: nowrap;
    }
  }
  /*タブグループ*/
  .tab-labels {
    display: flex;
    gap: .5em;
  }
  .tab-label {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 1em;
    font-weight: bold;
    color: var(--color-black);
    padding: 1em;
    cursor: pointer;
    background: var(--bg-gray);
    transition: all 0.3s;
    @media (max-width:1024px) {
      flex: 0 0 auto;
      white-space: nowrap;
    }
    &:hover {
    background: var(--border-gray);
    }
    &:nth-child(4) {
      font-size: 1em;
    }
  }
  .tab-contents {
    padding-block: 1em;
    background: var(--color-white);
  }
  .tab-contents > div {
    display: none;
    > div {
      @media (max-width:768px) {
      overflow-x: auto;
      display: flex;
      flex-direction: column;
    }
    }
  }
}

/* チェックされたタブのラベルのスタイル */
#tab1:checked ~ .tabs-inner label[for="tab1"],
#tab2:checked ~ .tabs-inner label[for="tab2"],
#tab3:checked ~ .tabs-inner label[for="tab3"],
#tab4:checked ~ .tabs-inner label[for="tab4"] ,
#tab5:checked ~ .tabs-inner label[for="tab5"] {
  background: var(--color-accent);
  color: var(--color-white);
}

/* チェックされたタブの内容を表示 */
#tab1:checked ~ .tabs-inner .content-tab1,
#tab2:checked ~ .tabs-inner .content-tab2,
#tab3:checked ~ .tabs-inner .content-tab3,
#tab4:checked ~ .tabs-inner .content-tab4,
#tab5:checked ~ .tabs-inner .content-tab5 {
  display: block;
}

.ranking {
  .ranking-wrap {
    counter-reset: ranking;
    .ranking-list {
      display: flex;
      flex-direction: column;
      gap: 1em;
      @media (max-width:450px) {
        flex-direction: row;
        padding-bottom: 1em;
      }
      li {display: flex;}
      li > .card {
        flex:1;
        flex-direction: row;
        @media (max-width:450px) {
          position: relative;
          flex-direction: column;
          row-gap: 1em;
          margin-bottom: 0;
          max-width: calc(200px + 2em);
          justify-content: space-between;
        }
        img {
          max-width: 200px;
        }
        &::before { /*順位の表示*/
          display: inline-block;
          min-width: 1.3em;
          padding: .2em;
          border-radius: 2px;
          color: var(--color-accent);
          font-weight: bold;
          font-size: 1.3em;
          line-height: 1.3;
          text-align: center;
          content: counter(ranking);
          counter-increment: ranking;
          @media (max-width:450px) {
            position: absolute;
            top:.5em;
            left: .5em;
            background: var(--color-accent);
            color: var(--color-white);
            border-radius: 50%;
          }
        }
        > div {
          flex: 1;
          display: flex;
          gap: 1em;
          align-items: center;
          justify-content: space-between;
          @media (max-width:900px) {
            flex-direction: column;
            align-items: flex-start;
          }
        }
        .product-name {
          font-size: 1em;
          font-weight: bold;
          min-width: 0;
          span {
            display: inline-block;
          }
        }
        .comment {
          display: block;
          background: #fdf2f8;
          border: 1px solid #fbcfe8;
          border-radius: 4px;
          padding: .5em;
          white-space: nowrap;
          @media (max-width:900px) {
            white-space: normal;
            word-break: auto-phrase;
          }
          &::before {
            content: "💡オススメ：";
            @media (max-width:1200px) {
              content: "💡 ";
            }
          }
        }
      }
    }
  }
}

/* swiper -------------------- */
:root .content-container {
  --swiper-pagination-color: var(--color-main);
  --swiper-pagination-bullet-size: .7em;
}

.content-container .swiper-pagination {
  bottom: 0;
}
.content-container .swiper-button-next,
.content-container .swiper-button-prev {
  top: 43%;
  color: var(--color-white);
  text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.9);
}

.content-container .swiper {
  margin-bottom: 0;
}
/* glightbox */
:root {
  --plyr-color-main: #ff0000;
}

.goverlay {
	background: rgba(0, 0, 0, .7);
}

.content-container .swiper-slide {
  width: 80%;
  max-width: 320px;
}

/*========= 関連記事　=========*/
.article-wrap {
  border: solid 1px var(--border-gray);
  padding: 1em;
  border-radius: 4px;
  margin-bottom: 1em;
  .swiper-wrapper {
    .swiper-slide {
      background: var(--color-primary);
      border: solid 1px var(--color-secoundary);
      border-radius: 5px;
      overflow: hidden;
      padding-bottom: .5em;
      margin-block: .5em 2em;
      > a {
        display: flex;
        gap: .5em;
        flex-direction: column;
        justify-content: stretch;
        &:hover .ttl {
          text-decoration: underline;
        }
      }
    }
    p {
      padding-inline: .5em;
      font-size: .9em;
    }
    .ttl , .comment {
      display: -webkit-box;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 2;
      min-height: calc(1.4em * 2);
      overflow: hidden;
    }
    .ttl {
      font-weight: bold;
      color: var(--color-main);
    }
    .comment {
      font-size: .8em;
    }
  }
  @media (min-width:1070px){
    .article-list {
      > .swiper-slide {
        margin-bottom: 0;
      }
    }
  }
}

/*========= 動画　=========*/
.movie {
  .movie-list {
    display: flex;
    .swiper-slide {
      margin-bottom: 1.5em;
      figure {
        border-radius: 5px;
      }
    }
    p {
      font-size: .8em;
      margin-top: .3em;
    }
  }
  .icon-movie {
    display: block;
    width: 100%;
    position: relative;

    &::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: 20%; }
  }
}

/*========= よくある質問　=========*/
.faq-wrap {
  display: flex;
  gap: 1em;
  @media (max-width:768px) {
    flex-direction: column;
    gap: 0;
  }
  .faq-list {
    width: calc((100% - 1em) / 2);
    @media (max-width:768px) {
      width: 100%;
    }
    > li {
      border-radius: 10px;
      border: solid 1px var(--border-gray);
      background: var(--bg-gray);
      margin-bottom: .5em;
      overflow: hidden;
    }
    summary {
      list-style: none;
      cursor: pointer;
      padding: .5em 1em;
      color: #c0392b;
      font-weight: bold;
      display: flex;
      justify-content: space-between;
      line-height: 1.6em;
      &::after {
        content: "+";
        font-weight: bold;
      }
    }
    details[open] summary::after {
      content: "-";
      margin-left: .5em;
    }
    summary > span, .answer {
        display: inline-flex;
      &::before {
        content: "Q";
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        font-weight: bold;
        width: 1.6em;
        height: 1.6em;
        margin-right: .5em;
        background: #c0392b;
        color: var(--color-white);
        flex-shrink: 0;
      }
    } 
    .answer {
      display: flex;
      padding: .5em 1em;
      line-height: 1.6;
      &::before {
        content:"A";
        background: var(--color-accent);
      }
      > div , p{
        font-size: .9em;
      }
      ol li {
        list-style: decimal;
        margin-left: 1.5em;
        margin-top: .3em;
      }
    }
  }
}

/*========= フッター　=========*/
.content-container footer {
  > div {
    background: var(--color-gray);
    color: var(--color-white);
    padding: 1em;
    display: flex;
    gap: .5em;
    justify-content: center;
    align-items: center;
    font-size: 1.3em;
    font-weight: bold;
    margin-top: 1em;
    @media (max-width:768px){
      flex-wrap: wrap;
      row-gap: .5em;
      font-size: 1.1em;
      word-break: auto-phrase;
      text-align: center;
      img {
        width: 2em;
      }
    }
  }
  a {
    font-size: .8em;
    font-weight: normal;
    display: block;
    padding: .7em 1em;
    border: solid 1px var(--color-white);
    border-radius: 3px;
    &:hover {
      opacity: 0.7;
    }
    &::after {
      content: ">";
      margin-left: .5em;
    }
    @media (max-width:768px){
      width: 100%;
      max-width: clac(600px + 1.5em);
      word-break: normal;
      margin-left: 0;
    }
  }
}

/*-- 1024px以下で横スクロール --*/
@media (max-width: 1024px) {
  .category-container,
  .brand-wrap,
  .ranking-container {
    overflow-x: auto;
    display: flex;
    flex-direction: column;
    > div {
      padding-bottom: 1em;
    }
    .category-wrap {
      width: 1100px;
    }
  }
}
/*-- 768px以下で横スクロール --*/
@media (max-width: 768px) {
  .pricerange-container,
  .type-container,
  .tab-labels-wrap {
    overflow-x: auto;
    display: flex;
    flex-direction: column;
    > * {
      padding-bottom: 1em;
    }
    .pricerange-wrap {
      width: 800px;
    }
  }
}