@charset "utf-8";

.product-card {
    --product-text-size: 18px;
    container-type: inline-size;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    grid-template-areas: "headline headline" "details visual";
    gap: 28px;
    align-items: start;
    min-width: 0;
    margin: 0;
    padding: var(--product-card-padding-block, 36px) var(--product-card-padding-inline, 36px);
    border: 1px solid var(--product-card-border, #9273ac);
    border-radius: var(--product-card-radius, 20px);
    background-color: var(--product-card-paper, #f3ebdd);
    color: var(--product-card-ink, #3b2c28);
    font-family: "Noto Sans JP", sans-serif;
}

.product-card__headline {
    grid-area: headline;
    min-width: 0;
    margin: 0;
    font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
    font-size: clamp(26px, 5vw, 44px);
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    overflow-wrap: break-word;
    text-wrap: balance;
}

.product-card__visual {
    grid-area: visual;
    justify-self: center;
    width: 100%;
    max-width: 300px;
}

.product-card__visual--pair {
    display: grid;
    grid-template-columns: minmax(0, 0.6fr) minmax(0, 1fr);
    gap: 12px;
    align-items: end;
}

.product-card__visual img {
    display: block;
    width: 100%;
    height: auto;
}

.product-card__visual--single {
    display: grid;
    align-self: center;
    justify-items: center;
}

.product-card__visual.product-card__visual--single > img {
    width: auto;
    max-width: 100%;
    max-height: 400px;
}

.product-card__details {
    grid-area: details;
    display: grid;
    gap: 24px;
    min-width: 0;
    text-align: left;
}

.product-card__description,
.product-card__name {
    margin: 0;
    font-size: var(--product-text-size);
    line-break: strict;
    overflow-wrap: break-word;
}

.product-card__description {
    font-weight: 400;
    line-height: 1.9;
    text-wrap: pretty;
}

.product-card--notes .product-card__description,
.product-card--left-copy .product-card__description {
    text-align: left;
}

.product-card__description + .product-card__description {
    margin-top: 0.7em;
}

.product-card__ref {
    font-size: 0.62em;
    font-weight: 400;
    line-height: 0;
    vertical-align: super;
    white-space: nowrap;
}

.product-card__headline .product-card__ref {
    font-size: 0.6em;
    font-weight: 600;
}

.product-card__term {
    white-space: nowrap;
}

.product-card__notes {
    margin: 6px 0 0;
    font-size: clamp(8px, 2cqw, 11px);
    font-weight: 400;
    line-height: 1.4;
    text-align: left;
    text-wrap: balance;
}

.product-card__notes > span {
    display: block;
}

.product-card__name {
    font-weight: 500;
    line-height: 1.7;
    text-wrap: balance;
}

.product-card__name-unit {
    display: inline-block;
}

.product-details {
    display: grid;
    align-items: center;
    justify-self: center;
    width: min(100%, 227px);
    min-height: 44px;
    border-radius: 999px;
}

.product-details img {
    display: block;
    width: 100%;
    height: auto;
}

.product-details:focus-visible {
    outline: 3px solid var(--product-card-border, #9273ac);
    outline-offset: 4px;
}

@media (max-width: 640px) {
.product-card {
    --product-text-size: 16px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "headline" "visual" "details";
    gap: 24px;
}

.product-card__headline--mobile-lines > span {
    display: block;
}

.product-card__visual {
    width: 75%;
    max-width: 240px;
}

.product-card__visual.product-card__visual--single > img {
    max-height: 320px;
}
}
