/* 記事の「買取実績」部品（PRICE BASE 共通の見た目。ジャンルのテーマに依存しない）。
   すべてのセレクターは .pbaj の下（tools/build.py が検査）。SWELL の .post_content の p・ul・img・button の決まりに引っ張られないよう、
   p・ul・li・h* は使わず、要素はクラス 2 つ以上で指定する。列の数は部品の幅で決める（container query。未対応のブラウザは 2 列のまま）。 */
.pbaj { --pbaj-ink: #333; --pbaj-sub: #666; --pbaj-line: #e4e1dc; --pbaj-bg: #f7f5f2; --pbaj-o1: #ffa41c; --pbaj-o2: #ff7a00; --pbaj-o3: #d45f00; --pbaj-accent: #e8590c;
  container-type: inline-size; container-name: pbaj; position: relative; margin: 0 0 2em; padding: 0; color: var(--pbaj-ink); line-height: 1.5; text-align: left; }
.pbaj .nw { display: inline-block; white-space: nowrap; }
.pbaj .pbaj__grp { display: inline-block; }

/* 一言 */
.pbaj .pbaj__lead { margin: 0 0 14px; font-size: 17px; font-weight: 700; line-height: 1.45; text-align: center; letter-spacing: .02em; }
.pbaj .pbaj__lead em { font-style: normal; color: var(--pbaj-accent); background: linear-gradient(transparent 62%, #ffe2c7 62%); }

/* 写真の格子 */
.pbaj .pbaj__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; margin: 0; padding: 0; }
.pbaj .pbaj__item { display: flex; flex-direction: column; align-items: stretch; min-width: 0; margin: 0; padding: 0; }
.pbaj.is-collapsed .pbaj__item.is-extra { display: none; }
.pbaj .pbaj__ph { display: block; position: relative; width: 100%; margin: 0; padding: 0; border: 1px solid var(--pbaj-line); border-radius: 8px; overflow: hidden; background: var(--pbaj-bg); aspect-ratio: 1 / 1; cursor: zoom-in; -webkit-appearance: none; appearance: none; box-shadow: none; line-height: 0; }
.pbaj .pbaj__ph:focus-visible { outline: 3px solid #1a73e8; outline-offset: 2px; }
.pbaj .pbaj__img { display: block; width: 100%; height: 100%; max-width: none; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; object-fit: cover; transition: transform .25s ease; }
@media (hover: hover) { .pbaj .pbaj__ph:hover .pbaj__img { transform: scale(1.03); } }
.pbaj .pbaj__name { display: block; margin: 6px 2px 0; font-size: 13px; font-weight: 700; line-height: 1.35; text-align: center; color: var(--pbaj-ink); word-break: keep-all; overflow-wrap: normal; }

/* もっと見る */
.pbaj .pbaj__more { margin: 16px 0 0; text-align: center; }
.pbaj .pbaj__more[hidden] { display: none; }
.pbaj .pbaj__morebtn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-width: 200px; min-height: 44px; margin: 0; padding: 8px 24px; border: 1.5px solid #bbb; border-radius: 99px; background: #fff; color: var(--pbaj-ink); font: inherit; font-size: 15px; font-weight: 700; line-height: 1.2; cursor: pointer; -webkit-appearance: none; appearance: none; box-shadow: none; }
.pbaj .pbaj__morebtn i { display: inline-block; width: 7px; height: 7px; margin-top: -4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.pbaj .pbaj__morebtn[aria-expanded="true"] i { margin-top: 3px; transform: rotate(-135deg); }
.pbaj .pbaj__morebtn:focus-visible { outline: 3px solid #1a73e8; outline-offset: 2px; }

/* まとめ（ほかにも多数…＋申込ボタン） */
.pbaj .pbaj__all { position: relative; display: flex; align-items: center; justify-content: center; min-height: 300px; margin: 18px 0 0; padding: 22px 14px; border-radius: 10px; overflow: hidden; background: var(--pbaj-bg); }
.pbaj .pbaj__allpic { position: absolute; inset: 0; margin: 0; }
.pbaj .pbaj__allpic picture { display: block; width: 100%; height: 100%; }
.pbaj .pbaj__allimg { display: block; width: 100%; height: 100%; max-width: none; margin: 0; border: 0; border-radius: 0; box-shadow: none; object-fit: cover; }
.pbaj .pbaj__allbody { position: relative; width: 100%; max-width: 440px; padding: 18px 16px 18px; border-radius: 10px; background: rgba(255, 255, 255, .95); box-shadow: 0 4px 18px rgba(0, 0, 0, .18); text-align: center; }
.pbaj .pbaj__allh { margin: 0; font-size: 18px; font-weight: 800; line-height: 1.45; color: var(--pbaj-ink); }
.pbaj .pbaj__alls { margin: 6px 0 0; font-size: 13px; font-weight: 700; line-height: 1.5; color: var(--pbaj-sub); }
.pbaj .pbaj__cta { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; max-width: 330px; min-height: 52px; margin: 14px auto 0; padding: 10px 40px 11px 28px; border-radius: 99px; background: linear-gradient(180deg, var(--pbaj-o1), var(--pbaj-o2)); box-shadow: 0 4px 0 var(--pbaj-o3); color: #fff; font-size: 17px; font-weight: 800; line-height: 1.25; text-decoration: none; text-shadow: 0 1px 0 rgba(150, 60, 0, .35); white-space: nowrap; }
.pbaj .pbaj__cta:hover { color: #fff; opacity: .92; }
.pbaj .pbaj__cta i { position: absolute; right: 20px; top: 50%; width: 8px; height: 8px; margin-top: -5px; border-top: 2.5px solid currentColor; border-right: 2.5px solid currentColor; transform: rotate(45deg); }
.pbaj .pbaj__cta:focus-visible { outline: 3px solid #1a73e8; outline-offset: 3px; }
.pbaj .pbaj__note { margin: 8px 2px 0; font-size: 12px; line-height: 1.5; color: #888; text-align: right; }

@container pbaj (min-width: 560px) {
  .pbaj .pbaj__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 14px; }
  .pbaj .pbaj__name { font-size: 14px; }
  .pbaj .pbaj__lead { font-size: 19px; margin-bottom: 16px; }
  .pbaj .pbaj__all { min-height: 260px; padding: 28px 20px; }
  .pbaj .pbaj__allbody { max-width: 500px; padding: 20px 24px 22px; }
  .pbaj .pbaj__allh { font-size: 21px; }
  .pbaj .pbaj__alls { font-size: 14px; }
}

/* 大きい写真（<dialog>。最前面に出るので、追従する帯・浮いたボタンより上になる） */
.pbaj .pbaj-pop { position: fixed; inset: auto; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(560px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 16px); margin: 0; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: #fff; color: var(--pbaj-ink); box-shadow: 0 8px 30px rgba(0, 0, 0, .45); height: auto; }
.pbaj .pbaj-pop:not([open]) { display: none; }
.pbaj .pbaj-pop::backdrop { background: rgba(0, 0, 0, .72); }
.pbaj .pbaj-pop__stage { display: flex; align-items: center; justify-content: center; background: #1f1f1f; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.pbaj .pbaj-pop__img { display: block; width: 100%; height: auto; max-width: 100%; max-height: calc(100vh - 24px - 72px); max-height: calc(100dvh - 24px - 72px); margin: 0; border: 0; border-radius: 0; box-shadow: none; object-fit: contain; aspect-ratio: 1 / 1; }
.pbaj .pbaj-pop__bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 72px; padding: 0 10px; }
.pbaj .pbaj-pop__mid { flex: 1 1 auto; min-width: 0; text-align: center; font-weight: 700; line-height: 1.3; }
.pbaj .pbaj-pop__cap { display: block; font-size: 15px; word-break: keep-all; }
.pbaj .pbaj-pop__count { display: block; margin-top: 2px; font-size: 12px; color: var(--pbaj-sub); }
.pbaj .pbaj-pop__nav, .pbaj .pbaj-pop__x { display: flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: #333; color: #fff; cursor: pointer; -webkit-appearance: none; appearance: none; box-shadow: none; }
.pbaj .pbaj-pop__x { position: absolute; top: 8px; right: 8px; z-index: 1; background: rgba(0, 0, 0, .6); }
.pbaj .pbaj-pop__nav:focus-visible, .pbaj .pbaj-pop__x:focus-visible { outline: 3px solid #1a73e8; outline-offset: 2px; }
