@charset "UTF-8";
/* CSS Document */

#main-content {
  color: #333;
  /* font-family: "Open Sans", "游ゴシック", YuGothic, "Hiragino Kaku Gothic ProN", "Hiragino Kaku Gothic Pro", "メイリオ", "ＭＳ ゴシック", sans-serif; */
  /* font-weight: 500; */
  margin: 0 auto;
  overflow: hidden;
  width: 1000px;
}
#main-content a,
#main-content img {
  transition: 0.3s;
}

/* title */
.title {
  text-align: center;
}
.title h1 {
  font-size: 60px;
  letter-spacing: 0.04em;
  line-height: 1;
}

.title-sub {
  font-size: 15px;
  line-height: 1.4em;
  letter-spacing: 0;
}
/* nav-tab */
.nav-tab {
  margin: 40px 0 0;
}
.nav-tab::after {
  background: #919191;
  content: "";
  display: block;
  height: 1px;
  margin-top: 1px;
  width: 100%;
}
.nav-tab ul {
  text-align: center;
}
.nav-tab ul li {
  display: inline-block;
  font-size: 0;
  margin: 0 5px;
  vertical-align: bottom;
  width: 200px;
}
.nav-tab li a {
  border: 1px solid #ddd;
  border-bottom: none;
  border-radius: 2px 2px 0 0;
  color: #aaa;
  display: block;
  font-size: 13px;
  height: 28px;
  line-height: 30px;
  margin-bottom: 1px;
  overflow: hidden;
  padding: 0 10px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-tab li.active a {
  border: 1px solid #919191;
  border-bottom: 1px solid #fff;
  color: #333;
  height: 30px;
  line-height: 30px;
  margin-bottom: -2px;
  transition: 0.3s;
}

/* section */
#main-content section {
  margin: 40px 0 0;
}
.ranking-list {
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  gap: 30px 14px;
}
.ranking-list li {
  display: flex;
  height: auto;
  width: 188px;
}
.ranking-list li:nth-of-type(-n + 3) {
  height: auto;
  margin-right: 6px;
  width: 318px;
}

.ranking-list li img {
  width: 100%;
  aspect-ratio: 5/6;
}
.ranking-list li span {
  display: block;
  line-height: 1.4;
  overflow: hidden;
  text-align: left;
  /* text-overflow: ellipsis;
  white-space: nowrap; */
}

.ranking-list li span.item-name {
  position: relative;
  max-height: calc(1.4em * 2); /* 行間 x 行数 */
}

.ranking-list li span.item-name::before {
  content: "...";
  position: absolute;
  bottom: 0;
  right: 0;
  background: #fff;
}

.ranking-list li span.item-name::after {
  /* 2行未満の際のマスク用 */
  content: "";
  position: absolute;
  height: 100%;
  width: 100%;
  background: #fff;
}

.ranking-list li a {
  display: block;
  overflow: hidden;
  position: relative;
}

.ranking-list li p {
  display: block;
  text-align: justify;
  padding: 8px 0;
  font-size: 14px;
}

