/* ============================================
   s-media-02 - Video Section (施術動画)
   装飾フレーム + バッジ, 2col レイアウト
   ============================================ */

/* --- WP block margin reset --- */
:is(.s-media-02 *) {
  margin: 0;
}

/* --- Section wrapper --- */
.s-media-02 {
  container-type: inline-size;
  position: relative;
  z-index: 1;
}

/* --- Section heading --- */
.s-media-02__heading {
  font-size: var(--font-size-3-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary) !important;
  letter-spacing: var(--letter-spacing-wider);
  text-align: center;
  margin-bottom: var(--section-header-mb) !important;
}

/* --- Video grid (2col) --- */
.s-media-02__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6-xl);
}

/* --- Video item --- */
.s-media-02__item {
  display: flex;
  flex-direction: column;
}

/* --- Decorative frame wrapper --- */
.s-media-02__frame {
  position: relative;
  padding: var(--space-xl);
}

/* --- Shared decorative line + ornament (top & bottom) --- */
.s-media-02__frame::before,
.s-media-02__frame::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 14px;
  background:
    linear-gradient(var(--color-primary-light), var(--color-primary-light)) 0 50% / 38% 1px no-repeat,
    url("../../images/icon/icon--ot-03.svg") center center / 14px 13px no-repeat,
    linear-gradient(var(--color-primary-light), var(--color-primary-light)) 62% 50% / 38% 1px no-repeat;
}

/* --- Top ornament --- */
.s-media-02__frame::before {
  top: 0;
}

/* --- Bottom ornament (flipped) --- */
.s-media-02__frame::after {
  bottom: 0;
  transform: scaleY(-1);
}

/* --- Video player --- */
.s-media-02__player {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: var(--color-bg-sub);
}

.s-media-02__player iframe,
.s-media-02__player video {
  width: 100%;
  height: 100%;
  display: block;
}

/* --- Meta row (badge + duration) --- */
.s-media-02__meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-xl) !important;
  margin-bottom: var(--space-md) !important;
}

/* --- Badge --- */
.s-media-02__badge {
  display: inline-block;
  background-color: var(--color-text);
  color: var(--color-white);
  font-size: var(--font-size-2-xs);
  font-weight: var(--font-weight-bold);
  padding: var(--space-4-xs) var(--space-sm);
  line-height: var(--line-height-none);
  letter-spacing: var(--letter-spacing-normal);
}

/* --- Duration --- */
.s-media-02__duration {
  font-size: var(--font-size-md);
  color: var(--color-text-light);
  letter-spacing: var(--letter-spacing-wide);
}

/* --- Video title --- */
.s-media-02__title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  line-height: var(--line-height-normal);
  margin-bottom: var(--space-sm) !important;
}

/* --- Video description --- */
.s-media-02__desc {
  font-size: var(--font-size-md);
  line-height: var(--line-height-relaxed);
  color: var(--color-text);
}

/* --- SP --- */
@container (max-width: 599px) {
  .s-media-02__heading {
    font-size: var(--font-size-2-xl);
  }

  .s-media-02__grid {
    grid-template-columns: 1fr;
    gap: var(--space-5-xl);
  }

  .s-media-02__frame {
    padding: var(--space-md);
  }

  .s-media-02__frame::before,
  .s-media-02__frame::after {
    height: 11px;
    background-size: 36% 1px, 11px 10px, 36% 1px;
  }

  .s-media-02__title {
    font-size: var(--font-size-lg);
  }

  .s-media-02__desc {
    font-size: var(--font-size-sm);
  }
}
