/* ==================================================
1. Common Top Page Sections
   ================================================== */

.ranking-section,
.top-navigation-section,
.top-guide-section,
.today-price-drop-section {
margin-top: 42px;
}

.top-navigation-section-first {
margin-top: 0;
}

.section-heading {
display: flex;
align-items: center;
justify-content: space-between;
gap: 20px;
margin-bottom: 18px;
}

.section-heading .section-title {
min-width: 0;
}

.section-more-link {
flex: 0 0 auto;
color: #1d73b7;
font-size: 14px;
font-weight: 700;
}

.section-more-link:hover {
text-decoration: underline;
opacity: 1;
}

/* ==================================================
5. Ranking
================================================== */

.ranking-list {
display: grid;
grid-template-columns:
repeat(
2,
minmax(0, 1fr)
);
gap: 16px;
}

.ranking-item {
min-width: 0;
overflow: hidden;
border: 1px solid #e0e4e8;
border-radius: 12px;
background: #fff;
box-shadow: 0 2px 10px rgb(0 0 0 / 5%);
}

.ranking-item-link {
display: grid;
grid-template-columns:
46px
90px
minmax(0, 1fr);
min-height: 132px;
align-items: center;
gap: 14px;
padding: 16px;
opacity: 1;
transition:
background-color 0.2s ease,
transform 0.2s ease;
}

.ranking-item-link:hover {
background: #f8fafc;
opacity: 1;
}

.ranking-position {
display: flex;
width: 38px;
height: 38px;
align-items: center;
justify-content: center;
border-radius: 50%;
background: #e8edf1;
color: #44515d;
font-size: 16px;
font-weight: 700;
}

.ranking-item:nth-child(1) .ranking-position {
background: #f3cf55;
color: #493b00;
}

.ranking-item:nth-child(2) .ranking-position {
background: #d7dce1;
color: #3e464d;
}

.ranking-item:nth-child(3) .ranking-position {
background: #d6a66c;
color: #49311d;
}

.ranking-image-area {
display: flex;
width: 90px;
height: 90px;
align-items: center;
justify-content: center;
overflow: hidden;
border-radius: 8px;
background: #f0f2f4;
}

.ranking-image {
width: 100%;
height: 100%;
object-fit: contain;
}

.ranking-image-placeholder {
display: flex;
width: 100%;
height: 100%;
align-items: center;
justify-content: center;
padding: 8px;
color: #89929a;
font-size: 11px;
text-align: center;
}

.ranking-content {
min-width: 0;
}

.ranking-maker {
margin: 0 0 3px;
color: #7a848d;
font-size: 12px;
}

.ranking-machine-name {
margin: 0;
color: #222;
font-size: 15px;
line-height: 1.5;
overflow-wrap: anywhere;
}

.ranking-price {
margin: 8px 0 0;
color: #c73d32;
font-size: 21px;
font-weight: 700;
line-height: 1.3;
}

.ranking-meta {
margin: 5px 0 0;
color: #727c85;
font-size: 12px;
line-height: 1.6;
}

/* ==================================================
6. Top Navigation
================================================== */

.top-navigation-section > .section-title {
margin-bottom: 18px;
}

.top-navigation-grid {
display: grid;
grid-template-columns:
repeat(
3,
minmax(0, 1fr)
);
gap: 20px;
}

.top-navigation-card {
display: flex;
min-width: 0;
flex-direction: column;
padding: 24px;
border: 1px solid #dfe3e7;
border-radius: 12px;
background: #fff;
box-shadow: 0 2px 10px rgb(0 0 0 / 5%);
}

.top-navigation-card-title {
margin: 0;
color: #1d2733;
font-size: 19px;
}

.top-navigation-card-description {
margin: 12px 0 0;
color: #626d77;
font-size: 14px;
line-height: 1.8;
}

.top-navigation-card-link {
margin: auto 0 0;
padding-top: 20px;
}

.top-navigation-card-link .button {
width: 100%;
}

.top-navigation-card-link .button-primary {
background: #1d73b7;
}

.top-navigation-card-link .button-primary:hover {
background: #155a91;
opacity: 1;
}

/* ==================================================
7. Guide
================================================== */

.top-guide-section > .section-title {
margin-bottom: 18px;
}

