@charset "utf-8";

.tabs {
    display: flex;
    gap: 0.83vw;
    border-bottom: 0.21vw solid #f60;
}

.tab-item {
    flex: 1;
    text-align: center;
    padding: 1.11vw 0;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.11vw;
    font-weight: bold;
    cursor: pointer;
    border: none;
    transition: background 0.2s, color 0.2s;
    color: #FA7300;
    background: #FFF4DB;
    border-radius: 0.56vw 0.56vw 0 0;
    position: relative;
}

.tab-item.active {
    background: #FA7300;
    color: #fff;
}

.tab-item:hover:not(.active) {
    background: #FFF4DB;
}

.panels {
    background-color: #fff;
    padding-top: 30px;
}

.tab-panel {
    display: none;
    margin: 0 30px;
}

.tab-panel.active {
    display: block;
}

/* --- Category Cards --- */
.category-card-wrapper {
    background-color: #FA7300;
    width: 100%;
    border-radius: 2.22vw;
    /*box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);*/
    position: relative;
    padding-top: 0.83vw;
    overflow: hidden;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.67vw;
    padding-bottom: 4.86vw;
}

.category-card {
    border-radius: 1.39vw;
    padding: 28px 32px 36px 32px;
    background: #F9F9F9;
    height: 100%;
    min-height: 22.43vw;
}

/*.category-card:hover {*/
/*    box-shadow: 0 0.28vw 1.39vw rgba(255, 102, 0, 0.1);*/
/*}*/

.category-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25vw;
    padding-bottom: 1.25vw;
    padding-left: 0.97vw;
    position: relative;
}

.category-card-header::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(calc(-50% - 0.625vw));
    height: 2.08vw;
    width: 0.42vw;
    background: #f60;
}

.category-card-header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0.07vw;
    background: #f60;
}

.category-card-header h3 {
    font-family: 'Roboto', sans-serif;
    font-size: 1.25vw;
    font-weight: bold;
    color: #333;
    line-height: 1.3;
    word-break: auto-phrase;
}

.category-card-list {
    display: flex;
    flex-direction: column;
    gap: 0.69vw;
    /*padding-left: 0.28vw;*/
}

.category-card-list li {
    position: relative;
    padding-left: 1.25vw;
    font-size: 0.97vw;
    line-height: 1.5;
}

.category-card-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.49vw;
    width: 0.63vw;
    height: 0.63vw;
    background: #f60;
    border-radius: 50%;
}

.category-card-list a {
    color: #074EE8;
    transition: opacity 0.2s;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: var(--font-medium);
}

.category-card-list a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.category-card-list .sub-text {
    color: #555;
    font-size: 0.9vw;
    display: block;
}

.badge {
    display: inline-block;
    border: 0.14vw solid #f60;
    color: #f60;
    font-family: 'Roboto', sans-serif;
    font-size: 0.97vw;
    padding: 0.14vw 0.83vw;
    border-radius: 0.28vw;
    font-weight: bold;
    white-space: nowrap;
    line-height: 1.6;
}

.badge .small {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.69vw;
    font-weight: bold;
}

/* --- Ranking List --- */
.ranking-list {
    padding-bottom: 4.86vw;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 1.67vw;
    padding: 1.94vw 0;
    /*border-bottom: 1px solid #B4C3D2;*/
    cursor: pointer;

    background-image: linear-gradient(to right, transparent 4.86vw, #B4C3D2 0.69vw);
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: 100% 0.07vw;
}

.ranking-item:first-child {
    padding-top: 0;
}

.ranking-item:last-child {
    background-image: none;
}

.ranking-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.47vw;
    height: 3.47vw;
    background: #f60;
    color: #fff;
    border-radius: 50%;
    font-size: 1.11vw;
    font-weight: bold;
    flex-shrink: 0;
    white-space: nowrap;
}

.ranking-number span {
    font-size: 1.67vw;
    font-weight: 900;
}

.ranking-content {
    flex: 1;
    min-width: 0;
}

.ranking-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.42vw;
    margin-bottom: 0.56vw;
}

.tag {
    display: inline-block;
    padding: 0.14vw 0.69vw;
    border-radius: 0.28vw;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.042vw;
    font-weight: var(--font-medium);
    white-space: nowrap;
}

.tag-new {
    background: #f60;
    color: #fff;
}

.tag-category {
    background: #fff;
    color: #FA7300;
    border: 1px solid #FA7300;
}

.ranking-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.39vw;
    font-weight: var( --font-medium);
    color: #111111;
    line-height: 1.5;
    margin-bottom: 0.28vw;
}

.ranking-subtitle {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.11vw;
    font-weight: var( --font-medium);
    color: #666;
    line-height: 1.5;
}

