/* Product comparison: preserve the existing product-table appearance and components.
   Shared styles still supply the page width, header, headings and paragraphs. */
.product-guide-page .product-comparison {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 24px;
}
.product-guide-page .product-cost-column { width: 14%; }
.product-guide-page .product-overview-column { width: 48%; }
.product-guide-page .product-comparison thead th {
    padding: 8px 4px;
    font-size: 13px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}
.product-guide-page .product-comparison tbody > tr > td,
.product-guide-page .product-comparison tbody > tr > th {
    background: #fff;
    border-top: 1px solid #a7acc2;
    border-bottom: 1px solid #a7acc2;
    vertical-align: top;
    overflow-wrap: anywhere;
}
.product-guide-page .product-comparison .product-cost {
    width: auto;
    border-left: 1px solid #a7acc2;
    padding: 20px 12px;
    vertical-align: middle;
}
.product-guide-page #main .product-cost p {
    font-size: 14px;
    line-height: 1.7;
    font-weight: normal;
}
.product-guide-page .product-comparison .product-overview {
    padding: 12px 12px 16px 0;
    font-weight: normal;
    text-align: left;
}
/* Two data rows form one product: its price spans both; prose spans the
   product and six use columns. Cosmetic spacing is outside those two rows. */
.product-guide-page .product-group::after {
    content: "";
    display: table-row;
    height: 8px;
}
.product-guide-page .product-comparison .product-summary-row > :not(.product-cost) {
    border-bottom: 0;
}
.product-guide-page .product-comparison .product-copy {
    padding: 0 16px 16px 0;
    border-top: 0;
    border-right: 1px solid #a7acc2;
}
/* Reuse the original pale-blue product-name band rather than a new heading. */
.product-guide-page .proarea_proname {
    width: auto;
    height: auto;
    min-height: 26px;
    padding: 8px;
    margin-bottom: 16px;
    background-clip: border-box;
}
.product-guide-page .product-description {
    display: grid;
    grid-template-columns: minmax(0, 176px) minmax(112px, 1fr);
    gap: 16px;
    align-items: center;
    margin-bottom: 16px;
}
.product-guide-page .product-description > div { min-width: 0; }
.product-guide-page .product-thumbnail img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}
.product-guide-page .proarea_link ul {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
    margin: 0;
    padding: 0;
}
.product-guide-page #main .proarea_link a {
    display: inline-block;
}
.product-guide-page .product-copy details { margin: 12px 0 0; }
.product-guide-page .product-copy summary {
    cursor: pointer;
    color: #3C4F91;
    padding: 4px 0;
}
.product-guide-page .product-features { font-size: 17px; line-height: 1.8; }
.product-guide-page .product-features dt { font-weight: bold; margin: 12px 0 4px; }
.product-guide-page .product-features dd { margin: 0 0 16px; }
.product-guide-page .product-features dd span { display: block; color: #65719A; }
.product-guide-page .product-comparison .product-use {
    width: auto;
    padding: 20px 4px 12px;
}
.product-guide-page .product-use:last-child { border-right: 1px solid #a7acc2; }
.product-guide-page .product-use-label {
    display: block;
    width: auto;
    height: auto;
    min-height: 40px;
}
.product-guide-page .product-use-mark {
    display: block;
    height: auto;
    min-height: 26px;
    padding: 6px 0;
}
.product-guide-page .product-use .ptbl_procate_jirei { height: auto; }
.product-guide-page #main .product-use .ptbl_procate_jirei a {
    height: auto;
    min-height: 54px;
    margin-top: 8px;
    padding: 6px 3px;
}
.product-guide-page .product-group[id] { scroll-margin-top: 80px; }
.product-guide-page .flpr { width: auto; }
.product-guide-page .flpr_item { max-width: 100%; }
@media screen and (max-width: 834px) {
    .product-guide-page .product-comparison { display: block; }
    .product-guide-page .product-comparison colgroup { display: none; }
    .product-guide-page .product-comparison thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }
    .product-guide-page .product-comparison .product-group {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        margin: 0 0 24px;
        padding: 12px;
        border: 1px solid #a7acc2;
        background: #fff;
    }
    .product-guide-page .product-group::after { display: none; }
    .product-guide-page .product-comparison .product-group > tr {
        display: contents;
    }
    .product-guide-page .product-comparison .product-overview {
        grid-column: 1 / -1;
        grid-row: 1;
        padding: 0 0 12px;
        border: 0;
    }
    .product-guide-page .product-comparison .product-cost {
        grid-column: 1 / -1;
        grid-row: 3;
        padding: 12px 0 4px;
        border: 0;
        border-top: 1px solid #d9ddea;
    }
    .product-guide-page .product-comparison .product-copy {
        grid-column: 1 / -1;
        grid-row: 2;
        border: 0;
        padding: 0 0 12px;
    }
    .product-guide-page .product-comparison .product-use {
        padding: 12px 4px;
        border: 0;
        border-top: 1px solid #d9ddea;
    }
    .product-guide-page .product-use-label { min-height: 20px; }
}

