/* ================================================================
   NEW TOP PAGE CSS — Editorial Magazine Design
   ================================================================ */

/* --- Design Tokens --- */
:root {
    --nt-white: #ffffff;
    --nt-off-white: #fafafa;
    --nt-warm: #f8f6f1;
    --nt-light: #f3f4f6;
    --nt-gray-100: #f1f1f1;
    --nt-gray-200: #e5e7eb;
    --nt-gray-300: #d1d5db;
    --nt-gray-400: #9ca3af;
    --nt-gray-600: #4b5563;
    --nt-gray-800: #1f2937;
    --nt-black: #111827;
    --nt-accent: #e53e3e;
    --nt-accent-dark: #c53030;
    --nt-link: #2563eb;

    --nt-font: 'LINE Seed JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Kaku Gothic ProN', sans-serif;
    --nt-font-en: 'Inter', var(--nt-font);

    --nt-container: 1200px;
    --nt-gap: 24px;
    --nt-radius: 12px;
    --nt-radius-sm: 8px;
    --nt-shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --nt-shadow-md: 0 4px 12px rgba(0,0,0,.08);
    --nt-shadow-lg: 0 8px 30px rgba(0,0,0,.12);
    --nt-transition: .3s cubic-bezier(.4,0,.2,1);
}

/* --- Override theme parent wrappers (safety fallback) --- */
.content-outer:has(.nt-page),
.contentsArea:has(.nt-page),
.contents-inner:has(.nt-page),
.site-content:has(.nt-page) {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
    clear: none !important;
}

/* --- Reset & Base --- */
.nt-page {
    font-family: var(--nt-font);
    color: var(--nt-gray-800);
    line-height: 1.7;
    background: var(--nt-white);
    -webkit-font-smoothing: antialiased;
}

.nt-page *, .nt-page *::before, .nt-page *::after {
    box-sizing: border-box;
}

.nt-page a {
    color: inherit;
    text-decoration: none;
    transition: color var(--nt-transition), opacity var(--nt-transition);
}

.nt-page img {
    max-width: 100%;
    height: auto;
    display: block;
}

.nt-page-title {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.entry-header {
    display: none;
}

/* --- Container --- */
.nt-container {
    max-width: var(--nt-container);
    margin: 0 auto;
    padding: 0 20px;
}

/* ================================================================
   HERO SLIDER
   ================================================================ */
.nt-hero {
    position: relative;
    max-width: var(--nt-container);
    margin: 0 auto 0;
    padding: 0 20px;
}

.js-nt-hero-slide {
    position: relative;
    border-radius: var(--nt-radius);
    overflow: hidden;
    box-shadow: var(--nt-shadow-lg);
}

.js-nt-hero-slide .swiper-slide {
    overflow: hidden;
}

.nt-hero-slide {
    display: block;
    position: relative;
}

.nt-hero-img-pc {
    display: block;
}

.nt-hero-img-sp {
    display: none;
}

.nt-hero-slide img {
    width: 100%;
    aspect-ratio: 16 / 7;
    object-fit: cover;
    transition: transform 6s ease;
}

.swiper-slide-active .nt-hero-slide img {
    transform: scale(1.04);
}

/* Ken Burns for active slide */
.swiper-slide-active .nt-hero-slide img {
    animation: ntKenBurns 6s ease forwards;
}

@keyframes ntKenBurns {
    from { transform: scale(1); }
    to   { transform: scale(1.05); }
}

/* Dark gradient overlay */
.nt-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 80px 40px 32px;
    background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.25) 60%, transparent 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.nt-hero-cat {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    background: var(--nt-accent);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
}

.nt-hero-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
    text-shadow: 0 1px 3px rgba(0,0,0,.3);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nt-hero-date {
    font-size: 12px;
    opacity: .8;
}

/* Navigation arrows */
.nt-hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,.9);
    color: var(--nt-black);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--nt-shadow-md);
    transition: var(--nt-transition);
    backdrop-filter: blur(4px);
}

.nt-hero-nav:hover {
    background: #fff;
    box-shadow: var(--nt-shadow-lg);
    transform: translateY(-50%) scale(1.08);
}

.nt-hero-prev { left: 16px; }
.nt-hero-next { right: 16px; }

/* Pagination */
.nt-hero-pagination {
    position: absolute;
    bottom: 16px !important;
    right: 40px !important;
    left: auto !important;
    width: auto !important;
    z-index: 10;
    display: flex;
    gap: 6px;
}

