/* =========================================
   YUI MARKETING - NEWS PAGE STYLES
   ========================================= */

/* --- Variables --- */
:root {
    --cyan: #00c6ff;
    --dark-bg: rgba(20, 20, 20, 0.6);
}

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }
.container-wide { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }

/* 共通余白ルール */
section { padding: clamp(80px, 10vw, 140px) 0; }

/* --- Hero Section --- */
.page-hero {
    min-height: 50vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
    padding-top: clamp(140px, 20vw, 200px); padding-bottom: 80px;
}
.hero-sub { font-size: 1rem; letter-spacing: 0.3em; margin-bottom: 10px; color: #00c6ff; font-weight: 700; }
.hero-title { font-size: clamp(3rem, 8vw, 6rem); font-weight: 900; line-height: 1; text-shadow: 0 10px 30px rgba(0,0,0,0.5); margin-bottom: 20px; }
.hero-desc { font-size: 1.1rem; opacity: 0.8; line-height: 1.8; }


/* --- NEWS GRID --- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* PCは3列 */
    gap: 40px;
    margin-bottom: 80px;
}

.news-card {
    display: block;
    text-decoration: none;
    color: #fff;
    background: rgba(10, 10, 10, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}

.news-card:hover {
    transform: translateY(-10px);
    border-color: var(--cyan);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 198, 255, 0.2);
}

/* Thumbnail Area */
.news-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; /* 16:9で統一 */
    overflow: hidden;
    background: #000;
}

.news-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: 0.6s ease;
    opacity: 0.9;
}

.news-card:hover .news-thumb img {
    transform: scale(1.1);
    opacity: 1;
}

/* Category Badge */
.news-cat {
    position: absolute; top: 15px; left: 15px;
    background: rgba(0, 0, 0, 0.8);
    color: var(--cyan); border: 1px solid var(--cyan);
    padding: 4px 12px; font-size: 0.75rem; font-weight: 700;
    border-radius: 50px; z-index: 2;
    backdrop-filter: blur(5px);
}

/* Body Area */
.news-body { padding: 25px; }

.news-date {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem; opacity: 0.6;
    margin-bottom: 10px;
}

.news-title {
    font-size: 1.1rem; font-weight: 700; line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 2行で省略 */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* No Post Message */
.no-post { grid-column: 1 / -1; text-align: center; opacity: 0.5; padding: 50px; }


/* --- Pagination --- */
.pagination {
    text-align: center;
    margin-top: 60px;
}
.pagination .page-numbers {
    display: inline-block;
    min-width: 40px; height: 40px; line-height: 40px;
    margin: 0 5px; border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff; text-decoration: none;
    font-family: 'Montserrat', sans-serif; font-weight: 700;
    transition: 0.3s;
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--cyan); border-color: var(--cyan); color: #000;
}


/* --- CTA (Common) --- */
.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.split-item {
    border-radius: 20px; padding: clamp(40px, 5vw, 60px) 40px; text-align: center;
    backdrop-filter: blur(10px) !important; -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255,255,255,0.2) !important; transition: 0.3s;
    display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 300px;
    width: 100%; box-sizing: border-box;
}
.recruit-area { background: linear-gradient(135deg, rgba(0,0,0,0.5), rgba(0, 198, 255, 0.15)) !important; }
.contact-area { background: linear-gradient(135deg, rgba(0,0,0,0.5), rgba(255, 75, 31, 0.15)) !important; }
.split-content h2 { font-family: 'Montserrat', sans-serif; font-size: 2.5rem; margin-bottom: 20px; letter-spacing: 0.1em; }
.split-desc { font-size: 1rem; line-height: 1.8; margin-bottom: 30px; opacity: 0.9; }
.cta-btn { display: inline-block; padding: 15px 40px; border-radius: 50px; font-weight: 700; transition: 0.3s; text-decoration: none; }
.recruit-btn { background: #fff; color: #000; }
.contact-btn { background: transparent; border: 2px solid #fff; color: #fff; }

@media (min-width: 769px) {
    .recruit-area:hover { border-color: #00c6ff !important; box-shadow: 0 0 30px rgba(0, 198, 255, 0.2); transform: translateY(-5px); }
    .recruit-btn:hover { background: #00c6ff; color: #fff; }
    .contact-area:hover { border-color: #ff4b1f !important; box-shadow: 0 0 30px rgba(255, 75, 31, 0.2); transform: translateY(-5px); }
    .contact-btn:hover { background: #fff; color: #000; }
}


/* --- Responsive --- */
@media (max-width: 991px) {
    .news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .news-grid { grid-template-columns: 1fr; gap: 30px; }
    .news-title { font-size: 1rem; }
    
    .news-card, .split-item {
        backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
        background: rgba(15, 15, 15, 0.95) !important;
        border: 1px solid rgba(255,255,255,0.15) !important;
    }
    .split-layout { grid-template-columns: 1fr; gap: 30px; }
}