@charset "UTF-8";

/*--------------------
  PC
--------------------*/
html[data-browse-mode="P"] .search-contents h1 {
  margin: 0 0 50px;
  padding: 0 0 10px 0;
  color: #2b1b05;
  font-size: 24px;
  font-weight: normal;
  line-height: 140%;
  position: relative;
  padding-bottom: 0.5em;
  border-bottom: 4px solid #ccc;
}
html[data-browse-mode="P"] .search-contents h1:after,
html[data-browse-mode="P"] .search-contents .mv.mv-b:after {
  position: absolute;
  bottom: -4px;
  left: 0;
  z-index: 2;
  content: '';
  width: 20%;
  height: 4px;
  background-color: #2b1b05;
}
html[data-browse-mode="P"] .search-contents .mv {
  margin: 40px 0 50px 0;
  text-align: center;
}
html[data-browse-mode="P"] .search-contents .mv.mv-b {
  position: relative;
  padding: 0 0 10px 0;
  border-bottom: 4px solid #ccc;
}
html[data-browse-mode="P"] .search-contents-text {
  line-height: 1.6;
  margin: 0 0 30px;
}
html[data-browse-mode="P"] .search-contents-text.truncate p {
  position: relative;
  max-height: 100px;
  overflow: hidden;
  transition: max-height 0.3s;
}
html[data-browse-mode="P"] .search-contents-text.truncate.show p {
  max-height: none;
}
html[data-browse-mode="P"] .search-contents-text.truncate > p:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  transition: 1s;
  background: linear-gradient( to bottom, transparent 0%, transparent 50%, #fff 85%, #fff 100% );
}
html[data-browse-mode="P"] .search-contents-text.truncate.show > p:after {
  display: none;
}
html[data-browse-mode="P"] .search-contents-text--more {
  text-align: right;
}
html[data-browse-mode="P"] .search-contents-text--more p {
  display: inline-block;
  text-decoration: underline;
  cursor: pointer;
}
html[data-browse-mode="P"] .search-contents-text--more p:hover {
  text-decoration: none;
}
html[data-browse-mode="P"] .search-contents-topics {
  border-top: 3px solid #2b1b05;
}
html[data-browse-mode="P"] .search-contents-topics h2 {
  font-size: 24px;
  letter-spacing: 3px;
  text-align: center;
  margin: 30px 0 0;
}
html[data-browse-mode="P"] .search-contents-topics ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 30px auto 0;
  max-width: 1380px;
}
html[data-browse-mode="P"] .search-contents-topics li {
  width: 210px;
  margin: 0 10px 20px;
}
html[data-browse-mode="P"] .search-contents-topics li a {
  display: block;
  height: 100%;
  border: 1px solid #ccc;
}
html[data-browse-mode="P"] .search-contents-topics li p {
  line-height: 1.6;
  padding: 10px 15px 8px;
  border-top: 1px solid #ccc;
}
html[data-browse-mode="P"] .search-contents-banner {
  display: flex;
}
html[data-browse-mode="P"] .search-contents-banner li {
  width: 350px;
  margin: 0 20px 0 0;
}

/*--------------------
  SP
--------------------*/
html[data-browse-mode="S"] .search-contents h1 {
  font-size: 16px;
  font-weight: bold;
  margin: 0 0 20px;
}
html[data-browse-mode="S"] .search-contents .mv {
  margin: 0 0 20px;
}
html[data-browse-mode="S"] .search-contents-topics {
  padding: 15px 0 0;
  margin: 20px 0;
  border-top: 3px solid #000;
}
html[data-browse-mode="S"] .search-contents-topics h2 {
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 2px;
  text-align: center;
  margin: 0 0 15px;
}
html[data-browse-mode="S"] .search-contents-topics ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
html[data-browse-mode="S"] .search-contents-topics li {
  width: calc((100% - 15px) / 2);
  margin: 0 0 15px;
}
html[data-browse-mode="S"] .search-contents-topics li:nth-last-child(-n+2) {
  margin: 0;
}
html[data-browse-mode="S"] .search-contents-topics li a {
  display: block;
  border: 1px solid #ccc;
  height: 100%;
}
html[data-browse-mode="S"] .search-contents-topics li p {
  font-size: 12px;
  padding: 10px 12px 12px;
  border-top: 1px solid #ccc;
}
html[data-browse-mode="S"] .search-contents-banner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 25px 0 0;
}
html[data-browse-mode="S"] .search-contents-banner li {
  width: calc((100% - 15px) / 2);
  margin: 0 0 15px;
}
html[data-browse-mode="S"] .search-contents-banner li:nth-last-child(-n+2) {
  margin: 0;
}
/* ===================================
   topicsカード調整（追記CSS）
   =================================== */

/* 枠をliに移す */
html[data-browse-mode="P"] .search-contents-topics li,
html[data-browse-mode="S"] .search-contents-topics li{
  border:1px solid #ccc;
  background:#fff;
}

/* 既存aの枠を解除 */
html[data-browse-mode="P"] .search-contents-topics li a,
html[data-browse-mode="S"] .search-contents-topics li a{
  border:none;
}

/* flexカード高さを揃える（←追加すると綺麗になるポイント） */
.search-contents-topics ul{
  align-items:stretch;
}

/* 画像レイアウト安定 */
.search-contents-topics li .img_{
  display:block;
  text-align:center;
  aspect-ratio:1 / 1;
  overflow:hidden;
}

.search-contents-topics li .img_ img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}

/* テキスト高さズレ軽減 */
.search-contents-topics li p{
  min-height:140px;
  box-sizing:border-box;
}

/* MENS / WOMENSリンク整形 */
.search-contents-topics li p a{
  display:block;
  margin-top:4px;
  text-align:center;
}