.nt-hero-pagination .swiper-pagination-bullet {
    width: 24px;
    height: 3px;
    border-radius: 2px;
    background: rgba(255,255,255,.5);
    opacity: 1;
    transition: var(--nt-transition);
}

.nt-hero-pagination .swiper-pagination-bullet-active {
    width: 40px;
    background: #fff;
}

/* Thumbnail strip */
.nt-hero-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    justify-content: center;
}

.nt-hero-thumb {
    width: 80px;
    height: 52px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    opacity: .5;
    border: 2px solid transparent;
    transition: var(--nt-transition);
    flex-shrink: 0;
}

.nt-hero-thumb:hover {
    opacity: .8;
}

.nt-hero-thumb.is-active {
    opacity: 1;
    border-color: var(--nt-accent);
}

.nt-hero-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ================================================================
   TAGS BAR
   ================================================================ */
.nt-tags-bar {
    max-width: var(--nt-container);
    margin: 16px auto 0;
    padding: 0 20px;
}

.nt-tags-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: var(--nt-light);
    border-radius: var(--nt-radius-sm);
    overflow-x: auto;
}

.nt-tags-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    color: var(--nt-accent);
    border: 1px solid var(--nt-accent);
    padding: 3px 10px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.nt-tags-list {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.nt-tags-list::-webkit-scrollbar { display: none; }

.nt-tags-list a {
    font-size: 13px;
    font-weight: 500;
    padding: 5px 14px;
    background: var(--nt-white);
    border: 1px solid var(--nt-gray-200);
    border-radius: 20px;
    white-space: nowrap;
    transition: var(--nt-transition);
}

.nt-tags-list a:hover {
    background: var(--nt-black);
    color: #fff;
    border-color: var(--nt-black);
}

/* ================================================================
   SECTIONS
   ================================================================ */
.nt-section {
    padding: 48px 0;
}

.nt-section-white {
    background: var(--nt-white);
}

.nt-section-warm {
    background: var(--nt-warm);
}

.nt-section-light {
    background: var(--nt-light);
}

/* Section headers */
.nt-section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--nt-black);
}

.nt-section-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: .02em;
    margin: 0;
}

.nt-section-more a {
    font-size: 13px;
    font-weight: 600;
    color: var(--nt-link);
    display: flex;
    align-items: center;
    gap: 4px;
}

.nt-section-more a:hover {
    text-decoration: underline;
}

.nt-section-header-center {
    text-align: center;
    margin-bottom: 32px;
}

.nt-section-header-center .nt-section-title {
    display: inline-block;
    border-bottom: none;
}

.nt-section-title-en {
    margin-bottom: 4px;
}

.nt-section-title-en img {
    height: 24px;
    width: auto;
    display: inline-block;
    opacity: .3;
}

/* ================================================================
   LAYOUT: Main + Sidebar
   ================================================================ */
.nt-layout {
    max-width: var(--nt-container);
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}

/* ================================================================
   ARTICLE CARDS — Featured (top 2)
   ================================================================ */
.nt-cards-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--nt-gap);
    margin-bottom: var(--nt-gap);
}

.nt-card-featured {
    border-radius: var(--nt-radius);
    overflow: hidden;
    position: relative;
    box-shadow: var(--nt-shadow);
    transition: var(--nt-transition);
}

.nt-card-featured:hover {
    box-shadow: var(--nt-shadow-lg);
    transform: translateY(-2px);
}

.nt-card-featured a {
    display: block;
    position: relative;
}

.nt-card-featured .nt-card-thumb {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.nt-card-featured .nt-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

.nt-card-featured:hover .nt-card-thumb img {
    transform: scale(1.05);
}

.nt-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 20px 16px;
    background: linear-gradient(to top, rgba(0,0,0,.7), transparent);
    color: #fff;
}

.nt-card-overlay .nt-card-cat {
    position: static;
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .05em;
    background: var(--nt-accent);
    color: #fff;
    padding: 2px 10px;
    border-radius: 3px;
    margin-bottom: 6px;
}

.nt-card-overlay .nt-card-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 4px;
}

.nt-card-overlay .nt-card-date {
    font-size: 11px;
    opacity: .75;
}

/* ================================================================
   ARTICLE CARDS — Grid
   ================================================================ */
.nt-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--nt-gap);
    margin-bottom: var(--nt-gap);
}

.nt-card {
    border-radius: var(--nt-radius);
    overflow: hidden;
    background: var(--nt-white);
    box-shadow: var(--nt-shadow);
    transition: var(--nt-transition);
}

