@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: #0e0e0e;
  --color-gray: #353639;
  --color-white: #fff;
  --color-lightgray: #fcfcfc; 
  --color-main: #3c3269;
  --color-main-light: #848096;
  --color-primary: #f9f6f4;
  --color-secoundary: #dad2cd;
  --color-accent: #cc9011;

  --transitionall: all 0.3s ease;
}


/*-- common --*/ 
.content-container {
  max-width: 1420px;
  margin-inline: auto;
  padding-bottom: 3rem;
  background-color: var(--color-lightgray);
  color: var(--color-black);
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: 0.05em;
  section {
    padding-block: 2em;
    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;
    &:hover {
      opacity: 0.7;
    }
  }
  span {
    color: inherit;
    font-weight: inherit;
  }
}

@media (max-width: 768px) {
  .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.5em;
    margin-bottom: .3em;
    position: relative;
    display: flex;
    align-items: center;
    gap: .2em;
    @media (max-width:1024px) {
      position: sticky;
      left: 0;
    }
    @media (max-width:768px) {
      font-size: 1.4em;
      align-items: flex-start;
    }
    &::before { /*見出しの先頭に数字*/
      counter-increment: heading;
      content: counter(heading)".";
	    display: inline-block;
	    font-size: 1.3em;
    @media (max-width:768px) {
      font-size: 1em;
    }
    }
  }
  .cta-btn {
    display: block;
    font-size: .9em;
    padding: .3em 1em;
    border-radius: 100vmax;
    background: var(--color-gray);
    color: var(--color-white);
    &:hover {
      opacity: 0.7;
    }
  }
  .fx-expansion { /* img：祖先要素ホバーで拡大 */
    img {
      transition: var(--transitionall);
    }
    &:hover img {
      transform: scale(1.03);
    }
  }
}



/*========= ヘッダー =========*/
.content-container header {
  background: var(--color-black) url(../img/head_bg.jpg) no-repeat center right 12%;
  color: var(--color-white);
  padding: 1.5em;
  min-height: 300px;
  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;
  }
  .catch-copy {
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.9);
    @media (max-width:768px) {
      background-image: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(0, 0, 0, 0.7));
    }
  }
  .catch-point {
    display: flex;
    gap: 1.5em;
    @media (max-width:768px) {
      margin-top: 2em;
      flex-wrap: wrap;
    }
    li {
      display: flex;
      gap: .5em;
      align-items: center;
      background-image: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(0, 0, 0, 0.7));
      @media (max-width:768px) {
        align-items: flex-start;
      }
      p {
        text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.9);
        span {
          display: block;
          font-size: .8em;
          margin-top: .3em;
        }
      }
      img {
        background: var(--color-main);
        border-radius: 50%;
        aspect-ratio: 1 / 1;
        padding: .5em;
        width: 50px;
      }
    }
  }
}

/*========= 価格帯で選ぶ タイプで選ぶ =========*/
.select-pricerange,
.select-type {
  .pricerange-wrap,
  .type-wrap {
    display: flex;
    gap: 1em;
  }
  & p {
    text-align: center;
  }
  .pricerange-box,
  .type-box {
    width: calc((100% - 3em) / 4);
    padding-bottom: .5em;
    display: flex;
    gap: .5em;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    background: var(--color-primary);
    border-radius: 7px;
    border: solid 1px var(--color-secoundary);
    overflow: hidden;
  }
  .select-lead {
    font-size: .9em;
    font-weight: bold;
    text-align: center;
    color: var(--color-main);
    word-break: auto-phrase;
    @media (max-width: 1200px) {
      font-size: .8em;
    }
  }
  .product-box {
    width: 90%;
    background: var(--color-white);
    padding: .5em;
  }
  .product-name {
    margin-top: .3em;
    font-size: .9em;
    font-weight: bold;
    color: var(--color-gray);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    span {
      font-size: 1.1em;
      display: block;
    }
  }
}
.select-pricerange {  
  .pricerange-box {
    width: calc((100% - 3em) / 4);
  }
  .pricerange-ttl {
    width: 100%;
    background: var(--color-main);
    border-bottom: none;
    text-align: center;
    line-height: 2.0;
    font-weight: bold;
    font-size: 1.3em;
    color: var(--color-white);
    @media (max-width: 768px) {
      font-size: 1.1em;
    }
  }
}
.select-type {
  .type-box {
    width: calc((100% - 2em) / 3);
    padding: .5em .7em;
  }
  .type-ttl {
    display: flex;
    gap: .5em;
    align-items: center;
    font-weight: bold;
    font-size: 1.3em;
    @media (max-width: 768px) {
      font-size: 1.1em;
    }
    figure {
      width: 40px;
      height: 40px;
    }
  }
  .product-wrap {
    display: flex;
    gap: .7em;
  }
}

