@charset "utf-8";

html {
  scroll-behavior: smooth;
}

.content-container {
  container-name: content-container;
  container-type: inline-size;
  font-size: 15px;
  --color-main: #3b335f;
}

.content-container img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
  object-fit:contain;
}

.content-container a:hover {
  text-decoration: none;
}

/* header */
.content-container header {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: url(../img/bg_top.jpg?zz) center right -94px / cover no-repeat, black;
  position: relative;
  color: white;
}

.content-container header > * {
  position:relative;
}

.content-container .ttl-header {
  & p {
    font-size: 13px;
  }

  & h2 {
    font-size: 48px;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    line-height: 1;
  }
}

.content-container .wrap-service {
  display: flex;
  gap: 16px;
}

.content-container .box-service {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0 8px;
  font-size: 13px;
}

.content-container .box-service img {
  grid-row: 1 / 3;
  background: var(--color-main);
  border-radius: 50%;
  padding: 8px;
  box-sizing: border-box;
  width: 50px;
  aspect-ratio: 1 / 1;
}

.content-container .ttl-service {
  font-weight: bold;
  font-size: 14px;
  margin-top: auto;
}

/* section 共通 */
.content-container .sec {
  margin-top: 40px;
  background: #fff;
  padding-inline: 16px;
  /* max-width: 1260px; */
  margin-inline: auto;
}

.content-container .ttl-sec {
  font-weight: bold;
  font-size: 23px;
  margin-bottom: 16px;
  line-height: 1.2;
}

/*ブランドで選ぶ */
.content-container .wrap-brands {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(5, 1fr);
  width: 100%;
  @container content-container (max-width: 800px) {
    grid-template-columns: repeat(4, 1fr);
  }
  @container content-container (max-width: 600px) {
    grid-template-columns: repeat(3, 1fr);
  }  
  @container content-container (max-width: 400px) {
    grid-template-columns: repeat(2, 1fr);
  }  
}

.content-container .box-brands {
  display: flex;
}

.content-container .box-brands a {
  width: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
  padding: 16px;
  box-sizing: border-box;
  height: 100%;
  gap: 4px;
  justify-content: center;
  align-items: center;
}

.content-container .box-brands a:hover {
  background: #f3f3f3;
}

.content-container .box-brands a:hover {
  text-decoration: none;
}

.content-container .box-brands img {
  height: 40px;
}

/* 売れ筋ランキング */
@keyframes showTab {
  from {
    opacity: 0;
  } to {
    opacity: 1;
  }
}

.content-container .wrap-tab input {
  display: none;
}

.content-container .wrap-tab .tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, 160px);
  gap: 10px;
}

.content-container .wrap-tab .tabs label {
  padding: 6px 0 4px;
  cursor: pointer;
  transition: .4s;
  border-radius: 8px;
  text-align: center;
  border: 1px solid #aaa;
}

.content-container .wrap-tab .tabs label:hover {
  background: #eee;
}

.content-container .wrap-tab .tab-content {
  display: none;
}

#tab-radio-1:checked ~ .tabs #tab-label-1 { background: var(--color-main); color: #fff; cursor: default; }
#tab-radio-1:checked ~ #tab-content-1 { display: block; animation: showTab .4s; }
#tab-radio-2:checked ~ .tabs #tab-label-2 { background: var(--color-main); color: #fff; cursor: default; }
#tab-radio-2:checked ~ #tab-content-2 { display: block; animation: showTab .4s; }
#tab-radio-3:checked ~ .tabs #tab-label-3 { background: var(--color-main); color: #fff; cursor: default; }
#tab-radio-3:checked ~ #tab-content-3 { display: block; animation: showTab .4s; }
#tab-radio-4:checked ~ .tabs #tab-label-4 { background: var(--color-main); color: #fff; cursor: default; }
#tab-radio-4:checked ~ #tab-content-4 { display: block; animation: showTab .4s; }

.content-container .tab-content {
  margin-top: 16px;
}