.top-guide {
padding: 26px;
border: 1px solid #e0e4e8;
border-radius: 12px;
background: #fff;
box-shadow: 0 2px 10px rgb(0 0 0 / 5%);
}

.top-guide p {
margin: 0;
}

.top-guide p + p {
margin-top: 18px;
}

.top-guide .button-primary {
background: #1d73b7;
}

.top-guide .button-primary:hover {
background: #155a91;
opacity: 1;
}

/* ==================================================
8. Responsive: Tablet
================================================== */

@media (max-width: 1000px) {
.machine-grid {
grid-template-columns:
repeat(
3,
minmax(0, 1fr)
);
}


.ranking-list {
    grid-template-columns: 1fr;
}


}

@media (max-width: 820px) {

.machine-grid {
    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );
}

.top-navigation-grid {
    grid-template-columns: 1fr;
}

}

/* ==================================================
9. Responsive: Mobile
================================================== */

@media (max-width: 640px) {
.ranking-section,
.top-navigation-section,
.top-guide-section,
.today-price-drop-section {
margin-top: 34px;
}

```
.top-navigation-section-first {
    margin-top: 0;
}

.section-heading {
    align-items: flex-start;
}

.ranking-item-link {
    grid-template-columns:
        40px
        76px
        minmax(0, 1fr);
    gap: 11px;
    padding: 14px;
}

.ranking-position {
    width: 34px;
    height: 34px;
    font-size: 14px;
}

.ranking-image-area {
    width: 76px;
    height: 76px;
}

.ranking-machine-name {
    font-size: 14px;
}

.ranking-price {
    font-size: 18px;
}

.top-navigation-card {
    padding: 20px;
}
```

}


/* ==================================================
10. Responsive: Small Mobile
================================================== */

@media (max-width: 480px) {

.machine-grid {
    grid-template-columns: 1fr;
}

.machine-card-link {
    display: grid;
    grid-template-columns:
        120px
        minmax(0, 1fr);
}

.machine-card-image-area {
    height: 100%;
    min-height: 190px;
    aspect-ratio: auto;
}

.ranking-item-link {
    grid-template-columns:
        36px
        64px
        minmax(0, 1fr);
    gap: 9px;
    padding: 12px;
}

.ranking-position {
    width: 32px;
    height: 32px;
    font-size: 13px;
}

.ranking-image-area {
    width: 64px;
    height: 64px;
}

.ranking-maker {
    font-size: 11px;
}

.ranking-machine-name {
    font-size: 13px;
}

.ranking-price {
    margin-top: 5px;
    font-size: 17px;
}

.ranking-meta {
    font-size: 11px;
}

.section-more-link {
    font-size: 12px;
}

}

/* ==================================================
11. Reduced Motion
================================================== */

@media (prefers-reduced-motion: reduce) {
.machine-card,
.ranking-item-link {
transition: none;
}


.machine-card:hover {
    transform: none;
}


}

/* ==================================================
   Today's Price Drop
================================================== */



.today-price-drop-guide {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 30px;
    overflow: hidden;
    border: 1px solid #e1e5e9;
    border-radius: 14px;
    background:
        linear-gradient(
            135deg,
            #fff 0%,
            #fff7f5 100%
        );
    box-shadow: 0 3px 14px rgb(0 0 0 / 6%);
}

.today-price-drop-content {
    min-width: 0;
}

.today-price-drop-label {
    margin: 0 0 7px;
    color: #c73d32;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.today-price-drop-heading {
    margin: 0;
    color: #222;
    font-size: 22px;
    line-height: 1.5;
}

.today-price-drop-description {
    max-width: 650px;
    margin: 10px 0 0;
    color: #626d77;
    font-size: 14px;
    line-height: 1.8;
}

.today-price-drop-action {
    flex: 0 0 auto;
}

.today-price-drop-action .button {
    min-width: 200px;
}

@media (max-width: 700px) {
    .today-price-drop-guide {
        align-items: stretch;
        flex-direction: column;
        padding: 24px;
    }

    .today-price-drop-action .button {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 480px) {

    .today-price-drop-guide {
        padding: 20px;
    }

    .today-price-drop-heading {
        font-size: 19px;
    }
}
