@charset "utf-8";
/* CSS Document */

img {width: 100%;}




h1 {
    font-size: 2rem;
}

h2 {
    text-align: center;
    font-size: 2.4rem;
    margin-bottom: 2rem;
	line-height: 1;
}


h5 {
    margin-bottom: 0.5em;
    line-height: 1.6;
}

section {
    margin-bottom: 250px;
}


#title{
	width:100%;
	height: 100vh;
	position: relative;
} 

#title:before{
	/*titleの疑似要素に背景画像を指定*/
	content:"";
	position:fixed;
	top:0;
	left:0;
	z-index:-1;
	width:100%;
	height: 100vh;
	background:url("img/230522_ranking_top.jpg") no-repeat center;/*背景画像設定*/
	background-size:cover;
}

.title_wrap {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateY(-50%) translateX(-50%);
    -webkit- transform: translateY(-50%) translateX(-50%);
    width: 80%;
    background-color: #FFF;
    padding: 50px;
    max-width: 800px;
    border: solid 10px orange;
}



p.intro {
    font-size: 1rem;
    line-height: 1.85;
margin : 5px 0 ;
}


#wrapper{
	/*エリアの指定*/
	position: relative;
	z-index:1;
	background:#fff;
	padding:300px 0 150px;
}






#wrapper{
    margin: auto;
}



.ranking_wrap {
    max-width: 1000px;
    margin: auto;
}










.ranking_winner {
    position: relative;
}

.ranking_winner_rank.box {
    width: 180px;
}


.ranking_winner_rank {
    width: 25%;
    position: absolute;
    top: 0;
    left: -40px;
    z-index: 999;
}



.ranking_winner_text {
    display: flex;
}


p.ranking_category {
    text-align: center;
    margin: 0.5rem;
    font-size: 1rem;
}

img.ranking_winner_item {
    display: flex;
    align-items: center;
    width: 160px;
}




.ranking_winner_text h3 {
    display: flex;
    align-items: center;
    padding: 20px;
	
}

p.comment_winner {
    display: flex;
    align-items: center;
	font-size: 1rem;
}


.ranking_sub {
background-color: #efeee6;
margin: 120px 0 0 0 ;
padding: 90px 0 45px 0;
}



.ranking_sub_unit {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-template-rows: repeat(2, 1fr);
grid-column-gap: 20px;
grid-row-gap: 20px;
    margin: 0 60px 45px;
}

.div1 { grid-area: 1 / 1 / 2 / 2; }
.div2 { grid-area: 1 / 2 / 2 / 3; }
.div3 { grid-area: 1 / 3 / 2 / 4; }
.div4 { grid-area: 2 / 1 / 3 / 2; }
.div5 { grid-area: 2 / 2 / 3 / 3; }
.div6 { grid-area: 2 / 3 / 3 / 4; }





.ranking_sub_col {
    position: relative;
}


.ranking_sub_rank {
        font-family: 'Rubik Mono One', sans-serif;
    position: absolute;
    font-size: 6em;
    top: 0;
    left: -10px;
    line-height: 0;
    color: #95787d;
	z-index: 999;
}

.ranking_sub_text {
    background-color: #FFF;
    padding: 20px;
}




    @media (max-width:1023px) {
	
#wrapper {
    padding: 200px 0 0;
}
        section {
    margin-bottom: 150px;
}
    
#bag {
    margin-bottom: 0;
}  
        
h2 {
    text-align: center;
    font-size: 1.7rem;
    margin-bottom: 2rem;
    line-height: 1.4;
    width: 90%;
    margin: 0 auto 1rem;
}


        


#title {
    width: 100%;
    height: 100vh;
    /* padding: 50px; */
    position: relative;
    margin: 100px 0;
}

.title_wrap {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 94%;
    background-color: #FFF;
    padding: 5%;
    margin: auto;
    max-width: 800px;
     border: none; 
    /* font-size: 0.85rem; */
}


p.intro {
    font-size: 0.85rem;
    line-height: 1.85;
    margin: 5px 0;
}        
        
        

.ranking_winner_text {
    display: flex;
    flex-wrap: wrap;
}

.ranking_winner_rank {
    width: 25%;
    margin: auto;
    position: relative;
    top: auto;
    left: auto;
    z-index: 999;
}

img.ranking_winner_item {
    display: inline-block;
    width: 40%;
    margin: 5%;
}

.ranking_winner_text h3 {
    display: inline-block;
    float: left;
}


p.comment_winner {
    display: flex;
    align-items: center;
    font-size: 14px;
    width: 90%;
    margin: auto;
    text-align: justify;
}


.ranking_sub {
    margin: 120px 0 0 0;
    padding: 90px 5% 45px 5%;
}


.ranking_sub_unit {
grid-template-columns: 1fr;
grid-template-rows: repeat(6, 1fr);
grid-column-gap: 10px;
grid-row-gap: 40px;
margin: 0 10px 45px;
}

