@charset "utf-8";
/* CSS Document */
/*ルールページ固有*/

.pages_title img{
    width: 35%;
}
.page_header_sp_pnly{
    display:none;
}
.page_header_pc_only{
    display:block;
}

 .grandprix_logo{
	width: 45%;
	position: absolute;
	top: 10px;
	left: calc(50% - 300px);
}




#contents .page_title{
    position: relative;
    width: 100%;
    display: flex;
    /*padding: 30px 0;*/
    margin: 80px 0 0;
}
#contents .page_title img{
    display: block;
    width: 100%;
    max-width: 313px;
    margin: 0 auto;
}
@media screen and (max-width: 767px){
#contents .page_title img {
    display: block;
    width: 90%;
    max-width: 413px;
    margin: 0 auto;
}
}
#contents .sections {
    width: 100%;
    margin: 0 auto;
    height: auto;
    background-color: transparent;
}


#section1 ul{
	list-style: none;
}
#section1 li{
	font-size: 22px;
	line-height: 1.2em;
}


.prize_ranking {
  position: relative;
  /*width: fit-content;*/ /* 画像の横幅に合わせる */
}

.ranking_waku {
  /*display: block;
  width: 100%;
  height: auto; */
  display: none;
}

/* タイトルは通常フローで中央寄せ */
.prize_ranking .ranking_title {
  /*position: absolute;
  top: 1%;
  left: 0;*/
  width: 100%;
  text-align: center;
  z-index: 3;  
}
.prize_ranking .ranking_title img {
  width: 17%;
  height: auto;
  padding-top: 10px;
}
/* 新デザインでは表示しない */
.prize_ranking .ranking_title {
	display: none;
}

.ranking_inner {
  /*position: absolute;*/
  top: 12px;     /* 枠画像の内側に合わせて調整 */
  left: 20px;
  right: 20px;
  bottom: 20px;
  /*overflow-y: auto;*/ /* ← 中身だけスクロール */
  padding-right: 10px; /* スクロールバーと文字の重なり防止 */
  z-index: 1;
}

/* ランキング部分 切り替え */
.ranking_pc{
	display:block;
}
.ranking_sp{
	display:none;
}



@media (min-width: 1600px) {
  .visual_area05 .areabox_right .ranking_title {
    top: 1%; 
  }
  .ranking_title img {
    width: 40%;
  }
  .ranking_inner {
    /*position: absolute;*/
    top: 17%; 
    left: 3%;
    right: 3%;
    bottom: 4%;
  }

}

.ranking_pc div.tarm{
  width:100%;
  color:white;
  font-size:0.9rem;
  font-weight:600;
  text-align: right;
}


/*
.prize_ranking_box{
	position: relative;
	margin:0 auto;
	padding: 0;
	width:80%;
	display:flex;
	background-color: #d7c561;
	margin-top: 0rem;
	border: 1px solid #d7c561;
}

.prize_ranking_box .item_info{
	position: relative;
	width:48%;
}
.prize_ranking_box .item_photo{
	position: relative;
	width:52%;
}
.prize_ranking_box .item_info img{
	position: relative;
	width:100%;
}
.prize_ranking_box .item_info div.racer_info{
	position: absolute;
	padding: 8px 8px;
	bottom: 1px;
	width:100%;
	text-align: center;
    font-size: 1rem;
    color: black;
    font-weight: 600;
}
.prize_ranking_box .item_info div.racer_info span{
    color: black;
    font-weight: bold;
    font-size: 1.5rem;
    text-align: center;
}


.prize_ranking_box .item_photo img{
	position: relative;
	width:100%;
}
.prize_ranking_box .item_photo div.prizemoney{
	position: absolute;
	bottom:6px;
	right:0px;
	width:100%;
	background-color:#000;
	color:yellow;
	font-size:1.2rem;
	padding: 2px 0;
    font-family: 'Noto Sans JP', sans-serif!important;
    font-weight: 700;
    font-stretch: condensed;
    transform: scaleY(1.2);
    text-align: center;
}
*/

.ranking_link {
  text-decoration: none;
  color: inherit;
  display: block; 
}

