/* Header */

.hdr {

    background: var(--color-white);

    z-index: 2;

    position: relative;

}



.hdr-top .txt-left {color: var(--color-gray);}



.hdr-top {

    display: flex;

    justify-content: space-between;

    border-bottom: 1px solid rgba(0, 0, 0, 0.1);

    align-items: center;

}



.hdr-top-right {display: flex;}



.hdr-top-right ul {

    display: flex;

    align-items: center;

    gap: 30px;

    margin-right: 30px;

}

.hdr-top-right ul li a { 

    text-decoration: none;

    color: var(--primary-color);

}



.hdr-bottom {

    display: flex;

    align-items: center;

    gap: 20px;

    padding: 20px;

    font-size: 16px;

    color: var(--primary-color);

    position: relative;

}



.logo {

    width: 220px;

    height: 50px;

}





.hdr-bottom {display: flex;justify-content: space-between;}



.hdr-bottom .main-logo {

    text-align: center;

    display: block;

    /* margin: 0 auto; */

}



.hdr-bottom ul {

    display: flex;

    align-items: center;

    gap:30px;

    margin-right: 30px;

}

.hdr-bottom ul li a { 

    text-decoration: none;

    color: var(--primary-color);

    font-weight: bold;

    font-size: 16px;

}



/* Buttons */

.btn-login,

.btn-register,

.btn-translate {

    width: 160px;

    height: 50px;

    border: none;

    cursor: pointer;

    font-size: 14px;

}



.btn-login {

    background: var(--btn-login-bg);

}



.btn-register {

    background: var(--gradient1);

    color: white;

}



.btn-translate {

    width: 50px;

    background: var(--btn-translate-bg);

    color: white;

}


.time-ago {
    font-size: 12px;
    color: #999;
    margin-left: auto;
    white-space: nowrap;
	display: block;      /* ← 追加：ブロック要素にする */
    text-align: right;   /* ← 追加：右寄せ */

}

/* Hero Section */

body {

    position: relative;

}



.top-page {

    position: relative;

}



.top-page:before {

    content: "";

    display: block;

    width: 760px;

    height: auto;

    padding-top: 568px;

    opacity: .1;

    position: fixed;

    top: -40px;

    left: 50%;

    background: url(../images/bg_main.png) 0 0 no-repeat;

    background-size: 100%;

    z-index: 1;

}



.hero {

    position: relative;

    background: rgb(234, 243, 239);

    padding:50px 15px;

}



.hero .wrapper {max-width: 1250px;}



.hero-cont {

    display: flex;

    gap: 50px;

    z-index: 1;

    position: relative;

}



.hero-left {

    width: 600px;

    height: 565px;

    background: var(--color-white);

}



.hero-left img {

    width: 100%;

    height: auto;

}



.hero-right .slick-slide img {
/*
    height:160px;
*/
	height:180px;
    object-fit: cover;

    width:240px;

    aspect-ratio: 16/9;

}



.rank-photo img{

    width: 100%;

    max-height: 86px;

    object-fit: cover;

}



.article-info {

    background: var(--color-white);

    padding:30px;

}



.hero-right .article-info {

    box-shadow: 1px 1px 0px #0000000D;

}



.article-info h2 {

    font-size: 18px;

    line-height: 25px;

}



.hero-cont .article-info h2 {

    margin-bottom: 25px;

}



.hero-right .article-info h2 {

    overflow: hidden;

    text-overflow: ellipsis;

    display: -webkit-box;

    -webkit-line-clamp: 2;

    -webkit-box-orient: vertical;

    display: box;

    box-orient: vertical;

    line-clamp: 2;

    word-break: break-word;

    min-height: 45px;

}



.hero-right .featured-slider{ gap: 10px;}



.hero-right .article-info h2 {

    margin-bottom: 15px;

    line-height: 1.2;

}



.article-info hr {

    

}



