@charset "utf-8";

#ranking {
    color: #333;
}

#ranking * {
    box-sizing: border-box;
}

#ranking img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

#ranking a {
    transition: opacity .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

#ranking a:hover {
    opacity: .82;
}

#ranking .breadcrumb ul,
#ranking ul.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}

#ranking .breadcrumb li {
    float: none;
    font-size: 13px;
    line-height: 1.6;
}

#ranking .breadcrumb a {
    color: #137502;
    font-weight: bold;
}

/* =========================
   ヒーロー
========================= */
#ranking .ranking-hero {
    position: relative;
    overflow: hidden;
    margin: 0 0 28px;
    padding: 34px 36px;
    border-radius: 18px;
    background: linear-gradient(135deg, #f3faea 0%, #ffffff 58%, #fff5ec 100%);
    border: 1px solid #d8edc7;
    box-shadow: 0 8px 24px rgba(19, 117, 2, .08);
}

#ranking .ranking-hero:after {
    content: "";
    position: absolute;
    right: -60px;
    bottom: -90px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(107, 182, 0, .08);
}

#ranking .ranking-hero__eyebrow {
    position: relative;
    z-index: 1;
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: .08em;
    color: #fe6601;
}

#ranking .ranking-hero h2 {
    position: relative;
    z-index: 1;
    margin: 0 0 16px;
    padding: 0;
    border: 0;
    font-size: 30px;
    line-height: 1.35;
    font-weight: bold;
    color: #137502;
}

#ranking .ranking-hero__lead {
    position: relative;
    z-index: 1;
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: bold;
    line-height: 1.9;
}

#ranking .ranking-hero__note {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 15px;
    line-height: 1.9;
}

/* =========================
   この記事でわかること
========================= */
#ranking .ranking-summary {
    margin: 0 0 32px;
    padding: 22px 24px;
    border-radius: 14px;
    background: #fff;
    border: 2px solid #e3f1d7;
    box-shadow: none;
}

#ranking .ranking-summary h3 {
    margin: 0 0 16px;
    padding: 0 0 10px;
    border-bottom: solid 3px #6bb600;
    font-weight: bold;
    font-size: 24px;
    line-height: 1.45;
    color: #199f02;
}

#ranking .ranking-summary ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

#ranking .ranking-summary li {
    position: relative;
    padding: 10px 12px 10px 30px;
    border-radius: 10px;
    background: #f7fbf1;
    color: #137502;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.7;
}

#ranking .ranking-summary li:before {
    content: "✓";
    position: absolute;
    left: 12px;
    top: 10px;
    color: #fe6601;
    font-weight: bold;
}

/* =========================
   共通見出し
========================= */
#ranking .ranking-guide,
#ranking .ranking-choice {
    margin: 0 0 34px;
}

#ranking .section-heading {
    margin: 0 0 20px;
    padding: 0;
    border: 0;
}

#ranking .section-heading--center {
    text-align: left;
}

#ranking .section-heading__sub {
    display: block;
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: .08em;
    color: #fe6601;
}

#ranking .section-heading h3 {
    margin: 0 0 16px;
    padding: 0 0 10px;
    border-bottom: solid 3px #6bb600;
    font-weight: bold;
    font-size: 24px;
    line-height: 1.45;
    color: #199f02;
}

#ranking .section-heading p {
    margin: -4px 0 0;
    font-size: 14px;
    line-height: 1.8;
}

/* =========================
   ランキング
   1～3位：3列
   4～10位：4列
========================= */
#ranking .ranking-list {
    margin: 0 0 40px;
    padding: 26px;
    border-radius: 18px;
    background: linear-gradient(135deg, #f7fbf1 0%, #ffffff 64%, #fff5ec 100%);
    border: 1px solid #d8edc7;
    box-shadow: 0 8px 24px rgba(19, 117, 2, .08);
}

#ranking .ranking-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

#ranking .ranking-card {
    position: relative;
    grid-column: span 3;
    min-width: 0;
    overflow: hidden;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #dfead7;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
}