/*========= ブランドで選ぶ =========*/
.select-bland {
  .bland-list {
    display: flex;
    gap: .5em;
    flex-wrap: wrap;
    @media (max-width:768px) {
      flex-wrap: nowrap;
    }
    li {
      width: calc((100% - 2em) / 5);
      background: var(--color-white);
      display: flex;
      align-items: center;
      justify-content: center;
    }
    img {
      object-fit: contain;
    }
    a {
      display: block;
      padding: 2em;
      @media (max-width:640px) {
        padding: 1.5em;
      }
    }
  }
}
/*========= おすすめランキング =========*/
.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;
    @media (max-width:1024px) {
      margin-bottom: .5em;
    }
  }
  .tab-label {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 1.3em;
    font-weight: bold;
    color: var(--color-black);
    padding: 1em .5em;
    cursor: pointer;
    border-radius: 10px 10px 0 0;
    background: var(--color-primary);
    border: solid 1px var(--color-secoundary);
    border-bottom: none;
    transition: all 0.3s;
    @media (max-width:1024px) {
      flex: initial;
      flex-wrap: wrap;
      border-radius: 10px;
      border: solid 1px var(--color-secoundary);
      padding: .5em 1em;
      font-size: 1.2em;
    }
    &:hover {
      opacity: 0.7;
    }
    &:nth-child(4) {
      font-size: 1em;
    }
  }
  .tab-contents {
    padding: 1em;
    background: var(--color-primary);
    border: solid 1px var(--color-main-light);
    border-radius: 0 0 10px 10px;
    @media (max-width:1024px) {
      margin-top: 1em;
      border-radius: 10px;
    }
  }
  .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"] {
  background: var(--color-main);
  border: solid 1px var(--color-main);
  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 {
  display: block;
}

/* ランキングリスト */
.ranking-list {
  list-style-type: none;
  padding: 1em;
  @media (max-width:768px) {
    padding: .5em;
    display: flex;
    gap: 1em;
    width: calc((100vw * 5) + 2em);
    max-width: calc((500px * 5) + 2em);
  }
  @media (max-width:480px) {
    max-width: calc((200px * 5) + 2em);
  }
  counter-reset: ranking;
  li {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .5em 1.5em;
    margin-bottom: 1em;
    background: var(--color-white);
    @media (max-width:768px) {
      flex-wrap: wrap;
      row-gap: 1em;
      margin-bottom: 0;
      /*width: 100vw;*/
      max-width: calc(500px + 3em);
    }
    @media (max-width:480px) {
      max-width: calc(200px + 3em);
      justify-content: flex-start;
    }
    &:last-child {
      margin-bottom: 0;
    }
    &::before { /*順位の表示*/
      display: inline-block;
      min-width: 1.3em;
      background: var(--color-gray);
      border-radius: 2px;
      color: var(--color-white);
      font-weight: bold;
      font-size: 1.3em;
      line-height: 1.3;
      text-align: center;
      content: counter(ranking);
      counter-increment: ranking;
    }
    &:first-child::before {
      background: var(--color-accent);
    }
    figure {
      width: 200px;
    }
    .product-name {
      width: 200px;
      font-size: 1.1em;
      font-weight: bold;
      color: var(--color-main);
      text-align: center;
      margin-right: 1em;
      display: -webkit-box;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 3;
      overflow: hidden;
      span {
        display: block;
        font-size: .9em;
      }
      span:first-child {
        font-size: .8em;
        line-height: 1.8;
        margin: .2em 1.5em;
        background: var(--color-main);
        color: var(--color-white);
        border-radius: 100vh;
      }
    }
    a:hover {
      opacity: 0.7;
    }
    .recomend-comment {
      flex: 1;
      font-size: .8em;
      text-align: justify;
      display: -webkit-box;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 6;
      overflow: hidden;
      @media (max-width:768px) {
        flex: initial;
        width: 100%;
        max-width: 450px;
        margin-bottom: 1em;
      }
    }
  }
}