.div1 { grid-area: 1 / 1 / 2 / 2; }
.div2 { grid-area: 2 / 1 / 3 / 2; }
.div3 { grid-area: 3 / 1 / 4 / 2; }
.div4 { grid-area: 4 / 1 / 5 / 2; }
.div5 { grid-area: 5 / 1 / 6 / 2; }
.div6 { grid-area: 6 / 1 / 7 / 2; }


.ranking_sub_rank {
    font-size: 4em;
    top: 0;
    left: 0;

}


p.comment_sub {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.7;
}


	
	
	
	}







/*==================================================
ふわっ
===================================*/

/* その場で */
.fadeIn{
animation-name:fadeInAnime;
animation-duration:1s;
animation-fill-mode:forwards;
opacity:0;
}

@keyframes fadeInAnime{
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* 下から */

.fadeUp{
animation-name:fadeUpAnime;
animation-duration:0.5s;
animation-fill-mode:forwards;
opacity:0;
}

@keyframes fadeUpAnime{
  from {
    opacity: 0;
  transform: translateY(100px);
  }

  to {
    opacity: 1;
  transform: translateY(0);
  }
}

/* 上から */

.fadeDown{
animation-name:fadeDownAnime;
animation-duration:0.5s;
animation-fill-mode:forwards;
opacity:0;
}

@keyframes fadeDownAnime{
  from {
    opacity: 0;
  transform: translateY(-100px);
  }

  to {
    opacity: 1;
  transform: translateY(0);
  }
}

/* 左から */

.fadeLeft{
animation-name:fadeLeftAnime;
animation-duration:0.5s;
animation-fill-mode:forwards;
opacity:0;
}

@keyframes fadeLeftAnime{
  from {
    opacity: 0;
  transform: translateX(-100px);
  }

  to {
    opacity: 1;
  transform: translateX(0);
  }
}

/* 右から */

.fadeRight{
animation-name:fadeRightAnime;
animation-duration:0.5s;
animation-fill-mode:forwards;
opacity:0;
}

@keyframes fadeRightAnime{
  from {
    opacity: 0;
  transform: translateX(100px);
  }

  to {
    opacity: 1;
  transform: translateX(0);
  }
}

/* スクロールをしたら出現する要素にはじめに透過0を指定　*/
 
.fadeInTrigger,
.fadeUpTrigger,
.fadeDownTrigger,
.fadeLeftTrigger,
.fadeRightTrigger{
    opacity: 0;
}



/*==================================================
アニメーション設定
===================================*/

/* アニメーションの回数を決めるCSS*/

.count2{  
  animation-iteration-count: 2;/*この数字を必要回数分に変更*/
}

.countinfinite{  
  animation-iteration-count: infinite;/*無限ループ*/
}

/* アニメーションスタートの遅延時間を決めるCSS*/

.delay-time05{  
  animation-delay: 0.5s;
}

.delay-time1{  
  animation-delay: 1s;
}

.delay-time15{  
  animation-delay: 1.5s;
}

.delay-time2{  
  animation-delay: 2s;
}

.delay-time25{  
  animation-delay: 2.5s;
}

/* アニメーション自体が変化する時間を決めるCSS*/

.change-time05{  
  animation-duration: 0.5s;
}

.change-time1{  
  animation-duration: 1s;
}

.change-time15{  
  animation-duration: 1.5s;
}

.change-time2{  
  animation-duration: 2s;
}

.change-time25{  
  animation-duration: 2.5s;
}



/*==================================================
もっと見る
===================================*/


    .cg_link {
    margin: 0 60px;
}


/*== ボタン共通設定 */
.btn{
width: 100%;
    /*アニメーションの起点とするためrelativeを指定*/
    position: relative;
  overflow: hidden;
    /*ボタンの形状*/
  text-decoration: none;
  display: inline-block;
    border: 1px solid #555;/* ボーダーの色と太さ */
    padding: 10px 30px;
    text-align: center;
    outline: none;
    /*アニメーションの指定*/   
    transition: ease .2s;
}

/*ボタン内spanの形状*/
.btn span {
  position: relative;
  z-index: 3;/*z-indexの数値をあげて文字を背景よりも手前に表示*/
  color:#333;
}

.btn:hover span{
  color:#fff;
}

/*== 背景が流れる（上から下） */
.bgtop:before {
  content: '';
    /*絶対配置で位置を指定*/
  position: absolute;
  top:0;
  left: 0;
  z-index: 2;
    /*色や形状*/
  background:  #333;/*背景色*/
  width: 100%;
  height: 0;
    /*アニメーション*/
  transition:.3s cubic-bezier(0.8, 0, 0.2, 1) 0s;
}

/*hoverした際の形状*/
.bgtop:hover:before{

   height: 100%;  
   background-color: #333;
}

    
    