@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: #1F1F1F;
  --color-gray: #53575a;
  --color-white: #fff;
  --color-main: #6a4b87;

  --title-bg : #e9e9eb;
  --bg-gray: #f1f1f1;
  --bg-lightgray: #fcfcfc;
  --border-gray: #e4e4e4;
  --bg--hover: #f4f2f5;
  --border-hover: #bc9cda;

  --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: 1.5em;
    padding-inline: 1.5em;
    @media (max-width:768px) {
      padding-block: 1.5em 2em;
      &: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;
    color: var(--color-black);
    display: flex;
    align-items: flex-end;
    gap: .5em;
    @media (max-width:450px) {
      align-items: flex-start;
    }
    img {
      width: 1.5em;
      height: auto;
      flex-shrink: 0;
    }
  }
  .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:95%;}
    .ttl {
      font-weight: bold;
      color: var(--color-main);
    }
    .desc {
      font-size: .8em;
      color: #64748b;
      display: flex;
      flex: 1;
      width: 100%;
    }
  }
  .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;
      background: var(--bg--hover);
    }
    > ul {
      width: 100%;
    }
    li {
      display: flex;
      align-items: center;
      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%);
          color: var(--color-main);
          @media (max-width:300px) {content: none;}
        }*/
        img {
          height: 100%;
          width: auto;
        }
        span {
          display: inline-block;
        }
      }
    }
  }
  .cta-btn {
    display: inline-block;
    font-size: .9em;
    padding: .3em 1em;
    padding-right: 2em;
    border-radius: 5px;
    background: var(--color-main);
    color: var(--color-white);
    position: relative;
    margin-left: auto;
    &::after {
      /*content: " >";*/
      content: "";
      position: absolute;
      right: 1em;
      top: 50%;
      width: .5em;
      height: .5em;
      border-right: 2px solid var(--color-white);
      border-top: 2px solid var(--color-white);
      transform: translateY(-50%) rotate(45deg);
      margin-left: 1em;
    }
    &:hover {
      opacity: 0.7;
    }
  }
  .heading-wrap {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    @media (max-width:380px) {
      flex-wrap: wrap ;
      margin-bottom: 1em;
    }
  }
  .fx-expansion { /* img：祖先要素ホバーで拡大 */
    img {
      transition: var(--transitionall);
    }
    &:hover img {
      transform: scale(1.03);
    }
  }
}



/*========= ヘッダー =========*/
.content-container header {  
  background: 
    linear-gradient(90deg, rgb(23, 22, 50, 0.6) 45%, transparent 60%),
    /*linear-gradient(15deg, rgb(243, 244, 245, 0.9) 15%, transparent 50%), */
    url(../img/head.jpg?f) /*calc(100% + 10px)*/ right center / contain no-repeat;
  background-color: #171632;
}
.content-container .head-inner{
  /*max-width: 1350px;*/
  margin: 0 auto;
  color: var(--color-white);
  padding: 1em 1.5em;
  min-height: 330px;
  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;
    text-shadow: 1px 2px 3px rgba(10, 7, 20, 0.4);
    span {
      display: inline-block;
    }
  }
  .h-text {
    font-size: 23px;
    font-weight: bold;
  }
  .catch-copy {
    font-size: .85em;
    width: 57%;
  }
  @media (max-width:950px) {
    background:linear-gradient(90deg, rgb(23, 22, 50, 0.6) 60%, transparent 80%), url(../img/head.jpg) no-repeat center right / cover;
  }
  @media (max-width:768px) {
    background:linear-gradient(90deg, rgba(23, 22, 50, 0.8)45%, rgba(23, 22, 50, 0.6)60%), url(../img/head.jpg) no-repeat center center / cover;
    h2 {
      font-size: 45px;
      white-space: normal;
    }
    .catch-copy { width:100%;}
  }
  @media (max-width:450px) {
    h2 { font-size: 38px;}
  }
  .catch-point {
    width: 100%;
    display: flex;
    gap: 1em;
    @media (max-width:620px) {
      flex-wrap: wrap;
    }
    li {
      display: flex;
      gap: .5em;
      align-items: center;
      p {
        word-break: auto-phrase;
        font-weight: bold;
        > span {
          display: block;
          font-weight: normal;
          font-size: .9em;
          text-shadow: 0px 0px 7px rgba(243, 244, 245, 1), 0px 0px 10px rgba(255, 255, 255, 1),0px 0px 15px rgba(255, 255, 255, 1);
        }
      }
      img {
        background: var(--color-main);
        border-radius: 50%;
        aspect-ratio: 1 / 1;
        padding: .5em;
        width: 50px;
      }
    }
  }
}