#ranking .ranking-card:nth-child(-n+3) {
    grid-column: span 4;
}

#ranking .ranking-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .10);
}

#ranking .ranking-card--top {
    border: 2px solid #f2cf45;
}

#ranking .ranking-card__link {
    display: block;
    height: 100%;
    color: #333;
    text-decoration: none;
}

#ranking .ranking-card__rank {
    position: absolute;
    z-index: 2;
    top: 10px;
    left: 10px;
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    min-width: 56px;
    padding: 7px 11px;
    border-radius: 999px;
    background: #199f02;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}

#ranking .ranking-card--top .ranking-card__rank {
    background: #fe6601;
}

#ranking .ranking-card__rank small {
    font-size: 8px;
    letter-spacing: .06em;
}

#ranking .ranking-card__image {
    display: block;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #fff;
}

#ranking .ranking-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .25s ease;
}

#ranking .ranking-card:hover .ranking-card__image img {
    transform: scale(1.03);
}

#ranking .ranking-card__body {
    display: flex;
    flex-direction: column;
    min-height: 220px;
    padding: 14px;
}

#ranking .ranking-card:nth-child(n+4) .ranking-card__body {
    min-height: 250px;
}

#ranking .ranking-card__name {
    display: block;
    margin: 0 0 8px;
    font-size: 15px;
    line-height: 1.55;
    font-weight: bold;
    color: #137502;
}

#ranking .ranking-card:nth-child(n+4) .ranking-card__name {
    font-size: 14px;
}

#ranking .ranking-card__desc {
    display: block;
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.7;
    color: #333;
}

#ranking .ranking-card:nth-child(n+4) .ranking-card__desc {
    font-size: 12px;
}

#ranking .ranking-card__more {
    display: block;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #e5eddc;
    color: #199f02;
    font-size: 13px;
    font-weight: bold;
    text-align: right;
}

/* =========================
   選び方ガイド
========================= */
#ranking .ranking-guide>p {
    margin: 0 0 20px;
    font-size: 16px;
    line-height: 1.9;
}

#ranking .ranking-guide__points {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

#ranking .guide-point {
    padding: 20px;
    border-radius: 14px;
    background: #f7fbf1;
    border: 1px solid #d8edc7;
}

#ranking .guide-point__num {
    display: inline-block;
    margin: 0 0 8px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #fff0e6;
    color: #fe6601;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: .08em;
}

#ranking .guide-point h4 {
    margin: 0 0 9px;
    font-size: 17px;
    line-height: 1.5;
    font-weight: bold;
    color: #137502;
}

#ranking .guide-point p {
    margin: 0;
    font-size: 14px;
    line-height: 1.8;
}

/* =========================
   比較表
========================= */
#ranking .choice-table-wrap {
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid #d9e8cf;
}

#ranking .choice-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

#ranking .choice-table th,
#ranking .choice-table td {
    padding: 14px 12px;
    border: 1px solid #d9e8cf;
    font-size: 14px;
    line-height: 1.7;
    vertical-align: top;
}

#ranking .choice-table thead th {
    background: #199f02;
    color: #fff;
    font-weight: bold;
    text-align: center;
}

#ranking .choice-table tbody th {
    width: 20%;
    background: #f3faea;
    color: #137502;
    font-weight: bold;
    text-align: left;
}

/* =========================
   CTA
========================= */
#ranking .ranking-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 24px;
    padding: 22px 24px;
    border-radius: 14px;
    background: #fffdf4;
    border: 1px solid #f1df9b;
}

#ranking .ranking-cta strong {
    display: block;
    margin: 0 0 4px;
    font-size: 18px;
    color: #137502;
}

#ranking .ranking-cta p {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
}

#ranking .ranking-cta__links {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

#ranking .ranking-cta__links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    padding: 12px 18px;
    border-radius: 999px;
    background: #199f02;
    border: 2px solid #199f02;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
}

#ranking .ranking-cta__links a:last-child {
    background: #fff;
    color: #137502;
    border-color: #8bcf58;
}