/* ランキング一覧表のCSS */

.top_ranking h2{
	display:flex;
	justify-content:center;
	align-items:center;
	gap:16px;
	font-size:clamp(1.375rem, 1.073rem + 1.29vw, 1.75rem);
	/* 	max-w840px min-w375px 28px-22px*/
	text-align:center;
	font-weight:bold;
	color:#fff;
	background-image:url(../images/ranking_title.webp);
	background-repeat:no-repeat;
	background-size:cover;
	background-position:center;
	padding: 10px 0;
	margin-bottom:40px;
}

.top_ranking {
  margin-bottom: 3rem;
}

.top_ranking[data-target=page2] .page2 {
  display: block;
}

.top_ranking[data-target=page2] .page1 .c_btn {
  display: none;
}

.top_ranking[data-target=page3] .page2, .top_ranking[data-target=page3] .page3 {
  display: block;
}

.top_ranking[data-target=page3] .page2 .c_btn {
  display: none;
}

.top_ranking[data-target=page3] .page1 .c_btn {
  display: none;
}

.top_ranking .rank {
  margin-bottom: 8rem;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 0 1rem rgba(18, 25, 103, 0.15);
  overflow: hidden;
}

@media screen and (max-width: 767px) {
  .top_ranking .rank {
    display: flex;
    overflow-x: auto;
    margin-right: 0;
	border-radius: 0;
  }
  .top_ranking .rank li {
    min-width: 12rem;
  }
}

@media screen and (min-width: 768px) {
  .top_ranking .rank li {
    display: flex;
  }
  .top_ranking .rank li:nth-child(n + 3) {
    border-top: solid 2px #F8F6EF;
  }
	.top_ranking .rank li:nth-child(2){
		background-color:#FFFBE9;
		border:4px solid #FF3B3F;
	}
}

@media screen and (max-width: 767px) {
  .top_ranking .rank li:nth-child(n + 3) {
    border-left: solid 2px #F8F6EF;
  }
  .top_ranking .rank li:nth-child(n + 3) dt {
    visibility: hidden;
  }
	.top_ranking .rank li:nth-child(2){
	background-color:#FFFBE9;
	border:4px solid #FF3B3F;
}
}

@media screen and (min-width: 768px) {
  .top_ranking .rank dl {
    border-left: solid 2px #F8F6EF;
    width: 18.18%;
    display: flex;
    align-items: start;
    justify-content: center;
  }
}

.top_ranking .rank dt {
  height: 2rem;
  overflow: hidden;
}

.top_ranking .rank dt span.hyo_title {
  display: block;
  text-align: center;
  background: #D4D6E3;
  font-weight: bold;
  font-size: 1.25rem;
  line-height: 3.2rem;
  position: absolute;
  width: calc(100vw - 2rem);
	left:1rem;
}

@media screen and (min-width: 768px) {
  .top_ranking .rank dt {
    display: none;
  }
}

.top_ranking .rank dd {
  line-height: 1.25;
  text-align: center;
	margin-top:3rem;
}

.top_ranking .rank dd img {
  display: block;
  margin: 0 auto 1rem;
  height: auto;
	max-height:41px;
}

.top_ranking .rank dd img.b {
  width: 4.7rem;
  object-fit: contain;
}

.top_ranking .rank dd p {
  font-size:1rem;
	font-weight:600;
}

@media screen and (max-width: 767px) {
  .top_ranking .rank dd {
    height: 12rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-size: 2.2rem;
	  margin-top:0;
  }
}

.top_ranking .rank .name {
  flex: 1;
}

.top_ranking .first {
  display: flex;
  background: #D4D6E3;
  font-weight: bold;
  font-size: 1.125rem;
  line-height: 1.22;
  justify-content: flex-end;
  text-align: center;
  height: 4.125rem;
}

.top_ranking .first p {
  width: 18.18%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: solid 2px #fff;
}

@media screen and (max-width: 767px) {
  .top_ranking .first {
    display: none;
  }
}

.top_ranking .name {
  padding: 1.8rem 1rem 1.8rem;
}

@media screen and (max-width: 767px) {
  .top_ranking .name {
    padding: 1rem;
    height: 22rem;
    display: flex;
    justify-content: center;
    flex-direction: column;
	gap: 1rem;
  }
	.top_ranking li:not(:nth-child(2)) .name {
		padding:1.25rem 1rem 0.8rem;
	}
	
	.top_ranking li:nth-child(2) .name{
		padding:1rem;
		height:22rem;
	}
	
	.top_ranking li:nth-child(7) .name .head p{
		font-size: 0.875em;
	}
}

.top_ranking .name .head {
    font-size: 1.25rem;
}

@media screen and (max-width: 767px) {
  .top_ranking .name .head {
    flex-direction: column;
    text-align: center;
    font-size: 2.8rem;
    line-height: 1.1;
	font-size: 1.5rem;
  }
}

.top_ranking .name .head small {
  font-size: 1.6rem;
}

@media screen and (max-width: 767px) {
  .top_ranking .name .head small {
    font-size: 1.8rem;
    margin-bottom: .3em;
  }
}

.top_ranking .name .head img {
  width: 3.125rem;
  height: auto;
}

/* 4位と5位のアイコン調整 */
.top_ranking li:nth-child(5) .name .head,
.top_ranking li:nth-child(6) .name .head{
	padding-left:5%;
	gap: 14px;
}