/*=========  価格帯   =========*/
.select-pricerange,
.select-software  {
  ul {
    display: grid;
    gap: .5em;
    grid-template-columns: repeat(3,1fr);
    .card {
      gap: .2em;
      padding-block: 1em;
    }
    li {
      color: var(--color-main);
      width: 100%;
      text-align: center;
      font-size: .8em;
      span {
        display: block;
        font-size: 1.4em;
        font-weight: bold;
        color: var(--color-black);
      }
    }
  }
.pricerange-wrap {
  @media (max-width:450px) {
    ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
      } 
      li {
        width: calc((100% - 1em) / 2);
        @media (max-width:350px) {
          width: 100%;
        }
      }
    }
  }
}

/*========= 対応ソフト =========*/
.select-software {
  ul {
    grid-template-columns: repeat(4,1fr);
    @media (max-width:480px) {grid-template-columns: repeat(2,1fr);}
  }
}

/*========= ブランド =========*/
.select-brand {
  ul {
    display: grid;
    grid-template-columns: repeat(6,1fr);
    gap: .5em;
    @media (max-width:768px) { grid-template-columns: repeat(3,1fr);}
  }
  .card {
    padding: 1em 1.25em;
    background: var(--color-white);
  }
}
.select-brand {
  .card {
    &:hover {
      background: var(--bg-lightgray);
    }
  }
}

/*========= ランキング =========*/
.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:768px) {
      flex-wrap: wrap;
      margin-bottom: .5em;
    }
  }
  .tab-label {
    flex: 1;
    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--hover);
    transition: all 0.3s;
    @media (max-width:768px) {
      background: var(--border-gray);
    }
    @media (max-width:350px) {
      flex: initial;
      flex-wrap: wrap;
      padding: .5em 1em;
    }
    &:hover {
    background: var(--title-bg);
    }
    &:nth-child(4) {
      font-size: 1em;
    }
  }
  .tab-contents {
    padding-block: 1em 0;
    background: var(--color-white);
  }
  .tab-contents > div {
    display: none;
  }
}

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

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