span.ranking-number {
  background: #fff;
  box-sizing: border-box;
  color: #666;
  font-family: "Times", "Times New Roman", serif;
  font-size: 14px;
  font-style: oblique;
  height: 45px;
  background: #deb5a0;
  background: linear-gradient(135deg, #f8f8f8 0%, #f8f8f8 50%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0) 100%);
  padding: 8px 0 0 5px;
  position: absolute;
  text-align: left !important;
  vertical-align: middle;
  width: 45px;

  top: 0;
  left: 0;
}
.ranking-list li:nth-of-type(-n + 9) span.ranking-number {
  padding-left: 9px;
}
.ranking-list li:nth-of-type(-n + 3) span.ranking-number {
  font-size: 24px;
  height: 60px;
  padding-left: 10px;
  width: 60px;
}
.ranking-list li:nth-of-type(1) span.ranking-number {
  background: #e5cfa5;
  background: linear-gradient(135deg, #e5cfa5 0%, #e5cfa5 50%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0) 100%);
}
.ranking-list li:nth-of-type(2) span.ranking-number {
  background: #d5d5d5;
  background: linear-gradient(135deg, #d5d5d5 0%, #d5d5d5 50%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0) 100%);
}
.ranking-list li:nth-of-type(3) span.ranking-number {
  background: #ddb4a0;
  background: linear-gradient(135deg, #ddb4a0 0%, #ddb4a0 50%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0) 100%);
}

span.item-name {
  font-size: 14px;
  margin-top: 5px;
}
span.item-price {
  font-size: 16px;
  margin-top: 8px;
}
.ranking-list li:nth-of-type(-n + 3) span.item-name {
  font-size: 18px;
  margin-top: 5px;
  position: relative;
  max-height: calc(1.4em * 2);
}

.ranking-list li:nth-of-type(-n + 3) span.item-name::before {
  content: "...";
  position: absolute;
  bottom: 0;
  right: 0;
  background: #fff;
}

.ranking-list li:nth-of-type(-n + 3) span.item-name::after {
  content: "";
  position: absolute;
  height: 100%;
  width: 100%;
  background: #fff;
}

.ranking-list li:nth-of-type(-n + 3) span.item-price {
  font-size: 22px;
  margin-top: 10px;
}
/* under link */

.under_link {
  margin: 100px auto 150px;
  text-align: center;
  width: 100%;
}
.under_link li {
  display: inline-block;
  margin: 0 5px;
  text-align: center;
  width: 280px;
}
.under_link li a {
  display: block;
  background-color: #45423f;
  color: #ffffff;
  border-radius: 4px;
  font-weight: 500;
  padding: 14px 0;
  font-size: 14px;
}

/*-------------------------------------------------------------------*/
/*-------------------------------------------------------------------*/
/*-------------------------------------------------------------------*/
/*-------------------------------------------------------------------*/
/*-------------------------------------------------------------------*/
/*-------------------------------------------------------------------*/
@media screen and (max-width: 640px) {
  /* 表示領域��?640px未満の場合に適用するスタイル */

  #main-content {
    width: 100%;
  }

  /* SMP title */
  .title {
    text-align: center;
  }
  
  .title h1 {
    font-size: 14vw;
  }
  .title h1 img {
    width: 100%;
  }
  .title-sub {
    font-size: 4vw;
  }
  /* SMP nav-tab */
  .nav-tab {
    margin: 10vw 0 0;
  }
  .nav-tab ul {
    text-align: center;
  }
  .nav-tab ul li {
    margin: 0 2px;
    vertical-align: bottom;
    width: 30%;
  }
  .nav-tab li a {
    font-size: 4.5vw;
    height: auto;
    line-height: 12vw;
  }
  .nav-tab li.active a {
    height: auto;
    line-height: 12vw;
  }

  /* SMP section */
  #main-content section {
    margin: 10vw 0 0;
  }
  .ranking-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, 45%);
    overflow: hidden;
    column-gap: 4vw;
    row-gap: 6vw;
    justify-content: center;
    margin-bottom: 40px;
  }
  .ranking-list li {
    display: block;
    height: auto;
    text-align: center;
    width: 100%;
  }

  .ranking-list li:nth-of-type(-n + 3) {
    float: none;
    height: auto;
    margin: 0 auto 0;
    width: 94%;
    grid-column: 1/3;
  }
  .ranking-list li:nth-of-type(3) {
    margin-right: auto;
  }

  .ranking-list li img {
    width: 100%;
  }
  .ranking-list li span {
    line-height: 1.2;
  }

  .ranking-list li span.item-name {
    max-height: calc(1.2em * 2);
  }

  span.ranking-number {
    font-size: 5vw;
    height: 13vw;
    padding: 1vw 0 0 1vw;
    text-align: left !important;
    width: 13vw;

    top: 0;
    left: 0;
  }
  .ranking-list li:nth-of-type(-n + 9) span.ranking-number {
    padding-left: 1.5vw;
  }
  .ranking-list li:nth-of-type(-n + 3) span.ranking-number {
    font-size: 10vw;
    height: 20vw;
    padding-left: 2.5vw;
    width: 20vw;
  }

  span.item-name {
    font-size: 3.75vw;
    margin-top: 0;
  }
  span.item-price {
    font-size: 4.5vw;
    margin-top: 2vw;
  }
  .ranking-list li:nth-of-type(-n + 3) span.item-name {
    font-size: 5.5vw;
    margin: 1vw 0 2vw;
    max-height: calc(1.2em * 2); /* 行間 x 行数 */
  }
  .ranking-list li:nth-of-type(-n + 3) span.item-price {
    font-size: 6vw;
    margin-top: 0;
  }
  /* SMP under_link */

  ul.under_link {
    margin: 0 auto 100px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  ul.under_link li {
    width: 90%;
  }

  .pc_visible {
    display: none !important;
  }
  .sp_visible {
    display: block !important;
  }
} /*end media*/

@media screen and (min-width: 641px) {
  .nav-tab li:not(.active) a:hover {
    border: 1px solid #999;
    border-bottom: none;
    color: #777;
  }
  .sp_visible {
    display: none !important;
  }
  .under_link a:hover {
    background-color: #9e9e9e;
  }

  .ranking-list li a:hover {
    opacity: 0.6;
  }
} /*end media*/