.top_ranking li:nth-child(6) .name .head img,
.top_ranking li:nth-child(5) .name .head img{
	width:2rem;
}

@media screen and (max-width: 767px) {
  .top_ranking .name .head img {
	  width: 3.5rem;
	  height: 3.5rem;
  }
	.top_ranking li:nth-child(6) .name .head img,
	.top_ranking li:nth-child(5) .name .head img {
    width: 2rem;
    height: 3.1rem;
}
}

:where(.top_ranking, .shop_info) .btn {
    display: flex;
    gap: 1rem;
}

.top_ranking .name .btn {
  flex-direction: column;
  gap: .7rem;
  margin-top: 0.75rem;
	background:none;
	border:none;
	padding:0;
}

@media screen and (max-width: 767px) {
  .top_ranking .name .btn {
    gap: .8rem;
  }
}

:where(.top_ranking, .shop_info) .btn a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: solid 2px #929292;
    border-radius: 8px;
    font-weight: bold;
    line-height: 5.4rem;
    color: #929292;
    gap: .5em;
	text-decoration:none;
}

:where(.top_ranking, .shop_info) .btn .site {
    background: #000;
    border-color: #000;
    color: #fff;
}

:where(.top_ranking, .shop_info) .btn .site, .is-rank1 .site {
    position: relative;
    background: #FF8A34;
    border-color: #FF8A34;
    color: #fff;
    overflow: visible;
}

.top_ranking .name .btn a {
    font-size: 0.875rem;
    line-height: 1.125rem;
	padding: 8px 0;
}

@media screen and (max-width: 767px) {
  .top_ranking .name .btn a {
    font-size: 1rem;
    line-height: 2rem;
  }
}

:where(.top_ranking, .shop_info) .btn a:after {
    content: '';
    background: url(../images/arrow-right.svg) no-repeat 50% / contain;
    width: 1.6rem;
    height: 1rem;
}

.top_ranking .name .btn a:after {
  background: url(../images/arrow-right.svg) no-repeat 50% / contain;
  width: .9rem;
  height: 1rem;
}

@media screen and (max-width: 767px) {
  .top_ranking .name .btn a:after {
    width: 1.8rem;
    height: .75rem;
  }
}

#rank1 + .shop_info .btn .site .shine, .is-rank1 .site .shine, .top_ranking .rank li:nth-child(2) .name .btn .site .shine-wrap .shine {
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    transform: skewX(25deg);
    background: linear-gradient(80deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0) 100%);
    animation: shineLoop 2.5s linear infinite;
}

@keyframes shineLoop {
  0% {
    left: -75%;
  }
  100% {
    left: 100%;
  }
}

#rank1 + .shop_info .btn .site .shine-wrap, .is-rank1 .site .shine-wrap, .top_ranking .rank li:nth-child(2) .name .btn .site .shine-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: inherit;
    z-index: 1;
    pointer-events: none;
}

.top_ranking .name .btn .site:after {
  background-image: url(../images/ico-link.svg);
  height: .9rem;
}

@media screen and (max-width: 767px) {
  .top_ranking .name .btn .site:after {
    height: 1rem;
  }
}

.top_ranking section {
  margin-bottom: 7rem;
}

@media screen and (max-width: 767px) {
  .top_ranking section {
    margin-bottom: 8rem;
  }
}

.top_ranking .c_btn {
  margin-top: -1rem;
}

@media screen and (max-width: 767px) {
  .top_ranking .c_btn {
    margin-top: -3rem;
  }
}

.top_ranking .page2, .top_ranking .page3 {
  display: none;
}

:where(.top_ranking, .shop_info) .head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    font-size: 3rem;
    text-align: left;
    line-height: 1.27;
}

.ranking_wrap table th{
	width:20%;
}

@media screen and (max-width: 767px) {
.ranking_wrap table th{
	width:30%;
}
}

/* 追加サブタイトル */
.shosai_subtitle .sub_shosai_subtitle{
	position:relative;
	text-align:center;
	color:#1C3977;
	padding-bottom:2.75rem;
	font-weight:bold;
	font-size:clamp(1.25rem, 1.044rem + 0.88vw, 1.5rem);
	/* 	max-w830px min-w375px 24px-20px */
}

.shosai_subtitle .sub_shosai_subtitle::after{
	position:absolute;
	content:"";
	background-image:url(../images/shosai_hukidashi.svg);
	background-repeat:no-repeat;
	background-size:contain;
	bottom:16px;
	left:0;
	right:0;
	margin:0 auto;
	width:158px;
	height:24px;
}

.shosai_subtitle h3{
	display:flex;
	justify-content:center;
	gap:24px;
	font-size:clamp(1.375rem, 0.794rem + 2.33vw, 2rem);
	/* 	max-w830px min-w400px 32px-22px */
	align-items:center;
	color:#1C3977;
	text-align:center;
}

.shosai_subtitle h3 span:nth-of-type(2) img {
    transform: scaleX(-1);
}

@media screen and (max-width:768px){
	.shosai_subtitle h3{
		gap:1px;
	}
	.shosai_subtitle h3 span{
		width: 50px;
        height: 26px;
	}
	
	.shosai_subtitle .sub_shosai_subtitle::after {
		bottom:10px;
	}
}

@media screen and (max-width:400px){
	.shosai_subtitle h3{
		font-size:1.3rem;
		gap:1px;
	}
}