.bookgoods-hero,
.bookgoods-section,
.bookgoods-story {
    box-sizing: border-box;
    width: calc(100% - 40px);
    max-width: 1090px;
    margin-right: auto;
    margin-left: auto;
    color: #302c27;
}

.bookgoods-hero {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    align-items: center;
    gap: 40px;
    margin-top: 24px;
    margin-bottom: 48px;
    padding: 40px 48px;
    background: #f5f0e7;
}

.bookgoods-kicker {
    margin: 0 0 16px;
    color: #7b5933;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
}

.bookgoods-hero h2 {
    margin: 0 0 20px;
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 700;
    line-height: 1.55;
    letter-spacing: .03em;
}

.bookgoods-hero__description {
    margin: 0 0 28px;
    font-size: 15px;
    line-height: 2;
}

.bookgoods-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px 24px;
}

.bookgoods-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 12px 24px;
    border: 1px solid #302c27;
    background: #302c27;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;
    text-align: center;
    text-decoration: none;
}

.bookgoods-button:hover {
    background: #554738;
    color: #fff;
    text-decoration: none;
}

.bookgoods-text-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 12px;
    color: #302c27;
    font-size: 14px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.bookgoods-hero__visual {
    width: 100%;
    max-width: 360px;
    margin: 0;
    justify-self: end;
}

.bookgoods-hero__visual a {
    display: block;
    color: #302c27;
}

.bookgoods-hero__visual img {
    display: block;
    width: 100%;
    height: auto;
}

.bookgoods-hero__visual figcaption {
    margin-top: 12px;
    font-size: 12px;
    line-height: 1.6;
    text-align: right;
}

.bookgoods-section {
    margin-bottom: 56px;
    scroll-margin-top: 24px;
}

.bookgoods-section__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.bookgoods-section h2,
.bookgoods-story h2 {
    margin: 0;
    font-size: 23px;
    font-weight: 700;
    line-height: 1.6;
}

.bookgoods-sizes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.bookgoods-size {
    position: relative;
    display: flex;
    min-height: 90px;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 16px 40px 16px 20px;
    border: 1px solid #ded8cf;
    color: #302c27;
    text-decoration: none;
}

.bookgoods-size:hover {
    border-color: #7b5933;
    background: #faf7f1;
    color: #302c27;
    text-decoration: none;
}

.bookgoods-size__name { font-size: 16px; font-weight: 700; }
.bookgoods-size__description { color: #6e655c; font-size: 12px; }
.bookgoods-size__arrow { position: absolute; right: 18px; font-size: 18px; }

.bookgoods-products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.bookgoods-product { display: block; color: #302c27; text-decoration: none; }
.bookgoods-product:hover { color: #7b5933; text-decoration: none; }
.bookgoods-product__image { padding: 8px; border: 1px solid #eeeae4; background: #fff; }
.bookgoods-product__image img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.bookgoods-product h3 { min-height: 3.6em; margin: 14px 0 8px; font-size: 14px; font-weight: 500; line-height: 1.8; }
.bookgoods-product__price { margin: 0 0 8px; font-size: 18px; font-weight: 700; line-height: 1.6; }
.bookgoods-product__price > span { margin-left: 4px; font-size: 11px; font-weight: 400; }
.bookgoods-product__detail { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid #ded8cf; font-size: 12px; }
.bookgoods-product__tags { display: flex; min-height: 22px; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.bookgoods-product__tags > span { padding: 2px 6px; border: 1px solid #ded8cf; font-size: 11px; line-height: 1.5; }

.bookgoods-story {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 56px;
    padding: 28px 32px;
    border-left: 4px solid #b6925a;
    background: #f5f0e7;
}

.bookgoods-story .bookgoods-kicker { margin-bottom: 8px; }
.bookgoods-story p:last-child { margin: 12px 0 0; font-size: 14px; line-height: 1.8; }
.bookgoods-story .bookgoods-button { flex-shrink: 0; }
.bookgoods-button--outline { background: transparent; color: #302c27; }

.bookgoods-button:focus-visible,
.bookgoods-text-link:focus-visible,
.bookgoods-size:focus-visible,
.bookgoods-product:focus-visible,
.bookgoods-hero__visual a:focus-visible { outline: 3px solid #80612e; outline-offset: 4px; }

@media (max-width: 767px) {
    .bookgoods-hero,
    .bookgoods-section,
    .bookgoods-story { width: calc(100% - 32px); }
    .bookgoods-hero { grid-template-columns: 1fr; gap: 0; margin-top: 16px; margin-bottom: 32px; padding: 26px 24px; }
    .bookgoods-hero h2 { font-size: 28px; }
    .bookgoods-hero__description { font-size: 14px; margin-bottom: 20px; }
    .bookgoods-hero__visual { display: none; }
    .bookgoods-actions { gap: 8px 20px; }
    .bookgoods-section { margin-bottom: 36px; }
    .bookgoods-section__heading { flex-wrap: wrap; gap: 4px 12px; margin-bottom: 16px; }
    .bookgoods-section h2,
    .bookgoods-story h2 { font-size: 20px; }
    .bookgoods-sizes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .bookgoods-size { padding: 14px 28px 14px 12px; }
    .bookgoods-size__name { font-size: 14px; }
    .bookgoods-size__description { font-size: 11px; }
    .bookgoods-size__arrow { right: 10px; font-size: 16px; }
    .bookgoods-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
    .bookgoods-product h3 { min-height: 5.4em; font-size: 13px; }
    .bookgoods-product__price { font-size: 17px; }
    .bookgoods-story { align-items: flex-start; flex-direction: column; gap: 20px; margin-bottom: 36px; padding: 24px; }
    .bookgoods-story .bookgoods-button { width: 100%; }
}