/* Accepted product comparison adjustments. */
.product-guide-page .product-scale-column { width: 3%; }
.product-guide-page .product-cost-column { width: 11%; }
.product-guide-page .product-comparison .product-price-axis {
    position: relative;
    width: auto;
    height: auto;
    padding: 0;
    border: 0;
    background: transparent;
}
/* Preserve valid row groups: each segment spans its own product's two rows.
   The 8px extension joins the existing spacing into one continuous scale. */
.product-guide-page .product-price-axis:not(.is-empty)::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: -8px;
    left: 0;
    width: 80%;
    background: url('common_img/bg_blue_check.png') repeat;
    z-index: 1;
}
.product-guide-page .product-price-axis.scale-first::before {
    clip-path: polygon(0 8px, 50% 0, 100% 8px, 100% 100%, 0 100%);
}
.product-guide-page .product-price-axis.scale-last::before {
    bottom: 0;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), 50% 100%, 0 calc(100% - 8px));
}
.product-guide-page .product-scale-label {
    position: absolute;
    left: 0;
    width: 80%;
    font-size: 10px;
    font-weight: bold;
    line-height: 1.7;
    color: #fff;
    text-align: center;
    z-index: 2;
}
.product-guide-page .scale-first .product-scale-label { top: 16px; }
.product-guide-page .scale-last .product-scale-label { bottom: 16px; }
@media screen and (max-width: 834px) {
    .product-guide-page .product-comparison .product-price-axis { display: none; }
}
.product-guide-page .proarea_proname {
    width: 100%;
    box-sizing: border-box;
    margin-right: auto;
    margin-left: auto;
    padding-top: 4px;
    padding-bottom: 4px;
}
@media screen and (min-width: 835px) {
    /* Shrink the whole product column, not only its title band:
       48% x 80% = 38.4%; the six use columns share the released width. */
    .product-guide-page .product-overview-column { width: 38.4%; }
}
.product-guide-page .product-description {
    grid-template-columns: minmax(0, 176px) minmax(156px, 1fr);
    margin-bottom: 8px;
}
.product-guide-page .product-thumbnail img {
    width: 176px;
    max-width: 100%;
    height: auto;
    margin: 0;
}
/* Halve only the short-copy spacing; keep font size and line height shared. */
.product-guide-page .product-comparison .product-overview { padding-bottom: 8px; }
.product-guide-page .product-comparison .product-copy { padding-bottom: 8px; }
.product-guide-page #main .product-copy > p.tok { padding-bottom: 8px; }
.product-guide-page #main .product-copy > p.tok:has(+ details) { padding-bottom: 2px; }
.product-guide-page .product-copy details { margin-top: 1px; }
.product-guide-page .product-copy summary { padding-top: 1px; padding-bottom: 2px; }
@media screen and (max-width: 834px) {
    .product-guide-page .product-comparison .product-overview,
    .product-guide-page .product-comparison .product-copy { padding-bottom: 6px; }
}
.product-guide-page .proarea_link ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.product-guide-page .proarea_link li { display: flex; min-width: 0; }
.product-guide-page #main .proarea_link a,
.product-guide-page #main .proarea_link .dissable {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    padding: 6px 4px;
    text-align: center;
    line-height: 20px;
    word-break: keep-all;
    overflow-wrap: normal;
}

/* Keep the existing product-thumbnail component in two columns on compact screens. */
@media screen and (max-width: 834px) {
    .product-guide-page .flpr {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .product-guide-page .flpr_item {
        min-width: 0;
    }
    .product-guide-page .flpr_item_name {
        overflow-wrap: anywhere;
    }
    .product-guide-page .flpr_item_thumbnail {
        position: relative;
    }
    .product-guide-page .flpr_item_thumbnail img {
        display: block;
    }
    .product-guide-page .flpr_item_thumbnail .discon {
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        padding: 0;
        box-sizing: border-box;
    }
}