.ranking-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.28vw;
    flex-shrink: 0;
}

.provider-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.21vw 0.69vw;
    border-radius: 0.28vw;
    font-size: 0.76vw;
    font-weight: bold;
    white-space: nowrap;
}

.provider-badge.provider-casareal img.sp_none {
    width: 93px;
    height: 31px;
}

.provider-partner {
    background: #679B40;
    color: #fff;
}

.duration-badge {
    background: #868686;
    color: #fff;
    border-radius: 2px;
    font-size: 15px;
    font-weight: 500;
    width: 93px;
    height: 31px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.duration-badge.pc_none { display: none; }

/* --- Deals List --- */
.deals-list {
    padding-bottom: 2vw;
}

.deal-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.67vw;
    padding: 1.94vw 0;
    border-bottom: 1px solid #ddd;
}

.deal-item:first-child {
    padding-top: 0;
}

.deal-item:last-child {
    border-bottom: none;
}

.deal-content {
    flex: 1;
    min-width: 0;
}

.deal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.42vw;
    margin-bottom: 0.56vw;
}

.deal-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.39vw;
    font-weight: var(--font-medium);
    color: #111111;
    line-height: 1.5;
    margin-bottom: 0.69vw;
}

.deal-courses {
    display: flex;
    flex-direction: column;
    gap: 0.35vw;
}

.deal-courses li {
    position: relative;
    padding-left: 1.11vw;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.97vw;
    font-weight: var(--font-medium);
    line-height: 1.5;
}

.deal-courses li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.52vw;
    width: 0.49vw;
    height: 0.49vw;
    border: 1px solid #FA7300;
    border-radius: 50%;
}

.deal-courses a {
    color: #074EE8;
    text-decoration: underline;
    /*transition: opacity 0.2s;*/
}

/*.deal-courses a:hover {*/
/*    opacity: 0.7;*/
/*    text-decoration: underline;*/
/*}*/

.deal-right {
    display: flex;
    flex-direction: column;
    /*align-items: flex-end;*/
    gap: 0.83vw; /* 12/1440 */
    flex-shrink: 0;
    align-items: center;
    height: 100%;
}

.deal-meta {
    display: flex;
    align-items: center;
    gap: 1.11vw;
    height: 100%;
}

.btn-detail {
    display: inline-flex;
    align-items: center;
    gap: 0.69vw;
    border: 1px solid #ccc;
    border-radius: 3.47vw;
    padding: 1.19vw 5.09vw 1.19vw 2.79vw;
    font-size: 1.11vw;
    font-weight: var(--font-semibold);
    color: #1E232D;
    background: #fff;
    transition: border-color 0.2s, color 0.2s;
    white-space: nowrap;
    position: relative;
    margin-left: 2.22vw;
}

.btn-detail::after {
    background: url(../img/common/button_orange.webp) no-repeat 50% 0 transparent;
    background-size: 1.81vw 1.81vw;
    display: block;
    content: "";
    height: 1.81vw;
    margin-top: -0.83vw;
    position: absolute;
    right: 1.66vw;
    top: 50%;
    width: 1.81vw;
}

@media (max-width: 1024px) {
    .tabs {
        border-bottom: 3px solid #f60;
        gap: 10px;
    }

    .tab-item {
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        padding: 14px 8px;
        border-radius: 8px 8px 0 0;
    }

    /* Categories */
    .category-card-wrapper {

    }

    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        padding-bottom: 60px;
    }

    .category-card {
        border-width: 2px;
        border-radius: 10px;
        padding: 20px;
    }

    .category-card-header {
        margin-bottom: 16px;
        border-left-width: 4px;
        padding-left: 12px;
    }

    .category-card-header h3 {
        font-size: 16px;
    }

    .category-card-list {
        gap: 10px;
        padding-left: 4px;
    }

    .category-card-list li {
        padding-left: 18px;
        font-size: 13px;
    }

    .category-card-list li::before {
        top: 6px;
        width: 8px;
        height: 8px;
    }

    .category-card-list .sub-text {
        font-size: 12px;
    }

    /* Ranking */
    .ranking-list { padding-bottom: 60px; }
    .ranking-item { gap: 20px; padding: 24px 0; }
    .ranking-number { width: 48px; height: 48px; font-size: 14px; }
    .ranking-number span { font-size: 22px; }
    .ranking-tags { gap: 6px; margin-bottom: 8px; }
    .tag { padding: 2px 10px; font-size: 12px; border-radius: 4px; }
    .ranking-title { font-size: 15px; }
    .ranking-subtitle { font-size: 13px; }
    .provider-badge { padding: 3px 10px; font-size: 11px; border-radius: 4px; }
    .duration-badge { padding: 3px 10px; font-size: 11px; border-radius: 4px; }
    .ranking-meta { gap: 4px; }

    /* Deals */
    .deals-list { padding-bottom: 60px; }
    .deal-item { gap: 20px; padding: 24px 0; }
    .deal-tags { gap: 6px; margin-bottom: 8px; }
    .deal-title { font-size: 15px; margin-bottom: 10px; }
    .deal-courses li { padding-left: 16px; font-size: 13px; }
    .deal-courses li::before { top: 6px; width: 7px; height: 7px; }
    .deal-courses { gap: 6px; }
    .deal-meta { gap: 6px; }
    .btn-detail {
        padding: 12px 52px 12px 28px;
        font-size: 13px;
        gap: 10px;
        border-radius: 50px;
    }
}

