@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: #163c87;
  --color-sub: #226e93;

  --bg-gray: #f8fafc;
  --border-gray: #e2e8f0;
  --bg--hover: #e5edf5;
  --color-accent: #226e93;

  --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;
    color: var(--color-sub);
    /*position: relative;
    display: flex;
    align-items: center;
    gap: .2em;
    padding-left: .5em;
    border-left: 7px solid var(--color-sub);*/
    @media (max-width:1024px) {
      position: sticky;
      left: 0;
    }
    @media (max-width:768px) {
      font-size: 1.4em;
      align-items: flex-start;
    }
  }
  .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: 2px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: .5em;
    align-items: center;
    /*justify-content: space-between;*/
    padding: .5em;
    &:hover {
      background: var(--bg--hover);
      border-color: var(--color-accent);
    }
    img {
      margin-bottom: .5em;
    }
    .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-sub);
    color: var(--color-white);
    &::after {
      content: " >";
    }
    &:hover {
      opacity: 0.7;
    }
  }
  .heading-wrap {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    @media (max-width:350px) {
      flex-direction: column;
      margin-bottom: .3em;
    }
  }
  .fx-expansion { /* img：祖先要素ホバーで拡大 */
    img {
      transition: var(--transitionall);
    }
    &:hover img {
      transform: scale(1.03);
    }
  }
}



/*========= ヘッダー =========*/
.content-container header {  
  background: 
      /*linear-gradient(90deg, rgba(255, 255, 255, 1)25%, transparent 60%),*/ url(../img/head.jpg?a) calc(100% + 50px) center / cover no-repeat;
}
.content-container .head-inner{
  margin: 0 auto;
  color: var(--color-main);
  padding: 1.5em;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  gap: 1em;
  justify-content: space-between;
  h2 {
    font-size: 58px;
    font-weight: bold;
    letter-spacing: 0.05em;
    line-height: 1.2;
    margin-block: 10px 15px;
    > span {
      display: block;
    }
    > span.particle {
      font-size: .9em;
      color: var(--color-black);
      display: inline-block;
    }
    @media (max-width:1024px) {
      -webkit-text-stroke: 7px rgba(253, 253, 254, 0.9);
      paint-order: stroke fill;
      text-shadow: 0 0 15px #e2e2e2;
    }
    @media (max-width:768px) {
      font-size: 48px;
    }
    @media (max-width:600px) {
      font-size: 40px;
      > span {
        display: inline-block;
      }
    }
  }
  .h-text {
    background: var(--color-main);
    color: var(--color-white);
    display: inline-block;
    padding: .3em .7em;
    border-radius: 4px;
    font-size: 17px;
    font-weight: bold;
    @media (max-width:768px) {
      font-size: 15px;
    }
    @media (max-width:600px) {
      font-size: 13px;
    }
  }
  @media (max-width:1024px) {
    background:
      linear-gradient(90deg, rgba(253, 253, 254, 0.5)45%, transparent 100%), url(../img/head.jpg?a)  center / cover no-repeat;
    .h-text {
      padding-bottom: .5em;
    }
  }
  @media (max-width:600px) {
    background:
      linear-gradient(180deg, rgba(253, 253, 254, 0.2)45%, rgba(253, 253, 254, 0.2) 100%), url(../img/head.jpg) right 10% center / cover no-repeat;
  }
  @media (max-width:500px) {
    background:
      linear-gradient(180deg, rgba(253, 253, 254, 0.2)45%, rgba(253, 253, 254, 0.2) 100%), url(../img/sp.jpg) bottom center / cover no-repeat;
  }
  .catch-point {
    width: 50%;
    display: grid;
    grid-template-columns: repeat(3, minmax(180px,1fr));
    gap: 1em;
    @media (max-width:1024px) {
      width: 100%;
      max-width: 400px;
      grid-template-columns: repeat(3, minmax(100px,1fr));
      -webkit-text-stroke: 3px rgba(253, 253, 254, 0.9);
      paint-order: stroke fill;
      text-shadow: 0 0 5px #e2e2e2;
    }
    @media (max-width:600px) {
      max-width: none;
      grid-template-columns: repeat(3,1fr);
      gap: 1em;
    }
    @media (max-width:320px) {
      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;
          white-space: nowrap;
        }
      }
      img {
        background: var(--color-main);
        border-radius: 50%;
        aspect-ratio: 1 / 1;
        padding: .5em;
        width: 50px;
      }
    }
  }
}

