/* =========================================
   YUI MARKETING - TOP PAGE STYLES (Update)
   ========================================= */

/* --- Variables & Reset --- */
:root { 
    --text-color: #ffffff; 
    --cursor-color: #00c6ff;
    --accent-grad: linear-gradient(135deg, #00c6ff, #ff4b1f);
}

/* --- Utility Classes --- */
.txt-block { display: inline-block; }
.pc-only { display: block; }
.sp-only { display: none; }

@media (max-width: 768px) {
    .pc-only { display: none; }
    .sp-only { display: block; }
}

/* --- Layout Containers --- */
.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; }
.container-narrow { width: 100%; max-width: 1000px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }

/* --- General Section Styles --- */
section { padding: clamp(60px, 10vw, 120px) 0; }
.section-title { 
    font-family: 'Montserrat', sans-serif; 
    font-size: clamp(2rem, 4vw, 3rem); 
    font-weight: 900; 
    margin-bottom: clamp(40px, 6vw, 60px); 
    border-bottom: 2px solid rgba(255,255,255,0.5); 
    display: inline-block; 
}

/* --- Hero Section --- */
.hero { height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.hero h1 { 
    font-size: clamp(2.2rem, 5.5vw, 5rem); 
    font-weight: 900; line-height: 1.3; 
    text-shadow: 0 10px 30px rgba(0,0,0,0.5); margin-bottom: 20px; 
    word-break: keep-all; overflow-wrap: break-word;
}
.hero-sub { 
    font-size: clamp(0.8rem, 1.5vw, 1rem);
    letter-spacing: 0.2em; font-weight: 700; opacity: 0.9; margin-bottom: 10px; 
}

/* --- ABOUT Section --- */
.about-card {
    position: relative;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: clamp(40px, 6vw, 80px);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), var(--accent-grad);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    width: 100%; box-sizing: border-box;
}
.about-card h3 {
    font-size: clamp(1.5rem, 3vw, 2rem); 
    font-weight: 900; margin-bottom: 30px; line-height: 1.4;
    background: linear-gradient(to right, #fff, #bbb); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.about-lead { font-size: clamp(1rem, 1.5vw, 1.1rem); font-weight: 700; margin-bottom: 20px; line-height: 1.8; }
.about-text { font-size: clamp(0.9rem, 1.2vw, 1rem); opacity: 0.9; margin-bottom: 30px; line-height: 2; }
.about-sub-text { font-size: 0.85rem; opacity: 0.7; margin-bottom: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); }
.about-btn-area { text-align: center; }

/* --- SERVICE Section (Vivid Grid) --- */
.vivid-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(280px, auto); gap: 20px;
}
.vivid-card {
    position: relative; border-radius: 24px; overflow: hidden;
    background: rgba(10, 10, 10, 0.4); 
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px); 
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); cursor: pointer;
}
.area-ads   { grid-column: 1 / 3; grid-row: 1 / 2; --theme-color: #00c6ff; }
.area-ai    { grid-column: 3 / 5; grid-row: 1 / 2; --theme-color: #9d50bb; }
.area-media { grid-column: 1 / 3; grid-row: 2 / 3; --theme-color: #42e695; }
.area-sales { grid-column: 3 / 5; grid-row: 2 / 3; --theme-color: #ff7e5f; }

.vivid-content {
    position: relative; z-index: 2; padding: 30px; height: 100%;
    display: flex; flex-direction: column; justify-content: space-between;
}
.vivid-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.vivid-num {
    font-family: 'Montserrat', sans-serif; font-size: 2.5rem; font-weight: 900;
    color: rgba(255, 255, 255, 0.1); line-height: 1; transition: 0.4s;
}
.vivid-cat {
    font-family: 'Montserrat', sans-serif; font-size: 0.7rem; letter-spacing: 0.15em;
    color: var(--theme-color); border: 1px solid var(--theme-color); padding: 4px 10px; border-radius: 50px; opacity: 0.8;
}
.vivid-card h3 { font-size: 1.6rem; font-weight: 700; margin-bottom: 10px; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.vivid-desc { font-size: 0.9rem; opacity: 0.7; line-height: 1.6; margin-bottom: auto; padding-bottom: 15px; }
.vivid-tags span {
    display: inline-block; font-size: 0.75rem; background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1); padding: 4px 10px; border-radius: 4px; margin-right: 5px; margin-bottom: 5px; color: #ccc;
}
.vivid-list { list-style: none; padding: 0; margin: 0; }
.vivid-list li { position: relative; padding-left: 15px; font-size: 0.9rem; margin-bottom: 5px; opacity: 0.8; }
.vivid-list li::before {
    content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 6px; height: 6px; background: var(--theme-color); border-radius: 50%; box-shadow: 0 0 5px var(--theme-color);
}

/* ★追加: リスト内リンクのスタイル */
.vivid-list a {
    color: #fff; text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: 0.3s;
}
.vivid-list a:hover {
    color: var(--theme-color);
    border-bottom-color: var(--theme-color);
}
.link-icon { font-size: 0.8em; margin-left: 3px; }

.vivid-bg-glow {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--theme-color), transparent 80%);
    opacity: 0.05; z-index: 0; transition: 0.5s ease;
}
@media (min-width: 769px) {
    .vivid-card:hover {
        transform: scale(1.02); border-color: var(--theme-color);
        background: rgba(20, 20, 20, 0.6);
        box-shadow: 0 10px 40px rgba(0,0,0,0.5), 0 0 20px var(--theme-color);
    }
    .vivid-card:hover .vivid-bg-glow { opacity: 0.2; }
    .vivid-card:hover .vivid-num { color: var(--theme-color); transform: translateX(5px); }
}

/* --- NEWS Section --- */
.news-container { width: 100%; max-width: 900px; margin: 0 auto; }
.news-item {
    display: flex; align-items: center; padding: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2); transition: 0.3s; text-decoration: none; color: #fff;
}
.news-item:hover { background: rgba(255, 255, 255, 0.05); border-color: #00c6ff; padding-left: 35px; }
.news-meta { display: flex; flex-direction: column; min-width: 120px; margin-right: 20px; }
.news-date { font-family: 'Montserrat', sans-serif; font-size: 0.9rem; opacity: 0.7; }
.news-cat {
    font-size: 0.75rem; color: #00c6ff; border: 1px solid #00c6ff;
    padding: 2px 8px; display: inline-block; width: fit-content; margin-top: 5px; border-radius: 2px;
}
.news-title { font-size: 1rem; font-weight: 500; line-height: 1.6; }
.view-more-container { text-align: right; margin-top: 30px; }
.view-more-btn { font-family: 'Montserrat', sans-serif; font-weight: 700; color: #fff; border-bottom: 2px solid #00c6ff; padding-bottom: 5px; text-decoration: none; transition: 0.3s; }
.view-more-btn:hover { color: #00c6ff; }

/* --- CTA Section --- */
.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); -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2); 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.1)); }
.contact-area { background: linear-gradient(135deg, rgba(0,0,0,0.5), rgba(255, 75, 31, 0.1)); }
.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; 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; box-shadow: 0 0 30px rgba(255, 75, 31, 0.2); transform: translateY(-5px); }
    .contact-btn:hover { background: #fff; color: #000; }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .news-item { flex-direction: column; align-items: flex-start; }
    .news-meta { margin-bottom: 10px; flex-direction: row; gap: 15px; align-items: center; }
    .split-layout { grid-template-columns: 1fr; gap: 30px; }
    .vivid-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
    .area-ads, .area-ai, .area-media, .area-sales { grid-column: 1 / -1; grid-row: auto; min-height: auto; }
    .vivid-num { font-size: 2rem; }
    
    /* Mobile Optimization */
    .about-card, .news-item, .split-item, .vivid-card { 
        backdrop-filter: none !important; 
        -webkit-backdrop-filter: none !important;
        background: rgba(15, 15, 15, 0.95) !important; 
        box-shadow: none !important;
        border: 1px solid rgba(255,255,255,0.15) !important;
    }
    .vivid-card:hover { transform: none; }
}