.uremono-ranking-report-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 28px;
    align-items: start;
    max-width: 1180px;
    margin: 0 auto;
}

.uremono-ranking-report-main,
.uremono-ranking-sidebar,
.uremono-ranking-index {
    min-width: 0;
}

.uremono-ranking-report-intro,
.uremono-ranking-summary,
.uremono-ranking-report-analysis,
.uremono-ranking-report-items,
.uremono-ranking-report-method,
.uremono-ranking-report-notes,
.uremono-ranking-index-intro,
.uremono-ranking-index-latest,
.uremono-ranking-index-history,
.uremono-ranking-index-method {
    margin-bottom: 24px;
}

.uremono-ranking-report-section-title,
.uremono-ranking-index-heading {
    margin-bottom: 14px;
    padding-bottom: 7px;
    border-bottom: 4px solid #58738f;
    overflow-wrap: anywhere;
}

.uremono-ranking-sidebar-heading {
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 3px solid #58738f;
    overflow-wrap: anywhere;
}

.uremono-ranking-report-period,
.uremono-ranking-index-period {
    font-weight: 700;
    color: #173a67;
}

.uremono-ranking-report-periods {
    display: grid;
    gap: 8px;
    margin: 0;
}

.uremono-ranking-report-periods > .uremono-ranking-report-period-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    align-items: baseline;
    margin: 0;
}

.uremono-ranking-report-period-label {
    color: #667085;
    font-size: .82rem;
    font-weight: 700;
    white-space: nowrap;
}

.uremono-ranking-report-intro > .uremono-ranking-report-section-title {
    margin-bottom: 12px;
}

.uremono-ranking-report-intro > .uremono-ranking-report-description {
    margin: 16px 0 0;
}

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

.uremono-ranking-summary-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    padding: 16px;
    border: 1px solid #dbe4ef;
    border-radius: 10px;
    background: #fff;
}

.uremono-ranking-summary-label,
.uremono-ranking-summary-detail {
    color: #5d6b7d;
    font-size: .85rem;
}

.uremono-ranking-summary-value,
.uremono-ranking-item-stat-line {
    overflow-wrap: anywhere;
    font-variant-numeric: tabular-nums;
}

.uremono-ranking-report-analysis {
    padding: 18px 20px;
    border-left: 4px solid #276cc0;
    background: #f4f8fd;
}

.uremono-ranking-item-card {
    display: grid;
    grid-template-columns: 72px 96px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    margin-bottom: 8px;
    padding: 12px 16px;
    border: 1px solid #dbe4ef;
    border-radius: 12px;
    background: #fff;
}

.uremono-ranking-item-card.uremono-ranking-report-item--has-actions {
    grid-template-columns: 72px 96px minmax(0, 1fr) 142px;
}

.uremono-ranking-item-rank {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    justify-content: center;
    text-align: left;
    align-self: start;
    grid-column: 1;
    grid-row: 1;
}

.uremono-ranking-item-rank strong {
    font-size: 1.08rem;
    white-space: nowrap;
}