.article-info-cont {

    display: flex;

    justify-content: space-between;

    border-bottom: 1px solid #EEEEEE;

    padding-bottom: 10px;

    margin-bottom: 10px;

    position: relative;

    align-items: center;

}



.article-info-left {

    display: flex;

    align-items: center;
	
	justify-content: flex-start;
	
	width: 100%;

}



.article-info-left .category {

    margin-left: 10px;

    color: var(--color-gray1);

    font-size: 14px;

}



.article-info-right {

    

}



.hero-right .article-info {

    padding:20px;

    width: calc(100% - 240px);

}



.hero-cont .article-info {

}



.article-hldr {position: relative;}



.stars span {font-size: 15px;}



.levels {

    display: flex;

}



.level {

    background-color: #00AEEF;

    color: white;

    font-size: 13px;

    width: 26px;

    display: inline-block;

    text-align: center;

    line-height: 23px;

}



.featured-slider { 

    width: 600px;

    height: 565px;

    overflow: hidden;    

}



.featured-slider .slide-cont {

    display: flex;

    flex-direction: row;

    flex-wrap: nowrap;

    justify-content: center;

    align-items: stretch;

    margin-bottom: 10px;

}



.featured-slider .slide {

    display: flex;

    gap: 10px;

}



/* .levels {gap:0;} */



ul.levels li:nth-child(1) .level{border-radius: 3px 0 0 3px;}

ul.levels li:nth-child(2) .level{border-radius: 0 3px 3px 0;}



.category {

    color:#AAAAAA;

}





.meta {

    display: flex;

    justify-content: space-between;

    font-size: 12px;

    color: #777;

}

/* Section 1 - Filter Section */



.wrapper {

    max-width: 1400px;

    width: 100%;

}



.sec-filters {

    padding: 50px 15px;

    background: var(--color-white);

    z-index: 2;

    position: relative;

}



.sec-filters .wrapper {max-width: 1250px;}



.filters-cont {

    display: flex;

    gap: 40px;

    align-items: stretch;

    background: var(--color-white);

}



.filter-sidebar {

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    width: 230px;

    background: #FAFAFA;

    border-radius: 5px;

}



.filter-label {

    text-align: left;

    box-sizing: border-box;

    padding-left: 30px;

}



.filter-label img {

    margin-right: 20px;

}



.filter-label:first-child {

    height: 140px;

    display: flex;

    align-items: center;

    background: #FAFAFA;

    width: 230px;

    border-bottom: 1px solid #572626;

}



.filter-label:last-child {

    height: 70px;

    display: flex;

    align-items: center;

    background: #FAFAFA;

    width: 230px;

}



.filter-options {

    display: flex;

    flex-direction: column;

    gap: 20px;

    flex: 1;

}



.category-options,

.level-options {

    display: flex;

    flex-wrap: wrap;

    gap: 20px 15px;

    flex: 1;

    align-content: center;

}



.filters-cont .category-options {

    height: 140px;

    align-items: center;

    gap: 20px 15px;

}



.filter-options label {

    display: flex;

    align-items: center;

    /* padding:15px 0 25px; */

    cursor: pointer;

    border-bottom: 1px solid #572626;

    color: var(--primary-color);

    font-size: 16px;

	width: 310px;
/*
    width: 230px;
*/
    max-width: 100%;

    height: 60px;

}



.filter-options .level-options label {

    padding: 0;

    border: none;

}



.filter-options input:checked+span {

    color: #00A657;

}



.filter-options label span {

    margin-left: 10px;

}



.filter-options input[type="checkbox"] {

    appearance: none;

    -webkit-appearance: none;

    -moz-appearance: none;

    width: 22px;

    height: 22px;

    border: 1px solid var(--checkbox-border);

    border-radius: 4px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    cursor: pointer;

    position: relative;

    margin: 0;

}



.filter-options input[type="checkbox"]:checked::before {

    content: '\2713';

    font-size: 14px;

    color: #05A557;

    position: absolute;

}