.content-container .list-ranking {
  gap: 15px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  @container content-container (max-width: 900px) {
    grid-template-columns: repeat(3, 1fr);
  }
  @container content-container (max-width: 600px) {
    grid-template-columns: repeat(2, 1fr);
  }
  @container content-container (max-width: 400px) {
    grid-template-columns: repeat(1, 1fr);
  }
}

.content-container .list-ranking li {
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  /* flex: 1; */
  overflow: hidden;
}

.content-container .list-ranking li a {
  gap: 8px 16px;
  align-items: center;
  padding: 16px;
  color: #444;
  display: flex;
  flex-direction: column;
  /* justify-content: space-between; */
  height: 100%;
  box-sizing: border-box;
}

.content-container .list-ranking li a:hover {
  background: #f3f3f3;
}

.content-container .list-ranking li + li {
  border-top: 1px solid #eee;
}

.content-container .rank {/* right: auto; */margin-right: auto;position: relative;}

.content-container .rank span {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-weight: bold;
  font-size: 18px;
  width: 24px;
  height: 32px;
  background: #888;
}

.content-container .list-ranking li:nth-child(1) .rank span {
  background: #f5b000;
}

.content-container .list-ranking li:nth-child(2) .rank span {
  background: #bfc8d2;
}

.content-container .list-ranking li:nth-child(3) .rank span {
  background: #d78353;
}

.content-container .list-ranking .img {
  width: 160px;
  margin-top: -15px;
}

.content-container .list-ranking .name {
  font-weight: bold;
  font-size: 16px;
  color: var(--color-main);
  /* margin-bottom: auto; */
  line-height: 1.4;
}

.content-container .list-ranking .review {font-size: 11px;}

.content-container .list-ranking .review p {
  /* background: #eee; */
  /* padding: 15px; */
  border-radius: 15px;
  position: relative;
  font-size: 14px;
  line-height: 1.5;
  word-break: auto-phrase;
}

/* 動画コンテンツ */
.content-container .wrap-video {
}

.content-container .box-video {
  position: relative;
  width: calc((100% - 16px * 4) / 5);
}

.content-container .box-video a:hover {
  display: block;
  text-decoration: underline;
}

.content-container .box-video a::after {
  position: absolute;
  display: block;
  content: "";
  width: 100%;
  aspect-ratio: 16 / 9;
  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: 30%;
  transition: 0.3s;
  opacity: 0.5;
  filter: grayscale(10%);
}

.content-container .box-video a:hover::after {
  filter: grayscale(0);
  opacity: 0.9;
}

.content-container .box-video img {
  border-radius: 8px;
}

.content-container .name-video {
  color: #444;
  margin-top: 8px;
  font-size: 14px;
}

.content-container .name-video span {
  background: #999;
  color: #fff;
  display: inline-block;
  font-size: 10px;
  padding: 2px 4px;
  margin-right: 8px;
}

/* swiper */
.content-container {
  --swiper-theme-color: #fff;
  --swiper-navigation-size: 32px;
}

.content-container .swiper {
  container-type: inline-size;
}

.content-container .swiper-button-prev,
.content-container .swiper-button-next {
  background: rgba(0, 0, 0, 0.5);
  padding: 8px;
  transition: opacity 0.3s;
  top: calc((100cqw - 16px * 4) / 5 * 0.5625 / 2 - 8px);
}

.content-container .swiper-button-disabled {
  opacity: 0;
}

/* よくある質問 */
.content-container .wrap-faq {
}
.content-container .list-faq {
  display: grid;
  gap: 16px;
  counter-reset: faq-count 0;
  grid-template-columns: repeat(1, 1fr);
}

.content-container .list-faq details {
  border: 1px solid #aaa;
  border-radius: 8px;
}

.content-container .list-faq summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 4px;
  padding: 8px;
  cursor: pointer;
  color: var(--color-main);
  font-weight: bold;
}

