@charset "utf-8";

/* ========================================
  共通スタイル
======================================== */
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html{
  /* overflow-y: scroll; */
  /* font-family: "Noto Sans JP", "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", "Meiryo", Osaka, verdana, "ＭＳ Ｐゴシック", "MS PGothic", Sans-Serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal; */
}
body {
  font-family: "Noto Sans JP", "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", "Meiryo", Osaka, verdana, "ＭＳ Ｐゴシック", "MS PGothic", Sans-Serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  margin: 0;
  overflow: visible;
  /* word-break: auto-phrase; */
  /* background: var(--bg-color); */
}
/* .container{
  max-width: 1480px;
  width: 95%;
  margin-inline: auto;
} */
h1, h2, h3, h4, h5, h6{
  font-weight: 700;
}
main{
  /* position: relative; */
  margin: 0 0 96px;
}
a{
  color: var(--blue);
}
.img{
  /* display: none; */
  max-width: 80px;
  overflow: hidden;
  margin: 0 auto;
}
img{
  object-fit: cover;
  object-position: center center;
  max-width: 100%;
  width: 100%;
  height: 100%;
}
.red{
  color: var(--red);
}


/* ========================================
  製品比較表
======================================== */
.comparison{
  padding: var(--size64) 0 0;
}
.comparison-controls-wrapper{
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
}
.comparison-controls{
  display: grid;
  gap: 0.5em 1em;
  /* grid-template-columns: repeat(3, max-content); */
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.comparison-controls label{
  display: flex;
  column-gap: 0.25em;
  background: #fffaf3;
  padding: 8px 16px;
  margin-right: 0;
  border: solid 1px var(--bd-color);
  border-radius: var(--bd-radius);
}
/* .comparison-controls label + label{
  margin-left: 1em;
} */

.comparison-controls label input[type="checkbox"]{
  flex: 0 0 var(--size16);
}
.comparison-controls label p{
  flex: 1;
  font-size: clamp(12px, calc(14 / 1390 * 100vw), 14px);
}

table{
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}

.table-scroll {
  /* overflow-x: auto; */
}
.comparison-header,
.comparison-body {
  table-layout: fixed;
}

.comparison-header {
  position: sticky;
  /* top: clamp(140px, calc(147 / 1390 * 100vw), 147px); */
  top: clamp(64px, calc(70 / 1390 * 100vw), 70px);
  z-index: 10;
  background: #fff;
  border-bottom: 2px solid #e4e4e4;
}

.comparison colgroup .col{
  width: calc((100% - 15.2%) / 5);
}

.comparison colgroup .col-label{
  width: 15.2%;
}


.comparison-header a,
.comparison-body a{
  color: var(--blue);
  text-decoration: underline;
  display: inline;
}

.comparison-header a:visited,
.comparison-body a:visited{
  color: #65318e;
}

.comparison-header thead th {
  /* position: sticky; */
  /* top: 0; */
  background: #fff;
  /* z-index: 2; */
  border: 1px solid var(--bd-color);
  padding: 8px;
  text-align: center;
  font-weight: 700;
  border-bottom: solid 3px var(--bk);
}
/* .comparison-header thead th:first-of-type{
  background: var(--bg-color);
} */
.comparison-header thead th{
  /* background: #f8fbff; */
  background: var(--bg-color);
}
.comparison-header .product-name{
  margin-top: 0.5em;
  font-size: clamp(12px, calc(14 / 1390 * 100vw), 14px);
  line-height: 1.2;
}

.comparison-title-large{
  color: #fff;
  background: var(--bk);
  padding: 8px 12px;
  text-align: center;
  font-size: clamp(15px, calc(17 / 1390 * 100vw), 17px);
  margin-top: 12px;
}
.comparison-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--size16);
  /* color: var(--blue); */
  background: #ddd;
  padding: 8px 12px;
  cursor: pointer;
  margin: 0;
  /* border: 2px solid var(--blue); */
  user-select: none;
  transition: all .15s ease-in-out;
}

.comparison-title.js-active{
  color: #fff;
  background: var(--dark-gray);
}

@media (hover: hover){
  .comparison-title:hover{
    color: #fff;
    background: var(--dark-gray);
  }
}

@media (hover: none){
  .comparison-title:hover{
    color: #fff;
    background: var(--dark-gray);
  }
}



.comparison-title .icon{
  transition: rotate .15s ease-in-out;
}
.comparison-title .icon.js-open{
  rotate: 180deg;
}
.comparison-body {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}
.comparison-body.hidden-table{
  display: none;
}
/* .comparison-body.js-active th{
  background: #dac5a8;
}
.comparison-body.js-active td{
  background: #fffaf3;
} */

