@charset "UTF-8";

/*メインコンテンツ
----------------------------------------*/
h2 {
  font-size: 30px;
  line-height: 1.5;
  text-align: left;
  margin-top: 70px !important;
}

.example_detail{
  max-width: 780px;
  margin: 0 auto;
}

.gallery_main {
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px;
}

.gallery_sub {
  display: flex;
  gap: 20px;          
  margin-bottom: 30px;
}

.gallery_sub > img {
  flex: 1; 
  min-width: 0;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

/* 画像共通
----------------------------------------*/
.gallery_main img,
.gallery_sub img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

/*詳細情報
----------------------------------------*/
.detail {
  margin-top: 0px !important;
  padding: 40px 0;
	margin-bottom: 0;
  width: 100%;
}

.detail dl {
  display: grid;
  grid-template-columns: 90px 1fr;
	padding: 15px 0;
	border-bottom: 1px solid #B9B9B9;
  width: 100%;
}

.detail dt {
  font-family:"Noto Sans JP", sans-serif;
	font-size: 16px;
	font-weight: bold;
	width: 100%;
}

.detail dd
{
  font-family:"Noto Sans JP", sans-serif;
  font-size: 16px;
	width: 100%;
  margin-left: 20px;
}

footer {
  margin-top: 60px;
}

/* スマホ対応（900px以下）
----------------------------------------*/
@media screen and (max-width: 900px) {
  .example_detail {
    margin-left: 20px;
    margin-right: 20px;
  }

  .gallery_main img{
  text-align: center;
  width: 100%;
}

  h2 {
    text-align: center;
  }

  .gallery_sub {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    margin-bottom: 0px;
  }
  
    .gallery_sub > img {
    flex: 0 0 calc((100% - 12px) / 2);
    min-width: calc((100% - 12px) / 2);
    scroll-snap-align: start;
  }

  .detail dl {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 20px 0;
  }

  .detail dt {
    font-size: 16px;
    margin-bottom: 25px;
  }

  .detail dd {
    font-size: 15px;
    color: #555;
    margin-inline-start: 0%;
  }

  .footer {
  margin-top: 30px;
}
}