.nt-card:hover {
    box-shadow: var(--nt-shadow-lg);
    transform: translateY(-3px);
}

.nt-card a {
    display: block;
}

.nt-card .nt-card-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.nt-card .nt-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.nt-card:hover .nt-card-thumb img {
    transform: scale(1.06);
}

.nt-card .nt-card-cat {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 10px;
    font-weight: 700;
    background: var(--nt-accent);
    color: #fff;
    padding: 2px 10px;
    border-radius: 3px;
    z-index: 2;
}

.nt-card-body {
    padding: 14px 16px 16px;
}

.nt-card-body .nt-card-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nt-card-body .nt-card-date {
    font-size: 12px;
    color: var(--nt-gray-400);
}

/* More button */
.nt-cards-btn {
    text-align: center;
    margin-top: 8px;
}

.nt-cards-btn a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--nt-black);
    padding: 12px 32px;
    border: 2px solid var(--nt-black);
    border-radius: 100px;
    transition: var(--nt-transition);
}

.nt-cards-btn a:hover {
    background: var(--nt-black);
    color: #fff;
}

/* ================================================================
   SIDEBAR
   ================================================================ */
.nt-sidebar-inner {
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.nt-sidebar-box {
    background: var(--nt-white);
    border-radius: var(--nt-radius);
    padding: 20px;
    box-shadow: var(--nt-shadow);
    border: 1px solid var(--nt-gray-200);
}

.nt-sidebar-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--nt-black);
}

.nt-sidebar-title a {
    color: inherit;
}

/* Category list in sidebar */
.nt-sidebar-cate-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nt-sidebar-cate-list li {
    border-bottom: 1px solid var(--nt-gray-100);
}

.nt-sidebar-cate-list li:last-child {
    border-bottom: none;
}

.nt-sidebar-cate-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    font-size: 14px;
    font-weight: 600;
    transition: var(--nt-transition);
}

.nt-sidebar-cate-list a:hover {
    color: var(--nt-accent);
}

.nt-sidebar-cate-desc {
    font-size: 11px;
    color: var(--nt-gray-400);
    font-weight: 400;
    margin-left: auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

/* Ranking */
.nt-sidebar-ranking {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: rank;
}

.nt-sidebar-ranking li {
    border-bottom: 1px solid var(--nt-gray-100);
}

.nt-sidebar-ranking li:last-child {
    border-bottom: none;
}

.nt-sidebar-ranking a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    transition: var(--nt-transition);
}

.nt-sidebar-ranking a:hover {
    opacity: .8;
}

.nt-rank-num {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    background: var(--nt-gray-200);
    color: var(--nt-gray-600);
}

.nt-rank-num.rank-1 {
    background: linear-gradient(135deg, #ffd700, #ffb800);
    color: #fff;
}

.nt-rank-num.rank-2 {
    background: linear-gradient(135deg, #c0c0c0, #a0a0a0);
    color: #fff;
}

.nt-rank-num.rank-3 {
    background: linear-gradient(135deg, #cd7f32, #b5692a);
    color: #fff;
}

.nt-rank-thumb {
    flex-shrink: 0;
    width: 56px;
    height: 38px;
    border-radius: 4px;
    overflow: hidden;
}

.nt-rank-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nt-rank-title {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nt-sidebar-more {
    text-align: center;
    margin-top: 12px;
}

.nt-sidebar-more a {
    font-size: 13px;
    font-weight: 600;
    color: var(--nt-link);
}

/* News list */
.nt-sidebar-news-list {
    display: flex;
    flex-direction: column;
}

.nt-sidebar-news-item {
    display: flex;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--nt-gray-100);
    align-items: baseline;
}

.nt-sidebar-news-item:last-child {
    border-bottom: none;
}

.nt-sidebar-news-date {
    font-size: 12px;
    color: var(--nt-gray-400);
    flex-shrink: 0;
    font-weight: 600;
}

.nt-sidebar-news-title {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nt-sidebar-news-item:hover .nt-sidebar-news-title {
    color: var(--nt-accent);
}

/* SNS */
.nt-sidebar-sns {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nt-sidebar-sns-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--nt-light);
    border-radius: var(--nt-radius-sm);
    transition: var(--nt-transition);
}

.nt-sidebar-sns-link:hover {
    background: var(--nt-gray-200);
}

.nt-sidebar-sns-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: var(--nt-black);
    color: #fff;
    border-radius: 8px;
}

.nt-sidebar-sns-text {
    display: flex;
    flex-direction: column;
}

.nt-sidebar-sns-text strong {
    font-size: 13px;
    font-weight: 700;
}

.nt-sidebar-sns-text small {
    font-size: 11px;
    color: var(--nt-gray-400);
}

/* ================================================================
   RECOMMEND (おすすめ記事)
   ================================================================ */
.nt-recommend-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: var(--nt-gap);
    max-width: var(--nt-container);
    margin: 0 auto;
}

.nt-recommend-main {
    grid-row: 1 / 3;
    border-radius: var(--nt-radius);
    overflow: hidden;
    position: relative;
    box-shadow: var(--nt-shadow-md);
    transition: var(--nt-transition);
}

.nt-recommend-main:hover {
    box-shadow: var(--nt-shadow-lg);
    transform: translateY(-2px);
}

.nt-recommend-main a {
    display: block;
    position: relative;
    height: 100%;
}

.nt-recommend-main .nt-recommend-img {
    height: 100%;
}

.nt-recommend-main .nt-recommend-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

.nt-recommend-main:hover .nt-recommend-img img {
    transform: scale(1.03);
}

.nt-recommend-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 80px 24px 24px;
    background: linear-gradient(to top, rgba(0,0,0,.75), transparent);
    color: #fff;
}

