@charset "utf-8";.collections-detail-page {
  padding: 0 20px;
  max-width: 800px;
  margin: 0 auto;
}

.page-title {
  margin: 0;
  font-size: 18px;
  font-weight: normal;
  text-align: center;
  padding: 20px 0;
}

.collection-column-settings p {
  padding: 6px 0;
}

.collection-column-settings .image.ty-column1 {
  margin: 0 0 35px 0;
  max-height: 80vh;
  height: 100%;
  position: relative;
}

.collection-column-settings .image.ty-column1 img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 80vh;
  display: block;
  margin: 0 auto;
}

/* =======================
   縦長動画用（9:16）
   ======================= */
.video-vertical {
  max-width: 400px;     /* PCでの横幅制限 */
  margin: 0 auto;       /* 中央寄せ */
}

.video-vertical iframe {
  width: 100%;
  aspect-ratio: 9 / 16; /* 縦長比率 */
  height: auto;
  border: none;
}

/* =======================
   縦長動画用（4:5）
   ======================= */
.video-vertical_2 {
  max-width: 400px;     /* PCでの横幅制限 */
  margin: 0 auto;       /* 中央寄せ */
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 125%;   /* 4:5 縦長比率 */
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* =======================
   グリッド動画
   ======================= */
.video-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0;
  margin: 0 -2px;
}

.video-item {
  flex: 0 0 49%;       /* 常に2列 */
  margin-bottom: 12px;
  position: relative;
  padding-top: 56.25%; /* 16:9 */
}

.video-item iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* =======================
   PCレスポンシブ対応
   ======================= */
@media (min-width: 992px) {
  .video-vertical {
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 1024px) {
  .collection-column-settings .image.ty-column1 {
    height: auto;
    max-height: 85vh;
  }
  .collection-column-settings .image.ty-column1 img {
    max-height: 85vh;
  }
}

@media (max-width: 991px) {
  .collections-detail-page .image {
    margin: 0 0 20px 0;
  }
  .collections-detail-page {
    padding: 0 20px;
  }
}

.ty-column1 {
  width: 100%;
  display: inline-block;
  vertical-align: top;
}

.collection-column-settings .ty-column2-rap {
  display: flex;
  gap: 0 1%;
}

.collection-column-settings .image.ty-column2 {
  flex: 1;
}

@media (min-width: 992px) {
  .collection-column-settings .image.ty-column2 img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 80vh;
    display: block;
    margin: 0 auto;
  }
}

/* =======================
   表示制御（スマホ/PC）
   ======================= */
.visible-phone {
  display: none !important;
}

@media (max-width: 767px) {
  table.responsive-table, table.responsive-table tbody, table.responsive-table tr, table.responsive-table td {
    display: block !important;
    width: 100% !important;
  }
  table.responsive-table td {
    margin-bottom: 12px;
  }
}
@media (max-width: 767px) {
  .hidden-phone {
    display: none !important;
  }
  .visible-phone {
    display: inherit !important;
  }
  .video-item {
    padding-top: 75%;  /* 4:3 に近い比率 */
  }
}

.video-grid-wrapper {
  margin: 0 -20px; /* 親 .collections-detail-page の padding を打ち消す */
}