.filter-options input[type="checkbox"]:checked {

    border-color: var(--checkbox-bg);

}



.sec-filters .search-btn {

    color: white;

    z-index: 10;

    padding: 12px 25px;

    border: none;

    cursor: pointer;

    margin-top: 30px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 16px;

    margin-left: auto;

    margin-right: auto;

    width: 240px;

    height: 60px;

    background: transparent linear-gradient(90deg, #00A657 0%, #008772 100%) 0% 0% no-repeat padding-box;

    border-radius: 100px;

}

/* Disable Scroll When Form is Open */

body.no-scroll {

    overflow: hidden;

}



/* Filter Form Overlay (Initially Hidden) */

.filter-form-overlay {

    display: none;

    position: fixed;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    background: rgba(0, 0, 0, 0.5);

    z-index: 9999;

    align-items: center;

    justify-content: center;

}



/* Show Filter Form When Active */

.filter-form-overlay.active {

    display: flex !important;

}



/* Filter Form Box */

.filter-form {

    background: white;

    padding: 20px;

    border-radius: 10px;

    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);

    width: 320px;

    text-align: center;

}



.filter-form-overlay .close-btn {

    background: #d9534f;

    color: white;

    border: none;

    padding: 10px 20px;

    font-size: 16px;

    font-weight: bold;

    cursor: pointer;

    border-radius: 5px;

    display: inline-block;

    text-align: center;

    margin-top: 20px;

}



.filter-form-overlay h2 {

    margin-bottom: 20px;

    font-weight: bold;

    font-size: 20px;

    font-family: var(-font-noto-sans);

}



.filter-form-overlay .close-btn:hover {

    background: #c9302c;

    /* Darker red on hover */

}





/* Section 2 - World & Lesson Ranking */

.section-2 {

    padding: 40px 15px 100px;

    display: flex;

    justify-content: center;

    background: var(--primary-bg);

    z-index: 2;

    position: relative;

}



.section-2-cont {

    display: flex;

    gap: 50px;

    align-items: flex-start;

    max-width: 1400px;

    width: 100%;

    justify-content: center;

}



/* Left Side - News Categories */

.category-ttl-cont {

    display: flex;

}



.category-ttl-cont {display: flex;}.section-2 .news-section {

    display: flex;

    flex-direction: column;

    width: 840px;

    max-width: 100%;

}



.section-2 .news-section .category {

    position: relative;

    font-size: 12px;

}



.section-2 .news-section .banner-space {

    margin-bottom: 50px;

}



.section-2 .category .section-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 50px;

}



.section-header .cat-icon {

    margin-right: 10px;

}



.section-2 .category .section-header h2 {

    font-size: 18px;

    font-weight: bold;

    color: var(--primary-color);

}



.section-2 .category .section-title:before {

    content:'';

    position: absolute;

    top: 0;

    left: 0px;

    width: 1px;

    height: 30px;

    background-color: #000;

}



.section-2 .category .section-title {

    position: relative;

    color: var(--secondary-color);

    font-size: 24px;

    margin-left: 20px;

    padding-left: 20px;

    font-family: var(--font-dancing);

}



.section-2 a.more-btn:before {

    position: absolute;

    left: 25px;

    top: 50%;

    transform: translateY(-50%);

    content:'';

    /* background: url(/static/images/option-icon.png) no-repeat center top/cover;

    width: 20px;

    height: 20px; */

    background: url(../images/ico_list.svg) no-repeat center top/cover;

    width: 15px;

    height: 15px;

}



.section-2 a.more-btn {

    background: var(--color-white);

    color: var(--primary-color);

    border-radius: 50px;

    cursor: pointer;

    font-size: 14px;

    box-sizing: border-box;

    border: 1px solid #CCCCCC;

    line-height: 40px;

    font-weight: bold;

    width: 150px;

    max-width: 100%;

    text-align: left;

    padding-left: 55px;

    position: relative;

}