.nt-recommend-cat {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    background: var(--nt-accent);
    color: #fff;
    padding: 3px 10px;
    border-radius: 3px;
    margin-bottom: 8px;
}

.nt-recommend-overlay .nt-recommend-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.45;
}

.nt-recommend-sub {
    border-radius: var(--nt-radius);
    overflow: hidden;
    background: var(--nt-white);
    box-shadow: var(--nt-shadow);
    transition: var(--nt-transition);
}

.nt-recommend-sub:hover {
    box-shadow: var(--nt-shadow-lg);
    transform: translateY(-2px);
}

.nt-recommend-sub a {
    display: grid;
    grid-template-columns: 140px 1fr;
    height: 100%;
}

.nt-recommend-sub .nt-recommend-img {
    overflow: hidden;
}

.nt-recommend-sub .nt-recommend-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.nt-recommend-sub:hover .nt-recommend-img img {
    transform: scale(1.06);
}

.nt-recommend-body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.nt-recommend-body .nt-recommend-cat {
    font-size: 10px;
    align-self: flex-start;
}

.nt-recommend-body .nt-recommend-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ================================================================
   RECOMMEND INLINE (メインカラム内おすすめ記事)
   ================================================================ */
.nt-section-inner-warm {
    background: var(--nt-warm);
    border-radius: var(--nt-radius);
    padding: 32px 24px;
    margin-top: 40px;
}

.nt-recommend-grid-inline {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.nt-recommend-main-inline {
    border-radius: var(--nt-radius);
    overflow: hidden;
    position: relative;
    box-shadow: var(--nt-shadow-md);
    transition: var(--nt-transition);
}

.nt-recommend-main-inline:hover {
    box-shadow: var(--nt-shadow-lg);
    transform: translateY(-2px);
}

.nt-recommend-main-inline a {
    display: block;
    position: relative;
}

.nt-recommend-main-inline .nt-recommend-img img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform .6s ease;
}

.nt-recommend-main-inline:hover .nt-recommend-img img {
    transform: scale(1.03);
}

.nt-recommend-subs-inline {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nt-recommend-sub-inline {
    border-radius: var(--nt-radius-sm);
    overflow: hidden;
    background: var(--nt-white);
    box-shadow: var(--nt-shadow);
    transition: var(--nt-transition);
}

.nt-recommend-sub-inline:hover {
    box-shadow: var(--nt-shadow-md);
    transform: translateY(-1px);
}

.nt-recommend-sub-inline a {
    display: grid;
    grid-template-columns: 120px 1fr;
    align-items: center;
}

.nt-recommend-sub-inline .nt-recommend-img {
    overflow: hidden;
}

.nt-recommend-sub-inline .nt-recommend-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 16 / 10;
    transition: transform .5s ease;
}

.nt-recommend-sub-inline:hover .nt-recommend-img img {
    transform: scale(1.06);
}

.nt-recommend-sub-inline .nt-recommend-body {
    padding: 10px 14px;
}

.nt-recommend-sub-inline .nt-recommend-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ================================================================
   CATEGORY TABS
   ================================================================ */
.nt-category-tabs {
    display: flex;
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    gap: 0;
    border-bottom: 2px solid var(--nt-gray-200);
}

