@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-main: #542585;
  --color-green: #427925;
  --color-blue: #1b53b2;

  --bg-gray: #f8fafc;
  --border-gray: #e2e8f0;
  --bg--hover: #eff5fa;
  --border-hover: #5cb2dd59;

  --transitionall: all 0.3s ease;
}


/*-- common --*/ 
.content-container {
  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: 2em;
    padding-inline: 1.5em;
    @media (max-width:768px) {
      padding-block: 1.5em 2em;
    }
  }
  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;
    color: var(--color-main);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    &::before,
    &::after {
      flex: 1;
      content: "";
      height: 1px;
      background: var(--color-main);
    }
    &::before {
      margin-right: .7em;
    }
    &::after {
      margin-left: .7em;
    }
  }
  .card {
    background: var(--bg-gray);
    border: solid 1px var(--border-gray);
    border-radius: 2px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: .5em;
    align-items: center;
    padding: .5em;
    &:hover {
      background: var(--bg--hover);
      border-color: var(--border-hover);
    }
    div {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: .5em;
      align-items: center;
    }
    > div > div { width:90%;}
    img {
      margin-bottom: .5em;
    }
    .ttl {
      font-weight: bold;
      color: #0d2c54;
    }
    .desc {
      font-size: .8em;
      color: #64748b;
      display: flex;
      flex: 1;
      width: 100%;
      max-width: 300px;
    }
  }
  .list-box {
    background: var(--bg-gray);
    border: solid 1px var(--border-gray);
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    .ttl {
      font-weight: bold;
      padding: .7em .5em;
    }
    > ul {
      width: 100%;
    }
    li {
      display: flex;
      align-items: center;
      & + li {
        border-top: solid 1px var(--border-gray);
      }
      a {
        flex: 1;
        display: block;
        padding: .7em 1em;
        padding-right: 2em;
        position: relative;
        white-space: nowrap;
        @media (max-width:768px) {
          white-space: normal;
        }
        &:hover {
          background: var(--bg--hover);
        }
        &::after {
          content: "▶";
          position: absolute;
          right: 1em;
          top: 50%;
          transform: translateY(-50%);
        }
        img {
          height: 100%;
          width: auto;
        }
        span {
          display: inline-block;
        }
      }
    }
  }
  .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 {
  .analog {
    .ttl , .cta-btn {
      background: var(--color-main);
    }
    a::after {
      color: var(--color-main);
    }
  }
  .powered {
    .ttl , .cta-btn {
      background: var(--color-green);
    }
    a::after {
      color: var(--color-green);
    }
  }
  .digital {
    .ttl , .cta-btn {
      background: var(--color-blue);
    }
    a::after {
      color: var(--color-blue);
    }
  }
}



/*========= ヘッダー =========*/
.content-container header {  
  background: linear-gradient(90deg, rgb(25, 25, 27, 0.8)45%, transparent 70%), url(../img/head.jpg) right bottom / cover no-repeat;
}
.content-container .head-inner{
  /*max-width: 1350px;*/
  margin: 0 auto;
  color: var(--color-white);
  padding: 1.5em;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  gap: 1em;
  justify-content: space-between;
  h2 {
    font-size: 55px;
    font-weight: bold;
    letter-spacing: 0.05em;
    line-height: 1.2;
    margin-block: 5px 10px;
    white-space: nowrap;
    span {
      display: inline-block;
    }
  }
  .h-text {
    font-size: 17px;
    font-weight: bold;
  }
  .catch-copy {
    font-size: .85em;
    width: 55%;
  }
  @media (max-width:768px) {
    background:linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(../img/head.jpg) no-repeat center right 12%;
    h2 {
      font-size: 48px;
      white-space: normal;
    }
    .catch-copy { width:100%;}
  }
  .catch-point {
    width: 100%;
    display: flex;
    gap: 1em;
    @media (max-width:540px) {
      display: grid;
      grid-template-columns: auto auto;
    }
    li {
      display: flex;
      gap: .5em;
      align-items: center;
      p {
        word-break: auto-phrase;
        font-weight: bold;
        > span {
          display: inline-block;
        }
      }
      img {
        background: var(--color-main);
        border-radius: 50%;
        aspect-ratio: 1 / 1;
        padding: .5em;
        width: 50px;
      }
    }
  }
}

