.pb-ptc {
    --pb-ptc-accent: #e55202;
    --pb-ptc-rank: #e9963d;
    --pb-ptc-ink: #191a1e;
    --pb-ptc-muted: #666;
    --pb-ptc-line: #e5e5e5;
    width: 100%;
    margin: 2rem auto 3.5rem;
    color: var(--pb-ptc-ink);
}

.pb-ptc *,
.pb-ptc *::before,
.pb-ptc *::after {
    box-sizing: border-box;
}

.pb-ptc__table-wrap {
    margin: 0 !important;
    overflow-x: auto;
}

.pb-ptc__table {
    width: 100%;
    min-width: 620px;
    margin: 0 !important;
    border-collapse: collapse;
    border-spacing: 0;
    background: #fff;
}

.pb-ptc__table th,
.pb-ptc__table td {
    border: 1px solid var(--pb-ptc-line);
}

.pb-ptc__table th {
    padding: 11px 12px;
    background: var(--pb-ptc-ink);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.5;
    text-align: left;
}

.pb-ptc__table th:first-child,
.pb-ptc__row > td:first-child {
    width: 72px;
    text-align: center;
}

.pb-ptc__table th:last-child,
.pb-ptc__price {
    width: 154px;
    text-align: right;
}

.pb-ptc.is-list .pb-ptc__table th:first-child,
.pb-ptc.is-list .pb-ptc__row > td:first-child {
    width: auto;
    text-align: left;
}

.pb-ptc.is-list .pb-ptc__media {
    width: 72px;
    height: 100px;
    flex-basis: 72px;
}

.pb-ptc__row > td {
    padding: 12px;
    background: #fff;
    vertical-align: middle;
}

.pb-ptc__rank {
    display: inline-flex;
    min-width: 38px;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    color: #4b4b4b;
    font-size: 13px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.pb-ptc__row.is-top .pb-ptc__rank {
    border-radius: 999px;
    background: var(--pb-ptc-rank);
    color: #fff;
}

.pb-ptc__card {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
}

.pb-ptc__media {
    display: grid;
    width: 52px;
    height: 72px;
    flex: 0 0 52px;
    place-items: center;
    margin: 0 !important;
    overflow: hidden;
    border: 1px solid var(--pb-ptc-line);
    border-radius: 6px;
    background: #fff;
}

.pb-ptc__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pb-ptc__zoom-button {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: inherit;
    background: transparent;
    color: inherit;
    cursor: zoom-in;
}

.pb-ptc__zoom-button::after {
    position: absolute;
    right: 3px;
    bottom: 3px;
    padding: 2px 4px;
    border-radius: 3px;
    background: rgba(25, 26, 30, .82);
    color: #fff;
    content: "拡大";
    font-size: 8px;
    font-weight: 700;
    line-height: 1.2;
    pointer-events: none;
}

.pb-ptc__zoom-button:focus-visible {
    outline: 3px solid rgba(229, 82, 2, .48);
    outline-offset: -3px;
}

.pb-ptc-lightbox {
    position: fixed;
    z-index: 1000001;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(13, 14, 17, .92);
    opacity: 0;
    transition: opacity .18s ease;
}

.pb-ptc-lightbox[hidden] {
    display: none;
}

.pb-ptc-lightbox.is-open {
    opacity: 1;
}

.pb-ptc-lightbox__content {
    display: grid;
    max-width: min(92vw, 760px);
    max-height: calc(100dvh - 48px);
    place-items: center;
    gap: 12px;
}

.pb-ptc-lightbox__image {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: calc(100dvh - 104px);
    object-fit: contain;
    filter: drop-shadow(0 18px 44px rgba(0, 0, 0, .38));
}

.pb-ptc-lightbox__caption {
    margin: 0;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
}

.pb-ptc-lightbox__close {
    position: absolute;
    top: max(14px, env(safe-area-inset-top));
    right: max(14px, env(safe-area-inset-right));
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 50%;
    background: rgba(13, 14, 17, .54);
    color: #fff;
    cursor: pointer;
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
}

.pb-ptc-lightbox__close:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

body.pb-ptc-lightbox-open {
    overflow: hidden;
}

.pb-ptc__identity {
    min-width: 0;
}

.post_content .pb-ptc .pb-ptc__identity h3,
.pb-ptc .pb-ptc__identity h3 {
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--pb-ptc-ink);
    font-size: 15px !important;
    font-weight: 800 !important;
    line-height: 1.5 !important;
    letter-spacing: normal !important;
}

.post_content .pb-ptc .pb-ptc__identity h3::before,
.post_content .pb-ptc .pb-ptc__identity h3::after,
.pb-ptc .pb-ptc__identity h3::before,
.pb-ptc .pb-ptc__identity h3::after {
    display: none !important;
    content: none !important;
}

.pb-ptc__identity p {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 4px 0 0 !important;
    color: var(--pb-ptc-muted);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
}