.nt-category-tabs li {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    color: var(--nt-gray-400);
    position: relative;
    transition: var(--nt-transition);
    white-space: nowrap;
}

.nt-category-tabs li::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--nt-black);
    transform: scaleX(0);
    transition: transform var(--nt-transition);
}

.nt-category-tabs li:hover {
    color: var(--nt-gray-800);
}

.nt-category-tabs li.is-active {
    color: var(--nt-black);
}

.nt-category-tabs li.is-active::after {
    transform: scaleX(1);
}

.nt-category-panel {
    display: none;
}

.nt-category-panel.is-active {
    display: block;
}

.nt-category-heading {
    font-size: 14px;
    font-weight: 700;
    color: var(--nt-gray-600);
    margin: 24px 0 12px;
    padding-left: 12px;
    border-left: 3px solid var(--nt-accent);
}

.nt-category-heading:first-child {
    margin-top: 0;
}

.nt-category-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}

.nt-category-items li > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 18px;
    background: var(--nt-white);
    border: 1px solid var(--nt-gray-200);
    border-radius: 8px;
    transition: var(--nt-transition);
    box-shadow: var(--nt-shadow);
    cursor: pointer;
}

.nt-category-items li > a:hover {
    border-color: var(--nt-gray-400);
    box-shadow: var(--nt-shadow-md);
    transform: translateY(-1px);
}