/*========= タイプ / 価格帯 / ブランド / ランキング =========*/
.select-type,
.select-pricerange,
.select-brand,
.ranking {
  .type-wrap,
  .pricerange-wrap,
  .brand-wrap,
  .ranking-wrap {
    display: grid;
    gap: .5em;
    grid-template-columns: repeat(3,1fr);
    .ttl {
      color: var(--color-white);
      width: 100%;
      text-align: center;
    }
  }
  .type-wrap {
    .ttl {
      border-radius: 3px;
      padding: .2em .5em;
    }
    img {
      margin-bottom: 0;
    }
  }
  .pricerange-wrap,
  .brand-wrap {
    align-items: start;
  }
  .brand-wrap {
    .list-box {
      a {
        display: grid;
        grid-template-columns: 100px 1fr;
        gap: 1.5em;
        align-items: center;
        @media (max-width:920px) {
          p { display: none;}
        }
        @media (max-width:400px) {
          grid-template-columns: auto 1fr;
        }
      }
    }
  }
}

/*========= ランキング =========*/
.ranking {
  .ranking-wrap {
    @media (max-width:768px) {
      grid-template-columns: repeat(1,1fr);
    }
    .list-box , .powered{
      counter-reset: ranking;
      ul {
        height: 100%;
        display: grid;
        grid-template-rows: repeat(5,1fr);
      }
      li > a {
        display: flex;
        height: 100%;
        gap: 3px;
        align-items: center;
        position: relative;
        padding: 1em .5em .5em;
        white-space: normal;
        img {
          max-width: 100px;
          height: auto;
          flex: 0 0 100px;
        }
        &::after {
          content: none;
        }
        &::before { /*順位の表示*/
          display: inline-block;
          min-width: 1em;
          padding: .25em;
          border-radius: 50%;
          color: var(--color-white);
          background: #b3afaf;
          font-weight: bold;
          font-size: 1em;
          line-height: 1;
          text-align: center;
          content: counter(ranking);
          counter-increment: ranking;
          position: absolute;
          top: .6em;
          left: .6em;
          z-index: 1;
        }
        > div {
          flex: 1;
          min-width: 0;
        }
        .product-name {
          font-size: .9em;
          font-weight: bold;
          letter-spacing: -0.0025em;
          /*text-align: center;*/
        }
        .comment {
          font-size: .8em;
        }
      }
      li:nth-child(1) > a:before {
        background: #ce9230;
      }
      li:nth-child(2) > a:before {
        background: #b7aaa4;
      }
      li:nth-child(3) > a:before {
        background: #c97b39;
      }
    }
  }
}

/*================= タイプ / 価格帯 / ブランド / ランキング (768px以下） ====================*/

/* タイプ */
@media (max-width:640px) {
  .select-type {
    .type-wrap {
      grid-template-columns: repeat(1,1fr);
      gap: 1em;
      .card {
        > div {
          flex-direction: row;
          gap: 1em;
          img { 
            width: 50%;
            max-width: 170px;
            aspect-ratio: 3 / 2;
            object-fit: cover;
          }
        }
      }
    }
  }
}

/* 価格帯 / ブランド / ランキング */
@media (max-width:768px) {
.select-pricerange,
.select-brand,
.ranking {
  .pricerange-wrap,
  .brand-wrap,
  .ranking-wrap {
    grid-template-columns: repeat(1,1fr);
    gap: 1em;
    .list-box {
      ul {
        display: grid;
        grid-template-columns: repeat(3,1fr);
        grid-template-rows: none;
        li {
          border-top: none;
          border-right: 1px solid var(--border-gray);
          &:nth-child(-n+3) {
            border-bottom: 1px solid var(--border-gray);
          }
          &:nth-child(3) {
            border-right: none;
          }
        }
      }
    }
  }
  .pricerange-wrap,
  .brand-wrap {
    .powered li {
      border-bottom: none;
    }
  }
  .pricerange-wrap {
    .analog , .digital {
      ul {
        grid-template-columns: repeat(2,1fr);
        li {
          &:nth-child(odd) , &:nth-child(3){
            border-right: 1px solid var(--border-gray);
          }
          &:nth-child(3), &:last-child {
            border-bottom: none;
          }
        }
      }
    }
  }
}
}

@media (max-width:620px) {
.select-pricerange,
.select-brand,
.ranking {
  .pricerange-wrap,
  .brand-wrap,
  .ranking-wrap {
    .list-box {
      ul {
        grid-template-columns: repeat(2,1fr);
        li {
          border-bottom: 1px solid var(--border-gray);
          border-right: none;
          &:nth-child(odd) {
            border-right: 1px solid var(--border-gray);
          }
          &:last-child {
            border-bottom: none;
          }
        }
      }
    }
  }
}
}

