@charset "UTF-8";

/*---------------画像・YouTube 2カラム------------------*/
.custom-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  align-items: stretch;
  /* gap: 20px; */
  max-width: 1000px;
    margin: auto;
}

.custom-wrapper section,
.custom-wrapper .widget_youtube {
    flex: 1 1 48%;
    display: flex;
    align-items: stretch;
    justify-content: center;
    box-sizing: border-box;
}

.custom-wrapper a[id^="img"]+section {
    padding-top: 0;
}

.custom-wrapper a[id^="img"]+section .content_wrapper {
    max-width: none !important;
    /* padding: 0; */
}

.custom-wrapper a[id^="img"]+section .inner_item_img {
    max-width: none !important;
    width: 100%;
    height: 100%;
}

/* YouTube */
.custom-wrapper a[id^="video"]+div .content_wrapper {
    max-width: none !important;
}

.custom-wrapper img,
.custom-wrapper iframe {
  /* width: 100%; */
  /* height: auto; */
  display: block;
}

.custom-wrapper .youtube_block {
    padding-top: 66.25%;
    position: relative;
}

.custom-wrapper .youtube_block iframe.lozad {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    display: block;
}

@media screen and (max-width: 1050px) {
	.custom-wrapper {
    width: 90%;
}
}

@media screen and (max-width: 768px) {
  .custom-wrapper {
    flex-direction: column;
  }
  .custom-wrapper section,
  .custom-wrapper .widget_youtube {
    flex: 1 1 100%;
  }
  .custom-wrapper a[id^="img"]+section .inner_item_img {
    width: 90%;
}
.widget_youtube .wrapper_item {
    width: 90%;
}
  .custom-wrapper .youtube_block {
    padding-top: 56.25%;
  }
  .custom-wrapper .youtube_block iframe.lozad {
    aspect-ratio: 16 / 9;
    height: auto;
}
}