

/* news */
section#news {
  max-width: 1080px;
  margin: auto;
}

.container {
}

.image_content 
{
  width: 100%;
  max-width: 800px;
  margin: auto;
}

section#news p.headline {
  display: flex;
  
  align-items: center;  
  height:24px;
  line-height: 2;
  justify-content: space-between;

  .date {
    justify-content: flex-start;
  }
  
  .to-facebook {
    justify-content: flex-end;
  }
  
  
}



/*--------------------------------------
  カード型
--------------------------------------*/
.l-wrapper {
  margin: 0rem auto 4rem;

}

.l-wrapper:hover {
  box-shadow: 0 7px 14px rgba(50,50,93,.1), 0 3px 6px rgba(0,0,0,.08);
}

.card {
  background-color: #fff;
  box-shadow: 0 0 8px rgba(0, 0, 0, .16);
  color: #212121;
  text-decoration: none;
}

.card_header {
  /* display: flex; */
  flex-wrap: wrap;
}

.card_title {
  padding: 1rem 1.5rem 0;
  font-size: 1.6rem;
  order: 1;
  margin-bottom: 0.6rem;
  font-weight: bold;
  text-decoration: none;
}

.card_thumbnail {
  margin: 0;
  order: 0;
}

.card_image {
  width: 100%;
}

.card_body {
  padding: 0 1.5rem;
}

.card_text {
  font-size: .8rem;
  text-align:center;
  text-decoration: none;
	padding-bottom: 0;
}

.card_text2 {
  font-size: .8rem;
  margin-top: 0;
  margin-bottom: 2rem;
}

.card_text + .card_text {
  margin-top: .5rem;
}

.card_footer {
  padding: 2px;
  border-top: 1px solid #ddd;
}

.button {
  display: inline-block;
  text-decoration: none;
  transition: background-color .3s ease-in-out;
  text-align: center;
}

.button a {
  text-decoration: none;
}

.button.-compact {
  padding: .5rem 1rem;
  border-radius: .25rem;
  background-color: #4f96f6;
  color: #fff;
  font-weight: bold;
	text-decoration: none;
}

.button.-compact:hover,
.button.-compact:focus {
  background-color: #6bb6ff;
}





/* アクティブな画像の枠線を変更 */


.main-img {
  width: 100%;
  display: flex;
  aspect-ratio: 5 / 4;
}

.main-img img {
  object-fit: contain;
  height: 100%;
  width: 100%;
  margin: auto;
  object-position: bottom;
}

.sub-img li.current img {
  border: 1px solid red;
  transition: border .5s;
}

/* レイアウトのためのスタイル */
.sub_img_wrapper {
  display: flex;
  justify-content: center;

}

.sub-img {
  display: flex;
  margin: auto;
  height: auto;
  flex-wrap:wrap;
  padding: 10px 0px;

  & li {
    padding: 1px;
    height: 80px;
    aspect-ratio: 1 / 1;
  }

  & img {
    border: 1px solid transparent;
    transition: border .5s;
    cursor: pointer;
    object-fit: cover;
    width: 100%;
    height: 100%;
    display: inline-block;
  }
  
}



/* レスポンシブデザイン */
@media (max-width: 1024px) {

  .sub-img {
    flex-wrap:nowrap;
    padding: 5px 0px;
    overflow-x: scroll;    
    overflow-y: hidden;    
  }
}