.prize_ranking_box {
  display: flex;
  align-items: flex-start; /* ← stretch ではなく center に変更 →flex-startに変更 */
  justify-content: center;
  width: 80%;
  margin: 0 auto 4px auto;
  background-color: #d7c561;
  border: 1px solid #d7c561;
  transition: transform 0.3s ease;
}

/* 左右の比率を少し調整 */
.prize_ranking_box .item_info {
  width: 45%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.prize_ranking_box .item_photo {
  width: 55%;
}

/* 画像の縦横比を自然に保つ */
.prize_ranking_box .item_info img,
.prize_ranking_box .item_photo img {
  width: 100%;
  height: auto; /* ← ここを auto に戻す */
  object-fit: cover;
}

.item_info {
  display: flex;
  flex-direction: column; /* ← 縦並びにする */
  justify-content: center; /* ← 上下中央寄せ */
  align-items: center;     /* ← 左右中央寄せ */
  text-align: center;
  width: 45%;
}

/* 順位画像を上に配置 */
.item_info img {
  width: 60%; /* ← 適度なサイズに調整 */
  height: auto;
  margin-bottom: 10px; /* ← 下に少し余白 */
}

.rank_icon{
    position: relative;
    width: 60%;
    aspect-ratio: 100 / 120; /* rank_bak.png の比率に合わせる */
    
    background: url('../images/rank_bak.png') no-repeat center;
    background-size: 100% auto;
}

.rank_icon::after{
    content: attr(data-rank);

    position: absolute;
    left: 50%;
    top: 62%;

    transform: translate(-50%, -50%);

    font-size: clamp(20px, 2.5vw, 36px);
    font-weight: 900;
    color: #7a4a1b;
    line-height: 1;
}


/* 選手情報を画像の下に配置＆中央寄せ */
.item_info .racer_info {
  font-size: 1.4rem; /* ← フォントを大きく */
  font-weight: 600;
  line-height: 1.6;
  color: black;
  display: flex;
  flex-direction: column;
  justify-content: center; /* ← 上下中央寄せ */
  align-items: center;     /* ← 左右中央寄せ */
  width: 100%;
  padding-top: 1rem;
  padding-bottom: 0; /* ← 下の余白をなくす */
}
.item_info .racer_info_pc{
  font-size: 0.9rem; 
  line-height: 1.6;
}

.item_info .racer_info span {
  font-size: 1.8rem; /* ← 名前をさらに強調 */
  font-weight: bold;
}
.item_info .racer_info_pc span {
    font-size: 1.1rem;
    font-weight: bold;
}
.item_photo {
  position: relative; /* ← 重ねるために必須 */
  width: 55%;
}

.item_photo img {
  display: block; /* ← これで画像下の余白が消える */
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* 写真の下に賞金を重ねる（顔の下に来る） */
.item_photo .prizemoney {
  position: absolute;
  bottom: 0;          /* ← 下にぴったり固定 */
  left: 0;
  width: 100%;
  background-color: rgba(0,0,0,0.75); /* ← 黒帯で目立たせる */
  color: yellow;
  font-weight: 700;
  text-align: center;
  padding: 2px 0;
  transform: scaleY(1.2); /* ← 縦に少し強調 */
}
.item_photo_pc .prizemoney {
  font-size: 0.9rem; 
}

@media (min-width: 1600px) {

  .item_info .racer_info {
    font-size: 1.2rem;     /* ← 左側の文字を大きく */
    line-height: 1.6;      /* ← 行間を詰めて下の余白を減らす */
    padding-top: 1rem;     /* ← 上の余白は少し残す */
  }

  .item_info .racer_info span {
    font-size: 1.6rem;     /* ← 名前をさらに強調 */
    font-weight: 800;
  }

  .item_photo .prizemoney {
    font-size: 1.5rem;       /* ← 右側の賞金も大画面用に強調 */
    padding: 8px 0;
  }
}



@media (max-width: 1100px) and (min-width: 768px) {

  .prize_ranking_box {
    width: 85%;        /* ← 80%より少し広めにして余白を確保 */
    margin: 0 auto;
  }

  .ranking_inner {
    display: flex;
    flex-direction: column; /* ← 横並びをやめて縦並びにする */
    align-items: center;
    padding: 10px 0;
    gap: 8px;
  }

  .rank_item {
    width: 100%;
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    gap: 6px;
  }

  .rank_name {
    max-width: 70%;        /* ← 長い名前でも折り返し防止 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .rank_score {
    font-size: 0.9rem;
  }


}

div.prize_ranking_box_mini{
	width:100%;
	padding:1rem;
}

div.prize_ranking_box_mini table{
	width:96%;
	margin:0 auto;
	border-spacing: 0px;
}
div.prize_ranking_box_mini table tr{
	background-color: #d7c561;
	height:auto;
}
div.prize_ranking_box_mini table td.tbl_rank{
	position: relative;
	width:10%;
	border-bottom: 2px solid black;
}
div.prize_ranking_box_mini table td.tbl_rank img{
    width: 100%;
    height: fit-content;
    display: block;
	position: relative;
}
div.prize_ranking_box_mini table td.tbl_rank div.rank{
    width: 100%;
    display: flex;
    justify-content:center;
    align-items: center;
    position: absolute;
	font-size:1.5rem;
	font-weight:bold;
    top: 30%;	
}
div.prize_ranking_box_mini table td.tbl_racer_img{
	width:12%;
}
div.prize_ranking_box_mini table td.tbl_racer_img img{
    width: 100%;
    height: fit-content;
    display: block;
}
div.prize_ranking_box_mini table td.tbl_racer_info{
	width:28%;
	color: black;
	font-weight: bold;
	font-size: 1rem;
	text-align: center;
	border-bottom: 2px solid black;
}
div.prize_ranking_box_mini table td.tbl_prizemoney{
	width:30%;
	background-color:#000;
	border: 2px solid rgb(215 197 97);
}
div.prize_ranking_box_mini table td.tbl_prizemoney div{
	background-color:#000;
	color:yellow;
	font-size:1.3rem;
	padding:0rem 0;
	font-family: 'Noto Sans JP', sans-serif!important;
	font-weight: 700;
	font-stretch: condensed;
	transform: scaleY(1.2);
	text-align: center;
}

.prize_ranking_box_mini_fl{
	margin:0 auto;
	width:80%;
	background-color: #d7c561;
	display: flex;
	justify-content:center;
	align-items: center;
}
.prize_ranking_box_mini_fl .item_rank{
	width:12%;
	display:flex;
	justify-content:center;
	align-items: center;
	background: url(../images/rank_bak.png) no-repeat 0 0 / cover
}
.prize_ranking_box_mini_fl .item_rank div.rank{
	width:100%;
	font-size:2rem;
	font-weight:bold;
}

.prize_ranking_box_mini_fl .item_racer_img{
	width:18%;
}
.prize_ranking_box_mini_fl .item_racer_info{
	width:35%;
}
.prize_ranking_box_mini_fl .item_prizemoney{
	width:35%;
}

.prize_ranking_box_mini table td a {
  display: block;        /* ← セル全体をクリック領域にする */
  width: 100%;
  height: 100%;
  text-decoration: none; /* ← 下線を消す */
  color: inherit;        /* ← 文字色をセルの色に合わせる */
}

.prize_ranking_box {
  transition: transform 0.3s ease;
}

.prize_ranking_box:hover {
  transform: scale(1.04);
}

.prize_ranking_box_mini table tr {
  display: block;                /* ← transform を効かせるために必須 */
  transition: transform 0.25s ease;
}

.prize_ranking_box_mini table tr:hover {
  transform: scale(1.03);        /* ← 3% 拡大（自然で上品） */
}

.prize_ranking_title{
    background-color: black;
    padding: 16px 8px;
}
@media (max-width: 768px) {

  /* ランキング部分 切り替え */
  .ranking_pc{
	display:none;
  }
  .ranking_sp{
	display:block;
  }

  .tarm{
	text-align:center;
  }
  .item_info .racer_info {
    font-size: 1.1rem;
  }
  .item_info .racer_info span {
    font-size: 1.4rem;
  }
  div.prize_ranking_box_mini table td.tbl_racer_info {
    width: 28%;
    color: black;
    font-weight
    font-size: 0.8rem;
    text-align: center;
    border-bottom: 2px solid black;
  }
  div.prize_ranking_box_mini table td.tbl_prizemoney div {
    font-size: 1.2rem;
  }
}

@media only screen and (max-device-width: 480px){

}