.comparison-body th,
.comparison-body td {
  font-size: clamp(12px, calc(14 / 1390 * 100vw), 14px);
  border: 1px solid #e4e4e4;
  text-align: center;
  box-sizing: border-box;
  padding: clamp(6px, calc(10 / 1390 * 100vw), 10px) clamp(6px, calc(10 / 1390 * 100vw), 10px);
  letter-spacing: 0;
}
.comparison-body th{
  font-weight: 700;
  text-align: left;
  word-break: auto-phrase;
  /* background: #f8fbff; */
  background: var(--bg-color);
}

.comparison-body td{
  vertical-align: middle;
  background: #fff;
}

.comparison-body .mark{
  display: block;
  margin: 4px auto;
  line-height: 1;
  width: clamp(26px, calc(30 / 1390 * 100vw), 30px);
  background-position: center center;
  background-size: contain;
  background-repeat: no-repeat;
}

.comparison-body .mark--hidden{
  display: none;
}

.comparison-body .mark--good{
  width: 22px;
  height: 22px;
  background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjgiIGhlaWdodD0iMjgiIHZpZXdCb3g9IjAgMCAyOCAyOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMTQiIGN5PSIxNCIgcj0iMTIuNSIgc3Ryb2tlPSIjMTU1OEQ2IiBzdHJva2Utd2lkdGg9IjMiLz4KPC9zdmc+Cg==');
}

.comparison-body .mark--none{
  width: 22px;
  height: 2px;
  background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjgiIGhlaWdodD0iMyIgdmlld0JveD0iMCAwIDI4IDMiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxyZWN0IHdpZHRoPSIyOCIgaGVpZ2h0PSIzIiByeD0iMS41IiBmaWxsPSIjODg4ODg4Ii8+Cjwvc3ZnPgo=');
}

/* SPスタイル */
.pc-view { display: block; }
.sp-view { display: none; }

@media (max-width: 1023px) {
  body{
    overflow-x: hidden;
  }
  .pc-view { display: none; }
  .sp-view { display: block; }


}

@media screen and (max-width: 1023px) {
  .comparison .scroll-hint-icon-wrap{
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    pointer-events: none;
    transition: opacity 0.3s;
  }

  .comparison .scroll-hint-icon-wrap.js-hidden{
    opacity: 0;
    pointer-events: none;
  }

  .comparison-cards__wrapper{
    overflow-x: auto; /* スワイプ（スクロール）を有効化 */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    margin-right: calc(clamp(15px, calc(20 / 768 * 100vw), 20px) * -1);
    padding-bottom: 10px;
  }

  .comparison-cards{
    display: flex;
    gap: clamp(12px, calc(20 / 1024 * 100vw), 20px);
  }

  .comparison-card{
    scroll-snap-align: start; /* カードの先頭でスナップ */
    min-width: 280px;
    flex: 0 0 auto;
    border: 1px solid var(--bd-color);
    border-radius: var(--bd-radius);
    padding: 12px;
    width: 300px;
    box-shadow: var(--shadow);
  }

  .comparison-card a{
    display: inline;
  }

  .card-img{
    border-radius: var(--bd-radius);
    overflow: hidden;
    max-width: 120px;
    margin-inline: auto;
  }

  .card-img img {
    width: 100%;
    height: auto;
  }

  .card-products__name{
    font-size: 1.7rem;
    line-height: 1.3;
    text-align: center;
    margin-top: 1rem;
  }

  .card-title{
    font-size: 1.6rem;
    margin-top: 24px;
    padding: 6px 8px;
    color: #fff;
    background: var(--bk);
  }

  .card-subtitle{
    font-size: 1.5rem;
    margin-top: 8px;
    padding: 6px 8px;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: space-between;
    column-gap: 16px;
  }

  .card-subtitle.js-active{
    color: #fff;
    background: var(--dark-gray);
  }

  @media (hover: none){
    .card-subtitle:active{
      color: #fff;
      background: var(--dark-gray);
    }
  }

  .card-subtitle .icon{
    transition: rotate .15s ease-in-out;
  }

  .card-subtitle .icon.js-open{
    rotate: 180deg;
  }

  .card-unit {
    margin-top: 1rem;
  }

  .card-title + .card-unit,
  .card-subtitle + .card-unit{
    margin-top: 0;
  }

  .card-items {
    list-style: none;
    padding: 0;
  }

  .card-item .item-name,
  .card-item .item-value{
    border: solid 1px var(--bd-color);
    text-align: center;
  }

  .card-item .item-name{
    padding: 4px 8px;
    font-weight: 700;
    background: var(--bg-color);
    word-break: auto-phrase;
  }

  .card-item a{
    color: var(--blue);
    text-decoration: underline;
  }

  .card-item .item-value{
    padding: 6px 8px;
    border-top: none;
    border-bottom: none;
  }

  .card-item:last-of-type .item-value{
    border-bottom: solid 1px var(--bd-color);
  }
}

@media screen and (max-width: 374px){
  .comparison-card {
    min-width: 230px;
  }
}