.section-2 .news-articles {

    display: flex;

    gap: 30px;

}



.section-2 .news-section .news-articles h2  a{

    font-size: 16px;

    color: #333333;

    margin-bottom: 40px;

    overflow: hidden;

    text-overflow: ellipsis;

    display: -webkit-box;

    -webkit-line-clamp: 2;

    -webkit-box-orient: vertical;

    display: box;

    box-orient: vertical;

    line-clamp: 2;

    word-break: break-word;

    height: auto;

    line-height: 1.5;

}



.section-2 .news-articles .article {

    width: 260px;

    background: #FAFAFA;

    overflow: hidden;

}

.section-2 .news-section .category:not(:last-of-type) {

    padding-bottom: 50px;

    border-bottom:4px solid rgba(0, 0, 0, 0.05);

    margin-bottom: 50px;

}



.section-2 .news-section .category:not(:last-of-type, .banner-space) {

    margin-bottom:0;

}



.section-2 .news-articles .article img {

    width: 100%;

    height: 173px;

    object-fit: cover;

}



.views {

    align-items: center;

    display: flex;

    gap: 5px;

}



.views img {

    width: 16px !important;

    height: 11px !important;

}



.section-2 .news-articles .article-info {

    padding: 0;

    background: none;

    box-shadow: none;

    margin-top: 20px;

}



.section-2 .news-articles .article-info .meta {

    display: flex;

    justify-content: space-between;

    font-size: 12px;

    color: #666;

}



/* Lesson Ranking Styles - Using Descendant Selectors */

.lesson-ranking {

    width: 100%;

    max-width: 400px;

}



.lesson-ranking {

    font-size: 12px;

}



.lesson-ranking h2 {

    font-size: 24px;

    font-weight: bold;

    margin-bottom: 15px;

    font-family: var(--font-noto-sans);

}



.lesson-ranking h2 .highlight {

    font-family: var(--font-dancing);

    font-size: 24px;

    color: var(--secondary-color);

    font-weight: bold;

}



.lesson-ranking h2 small {

    display: block;

    font-size: 20px;

    font-weight: normal;

    margin-top: 5px;

}



.lesson-ranking .ranking-tabs {

    display: flex;

    margin-bottom: 15px;

}



.lesson-ranking .ranking-tabs .tab {

    flex: 1;

    text-align: center;

    line-height: 50px;

    font-size: 14px;

    cursor: pointer;

    background: #eee;

    border: none;

    font-weight: bold;

    transition: background 0.3s;

}



.lesson-ranking .ranking-tabs .tab.active {

    background: var(--secondary-color);

    color: white;

}



.lesson-ranking .ranking-list {

    display: flex;

    flex-direction: column;

}



.lesson-ranking .ranking-list .rank-item {

    display: flex;

    background: #FAFAFA;

    gap:20px;

}



.lesson-ranking .ranking-list .rank-item:not(:last-of-type) {

    padding-bottom: 20px;

    border-bottom: 1px solid #eee;

    margin-bottom: 20px;

}



.lesson-ranking .ranking-list .rank-item .rank {

    font-size: 16px;

    font-weight: bold;

    width: 16px;

    height: 20px;

    display: flex;

    align-items: center;

    justify-content: center;

    color: white;

    /* position: relative; */

}



.lesson-ranking .ranking-list .rank-item .rank::before {

    content: attr(data-rank);

}



.lesson-ranking .ranking-list .rank-item .rank[data-rank='1'] {

    background-color: #cb8c01;

}



.lesson-ranking .ranking-list .rank-item .rank[data-rank='2'] {

    background-color: #ACACAC;

}



.lesson-ranking .ranking-list .rank-item .rank[data-rank='3'] {

    background-color: #CB4F01;

}



.lesson-ranking .ranking-list .rank-item .rank[data-rank='4'],

