/* ==========================================================================
   Pricing Example：サムネイル（数字ポスター）＋ サマリーカード（金額ハイライト）
   markup / 色の定義: inc/oyatech-services.php（oyatech_render_price_poster / oyatech_get_price_themes）
   差し色は要素の style 属性の CSS 変数（--pc-from / --pc-to / --pc-ink / --pc-soft / --pc-tint / --pc-on / --pc-rgb）で受け取る。
   ※ 元に戻すときは、oyatech_render_portfolio_card_thumb() 内の oyatech_render_price_poster() 呼び出し、
      single-price.php のポスター／サマリーカード、web-product-lp.php のポスター呼び出しを外す（画像表示に戻る）。
   ========================================================================== */

/* ---------- 金額（ポスター／サマリー共通） ---------- */
.oy-amt {
    display: inline-flex;
    align-items: baseline;
    gap: 0.06em;
    white-space: nowrap;
    line-height: 1;
}

.oy-amt__num {
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    padding-bottom: 0.08em;
    color: var(--pc-from, #3f4a54);
    /* 横幅の140%でグラデーションを作り、いちばん明るい端を使わない（淡い色でも読みやすく） */
    background-image: linear-gradient(100deg, var(--pc-from, #3f4a54) 0%, var(--pc-to, #6c7782) 100%);
    background-size: 140% 100%;
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.oy-amt__cur,
.oy-amt__unit {
    font-weight: 800;
    color: var(--pc-ink, #2a3138);
    letter-spacing: 0;
}

.oy-amt__cur {
    font-size: 0.5em;
    margin-right: 0.08em;
}

.oy-amt__unit {
    font-size: 0.38em;
    margin-left: 0.14em;
}

.oy-amt--plain .oy-amt__num {
    font-size: 0.55em;
    letter-spacing: -0.01em;
    white-space: normal;
}

/* ==========================================================================
   サムネイル：数字ポスター（16:9）
   文字サイズはポスター自身の幅（cqw）基準。一覧・詳細・LP のどの大きさでも同じ構図で縮尺する
   ========================================================================== */
.oy-pp {
    position: relative;
    display: block;
    box-sizing: border-box;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    container-type: inline-size;
    text-align: left;
    text-decoration: none;
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 40%, var(--pc-soft, #f6f7f8) 100%);
    color: #1f2732;
}

.oy-pp__deco {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* 右側の同心円（ごく淡い）。左右非対称のあしらい */
.oy-pp__ring {
    position: absolute;
    right: -15cqw;
    top: 56%;
    width: 52cqw;
    aspect-ratio: 1;
    transform: translateY(-50%);
    border-radius: 50%;
    border: 0.3cqw solid rgba(var(--pc-rgb, 63, 74, 84), 0.13);
    box-shadow:
        0 0 0 6cqw rgba(var(--pc-rgb, 63, 74, 84), 0.035),
        0 0 0 13cqw rgba(var(--pc-rgb, 63, 74, 84), 0.02);
}

/* 左端のグラデーション帯 */
.oy-pp__bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0.9cqw;
    opacity: 0.6;
    background: linear-gradient(180deg, var(--pc-from, #3f4a54) 0%, var(--pc-to, #6c7782) 100%);
}

.oy-pp__in {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 5.6cqw 7cqw 5.4cqw 8.4cqw;
}

.oy-pp__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2cqw;
}

.oy-pp__tag {
    display: inline-block;
    padding: 0.9cqw 2.6cqw;
    border-radius: 999px;
    background-image: linear-gradient(90deg, var(--pc-from, #3f4a54) 0%, var(--pc-to, #6c7782) 100%);
    color: var(--pc-on, #fff);
    font-size: max(6px, 2.5cqw);
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.5;
    white-space: nowrap;
}

.oy-pp__kind {
    font-size: max(5px, 1.9cqw);
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(31, 39, 50, 0.36);
    white-space: nowrap;
}

.oy-pp__main {
    display: block;
}

.oy-pp__cap {
    display: block;
    font-size: max(6px, 2.5cqw);
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--pc-ink, #2a3138);
    opacity: 0.85;
    line-height: 1.4;
}

.oy-pp__amt {
    display: flex;
    align-items: baseline;
    gap: 2.2cqw;
    margin-top: 1.2cqw;
    font-size: 17cqw;
    line-height: 1;
}

.oy-pp__note {
    font-size: max(6px, 2.5cqw);
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--pc-ink, #2a3138);
    padding: 0.5cqw 1.8cqw;
    border-radius: 999px;
    background: var(--pc-tint, #e9ecef);
    white-space: nowrap;
    align-self: center;
}

.oy-pp__foot {
    display: flex;
    align-items: baseline;
    gap: 2.4cqw;
    padding-top: 2.2cqw;
    border-top: 0.25cqw solid rgba(31, 39, 50, 0.1);
    font-size: max(6px, 2.5cqw);
    line-height: 1.4;
}

.oy-pp__foot-label {
    font-weight: 600;
    color: rgba(31, 39, 50, 0.5);
    white-space: nowrap;
}

.oy-pp__foot-value {
    font-weight: 700;
    color: rgba(31, 39, 50, 0.86);
}

/* ---------- 置き場所ごとの収まり ---------- */

/* 一覧カード（styles.css の既定：余白つき枠に img が入る形） */
.portfolio-gallery .portfolio-img > .oy-pp {
    height: 100%;
    aspect-ratio: auto;
    border-radius: 8px;
    box-shadow:
        inset 0 0 0 1px rgba(0, 0, 0, 0.06),
        0 4px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

/* 一覧（Works / Pricing）・サービスページ内カード：タブレット・スマホ幅（1064px以下）は枠いっぱいに敷く（img と同じ扱い） */
@media screen and (max-width: 1064px) {
    .works-detail-main .portfolio-gallery .portfolio-img > .oy-pp,
    .pricing-section .service-portfolio-gallery .portfolio-img > .oy-pp {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        aspect-ratio: auto;
        border-radius: 8px;
        box-shadow:
            0 0 0 1px rgba(31, 39, 50, 0.06),
            0 4px 14px rgba(31, 39, 50, 0.14);
    }
}

@media screen and (max-width: 767px) {
    .works-detail-main .portfolio-gallery .portfolio-img > .oy-pp {
        border-radius: 8px;
    }
}

/* 詳細ページのアイキャッチ */
.portfolio-detail-thumb > .oy-pp {
    border-radius: 8px;
    box-shadow: none;
}

/* 詳細ページのポスター枠：既定の「左上・右下だけ角丸」を上書きして四隅すべて 8px（トップページの枠と同じ） */
.portfolio-detail-thumb.is-poster {
    border-radius: 8px;
}

/* Web Product LP の料金カード */
.wpd-price__media > .oy-pp {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
}

/* ==========================================================================
   サマリーカード：金額ハイライト
   左＝総予算（大）＋期間、右＝カテゴリ・種別・クライアント・納品物
   ========================================================================== */
.price-summary-panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
    margin: 0 0 44px;
    padding: 0;
    text-align: left;
    background: #ffffff;
    border: 1px solid rgba(31, 39, 50, 0.08);
    border-radius: 8px;
    box-shadow:
        0 1px 2px rgba(31, 39, 50, 0.04),
        0 12px 32px rgba(31, 39, 50, 0.07);
    overflow: hidden;
    color: #1f2732;
}

/* 項目リストのみ（ポスターに金額・期間がある記事）：1カラム */
.price-summary-panel.is-list-only {
    grid-template-columns: minmax(0, 1fr);
}

.price-summary-panel.is-list-only .price-summary-panel__details {
    border-left: 0;
    padding: 12px 34px;
}

/* 左：ハイライト */
.price-summary-panel__hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 32px 30px 30px 32px;
    background: linear-gradient(160deg, var(--pc-soft, #f6f7f8) 0%, #ffffff 100%);
}

.price-summary-panel__hero-label {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--pc-ink, #2a3138);
    line-height: 1.5;
}

.price-summary-panel__hero-amount {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin: 0;
    font-size: 58px;
    line-height: 1;
}

.price-summary-panel__hero-note {
    display: inline-block;
    padding: 3px 11px;
    border-radius: 999px;
    background: var(--pc-tint, #e9ecef);
    color: var(--pc-ink, #2a3138);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.5;
}

.price-summary-panel__hero-period {
    margin: 14px 0 0;
    padding-top: 14px;
    border-top: 1px solid rgba(31, 39, 50, 0.1);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.price-summary-panel__hero-period dt,
.price-summary-panel__hero-period-label {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: rgba(31, 39, 50, 0.5);
    line-height: 1.5;
}

.price-summary-panel__hero-period-value {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0;
    color: rgba(31, 39, 50, 0.9);
    line-height: 1.4;
}

/* 右：項目リスト（仕様書のような罫線つき） */
.price-summary-panel__details {
    margin: 0;
    padding: 14px 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid rgba(31, 39, 50, 0.07);
}

.price-summary-panel__item {
    display: grid;
    grid-template-columns: 8.5em minmax(0, 1fr);
    column-gap: 16px;
    align-items: baseline;
    margin: 0;
    padding: 13px 0;
    border-top: 1px solid rgba(31, 39, 50, 0.07);
}

.price-summary-panel__item:first-child {
    border-top: 0;
}

.price-summary-panel__item dt {
    margin: 0;
    padding: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.6;
    color: rgba(31, 39, 50, 0.48);
    background: none;
    -webkit-text-fill-color: currentColor;
}

.price-summary-panel__item dt::before,
.price-summary-panel__item dt::after {
    content: none;
}

.price-summary-panel__item dd {
    margin: 0;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.65;
    color: rgba(31, 39, 50, 0.86);
    overflow-wrap: anywhere;
}

/* カテゴリはチップ表示（差し色） */
.price-summary-panel__chip {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 999px;
    background-image: linear-gradient(90deg, var(--pc-from, #3f4a54) 0%, var(--pc-to, #6c7782) 100%);
    color: var(--pc-on, #fff);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1.6;
}

@media screen and (max-width: 1064px) {
    .price-summary-panel {
        grid-template-columns: minmax(0, 1fr);
        margin-bottom: 28px;
        border-radius: 8px;
    }

    .price-summary-panel__hero {
        padding: 20px 18px 18px;
        gap: 8px;
    }

    .price-summary-panel__hero-label {
        font-size: 10.5px;
    }

    .price-summary-panel__hero-amount {
        font-size: 44px;
    }

    .price-summary-panel__hero-note {
        font-size: 10px;
        padding: 2px 9px;
    }

    .price-summary-panel__hero-period {
        flex-direction: row;
        align-items: baseline;
        gap: 12px;
        margin-top: 8px;
        padding-top: 10px;
    }

    .price-summary-panel__hero-period dt,
    .price-summary-panel__hero-period-label {
        font-size: 9.5px;
    }

    .price-summary-panel__hero-period-value {
        font-size: 14px;
    }

    .price-summary-panel__details {
        padding: 6px 18px 8px;
        border-left: 0;
        border-top: 1px solid rgba(31, 39, 50, 0.07);
    }

    .price-summary-panel.is-list-only .price-summary-panel__details {
        padding: 6px 18px 8px;
        border-top: 0;
    }

    .price-summary-panel__item {
        grid-template-columns: 6.8em minmax(0, 1fr);
        column-gap: 10px;
        padding: 10px 0;
    }

    .price-summary-panel__item dt {
        font-size: 9.5px;
        letter-spacing: 0.04em;
    }

    .price-summary-panel__item dd {
        font-size: 11.5px;
        line-height: 1.6;
    }

    .price-summary-panel__chip {
        font-size: 10.5px;
        padding: 2px 10px;
    }
}
