/* ============================================
   s-gallery-01 - Gallery (クリニック案内)
   ============================================ */
.s-gallery-01.wp-block-group,
.s-gallery-01 {
  position: relative;
  z-index: 1;
  padding: var(--section-py) 0;
  overflow: hidden;
}

.s-gallery-01__inner.wp-block-group,
.s-gallery-01__inner {
  container-type: inline-size;
  max-width: var(--width-inner);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  position: relative;
  z-index: 1;
}

:is(.s-gallery-01 *) {
  margin: 0;
}

/* wp:cover 構造対応 */
.s-gallery-01__main.wp-block-cover,
.s-gallery-01__main {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-3-xl);
  min-height: var(--layout-sm);
}

.s-gallery-01__main .wp-block-cover__inner-container {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: var(--space-3-xl) var(--space-5-xl);
}

.s-gallery-01 .s-gallery-01__overlay,
.s-gallery-01__overlay {
  font-family: var(--font-family-en);
  font-size: var(--font-size-8-xl);
  color: rgba(255, 255, 255, 0.8);
  line-height: var(--line-height-sm);
}

/* --- スライダー矢印（黒透過丸 + SVGアイコン） --- */
.s-gallery-01__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: var(--space-5-xl);
  height: var(--space-5-xl);
  background: rgba(0, 0, 0, 0.4);
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  z-index: 10;
  transition: opacity var(--transition-fast);
  padding: 0;
}

.s-gallery-01__arrow:hover {
  opacity: 0.7;
}

.s-gallery-01__arrow--prev {
  left: var(--space-sm);
}

.s-gallery-01__arrow--next {
  right: var(--space-sm);
}

.s-gallery-01__arrow-icon {
  width: var(--font-size-xl);
  height: var(--font-size-xl);
}

/* 装飾: 右側ピンク斜め背景 (::before) */
.s-gallery-01::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: var(--color-primary-light);
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
  z-index: 0;
  opacity: 0.5;
  pointer-events: none;
}

/* === SP === */
@container (max-width: 599px) {
  .s-gallery-01__main-img {
    height: var(--layout-xs);
  }

  .s-gallery-01__overlay {
    font-size: var(--font-size-5-xl);
    bottom: var(--space-xl);
    right: var(--space-2-xl);
  }

  .s-gallery-01__arrow {
    width: var(--space-4-xl);
    height: var(--space-4-xl);
  }

  .s-gallery-01__arrow-icon {
    width: var(--font-size-lg);
    height: var(--font-size-lg);
  }
}