@media (max-width: 768px) {
    .tabs {
        border-bottom: 3px solid #f60;
        gap: 6px;
    }

    .tab-item {
        font-size: 12px;
        padding: 10px 4px;
        border-radius: 6px 6px 0 0;
    }

    /* Categories - single column */
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding-bottom: 40px;
    }

    .category-card {
        border-width: 2px;
        border-radius: 10px;
        padding: 20px;
    }

    .category-card-header {
        margin-bottom: 16px;
        border-left-width: 4px;
        padding-left: 20px;
    }

    .category-card-header::before {
        width: 6px;
        height: 30px;
    }

    .category-card-header h3 {
        font-size: 18px;
    }

    .category-card-list {
        gap: 10px;
        padding-left: 4px;
    }

    .category-card-list li {
        padding-left: 18px;
        font-size: 14px;
    }

    .category-card-list li::before {
        top: 7px;
        width: 9px;
        height: 9px;
    }

    .category-card-list .sub-text {
        font-size: 13px;
    }

    /* Ranking - SP */
    .ranking-list { padding-bottom: 40px; }
    .ranking-item {
        flex-wrap: wrap; gap: 12px;
        padding: 20px 0;
        background-image: none;
        border-bottom: 1px solid #B4C3D2;
    }

    .ranking-item:last-child {
        border-bottom: none;
    }
    .ranking-number {
        width: 44px;
        height: 44px;
        font-size: 20px;
        background: #fff;
        color: #FA7300;
    }
    .ranking-number span {
        font-size: 20px;
    }
    .ranking-tags { gap: 6px; margin-bottom: 6px; }
    .tag { padding: 2px 8px; font-size: 11px; border-radius: 4px; }
    .ranking-title {
        font-size: 16px;
    }
    .ranking-subtitle {
        font-size: 14px;
    }
    .ranking-meta {
        flex-direction: row;
        gap: 6px;
        width: 100%;
        margin-top: 6px;
    }
    .provider-badge.provider-casareal {
        padding: 0;
        max-height: 19px;
        max-width: 93px;
        flex-shrink: 0;
    }
    .provider-badge.provider-partner {
        padding: 3px 8px;
        font-size: 14px;
        border-radius: 4px;
        max-height: 19px;
        max-width: 93px;
        flex-shrink: 0;
    }
    /*.provider-badge img {*/
    /*    padding: 0;*/
    /*}*/
    .duration-badge {
        padding: 3px 8px;
        font-size: 14px;
        border-radius: 4px;
        max-height: 19px;
        width: auto;
        flex-shrink: 0;
    }

    .duration-badge.sp_none { display: none; }
    .duration-badge.pc_none { display: flex; }

/* Deals - SP */
    .deals-list { padding-bottom: 40px; }
    .deal-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 20px 0;
    }
    .deal-tags { gap: 6px; margin-bottom: 6px; }
    .deal-title { font-size: 15px; margin-bottom: 10px; }
    .deal-courses li { padding-left: 16px; font-size: 13px; }
    .deal-courses li::before { top: 6px; width: 7px; height: 7px; }
    .deal-courses { gap: 6px; }
    .deal-right { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; }
    .deal-meta {
        gap: 6px;
        width: 100%;
    }
    .btn-detail {
        padding: 8px 60px 8px 28px;
        font-size: 14px;
        gap: 8px;
        border-radius: 50px;
        max-height: 33px;
    }
    .btn-detail::after {
        background-size: 20px 20px;
        width: 20px;
        height: 20px;
        margin-top: -10px;
    }
    .u-align-right {
        margin-left: auto !important;
    }
    /*.arrow-circle-sm { width: 24px; height: 24px; font-size: 11px; }*/

    .badge {
        border-width: 1px;
        font-size: 14px;
        padding: 2px 10px;
        border-radius: 4px;
    }

    .badge .small {
        font-size: 10px;
    }
}