.photo-gallery {
    padding: 88px 36px;
    background: #fff;
    color: #171717;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
    scroll-margin-top: 104px;
}
.photo-gallery .section-header { margin-bottom: 48px; }
.gallery-intro { margin: 20px 0 0; font-size: 14px; line-height: 2; font-weight: 400; color: #666; }
.gallery-inner { max-width: 1160px; margin: 0 auto; }
.gallery-meta { display: flex; justify-content: space-between; gap: 16px; padding: 0 0 16px; border-bottom: 1px solid #ddd; font-size: 11px; font-weight: 400; color: #777; }
.gallery-meta > :first-child { letter-spacing: .14em; }
.gallery-mobile-hint, .gallery-scroll-controls { display: none; }
.gallery-scroll-controls[hidden] { display: none; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 20px; padding-top: 24px; }
.gallery-grid:focus-visible { outline: 2px solid #171717; outline-offset: 4px; }
.gallery-card { min-width: 0; margin: 0; scroll-margin-top: 124px; }
.gallery-card[hidden], .gallery-more[hidden], .gallery-image-error[hidden] { display: none; }
.gallery-photo { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: #f3f3f3; color: #171717; }
.gallery-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--photo-position, center); transition: transform .35s ease; }
.gallery-photo:focus-visible, .gallery-more:focus-visible { outline: 2px solid #171717; outline-offset: 5px; }
.gallery-zoom { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 28px; height: 28px; background: rgba(255,255,255,.92); border-radius: 50%; font-size: 18px; font-weight: 400; line-height: 1; }
.gallery-card figcaption { display: flex; gap: 12px; align-items: baseline; padding-top: 12px; font-size: 12px; line-height: 1.7; font-weight: 400; }
.gallery-number { flex: 0 0 auto; font-size: 10px; color: #888; letter-spacing: .04em; }
.gallery-more { display: flex; align-items: center; justify-content: center; gap: 18px; min-height: 52px; width: min(100%, 320px); margin: 40px auto 0; padding: 14px 24px; border: 1px solid #222; border-radius: 0; background: #fff; color: #171717; font: inherit; font-size: 13px; cursor: pointer; }
.gallery-more > span:first-child { font-size: 11px; color: #777; }
.gallery-more > span:last-child { margin-left: auto; font-size: 18px; }
.gallery-dialog { position: fixed; inset: 0; box-sizing: border-box; width: 100vw; max-width: none; height: 100%; height: 100dvh; max-height: none; margin: 0; padding: 60px 24px 20px; border: 0; color: #fff; background: #151515; overflow: auto; }
.gallery-dialog:not([open]) { display: none; }
.gallery-dialog[open] { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.gallery-dialog::backdrop { background: #151515; }
.gallery-stage { display: flex; align-items: center; justify-content: center; flex: 1; min-height: 0; width: 100%; }
.gallery-full-image { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.gallery-dialog button { flex: 0 0 auto; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1px solid #666; border-radius: 50%; font: inherit; font-size: 22px; line-height: 1; cursor: pointer; background: transparent; color: #fff; }
.gallery-dialog button:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.gallery-dialog .gallery-close { position: absolute; right: 20px; top: 10px; width: 40px; height: 40px; border: none; font-size: 32px; }
.gallery-viewer-footer { flex: 0 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 16px; width: min(100%, 640px); }
.gallery-viewer-description { flex: 1; min-width: 0; text-align: center; }
.gallery-current-caption { margin: 0; font-size: 13px; font-weight: 400; line-height: 1.6; }
.gallery-counter { margin: 5px 0 0; color: #aaa; font-size: 11px; font-weight: 400; letter-spacing: .12em; }
.gallery-image-error { margin: 0; font-size: 12px; }
.gallery-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (hover: hover) {
    .gallery-photo:hover img { transform: scale(1.025); }
    .gallery-more:hover { background: #f6f6f6; }
    .gallery-dialog button:hover { background: #333; }
}
@media (max-width: 767px) {
    .photo-gallery { padding: 64px 18px; scroll-margin-top: 88px; }
    .photo-gallery .section-header { margin-bottom: 32px; }
    .gallery-intro { margin-top: 16px; font-size: 12px; line-height: 2; }
    .gallery-meta { font-size: 10px; padding-bottom: 12px; }
    .gallery-mobile-hint { display: inline; }
    .gallery-desktop-hint { display: none; }
    .gallery-grid {
        --gallery-card-width: min(78vw, 400px);
        display: flex;
        gap: 12px;
        width: calc(100% + 36px);
        margin: 0 -18px;
        padding: 18px calc(100vw - var(--gallery-card-width) - 18px) 12px 18px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scroll-padding-left: 18px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .gallery-grid::-webkit-scrollbar { display: none; }
    .gallery-card { flex: 0 0 var(--gallery-card-width); scroll-snap-align: start; scroll-margin: 0; }
    .gallery-card figcaption { gap: 10px; padding-top: 12px; font-size: 12px; }
    .gallery-number { font-size: 10px; }
    .gallery-photo:focus-visible { outline-offset: -4px; }
    .gallery-zoom { right: 12px; bottom: 12px; width: 30px; height: 30px; font-size: 18px; }
    .gallery-more { display: none; }
    .gallery-scroll-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
    .gallery-scroll-status { display: flex; align-items: center; gap: 12px; font-size: 10px; font-weight: 400; color: #777; }
    .gallery-scroll-count { color: #222; font-size: 12px; letter-spacing: .1em; font-variant-numeric: tabular-nums; }
    .gallery-scroll-buttons { display: flex; gap: 8px; }
    .gallery-scroll-buttons button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #bbb; border-radius: 50%; background: #fff; color: #222; font: inherit; font-size: 20px; cursor: pointer; }
    .gallery-scroll-buttons button:disabled { opacity: .3; cursor: default; }
    .gallery-scroll-buttons button:focus-visible { outline: 2px solid #171717; outline-offset: 3px; }
    .gallery-dialog { padding: calc(56px + env(safe-area-inset-top, 0px)) 12px calc(16px + env(safe-area-inset-bottom, 0px)); }
    .gallery-dialog .gallery-close { top: calc(8px + env(safe-area-inset-top, 0px)); right: 12px; }
    .gallery-viewer-footer { gap: 10px; }
    .gallery-current-caption { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .gallery-photo img { transition: none; }
}