.uremono-ranking-item-movement {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 8px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #f8fafc;
    color: #475569;
    font-size: .82rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.uremono-ranking-item-movement--up {
    border-color: #a7d7b5;
    background: #edf9f0;
    color: #18733a;
}

.uremono-ranking-item-movement--down {
    border-color: #efb4b4;
    background: #fff1f1;
    color: #b42318;
}

.uremono-ranking-item-movement--same {
    border-color: #cbd5e1;
    background: #f1f5f9;
    color: #475569;
}

.uremono-ranking-item-movement--comparison-unavailable {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #475569;
}

.uremono-ranking-report-legend {
    margin: 8px 0 14px;
    color: #475569;
    font-size: .82rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.uremono-ranking-item-movement--new {
    border-color: #f0a9c3;
    background: #fff0f6;
    color: #b42367;
}

.uremono-ranking-item-movement--return {
    border-color: #9fc5ee;
    background: #eef6ff;
    color: #175ea8;
}

.uremono-ranking-item-media,
.uremono-ranking-index-latest-media,
.uremono-ranking-index-card__media {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.uremono-ranking-item-media {
    align-self: start;
    grid-column: 2;
    grid-row: 1;
}

.uremono-ranking-report-item__image-link {
    display: flex;
    width: 100%;
    max-width: 96px;
    align-items: center;
    justify-content: center;
    transition: opacity .18s ease;
}

.uremono-ranking-report-item__image-link:hover {
    opacity: .86;
}

.uremono-ranking-item-image {
    display: block;
    width: 100%;
    max-width: 96px;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

.uremono-ranking-item-image-placeholder {
    display: block;
    width: 100%;
    max-width: 96px;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    background: #eef2f6;
}

.uremono-ranking-index-image,
.uremono-ranking-index-card__image {
    display: block;
    width: 100%;
    max-width: 100px;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

.uremono-ranking-index-image-placeholder {
    display: block;
    width: 100%;
    max-width: 100px;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    background: #eef2f6;
}

.uremono-ranking-index-card__image-link {
    display: flex;
    width: 100%;
    max-width: 100px;
    align-items: center;
    justify-content: center;
    transition: opacity .18s ease, transform .18s ease;
}

.uremono-ranking-index-card__image-link:hover {
    opacity: .88;
    transform: scale(1.02);
}

.uremono-ranking-item-name,
.uremono-ranking-item-link,
.uremono-ranking-index-first-item {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.uremono-ranking-item-content {
    display: grid;
    gap: 0;
    align-self: start;
    min-width: 0;
    grid-column: 3;
    grid-row: 1;
}

.uremono-ranking-item-content > .uremono-ranking-item-comparison-rank {
    margin: 0 0 4px;
    color: #173a67;
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.uremono-ranking-item-content > .uremono-ranking-item-name {
    margin: 0;
    padding: 0 10px;
    border: 0;
    border-radius: 7px;
    background: #f4f8fd;
    font-size: 1rem;
    line-height: 1.35;
    box-shadow: none;
}

.uremono-ranking-item-content > .uremono-ranking-item-name::before,
.uremono-ranking-item-content > .uremono-ranking-item-name::after {
    content: none;
}

.uremono-ranking-item-content > .uremono-ranking-item-shop {
    margin: 4px 0 0;
    color: #667085;
    font-size: .82rem;
    overflow-wrap: anywhere;
}

.uremono-ranking-item-stats {
    display: grid;
    gap: 4px;
    margin-top: 6px;
}

.uremono-ranking-item-stats > .uremono-ranking-item-stat-line {
    margin: 0;
    color: #344054;
    font-size: .88rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.uremono-ranking-item-stat-line--ranking {
    color: #173a67;
    font-weight: 700;
}

.uremono-ranking-item-stat-line--commerce {
    display: flex;
    flex-wrap: wrap;
    gap: 0 6px;
    align-items: baseline;
}

.uremono-ranking-item-price,
.uremono-ranking-item-review {
    min-width: 0;
}

.uremono-ranking-report-item__actions {
    display: grid;
    grid-column: 4;
    grid-row: 1;
    gap: 7px;
    align-self: center;
    min-width: 0;
}

.uremono-ranking-report-item__button {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    padding: 7px 8px;
    border: 1px solid #8bb7e8;
    border-radius: 7px;
    background: #fff;
    color: #175ea8;
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
}

.uremono-ranking-report-item__button--internal:hover {
    background: #eef6ff;
}

.uremono-ranking-report-item__button--rakuten {
    border-color: #bf0000;
    background: #bf0000;
    color: #fff;
}

.uremono-ranking-report-item__button--rakuten:hover {
    border-color: #990000;
    background: #990000;
    color: #fff;
}

.uremono-ranking-sidebar {
    position: sticky;
    top: 24px;
}

.uremono-ranking-sidebar-section {
    margin-bottom: 14px;
    padding: 14px;
    border: 1px solid #dbe4ef;
    border-radius: 10px;
    background: #fff;
}

.uremono-ranking-sidebar-list,
.uremono-ranking-report-note-list,
.uremono-ranking-index-history-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.uremono-ranking-sidebar-item,
.uremono-ranking-index-history-item {
    padding: 8px 0;
    border-bottom: 1px solid #edf1f5;
    overflow-wrap: anywhere;
}

.uremono-ranking-sidebar-item.is-disabled,
.uremono-ranking-report-navigation-previous.is-disabled,
.uremono-ranking-report-navigation-next.is-disabled {
    color: #8a94a3;
}

.uremono-ranking-report-navigation,
.uremono-ranking-index-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    margin-top: 24px;
}

.uremono-ranking-index {
    max-width: 980px;
    margin: 0 auto;
}

.uremono-ranking-index-latest,
.uremono-ranking-index-card {
    margin-bottom: 18px;
    padding: 16px;
    border: 1px solid #dbe4ef;
    border-radius: 12px;
    background: #fff;
}

.uremono-ranking-index-latest.is-neutral {
    display: block;
}

.uremono-ranking-index-card__header {
    display: flex;
    gap: 16px;
    align-items: baseline;
    justify-content: space-between;
    margin: 0 0 12px;
    padding: 0 0 8px;
    border-bottom: 2px solid #2f74bf;
}

.uremono-ranking-index-card__heading,
.uremono-ranking-index-card__period {
    margin: 0;
}

.uremono-ranking-index-card__heading {
    min-width: 0;
    color: #172b4d;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.uremono-ranking-index-card__period {
    flex: 0 0 auto;
    font-size: .88rem;
    line-height: 1.4;
    white-space: nowrap;
}

.uremono-ranking-index-card__body {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    min-width: 0;
}

.uremono-ranking-index-card--has-actions .uremono-ranking-index-card__body {
    grid-template-columns: 100px minmax(0, 1fr) 165px;
}

.uremono-ranking-index-card__info {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.uremono-ranking-index-card__rank-badge {
    justify-self: start;
    padding: 2px 7px;
    border-radius: 999px;
    background: #eef6ff;
    color: #173a67;
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.35;
}

.uremono-ranking-index-card__product-name,
.uremono-ranking-index-card__shop {
    margin: 0;
    overflow-wrap: anywhere;
}

.uremono-ranking-index-card__product-name {
    border: 0;
    background: none;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    box-shadow: none;
}

.uremono-ranking-index-card__name-link {
    color: #175ea8;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.uremono-ranking-index-card__shop {
    color: #667085;
    font-size: .82rem;
    line-height: 1.35;
}

.uremono-ranking-index-card__actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    align-self: center;
    min-width: 0;
}

.uremono-ranking-index-card__button {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    padding: 8px 7px;
    border: 1px solid #8bb7e8;
    border-radius: 7px;
    background: #fff;
    color: #175ea8;
    font-size: .75rem;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
}

.uremono-ranking-index-card__button--ranking {
    border-color: #0d4f9c;
    background: #0d4f9c;
    color: #fff;
}

.uremono-ranking-index-card__button--ranking:hover {
    border-color: #083f7d;
    background: #083f7d;
    color: #fff;
}

.uremono-ranking-index-card__button--internal:hover {
    background: #eef6ff;
}

.uremono-ranking-index-card__button--rakuten {
    border-color: #bf0000;
    background: #bf0000;
    color: #fff;
}

.uremono-ranking-index-card__button--rakuten:hover {
    border-color: #990000;
    background: #990000;
    color: #fff;
}

.uremono-ranking-index-primary-link,
.uremono-ranking-index-secondary-link,
.uremono-ranking-index-navigation-link,
.uremono-ranking-report-navigation-history {
    display: inline-flex;
    max-width: 100%;
    padding: 10px 16px;
    border-radius: 7px;
    background: #0d4f9c;
    color: #fff;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.uremono-ranking-index-history-content {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
}

.uremono-ranking-index-period-card {
    max-width: 620px;
    padding: 20px;
    border: 1px solid #dbe4ef;
    border-radius: 12px;
    background: #fff;
}

.uremono-ranking-index-period-card__header {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    align-items: baseline;
    justify-content: space-between;
}

.uremono-ranking-index-period-card__title,
.uremono-ranking-index-period-card__scope,
.uremono-ranking-index-period-card__description {
    margin: 0;
}

.uremono-ranking-index-period-card__schedule,
.uremono-ranking-index-period-card__period span {
    color: #667085;
    font-size: .82rem;
}

.uremono-ranking-index-period-card__scope {
    margin-top: 10px;
    color: #173a67;
    font-weight: 700;
}

.uremono-ranking-index-period-card__period {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    margin-top: 14px;
    align-items: baseline;
}

.uremono-ranking-index-period-card__description {
    margin-top: 12px;
}

.uremono-ranking-index-period-card__button {
    display: inline-flex;
    margin-top: 16px;
    padding: 9px 18px;
    border-radius: 7px;
    background: #0d4f9c;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.uremono-ranking-index-scope-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.uremono-ranking-index-scope-card {
    display: flex;
    min-width: 0;
    padding: 15px;
    border: 1px solid #dbe4ef;
    border-radius: 12px;
    background: #fff;
    flex-direction: column;
}

.uremono-ranking-index-scope-card__title,
.uremono-ranking-index-scope-card__name {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
}

.uremono-ranking-index-scope-card__title {
    color: #172b4d;
    font-size: 1rem;
    line-height: 1.4;
}

.uremono-ranking-index-scope-card__period {
    margin-top: 3px;
    color: #667085;
    font-size: .8rem;
}

.uremono-ranking-index-scope-card__product {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 12px;
    margin-top: 12px;
    align-items: start;
}

.uremono-ranking-index-scope-card__media .uremono-ranking-index-card__image,
.uremono-ranking-index-scope-card__media .uremono-ranking-index-card__image-link,
.uremono-ranking-index-scope-card__media .uremono-ranking-index-image-placeholder {
    max-width: 84px;
}

.uremono-ranking-index-scope-card__info {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.uremono-ranking-index-scope-card__rank {
    justify-self: start;
    padding: 2px 7px;
    border-radius: 999px;
    background: #eef6ff;
    color: #173a67;
    font-size: .75rem;
    font-weight: 700;
}

.uremono-ranking-index-scope-card__name {
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.uremono-ranking-index-scope-card__name-link {
    color: #175ea8;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.uremono-ranking-index-scope-card__shop {
    color: #667085;
    font-size: .76rem;
    overflow-wrap: anywhere;
}

.uremono-ranking-index-scope-card__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: auto;
    padding-top: 14px;
}

.uremono-ranking-index-scope-card__button {
    display: inline-flex;
    min-width: 0;
    padding: 8px 6px;
    border: 1px solid #8bb7e8;
    border-radius: 7px;
    align-items: center;
    justify-content: center;
    color: #175ea8;
    font-size: .76rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
}

.uremono-ranking-index-scope-card__button--latest {
    border-color: #0d4f9c;
    background: #0d4f9c;
    color: #fff;
}

@media (max-width: 900px) {
    .uremono-ranking-report-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .uremono-ranking-sidebar {
        position: static;
    }

    .uremono-ranking-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .uremono-ranking-item-card {
        grid-template-columns: 68px 96px minmax(0, 1fr);
        gap: 12px;
    }

    .uremono-ranking-item-card.uremono-ranking-report-item--has-actions {
        grid-template-columns: 68px 96px minmax(0, 1fr) 136px;
    }
}

@media (max-width: 560px) {
    .uremono-ranking-index-scope-list {
        grid-template-columns: 1fr;
    }

    .uremono-ranking-summary-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .uremono-ranking-index-card {
        margin-bottom: 14px;
        padding: 12px;
    }

    .uremono-ranking-index-card__header {
        display: block;
        margin-bottom: 10px;
        padding-bottom: 7px;
    }

    .uremono-ranking-index-card__period {
        margin-top: 2px;
        white-space: normal;
    }

    .uremono-ranking-index-card__body,
    .uremono-ranking-index-card--has-actions .uremono-ranking-index-card__body {
        grid-template-columns: 90px minmax(0, 1fr);
        gap: 10px;
    }

    .uremono-ranking-index-card__actions {
        display: grid;
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .uremono-ranking-index-card__button--ranking {
        grid-column: 1 / -1;
    }

    .uremono-ranking-index-card__actions--count-1 > .uremono-ranking-index-card__button,
    .uremono-ranking-index-card__actions--count-2 > .uremono-ranking-index-card__button:not(.uremono-ranking-index-card__button--ranking) {
        grid-column: 1 / -1;
    }

    .uremono-ranking-index-card__button {
        padding: 8px 4px;
        font-size: .7rem;
    }

    .uremono-ranking-item-card {
        grid-template-columns: 58px 92px minmax(0, 1fr);
        gap: 8px;
        padding: 10px;
    }

    .uremono-ranking-item-card.uremono-ranking-report-item--has-actions {
        grid-template-columns: 58px 92px minmax(0, 1fr);
    }

    .uremono-ranking-item-rank {
        grid-column: 1;
        grid-row: 1;
        justify-content: flex-start;
    }

    .uremono-ranking-item-media {
        grid-column: 2;
        grid-row: 1;
    }

    .uremono-ranking-item-content {
        grid-column: 3;
        grid-row: 1;
        min-width: 0;
    }

    .uremono-ranking-item-image,
    .uremono-ranking-item-image-placeholder {
        max-width: 92px;
    }

    .uremono-ranking-index-image,
    .uremono-ranking-index-card__image,
    .uremono-ranking-index-card__image-link,
    .uremono-ranking-index-image-placeholder {
        max-width: 90px;
    }

    .uremono-ranking-item-content > .uremono-ranking-item-name {
        padding: 0 8px;
    }

    .uremono-ranking-item-stat-line {
        font-size: .82rem;
    }

    .uremono-ranking-item-stat-separator {
        display: none;
    }

    .uremono-ranking-report-item__actions {
        grid-column: 3;
        grid-row: 2;
        grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
        gap: 6px;
        align-self: start;
    }

    .uremono-ranking-report-item__button {
        padding: 7px 4px;
        font-size: .72rem;
    }
}