/*========= 動画　=========*/
.movie {
  @media (max-width:768px) {
    overflow-x: auto;
    display: flex;
    flex-direction: column;
    .movie-list {
      width: 900px;
    }
  }
  .movie-list {
    display: flex;
    gap: 1em;
    > li{
      width: 80%;
      max-width: 320px;
      figure {
        border-radius: 5px;
      }
    }
  }
  figure {
    border: solid 1px var(--color-secoundary);
  }
  .ttl {
    width: 100%;
    font-size: .8em;
    padding: .5em .3em;
    margin-bottom: .5em;
    border-radius: 5px;
  }
  .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%; }
  }
}
/* glightbox */
:root {
  --plyr-color-main: #ff0000;
}

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

/*========= よくある質問　=========*/
.faq-wrap {
  display: flex;
  column-gap: 1em;
  flex-wrap: wrap;
  .faq-list {
    width: calc((100% - 1em) / 2);
    @media (max-width:1024px){
      width: 100%;
    }
    li {
      border-radius: 10px;
      border: solid 1px var(--color-secoundary);
      background: var(--color-primary);
      margin-bottom: .5em;
      overflow: hidden;
    }
    summary {
      cursor: pointer;
      padding: .5em 1em;
      background: var(--color-main);
      color: var(--color-white);
      span {
        width: calc(100% - 1.5em);
        display: inline-flex;
        align-items: start;
        &::before {
          content: "Q.";
        }
      }
    }
    .answer {
      display: flex;
      padding: .5em 1em;
      margin-left: 1em;
      &::before {
        content:"A.";
        color: var(--color-main);
        font-weight: bold;
      }
      .a-ttl {
        color: var(--color-main);
        font-weight: bold;
        margin-bottom: .3em;
      }
      table {
        width: 100%;
        th,td {
          font-size: .9em;
          padding-right: 2em;
          padding-block: .4em;
          border-bottom: solid 1px var(--color-secoundary);
        }
        th {
          color: var(--color-gray);
        }
        tr:last-child > * {
          border: none;
        }
      }
    }
  }
}
/*========= 関連記事　=========*/
.article-wrap {
  @media (max-width:768px) {
    &:last-child{ margin-top: 1em; } 
  }
  .article-list {
    display: flex;
    gap: 1em;
    justify-content: space-around;
    margin-bottom: 2em;
    li {
      border: solid 1px var(--color-secoundary);
      border-radius: 10px;
      overflow: hidden;
      position: relative;
      aspect-ratio: 120 / 63;
      .cut-img img {
        transform: scale(1.1);/*画像を少し拡大してトリミング*/
      }
    }
    .ttl {
      width: 100%;
      background: var(--color-primary);
      opacity: 0.95;
      padding: .3em .5em;
      position: absolute;
      bottom: 0;
      word-break: auto-phrase;
      span {
        font-size: .9em;
        display: block;
        line-height: 1.5;
        min-height: calc(1.5em * 2);
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
      }
    }
  }
}

/*-- 768px以下で横スクロール --*/
@media (max-width: 1024px) {
  .tab-labels-wrap {
    overflow-x: auto;
    display: flex;
    flex-direction: column;
    .tab-labels {
      white-space: nowrap;
    }
  }
}
@media (max-width: 768px) {
  .select-pricerange,
  .select-type,
  .select-bland,
  .movie,
  .article-wrap {
    overflow-x: auto;
    display: flex;
    flex-direction: column;
    .pricerange-wrap,
    .type-wrap,
    .movie-list,
    .article-list {
      width: 900px;
    }
    .bland-list {
      width: 1600px;
    }
  }
}