/* Carrier brand colors on category buttons */
.mb-category-docomo { border-left: 3px solid #cc0033 !important; }
.mb-category-au { border-left: 3px solid #eb5505 !important; }
.mb-category-softbank { border-left: 3px solid #6d6d6d !important; }
.mb-category-rakuten { border-left: 3px solid #ff008c !important; }
.mb-category-ymobile { border-left: 3px solid #fd0032 !important; }
.mb-category-uqmobile { border-left: 3px solid #d6007e !important; }
.mb-category-linemobile { border-left: 3px solid #00b900 !important; }
.mb-category-mineo { border-left: 3px solid #00a23f !important; }
.mb-category-iijmio { border-left: 3px solid #f175bb !important; }
.mb-category-iphone { border-left: 3px solid #000 !important; }
.mb-category-gray { border-left: 3px solid var(--nt-gray-400) !important; }

/* ================================================================
   RELATED MEDIA
   ================================================================ */
.nt-media-links {
    padding: 32px 0 16px;
}

.nt-media-links-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--nt-gray-200);
}

.nt-media-links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.nt-media-links-list a {
    font-size: 13px;
    color: var(--nt-link);
    padding: 4px 0;
    transition: var(--nt-transition);
}

.nt-media-links-list a:hover {
    text-decoration: underline;
}

/* ================================================================
   MODAL
   ================================================================ */
.nt-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}

.nt-modal-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.nt-modal-inner {
    background: var(--nt-white);
    border-radius: var(--nt-radius);
    max-width: 720px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px) scale(.97);
    transition: transform .3s ease;
    box-shadow: var(--nt-shadow-lg);
}

.nt-modal-overlay.is-visible .nt-modal-inner {
    transform: translateY(0) scale(1);
}

.nt-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,.3);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--nt-transition);
    backdrop-filter: blur(4px);
}

.nt-modal-close:hover {
    background: rgba(0,0,0,.6);
}

.nt-modal-header-img {
    width: 100%;
    height: 140px;
    border-radius: var(--nt-radius) var(--nt-radius) 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.nt-modal-header-img img {
    max-width: 280px;
    height: auto;
}

.nt-modal-body {
    padding: 24px;
}

.nt-modal-category-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .15em;
    color: var(--nt-gray-400);
    margin-bottom: 4px;
}

.nt-modal-category-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
}

.nt-modal-articles {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.nt-modal-article {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 14px;
    padding: 12px;
    border-radius: var(--nt-radius-sm);
    background: var(--nt-light);
    transition: var(--nt-transition);
}

.nt-modal-article:hover {
    background: var(--nt-gray-200);
}

.nt-modal-article-img {
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.nt-modal-article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nt-modal-article-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nt-modal-article-excerpt {
    font-size: 12px;
    color: var(--nt-gray-400);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nt-modal-cat-btn {
    text-align: center;
}

.nt-modal-cat-btn a {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 32px;
    border-radius: 100px;
    background: var(--nt-black);
    color: #fff;
    transition: var(--nt-transition);
}

.nt-modal-cat-btn a:hover {
    background: var(--nt-accent);
}

.nt-modal-close-bottom {
    text-align: center;
    padding: 12px 24px 20px;
}

.nt-modal-close-bottom span {
    font-size: 13px;
    color: var(--nt-gray-400);
    cursor: pointer;
    transition: var(--nt-transition);
}

.nt-modal-close-bottom span:hover {
    color: var(--nt-black);
}

/* Hidden modal container inside category items */
.mb-category-modal-container {
    display: none;
}

/* ================================================================
   SCROLL REVEAL ANIMATIONS
   ================================================================ */
.nt-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
}

.nt-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.nt-stagger.is-visible > * {
    opacity: 0;
    transform: translateY(12px);
    animation: ntStaggerIn .5s ease forwards;
}

.nt-stagger.is-visible > *:nth-child(1)  { animation-delay: 0s; }
.nt-stagger.is-visible > *:nth-child(2)  { animation-delay: .05s; }
.nt-stagger.is-visible > *:nth-child(3)  { animation-delay: .1s; }
.nt-stagger.is-visible > *:nth-child(4)  { animation-delay: .15s; }
.nt-stagger.is-visible > *:nth-child(5)  { animation-delay: .2s; }
.nt-stagger.is-visible > *:nth-child(6)  { animation-delay: .25s; }
.nt-stagger.is-visible > *:nth-child(7)  { animation-delay: .3s; }
.nt-stagger.is-visible > *:nth-child(8)  { animation-delay: .35s; }
.nt-stagger.is-visible > *:nth-child(9)  { animation-delay: .4s; }
.nt-stagger.is-visible > *:nth-child(10) { animation-delay: .45s; }

@keyframes ntStaggerIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .nt-reveal,
    .nt-stagger.is-visible > * {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
        transition: none !important;
    }
}

/* ================================================================
   RESPONSIVE — Tablet
   ================================================================ */
@media (max-width: 1024px) {
    .nt-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .nt-sidebar-inner {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .nt-hero-overlay {
        padding: 60px 24px 24px;
    }

    .nt-hero-title {
        font-size: 18px;
    }

    .nt-recommend-grid {
        grid-template-columns: 1fr;
    }

    .nt-recommend-main {
        grid-row: auto;
    }
}

/* ================================================================
   RESPONSIVE — Mobile
   ================================================================ */
@media (max-width: 640px) {
    .nt-hero {
        padding: 0 12px;
    }

    .nt-hero-img-pc { display: none; }
    .nt-hero-img-sp { display: block; }

    .nt-hero-slide img {
        aspect-ratio: 4 / 3;
    }

    .nt-hero-overlay {
        padding: 50px 16px 20px;
    }

    .nt-hero-title {
        font-size: 16px;
    }

    .nt-hero-nav {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .nt-hero-prev { left: 8px; }
    .nt-hero-next { right: 8px; }

    .nt-hero-thumbs {
        gap: 6px;
    }

    .nt-hero-thumb {
        width: 56px;
        height: 38px;
    }

    .nt-tags-bar {
        padding: 0 12px;
    }

    .nt-section {
        padding: 32px 0;
    }

    .nt-layout {
        padding: 0 12px;
    }

    .nt-container {
        padding: 0 12px;
    }

    .nt-cards-featured {
        grid-template-columns: 1fr;
    }

    .nt-cards-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .nt-card-body .nt-card-title {
        font-size: 13px;
    }

    .nt-sidebar-inner {
        grid-template-columns: 1fr;
    }

    .nt-recommend-sub a {
        grid-template-columns: 100px 1fr;
    }

    .nt-section-inner-warm {
        padding: 20px 16px;
        margin-top: 24px;
    }

    .nt-recommend-sub-inline a {
        grid-template-columns: 100px 1fr;
    }

    .nt-category-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nt-category-tabs li {
        padding: 10px 16px;
        font-size: 13px;
    }

    .nt-category-items {
        gap: 8px;
    }

    .nt-category-items li > a {
        font-size: 12px;
        padding: 7px 14px;
    }

    .nt-modal-inner {
        max-height: 90vh;
    }

    .nt-modal-article {
        grid-template-columns: 90px 1fr;
        gap: 10px;
        padding: 10px;
    }

    .nt-modal-category-name {
        font-size: 18px;
    }
}

/* ================================================================
   RESPONSIVE — Small Mobile
   ================================================================ */
@media (max-width: 420px) {
    .nt-cards-grid {
        grid-template-columns: 1fr;
    }
}