.content-container .list-faq summary::before {
  counter-increment: faq-count 1;
  content: "Q" counter(faq-count) ".";
  font-weight: normal;
}

.content-container .list-faq summary::after {
  content: "";
  width: 20px;
  height: 20px;
  background: url(../img/ico_down.svg) center center;
  align-self: center;
  transition: transform 0.3s;
}

.content-container .list-faq [open] summary::after {
  transform: rotate(180deg);
}

.content-container .list-faq .answer {
  padding: 8px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px;
}

.content-container .list-faq .answer::before {
  content: "A.";
}

.content-container .list-faq .answer ul {
  margin:.5em 0;
}

.content-container .list-faq .answer ul li {
  list-style-type: disc;
  margin-left:1.5em;
}

.content-container .list-faq .answer ul li + li {
  margin-top:.5em;
}

/* 末尾のリンク */
.content-container .block-other-link {
  margin-block: 48px 32px;
  padding-inline: 16px;
  max-width: 1260px;
  margin-inline: auto;
  text-align: center;
}

.content-container .box-other-link {
  margin-top: 32px;
  text-align: center;
}

.content-container .box-other-link a {
  display: inline-block;
  padding: 8px 24px;
  border: 2px solid var(--color-main);
  font-weight: bold;
  color: var(--color-main);
  font-size: 22px;
  margin-top: 8px;
  transition: background-color 0.3s;
}

.content-container .box-other-link a:hover {
  background: var(--color-main);
  color: #fff;
}


.mic-table {
  width:100%;
  table-layout: fixed;
  border-collapse:initial;
  border-top:1px solid #ccc;
}

.mic-table th,
.mic-table td {
  padding: 4px 3px;
  border: solid #ccc;
  border-width:0 1px 1px 0;
  font-size: 13px;
  line-height:1.4;
  text-align: center;
  vertical-align: middle;
}

.mic-table th {
  background: var(--color-main);
  color: #fff;
  font-weight: bold;
}

.mic-table th:first-child {
  width: 110px;
  position: sticky;
}

.mic-table a:hover {
  text-decoration:underline;
}

.mic-table tr:nth-child(2) td a {
  font-size:17px;
}

.mic-table th:first-child {
  left:0px;
  z-index: 1;
}

.mic-table tr:first-child th {
  top:0;
}

.mic-table tr:first-child th:first-child {
    z-index: 2;
}

.mic-table tr:nth-child(even) {
  background-color: #f5f5f5;
}

.mic-table img {
  max-width:100%;
  height: auto;
  padding:10px;
  box-sizing: border-box;
}

.mic-table .table-comment td {
  text-align:left;
  padding: 10px;
}

@container content-container (max-width: 800px) {
  .content-container > div {
    line-height:1.4;    
  }
  
  .content-container .ttl-sec {
    font-size: 18px;
    word-break: auto-phrase;
    line-height: 1.5;
  }

  .mic-table th:first-child {
    width: 59px;
  }

  .mic-table th, .mic-table td {
    font-size: 10px;
  }

  .mic-table {
    width: 600px;
  }

  .content-container .wrap-tab .tab-content {
    overflow: auto;
  }

  .content-container .ttl-header {
    & p {
      font-size: 17px;
      margin-bottom:.5em;
    }

    & h2 {
      font-size: 44px;
      line-height: 1;
    }
  }
  .content-container .wrap-service {
    flex-direction: column;
  }

  .content-container header {
    height: auto;
    padding: 25px;
    background-position: center right -70px;
  }

  .content-container .box-video {
    width: 160px;
    height: 100%;
    position: relative;
  }

  .content-container .swiper-button-next,
  .content-container .swiper-button-prev {
    top: 45px;
  }

  .content-container .wrap-tab .tabs {
    grid-template-columns: repeat(auto-fit, 130px);
  }

  .mic-table a {
    color: #795284;
    text-decoration: underline;
  }
  .content-container .box-other-link a {
    font-size: 18px;
  }
}
