/* ==========================================================================
 * slideshow.css — 当院について（about/info.html）専用
 * --------------------------------------------------------------------------
 * Project : 横浜カメリアホスピタル
 * Updated : 2026-10-15
 * --------------------------------------------------------------------------
 * 編集ルール
 *   - @layer は使わない。既存の css/style.css がレイヤーなしで書かれているため、
 *     こちらをレイヤーに入れると詳細度に関係なく style.css に負けてしまう
 *   - ブレイクポイントは @media (width >= 768px) の形式のみ
 * ========================================================================== */

/* --------------------------------------------------------------------------
   p-slideshow — リトグラフのスライドショー（2026-10 shadowbox から置き換え）
   使用箇所 : about/info.html「世界の風景のリトグラフ」
   構成     : dialog.p-slideshow > __figure( > __img ) + __nav( > __btn + __count )
   変化     : 768px以上で写真の表示枠とボタンを大きく
   注意     : dialog 要素は about/js/slideshow.js が生成する。HTML には書かない
   -------------------------------------------------------------------------- */
.p-slideshow {
  width: calc(100% - 32px);
  max-width: 760px;
  max-height: none;
  padding: 0;
  background: transparent;
  border: 0;
  color: #fff;

  &::backdrop {
    background: rgb(0 0 0 / 0.85);
  }

  .p-slideshow__figure {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60vh;
    margin: 0;
    @media (width >= 768px) {
      height: min(70vh, 540px);
    }
  }

  .p-slideshow__img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    background: #fff;
  }

  .p-slideshow__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
  }

  .p-slideshow__count {
    min-width: 5em;
    margin: 0;
    font-size: 0.875rem;
    text-align: center;
  }

  .p-slideshow__btn {
    min-width: 44px;
    min-height: 44px;        /* A11Y: タップ領域 44px 以上（WCAG 2.5.8） */
    padding: 0 12px;
    background: transparent;
    border: 1px solid #fff;
    border-radius: 4px;
    font-size: 0.875rem;
    color: #fff;
    cursor: pointer;
    &:hover {
      background: rgb(255 255 255 / 0.15);
    }
    &:focus-visible {
      outline: 2px solid #fff;
      outline-offset: 2px;   /* A11Y: キーボード操作時のフォーカス表示。消さない（WCAG 2.4.7） */
    }
    @media (width >= 768px) {
      padding: 0 16px;
      font-size: 1rem;
    }
  }
}
