@charset "utf-8";

/* ==========================================================================
   Photo Area
========================================================================== */

/* Photo Contents
-----------------------------------------------------------*/
.photo_contents {
  padding: 30px 0;
  background: #eee;
}
.photo_contents .subTitle {
  padding: 0;
}
.photo_contents .photo_leadText {
  font-size: 16px;
  text-align: center;
}
.photo_contents .notes {
  color: #666;
  font-size: 12px;
  text-align: center;
}

/* Photo List
------------------------------------------------------------*/

/* 応募作品0件 */
.no-photo {
  width: 100%;
  padding: 30px 0;
  text-align: center;
  font-size: 1.4em;
  letter-spacing: 1px;
}


/* Photo List Boxs
-------------------------------------------------------*/
.photo-list {
  display: flex;
  flex-wrap: wrap;
  margin: 30px 0;
}
div.contribute-box {
  margin: 0 2px 3px;
  width: calc(25% - 4px);
  height: auto;
  font-size: 12px;
  line-height: 1.3;
  background-color: #fff;
}
div.contribute-box:nth-child(4n) {
  margin-right: 0;
}

div.contribute-box  div.in-contribute{
  display: table;
  position:relative;
  width:100%;
  height:179px;
  text-align: center;
  background-color:#f8f8f8;
}


/*画像が横長で回転していないとき*/
.photo-inbox {
  display: table-cell;
  margin-bottom: 5px;
  height: 179px;
  text-align: center;
  vertical-align: middle;
}
.photo-inbox  img {
  max-width: 237px;
  max-height: 179px;
}
.photo-inbox a:hover img,
.photo-inbox2 a:hover img,
.photo-inbox3 a:hover img,
.photo-inbox4 a:hover img,
.photo-inbox5 a:hover img {
  opacity: 0.5;
}


/*画像が横長で回転しているとき*/
.photo-inbox2 {
  display:table-cell;
  width:100%;
  height:auto;
  margin:0 auto;
  text-align: center;
  vertical-align:middle;
}
.photo-inbox2 img {
  width:100%;
}


/*画像が縦長で回転していないとき*/
.photo-inbox3 {
  height:179px;
}
.photo-inbox3  img {
  height:100%;
}


/*画像が縦長で回転しているとき*/
.photo-inbox4 {
  height:179px;
}
.photo-inbox4 img {
  height:100%;
}


/* 四角形 */
.photo-inbox5  img{
  width:auto;
  height: 179px;
}



/*投稿者名*/
.contribute-name {
  display: table;
  height: 40px;
  margin: 0 auto;
  line-height: 1;
  text-align: center;
}
label.contribute-name span {
  display: table-cell;
  vertical-align: middle;
}


/* 回転
-------------------------------------------------------*/
.transform90 {
  transform: rotate(90deg);
}

.transform180 {
  transform: rotate(180deg);
}

.transform270 {
  transform: rotate(270deg);
}


/* Pagination
-------------------------------------------------------*/
.page-cnt:first-of-type {
  padding-top: 0;
}

.page-cnt {
  display: block;
  width: 100%;
  padding: 15px 0 10px;
  font-size: 16px;
  text-align: center;
}

.list-under-page-cnt {
  padding-top: 18px;
}

.pagination {
  padding: 0 10px 30px;
  text-align: center;
}

.pagination > div {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}

.pagination span {
  display: inline-block;
  margin-right: 10px;
  border: solid 1px #ddd;
  border-radius: 3px;
  font-size: 16px;
}

.pagination span:last-child {
  margin-right: 0;
}

.pagination span a {
  display: inline-block;
  padding: 10px 15px;
  background-color: #fff;
  border-radius: 3px;
  color: #262626;
  text-decoration: none;
}

.pagination span a:hover {
  color: #fff;
  background-color: #00677f;
}

.pagination span.active {
  background-color: #00677f;
}

.pagination span.active a {
  color: #fff;
  background-color: #00677f;
}




/* ==========================================================================
   Responsive
========================================================================== */
@media screen and (max-width:768px) {

/* Photo Contents
-----------------------------------------------------------*/
  .photo_contents .inner {
    padding: 0;
  }
  .photo_contents .buttonInner {
    padding: 0 15px;
  }


/* Photo List
-----------------------------------------------------------*/
/*  .photo-list {
    margin-left: 5px;
  }*/


/* 応募作品0件 */
  .no-photo {
    padding: 15px 0;
    font-size: 1.2em;
  }



/* Photo List Box
-------------------------------------------------------*/
  div.contribute-box {
    width: calc(33% - 1px);
    height: 133px;
    margin: 0 2px 3px 0;
    box-sizing: border-box;
  }

  div.contribute-box:nth-child(4n) {
    margin-right: 2px;
  }
  div.contribute-box:nth-child(3n) {
    margin-right: 0;
  }

  div.contribute-box  div.in-contribute{
    width: 100%;
    height: 92px;
    margin: 0 auto;
  }


  /*画像が横長で回転していないとき*/
  .photo-inbox {
    width: 100%;
    height: 92px;
  }
  .photo-inbox  img {
    width:auto;
    max-width: 100%;
    height: auto;
    max-height: 92px;
  }

  /*画像が横長で回転しているとき*/
  .photo-inbox2 {
    width:auto;
  }
  .photo-inbox2 img {
    width:auto;
    max-width: 100%;
    max-height: 92px;
  }


  /*画像が縦長で回転していないとき*/
  .photo-inbox3 {
    display: table-cell;
    vertical-align: middle;
    height: 92px;
  }
  .photo-inbox3  img {
    width: auto;
    max-width: 100%;
    max-height: 92px;
    height: auto;
  }


  /*画像が縦長で回転しているとき*/
  .photo-inbox4 img {
    width: auto;
    max-width: 100%;
    max-height: 92px;
    height: auto;
  }


  /* 四角形 */
  .photo-inbox5 {
    display: table-cell;
    vertical-align: middle;
  }
  .photo-inbox5  img {
    width: auto;
    max-width: 100%;
    max-height: 92px;
  }


}

/* ==========================================================================
   Responsive 480
========================================================================== */
@media screen and (max-width:480px) {

  /* Pagination
-------------------------------------------------------*/
.pagination span {
  margin-right: 5px;
  font-size: 14px;
}


}

/* ==========================================================================
   Responsive 320
========================================================================== */
@media screen and (max-width:320px) {

  /* Pagination
-------------------------------------------------------*/
.pagination span {
  margin-right: 3px;
  font-size: 12px;
}

.pagination span a {
  padding: 10px 13px;
}


}