@media (max-width:450px) {
.ranking {
  .ranking-wrap {
    .list-box {
      ul {
        li:first-child {
          grid-column: 1 / -1;
          border-right: none;
        }
        li:nth-child(odd) {
          border-right: none;
        }
        li:nth-child(even) {
          border-right: solid 1px var(--border-gray);
        }
        li:nth-child(n + 4) {
          border-bottom: none;
        }
        li:nth-child(n + 2) {
          img { max-width:70px; flex:0 1 70px;}
          span { display: inline;}
          .comment { display: none;}
        }
      }
    }
  }
}
}

/* 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;
}

/*========= スワイパー共通　=========*/
.content-container .swiper-wrapper {
  display: flex;
}

.content-container .swiper-slide {
  width: 80%;
  max-width: 320px;
  margin-bottom: 1.5em;
  figure {
    border-radius: 5px;
    border: solid 1px var(--border-gray);
  }
  p {
    font-size: .8em;
    margin-top: .3em;
  }
}

/* glightbox */
:root {
  --plyr-color-main: #ff0000;
}

.goverlay {
	background: rgba(0, 0, 0, .7);
}
/*========= 虎の巻　=========*/
.content-container .howto {
  img {
    aspect-ratio: 6 / 4.5;
    object-fit: cover;
  }
  p {
    font-size: 1em;
    font-weight: bold;
    text-align: center;
  }
}


/*========= 動画　=========*/
.content-container .movie {
  .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 {
  .faq-list {
    counter-reset: faq;
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: .5em 1em;
    align-items: start;
    @media (max-width:768px) {
      grid-template-columns: repeat(1,1fr);
    }
    > li {
      border-radius: 10px;
      border: solid 1px var(--border-gray);
      background: var(--bg-gray);
      margin-bottom: .5em;
      overflow: hidden;
      counter-increment: faq;
    }
    summary {
      list-style: none;
      cursor: pointer;
      padding: .5em;
      padding-right: 1.5em;
      color: var(--color-black);
      font-weight: bold;
      position: relative;
      line-height: 1.6em;
      &::after {
      content: "";
      position: absolute;
      right: 1em;
      top: 50%;
      width: .5em;
      height: .5em;
      border-right: 2px solid var(--color-gray);
      border-bottom: 2px solid var(--color-gray);
      transform: translateY(-70%) rotate(45deg);
      transition: transform 0.3s ease;
      }
    }
    details[open] summary::after {
      transform: translateY(-30%) rotate(-135deg);
    }
    summary > span, .answer {
        display: inline-flex;
      &::before {
        content: "Q" counter(faq) ".";
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        font-weight: bold;
        width: 1.6em;
        height: 1.6em;
        margin-inline: .5em;
        color: var(--color-main);
        flex-shrink: 0;
      }
    } 
    .answer {
      padding: .5em;
      line-height: 1.6;
      font-size: .9em;
      > div , p{
        font-size: .9em;
      }
      &::before {
        content:"A.";
        font-size: 1.1em;
      }
      ol li {
        list-style: decimal;
        margin-left: 1.5em;
        margin-top: .3em;
      }
    }
  }
}

/*========= フッター　=========*/
.content-container footer {
  background: linear-gradient(rgba(97, 61, 131, 0.9),rgba(97, 61, 131, 0.9)),url(../img/top3.jpg?a) left bottom / cover no-repeat;
  border-radius: 5px;
  display: flex;
  gap: 1em;
  align-items: center;
  color: var(--color-white);
  padding: 1em 1.5em;
  @media (max-width:768px) {
    flex-direction: column;
    border-radius: 0;
  }
  > div {
    p {
      font-size: .9em;
    }
  }
  .fot-heading {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: .3em;
  }
  .cta-btn {
    white-space: nowrap;
    font-size: 1em;
    font-weight: bold;
    display: block;
    padding: .7em 1em;
    border: solid 1px var(--color-white);
    background: #fac902;
    color: var(--color-black);
    border-radius: 3px;
    &:hover {
      background: var(--color-white);
      opacity: 1;
    }
    &::after {
      content: ">";
      margin-left: .5em;
    }
    @media (max-width:768px){
      width: 100%;
      max-width: clac(600px + 1.5em);
      word-break: normal;
      margin-left: 0;
    }
  }
}

