/* 写真からお店を探す（/photos・/photos/interior・/photos/costume）と、トップの写真8枚（v1）。説明は docs/css-notes/photo-grid.css.txt
   2026-12-05 seiya：衣装は縦長3:4・店内は横長4:3の同じ枠（形がちがう写真は切らずに全体＋ぼかし）・スマホ2列（PC は photos-pc.css で4〜5列）・店名/エリア/時給/♡の位置をそろえる */
.pg-grid { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 10px; }
@media (min-width: 600px) { .pg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 14px; } }
.pg-grid.is-mix { display: block; columns: 2; column-gap: 10px; }
@media (min-width: 600px) { .pg-grid.is-mix { columns: 3; column-gap: 14px; } }
/* PC：4列・1280px から5列（2026-12-05 seiya「PC版は4〜5列」）。今までのデザイン（v1）にも同じ列にするため、列の数だけここに書く（ほかの PC の見た目は v2/photos-pc.css） */
@media (min-width: 1024px) { .pg-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 18px; } .pg-grid.is-mix { columns: 4; column-gap: 18px; } }
@media (min-width: 1280px) { .pg-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.pg-grid.is-mix .pg-item { break-inside: avoid; margin: 0 0 14px; }
.pg-item { position: relative; display: flex; flex-direction: column; min-width: 0; }
.pg-link { display: flex; flex-direction: column; flex: 1; color: inherit; text-decoration: none; }
.pg-ph { position: relative; display: block; overflow: hidden; border-radius: 12px; background: var(--th-l, var(--pink-l)); }
.pg-r34 { aspect-ratio: 3 / 4; }
.pg-r11 { aspect-ratio: 1 / 1; }
.pg-r43 { aspect-ratio: 4 / 3; }
.pg-ph .img-fit { border-radius: inherit; background: transparent; }
/* 読み込み中：写真が出るまで、うすい面に小さく「読み込み中」（写真が上にかぶさる）。
   読み込めなかった写真は public/app.js が2回読み直したあと「写真準備中」（.noimg）に置きかえる：枠いっぱいの面にする */
.pg-ph::before { content: "読み込み中"; position: absolute; inset: 0; display: grid; place-items: center; font-size: var(--fs-cap, 13px); color: var(--sub); letter-spacing: 0.08em; }
.pg-ph .noimg, .pg-th .noimg { position: absolute; inset: 0; z-index: 1; min-height: 0; font-size: var(--fs-cap, 13px); color: var(--sub); background: var(--th-l, var(--pink-l)); }
.pg-ph .img-fit:has(.noimg)::before { display: none; }
.pg-link:hover .pg-ph img, .pg-link:focus-visible .pg-ph img { filter: brightness(0.95); }
.pg-link:focus-visible { outline: 3px solid var(--th, var(--pink)); outline-offset: 2px; border-radius: 12px; }
.pg-kind, .pg-cnt { position: absolute; left: 8px; bottom: 8px; z-index: 2; padding: 1px 8px; border-radius: 999px; background: rgba(51, 40, 45, 0.62); color: #fff; font-size: var(--fs-cap, 13px); font-weight: 600; line-height: 1.6; }
.pg-cnt { left: auto; right: 8px; }
/* 写真の下：店名（2行ぶんの高さ）→ エリア・業種（1行）→ 体入時給・本入時給（2行）。行の高さを決めて、横の列でそろえる */
.pg-cap { display: flex; flex-direction: column; flex: 1; padding: 8px 2px 0; }
.pg-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-height: 2.8em; font-size: var(--fs-sub, 14px); font-weight: 600; line-height: 1.4; word-break: keep-all; overflow-wrap: anywhere; }
.pg-meta { display: block; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-cap, 13px); color: var(--sub); line-height: 1.5; }
.pg-type::before { content: "・"; }
.pg-pay { display: block; margin-top: auto; padding-top: 6px; }
.pg-pay > span { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 6px; padding: 4px 0 0; border-top: 1px solid var(--pay-line, var(--line)); }
.pg-pay > span + span { border-top: 0; padding-top: 2px; }
.pg-pay i { font-style: normal; font-size: var(--pay-lbl, 13px); font-weight: var(--pay-uw, 500); color: var(--sub); }
.pg-pay-v { margin-left: auto; text-align: right; }
.pg-pay b { font-size: var(--pay-fs-s, 17px); font-weight: var(--pay-w, 600); line-height: 1.3; letter-spacing: 0.01em; }
.pg-pay small { margin-left: 1px; font-size: var(--pay-u-s, 13px); font-weight: var(--pay-uw, 500); }
.pg-pay .is-trial:not(.is-ask) .pg-pay-v { color: var(--th-d, var(--pink)); }
.pg-pay-t { font-size: var(--fs-cap, 13px); font-weight: var(--pay-uw, 500); line-height: 1.5; }
.pg-pay .is-ask .pg-pay-t, .pg-pay-t.is-more { color: var(--sub); }
/* 写真カードの下のボタン：WEB応募（--ap-web）と「求人詳細を見る」。縦に2つ・どのカードも下の端にそろえる・押せる高さ 44px */
.pg-acts { display: grid; gap: 6px; margin-top: 8px; }
.pg-acts .ap-btn { min-height: 44px; padding: 0 6px; gap: 4px; border-radius: 8px; font-size: var(--fs-sub, 14px); font-weight: 600; }
.pg-acts .ap-btn .apply-ico { width: 18px; height: 18px; }
.pg-acts .ap-detail { box-shadow: inset 0 0 0 1.5px var(--ap-cyan); }
/* お気に入りのハート：どの写真も写真の右上の同じ場所・同じ大きさ（押せる範囲 44×44px・見た目は直径 34px） */
.pg-item > .fav { position: absolute; top: 4px; right: 4px; left: auto; z-index: 3; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; box-shadow: none; display: grid; place-items: center; }
.pg-item > .fav::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: rgba(255, 255, 255, 0.92); box-shadow: 0 1px 4px rgba(51, 40, 45, 0.15); }
.pg-item > .fav svg { position: relative; width: 18px; height: 18px; }
/* お店ごと：大きな写真の下に、そのお店のほかの写真を小さく3枚まで（最後の1枚に「+N」） */
.pg-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin-top: 4px; }
.pg-th { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 8px; background: var(--th-l, var(--pink-l)); }
.pg-th .img-fit { background: transparent; }
.pg-th[data-more]::after { content: attr(data-more); position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; background: rgba(51, 40, 45, 0.5); color: #fff; font-size: var(--fs-sub, 14px); font-weight: 600; }

/* ページ */
.pg-h small { display: block; margin-top: 2px; font-size: var(--fs-cap, 13px); font-weight: 600; color: var(--sub); }
.pg-tabs { display: flex; gap: 6px; margin: 10px 0 4px; padding: 4px; border-radius: 999px; background: var(--th-l, var(--pink-l)); }
.pg-tabs a { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 999px; color: var(--text); font-weight: 600; font-size: var(--fs-sub, 14px); text-decoration: none; }
.pg-tabs a[aria-current="page"] { background: #fff; color: var(--th-d, var(--pink)); box-shadow: 0 1px 4px rgba(var(--th-a, 194, 58, 111), 0.18); }
.pg-bar { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px 10px; margin-top: 8px; }
.pg-bar .pg-filter { flex: 1 1 100%; margin: 0; }
/* 絞り込み：選んでいる候補は塗りの色とチェック。数はその条件で出る写真の枚数 */
.pg-filter .pf-chip[aria-current]::before { content: "✓"; font-weight: 700; }
.pg-filter .pf-chip[aria-current] { font-weight: 600; }
.pf-n { font-size: var(--fs-cap, 13px); font-weight: 400; opacity: 0.75; }
.pg-fon { margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: var(--th-f, var(--pink)); color: var(--th-on, #fff); font-weight: 600; }
.pg-sel { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 10px 0 0; padding: 0; }
.pg-sel a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--th-m, var(--pink-m)); background: var(--th-l, var(--pink-l)); color: var(--th-d, var(--pink)); font-size: var(--fs-cap, 13px); font-weight: 600; text-decoration: none; }
.pg-sel a span { font-size: var(--fs-sub, 14px); line-height: 1; }
/* 件数と表示の形（写真ごと／お店ごと） */
.pg-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; margin-top: 12px; }
.pg-n { margin: 0; font-size: var(--fs-cap, 13px); color: var(--sub); }
.pg-list { display: inline-flex; align-items: center; min-height: 44px; margin-right: auto; padding: 0 4px; font-size: var(--fs-sub, 14px); font-weight: 600; color: var(--pink); text-underline-offset: 3px; }
.pg-mode { display: flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line); background: #fff; }
.pg-mode a { display: flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 999px; color: var(--sub); font-size: var(--fs-cap, 13px); font-weight: 600; text-decoration: none; }
.pg-mode a[aria-current="page"] { background: var(--th-f, var(--pink)); color: var(--th-on, #fff); }
.pg-sec { margin-top: 20px; }
.pg-sec-h { display: flex; align-items: baseline; gap: 8px; margin: 0; font-size: var(--fs-l, 18px); font-weight: 700; }
.pg-sec-h small { font-size: var(--fs-cap, 13px); font-weight: 400; color: var(--sub); }
.pg-more { margin: 14px 0 0; text-align: center; }
.pg-more .btn { min-width: 220px; min-height: 44px; }
.pg-note { margin: 16px 0 0; font-size: var(--fs-cap, 13px); color: var(--sub); }

/* トップ（v1） */
.pg-teaser-lead { margin: 2px 0 0; font-size: var(--fs-cap, 13px); color: var(--sub); }
.pg-teaser .pg-more { margin-top: 2px; }
.pg-teaser.is-v2 { margin-top: 28px; }