.lesson-ranking .ranking-list .rank-item .rank[data-rank='5'] {

    background-color: #FFFFFF;

    color: black;

    border: 1px solid #ccc;

}

.lesson-ranking .ranking-list .rank-item .rank-info-cont {

    display: flex;

    gap:15px;

    padding-bottom: 10px;

    margin-bottom: 10px;

    border-bottom: 1px solid #EEEEEE;

    align-items: center;

}



.lesson-ranking .ranking-list .rank-item .rank-content {

    flex: 1;

}



.lesson-ranking .ranking-list .rank-item .rank-content h3 {

    font-size: 16px;

    margin: 0;

    font-weight: bold;

    line-height: 25px;

    margin-bottom: 20px;

    color: #333333;

    margin-bottom: 40px;

    overflow: hidden;

    text-overflow: ellipsis;

    display: -webkit-box;

    -webkit-line-clamp: 2;

    -webkit-box-orient: vertical;

    display: box;

    box-orient: vertical;

    line-clamp: 2;

    word-break: break-word;

    height: auto;

    line-height: 1.5;

}



.lesson-ranking .ranking-list .rank-item .rank-content .meta {

    font-size: 12px;

    color: #666;

    display: flex;

    justify-content: space-between;

    margin-top: 5px;

}



.lesson-ranking .ranking-list.hidden {

    display: none;

}



.lesson-ranking .rank-photo {

    position: relative;

}

.lesson-ranking .rank-photo .rank {

    position: absolute;

    top: -2px;

}



.rank.bookmark-icon {

    position: relative;

    width: 24px;

    height: 32px;

    text-align: center;

    font-weight: bold;

    color: white;

    line-height: 24px;

    border-radius: 4px 4px 0 0;

}



.rank.bookmark-icon::after {

    content: "";

    position: absolute;

    bottom: -6px;

    left: 50%;

    transform: translateX(-50%);

    width: 0;

    height: 0;

    border-left: 12px solid transparent;

    border-right: 12px solid transparent;

    border-top: 6px solid currentColor;

}



/* Footer Styles */

.site-footer:before {

    position: absolute;

    content: '';

    left: -10%;

    top: 0;

    background: url(../images/footer_hr.svg) repeat center top/cover;

    width: 110%;

    height: 1px;

}



.site-footer:after {

    position: absolute;

    content: '';

    right: 50px;

    top: -40px;

    background: url(../images/btn_pagetop.svg) repeat center top/cover;

    width: 50px;

    height: 40px;

    font-size: 0;

}



.site-footer {

    background: var(--color-white);

    padding: 50px;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-direction: column;

    text-align: center;

    border-top: 1px solid rgba(0, 0, 0, 0.05);

    position: relative;

    z-index: 2;

    position: relative;

}



.footer-container {

    max-width: 1200px;

    width: 100%;

}



.footer-logo {

    width: 220px;

    height: 50px;

    margin-bottom: 50px;

}



.footer-nav ul,

.footer-categories ul {

    list-style: none;

    padding: 0;

    margin: 0;

    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 20px;

}



.footer-categories {

   /* margin-top: 20px; */

}



.footer-nav ul li a,

.footer-categories ul li a {

    font-size: 14px;

    color: #333;

    text-decoration: none;

}



.footer-copy {

    margin-top: 50px;

    font-size: 12px;

    color: #999999;

}



.section-2 .news-section .category:not(:last-of-type) {

    padding-bottom: 50px;

    border-bottom: 4px solid rgba(0, 0, 0, 0.05);

    margin-bottom: 50px;

}



/* Remove margin if followed by a banner */

.section-2 .news-section .category.no-margin {

    margin-bottom: 0;

    border:none;

}



.news-articles {

    /* overflow-x: auto; */

    /* Allow scrolling */

    -webkit-overflow-scrolling: touch;

    /* Enable smooth scrolling on mobile */

}


