@charset "utf-8";
/*===============================================
  共通
===============================================*/
section{
  margin-bottom: 30px;
}


/*===============================================
  タイトル
===============================================*/
.pagetitle{
  margin-bottom: 60px;
}

.pagetitle img{
  margin-bottom: 20px;
  width: 100%;
  border-radius: 8px;
}

.pagetitle p{
  font-size: 16px;
  margin: 0;
}

/* 画面の横幅が600px以下
-----------------------------------------------*/
@media screen and (max-width: 600px){
  .pagetitle{
    margin-bottom: 40px;
  }
  .pagetitle img{
    border-radius: 6px;
  }
  .pagetitle p{
    font-size: 15px;
    margin: 0;
    line-height: 1.5;
  }
}

/*===============================================
  ギャラリー
===============================================*/
.gallery{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px 20px;
}

.gallery_prize{
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* 画面の横幅が600px以下
-----------------------------------------------*/
@media screen and (max-width: 600px){
  .gallery{
    grid-template-columns: repeat(2,1fr);
    gap: 40px 20px;
  }
  .gallery_prize{
    grid-template-columns: repeat(2,1fr);
  }
}



/* アイテム */
.gallery_item{
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #333;
}

.gallery_item:hover{
  color: #e64b78;
  text-decoration: none;
}

/* 絵画 */
.picture{
  position: relative;
  width: 100%;
  margin-bottom: 10px;
}

.picture img{
  display: block;
  width: 100%;
  box-shadow: 3px 3px 3px 0 rgba(0,0,0,.2);
}

/* 縦位置サイズ調整 */
.picture.vertical{
  width: 85%;
}

/* テキスト */
.gallery_item h2{
  text-align: center;
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 0.4em;
}

.gallery_item p{
  margin: 0;
  line-height: 1.5;
  font-size: 13px;
}

.gallery_item p.name{
  font-weight: bold;
  margin-bottom: 2px;
}


/* バッヂ
-----------------------------------------------*/
.saiyusyu::after,
.yusyu::after,
.tokubetsu::after,
.kasaku::after,
.nyusen::after{
  width: 55px;
  height: 20px;
  border-radius: 3px;
  position: absolute;
  top: -10px;
  left: -10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  line-height: 1;
  box-shadow: 2px 2px 2px 0 rgba(0,0,0,.2);
  border: 2px solid;
  font-weight: bold;
}

.saiyusyu::after{
  content: "最優秀賞";
  background-color: #cd4084;
  border-color: #eb6aa8;
}

.yusyu::after{
  content: "優秀賞";
  background-color: #bf9d0b;
  border-color: #eecf4a;
}

.tokubetsu::after{
  content: "審査員特別賞";
  background-color: #fff;
  border-color: #eb6aa8;
  color: #cd4084;
  width: 80px;
}


.kasaku::after{
  content: "佳作";
  background-color: #663e2b;
  border-color: #9e7460;
}

.nyusen::after{
  content: "入選";
  background-color: #626262;
  border-color: #a7a7a7;
}

/*===============================================
 審査員講評
===============================================*/
.comment{
  border-top: 1px solid #ddd;
  margin-top: 50px;
  padding-top: 20px;
}

.comment h3{
  font-size: 17px;
  margin-bottom: 10px;
}

.comment p{
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}