/*========= 価格帯 / カテゴリー / おすすめブランド =========*/
.select-type,
.select-use,
.select-brand {
  .type-wrap,
  .use-wrap,
  .brand-wrap {
    display: grid;
    gap: .5em;
    grid-template-columns: repeat(4,1fr);
    @media (max-width:768px) {
      justify-content: flex-start;
    }
  }
  .type-wrap,
  .brand-wrap {
    grid-template-columns: repeat(6,1fr);
  }
  .category-wrap {
    .ttl {
      font-size: .95em;
    }
  }
  .brand-wrap {
    @media (max-width:768px) {
      grid-template-columns: repeat(3,1fr);
    }
    .card {
      background: var(--color-white);
      border: none;
      padding: .25em;
      img {
        margin: 0;
          width: 100%;
          max-width: 150px;
      }
      &:hover {
        color: var(--color-accent);
      }
    }
  }
}

/*========= ランキング =========*/
.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-gray);
    transition: all 0.3s;
    @media (max-width:1024px) {
      flex: initial;
      flex-wrap: wrap;
      padding: .5em 1em;
    }
    @media (max-width:768px) {
      background: var(--border-gray);
      padding: .5em 1em;
    }
    &: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;
  }
}

/* チェックされたタブのラベルのスタイル */
#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"] ,
#tab6:checked ~ .tabs-inner label[for="tab6"] {
  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,
#tab6:checked ~ .tabs-inner .content-tab6 {
  display: block;
}

.ranking {
  .ranking-wrap {
    counter-reset: ranking;
    .ranking-list {
      display: grid;
      grid-template-columns: repeat(5,1fr);
      gap: 1em;
      li {display: flex;}
      li > .card {
        flex: 1;
        position: relative;
        padding: 1em .5em .5em;
        &::before { /*順位の表示*/
          display: inline-block;
          min-width: 1.1em;
          padding: .25em;
          border-radius: 50%;
          color: var(--color-white);
          background: var(--color-sub);
          font-weight: bold;
          font-size: 1.1em;
          line-height: 1.1;
          text-align: center;
          content: counter(ranking);
          counter-increment: ranking;
          position: absolute;
          top: .5em;
          left: .5em;
          z-index: 1;
        }
        .product-name {
          font-size: .85em;
          font-weight: bold;
          min-width: 0;
          text-align: center;
          span {
            font-size: 1.1em;
            display: block;
            color: var(--color-sub);
          }
        }
      }
    }
  }
}
/* glightbox */
:root {
  --plyr-color-main: #ff0000;
}

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

/*========= 動画　=========*/
.movie {
  .movie-list {
    gap: 1em;
    display: grid;
    grid-template-columns: repeat(6,1fr);
    @media (max-width:768px) {
      display: flex;
    }
    > li {
      figure {border: 1px solid var(--border-gray);}
      @media (max-width:768px) {
        flex: 1;
      }
    }
    p {
      font-size: .75em;
      margin-top: .3em;
      display: -webkit-box;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 3;
      overflow: hidden;
    }
  }
  .icon-movie {
    display: block;
    width: 100%;
    flex: 1;
    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 {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: .5em 1.5em;
    @media (max-width:800px) {
      grid-template-columns: repeat(1,1fr);
    }
    > li {
      margin-bottom: 1em;
      overflow: hidden;
    }
    summary {
      list-style: none;
      cursor: pointer;
      padding: .5em;
      padding-right: 1.5em;
      color: var(--color-black);
      border-bottom: solid 1px var(--color-gray);
      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);
    }
    .answer {
      padding: .5em;
      line-height: 1.6;
      font-size: .9em;
      > div , p {
        font-size: .9em;
      }
      ol li {
        list-style: decimal;
        margin-left: 1.5em;
        margin-top: .3em;
      }
    }
  }
}

/*-- 768px以下で横スクロール --*/
@media (max-width: 768px) {
  .type-container,
  .use-container,
  .tab-contents,
  .movie-container {
    overflow-x: auto;
    display: flex;
    flex-direction: column;
    > * {
      padding: .5em;
      padding-bottom: 1.5em;
      width: 900px;
    }
    .movie-list {
      width: 2100px;
    }
  }
  .tab-contents > div {
    width: 800px;
    padding-bottom: .5em;
  }
  .select-type {
    .heading {
      margin-top: .5em;
    }
  }
  .select-brand {
    margin-bottom: 1em;
  }
}