.ranking {
  .ranking-wrap {
    .list-box {
      counter-reset: ranking;
      ul {
        height: 100%;
        display: grid;
        grid-template-rows: repeat(5,1fr);
      }
      li > a {
        display: flex;
        height: 100%;
        gap: 1.5em;
        align-items: center;
        position: relative;
        padding: .5em 1em;
        white-space: normal;
        background: var(--bg-lightgray);
        &:hover {
          background: var(--bg--hover);
        }
        @media (max-width:600px) {
          padding: 1em .5em;
          gap: .5em;
        }
        img {
          max-width: 150px;
          height: auto;
          @media (max-width:450px) {
            max-width: 100px;
            flex: 0 0 100px;
            margin-left: .5em;
          }
        }
        /*&::after {
          content: "";
          width: 1em;
          height: 1em;
          mask-image: url(../img/icon_crown_bg.svg);
          mask-size: contain;
          mask-repeat: no-repeat;
          mask-position: center;
          background: #d4af37;
        }*/
        &::before { /*順位の表示*/
          display: inline-block;
          min-width: 1em;
          padding: .5em;
          margin: .5em;
          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;
          z-index: 1;
          @media (max-width:450px) {
            position: absolute;
            top: 0;
            left: 0;
          }
        }
        > div {
          flex: 1;
          min-width: 0;
          display: flex;
          gap: 1em;
          @media (max-width:768px) {
            flex-direction: column;
            gap: .5em;
          }
        }
        .product-name {
          font-weight: bold;
          display: flex;
          align-items: center;
          gap: .5em;
          white-space: nowrap;
          @media (max-width:600px) { display: inline; font-size: .9em; white-space: normal;}
        }
        .comment {
          font-size: .9em;
          @media (max-width:600px) { 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;
      }
      @media (min-width:450px) {
        li:nth-child(1) > a:before ,
        li:nth-child(2) > a:before ,
        li:nth-child(3) > a:before  {
          border-radius: 0;
          padding: 1em;
          margin: 0;
          mask-image: url(../img/icon_crown_bg.svg);
          mask-size: 3em auto;
          mask-repeat: no-repeat;
          mask-position: center;
        }
      }
    }
  }
}

/*================= タイプ / 価格帯  (768px以下） ====================*/

/* タイプ */
@media (max-width:640px) {
  .select-type {
    .type-wrap {
      grid-template-columns: repeat(1,1fr);
      gap: 1em;
      .card {
        > div {
          img { 
            width: 90%;
            max-width: 200px;
          }
        }
      }
    }
  }
}

/* 価格帯 */
@media (max-width:620px) {
.select-pricerange {
  .pricerange-wrap {
    grid-template-columns: repeat(1,1fr);
    gap: 1em;
    .list-box {
      ul {
        display: grid;
        grid-template-columns: repeat(2,1fr);
        grid-template-rows: none;
        li {
          &:nth-child(odd) {
            border-right: 1px solid var(--border-gray);
          }
        }
      }
    }
  }
}
}

/* 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);
}
/*========= 記事　=========*/
.article {
  .swiper-slide {
    img {
      aspect-ratio: 120 / 63;
      object-fit: cover;
      object-position: bottom;
    }
  }
}


/*========= 動画　=========*/
.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(1,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.75em;
      font-size: .95em;
      color: var(--color-main);
      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: flex-start;
        border-radius: 50%;
        font-weight: bold;
        /*width: 1.6em;*/
        height: 1.6em;
        margin-inline: .5em .25em;
        color: var(--color-main);
        flex-shrink: 0;
      }
    } 
    .answer {
      padding: .5em;
      line-height: 1.6;
      font-size: .9em;
      > div , p {
        /*font-size: .9em;*/
        p + p {
          margin-top: .5em;
        }
      }
      &::before {
        /*content:"A.";*/
        content: "A" counter(faq) ".";
        font-size: 1.075em;
      }
      a {
        color: var(--color-main);
        text-decoration: underline;
        display: inline;
        &:hover {
          color: var(--border-hover);
        }
      }
      ol {
        margin-bottom: .3em;
        li {
          list-style: disc;
          margin-left: 1.5em;
          margin-top: .3em;
          font-size: .9em;
        }
      }
    }
  }
}

/*========= フッター　=========*/
.content-container footer {
  background: linear-gradient(rgba(230, 230, 231, 0.8),rgba(236, 236, 236, 0.6)),url(../img/bg.jpg?a) right center / auto no-repeat;
  border-radius: 5px;
  display: flex;
  gap: 1em;
  align-items: center;
  justify-content: space-between;
  padding: 1em 1.5em;
  margin-top: 2em;
  @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;
    color: var(--color-main);
  }
  .cta-btn {
    white-space: nowrap;
    font-size: 1em;
    font-weight: bold;
    display: block;
    padding-block: .7em;
    border: solid 1px var(--color-white);
    border-radius: 3px;
    @media (max-width:768px){
      width: 100%;
      max-width: clac(600px + 1.5em);
      word-break: normal;
      margin-left: 0;
    }
  }
}