.pb-ptc__identity p span + span::before {
    margin-right: 5px;
    color: #b8b8b8;
    content: "/";
}

.pb-ptc__price strong {
    color: var(--pb-ptc-accent);
    font-size: 17px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.pb-ptc__table-wrap figcaption {
    margin-top: 8px;
    color: #777;
    font-size: 10px;
    line-height: 1.75;
}

.pb-ptc__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin-top: 18px;
}

.pb-ptc__cta {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    border-radius: 999px;
    background: var(--pb-ptc-rank);
    color: #fff !important;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.4;
    text-align: center;
    text-decoration: none !important;
}

.pb-ptc__details {
    color: #3f4145 !important;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.6;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.pb-ptc__details span {
    margin-left: 3px;
    color: var(--pb-ptc-accent);
}

@media (hover: hover) {
	.pb-ptc__zoom-button img {
		transition: transform .16s ease;
	}

	.pb-ptc__zoom-button:hover img {
		transform: scale(1.035);
	}

    .pb-ptc__cta:hover {
        background: #db842d;
    }

    .pb-ptc__details:hover {
        color: var(--pb-ptc-accent) !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pb-ptc__zoom-button img,
    .pb-ptc-lightbox {
        transition: none;
    }
}

@media (max-width: 480px) {
    .pb-ptc-lightbox {
        padding: 14px;
    }

    .pb-ptc-lightbox__content {
        max-width: calc(100vw - 28px);
        max-height: calc(100dvh - 28px);
    }

    .pb-ptc-lightbox__image {
        max-height: calc(100dvh - 84px);
    }
}

@media (max-width: 767px) {
    .pb-ptc {
        margin: 1.5rem auto 2.75rem;
    }

    .pb-ptc__table-wrap {
        overflow: visible;
    }

    .pb-ptc__table {
        min-width: 0;
        border-collapse: separate;
        border-spacing: 0 10px;
        background: transparent;
    }

    .pb-ptc__table thead {
        display: none;
    }

    .pb-ptc__table tbody {
        display: block;
    }

    .pb-ptc__row {
        display: grid;
        grid-template-columns: 46px minmax(0, 1fr);
        width: 100%;
        margin: 0 0 10px;
        padding: 12px;
        overflow: hidden;
        border: 1px solid var(--pb-ptc-line);
        border-radius: 8px;
        background: #fff;
        box-shadow: 0 3px 10px rgba(25, 26, 30, .08);
    }

    .pb-ptc__row:last-child {
        margin-bottom: 0;
    }

    .pb-ptc__row > td {
        display: block;
        width: auto !important;
        padding: 4px 0;
        border: 0;
        background: transparent;
        text-align: left;
    }

    .pb-ptc__row > td:first-child {
        grid-column: 1;
        grid-row: 1 / span 2;
        padding-right: 8px;
        text-align: center;
    }

    .pb-ptc__row > td:nth-child(2) {
        grid-column: 2;
        grid-row: 1;
    }

    .pb-ptc__price {
        display: flex !important;
        grid-column: 2;
        grid-row: 2;
        align-items: baseline;
        justify-content: space-between;
        gap: 10px;
        margin-top: 4px;
        border-top: 1px solid #f0f0f0 !important;
        padding-top: 8px !important;
    }

    .pb-ptc__price::before {
        color: var(--pb-ptc-muted);
        content: attr(data-label);
        font-size: 10px;
        font-weight: 700;
    }

    .pb-ptc__rank {
        min-width: 34px;
        min-height: 28px;
        font-size: 12px;
    }

    .pb-ptc__card {
        align-items: flex-start;
        gap: 10px;
    }

    .pb-ptc__media {
        width: 62px;
        height: 86px;
        flex-basis: 62px;
    }

    .post_content .pb-ptc .pb-ptc__identity h3,
    .pb-ptc .pb-ptc__identity h3 {
        font-size: 14px !important;
        line-height: 1.45 !important;
    }

    .pb-ptc__identity p {
        font-size: 10px;
    }

    .pb-ptc__price strong {
        font-size: 16px;
    }

    .pb-ptc__table-wrap figcaption {
        margin-top: 6px;
        font-size: 9px;
    }

    .pb-ptc__actions {
        align-items: stretch;
        flex-direction: column;
        margin-top: 16px;
        text-align: center;
    }

    .pb-ptc__cta {
        width: 100%;
        min-height: 44px;
    }

    .pb-ptc.is-list .pb-ptc__row {
        grid-template-columns: minmax(0, 1fr);
    }

    .pb-ptc.is-list .pb-ptc__row > td:first-child {
        grid-column: 1;
        grid-row: 1;
        padding-right: 0;
        text-align: left;
    }

    .pb-ptc.is-list .pb-ptc__price {
        grid-column: 1;
        grid-row: 2;
    }

    .pb-ptc.is-list .pb-ptc__media {
        width: 72px;
        height: 100px;
        flex-basis: 72px;
    }
}
