/* 投稿ページ専用のスタイル */

/* ストアギャラリー（メインビジュアル） */
.ms-store-gallery {
  width: 100%;
  justify-content: center;
}

/* メインスライドショーエリア */
.ms-store-gallery__main {
  position: relative;
  width: 100%;
  height: 510px;
  overflow: hidden;
  margin-bottom: 1rem;
}

@media print, screen and (max-width: 959px) {
  .ms-store-gallery__main {
    margin-bottom: 0.5rem;
    height: 17rem;
  }
}

/* スライドアイテム */
.ms-store-gallery__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  pointer-events: none;
}

.ms-store-gallery__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.ms-store-gallery__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* サムネイルエリア */
.ms-store-gallery__thumbnails {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 2rem 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

@media print, screen and (max-width: 959px) {
  .ms-store-gallery__thumbnails {
    gap: 0.15rem;
    padding: 1.5rem 0;
  }
}

/* サムネイルアイテム */
.ms-store-gallery__thumbnail {
  flex: 0 0 auto;
  width: 100px;
  height: 100px;
  padding: 0;
  border: 2px solid transparent;
  background: none;
  cursor: pointer;
  transition: border-color 0.3s ease, opacity 0.3s ease;
  overflow: hidden;
}

@media print, screen and (max-width: 959px) {
  .ms-store-gallery__thumbnail {
    width: 2.6rem;
    height: 2.6rem;
  }
}

.ms-store-gallery__thumbnail:hover {
  opacity: 0.7;
}

.ms-store-gallery__thumbnail.is-active {
  border-color: var(--color-primary);
  opacity: 1;
}

.ms-store-gallery__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* エディタ画面ではすべてのスライドを表示 */
.block-editor-page .ms-store-gallery__slide {
  position: relative;
  opacity: 1;
  margin-bottom: 1rem;
}

.block-editor-page .ms-store-gallery__slide:last-child {
  margin-bottom: 0;
}

.mainvisual {
  position: relative;
}
.mainvisual__title {
  position: absolute;
  left: calc(50% - 530px);
  top: 30%;
  transform: translateY(-50%);
  z-index: 2;
  text-shadow: 0 0 0.625rem rgba(0, 0, 0, 0.3);
}
.mainvisual__sub-copy {
  position: absolute;
  left: 0;
  top: 420px;
  z-index: 2;
}
@media print, screen and (max-width: 959px) {
  .mainvisual {
    position: relative;
  }
  .mainvisual__title {
    left: 1rem;
  }
  .mainvisual__sub-copy {
    position: absolute;
    left: 0;
    top: 13.6rem;
    z-index: 2;
  }
}

.kantan30sec {
  position: relative;

  .kantan30sec__icon {
    width: auto;
    height: 70%;
    background-color: var(--color-white);
    color: #03c502;
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    font-size: 57%;
    padding-top: 4%;
    border-radius: 50%;
    line-height: 1;
    aspect-ratio: 1;
    text-align: center;

    .sub1 {
      font-size: 2em;
    }
    .sub2 {
      font-size: 1.5em;
    }
  }
}

@media print, screen and (max-width: 959px) {
  .kantan30sec {
    .kantan30sec__icon {
      width: auto;
      height: 5em;
      background-color: var(--color-white);
      color: #03c502;
      position: absolute;
      top: 50%;
      left: 0.8em;
      transform: translateY(-50%);
      font-size: 0.6em;
      padding-top: 1em;
      border-radius: 50%;
      line-height: 1;
      aspect-ratio: 1;
      text-align: center;
      font-weight: bold;
    }
  }
}
