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

/* --- Variables --- */
:root {
    --cyan: #00c6ff;
    --purple: #9d50bb;
    --green: #42e695;
    --orange: #ff7e5f;
    --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; }
.container-narrow { width: 100%; max-width: 1000px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }

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

/* --- Layout --- */
.service-layout {
    display: flex;
    gap: 60px;
    position: relative;
}

/* --- Sidebar Navigation (Common) --- */
.service-nav {
    flex-shrink: 0;
    z-index: 90;
    transition: top 0.1s linear;
}

/* 1. PC STYLE (> 991px) */
@media (min-width: 992px) {
    .service-nav {
        width: 250px;
        position: sticky;
        top: 150px;
        height: fit-content;
        display: block;
        background: rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 16px;
        padding: 20px 0;
    }

    .service-nav ul { list-style: none; padding: 0; margin: 0; }
    .service-nav li { margin-bottom: 5px; }
    
    .service-nav a {
        text-decoration: none; color: #fff; opacity: 0.6;
        font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 0.9rem;
        display: block; 
        padding: 12px 25px;
        transition: 0.3s; 
        position: relative;
        border-left: 3px solid transparent;
    }
    
    .service-nav a:hover, .service-nav a.active { 
        opacity: 1; 
        background: rgba(255,255,255,0.05); 
    }
    
    .service-nav a.ads-link:hover, .service-nav a.ads-link.active { color: var(--cyan); border-left-color: var(--cyan); }
    .service-nav a.ai-link:hover, .service-nav a.ai-link.active { color: var(--purple); border-left-color: var(--purple); }
    .service-nav a.media-link:hover, .service-nav a.media-link.active { color: var(--green); border-left-color: var(--green); }
    .service-nav a.sales-link:hover, .service-nav a.sales-link.active { color: var(--orange); border-left-color: var(--orange); }
}

/* 2. TABLET STYLE (769px - 991px) */
@media (max-width: 991px) {
    .service-nav {
        width: 100vw;
        position: sticky;
        top: 60px;
        margin-left: -20px;
        margin-right: -20px;
        padding: 12px 0;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        background: rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .service-nav::-webkit-scrollbar { display: none; }
    
    .service-nav ul {
        display: flex; gap: 10px; padding: 0 20px;
        list-style: none; margin: 0; border: none;
        justify-content: flex-start;
    }
    
    .service-nav li { margin: 0; flex-shrink: 0; }
    
    .service-nav a {
        text-decoration: none; color: #fff; opacity: 0.8;
        font-size: 0.8rem; font-weight: 700; display: block;
        padding: 8px 16px; border-radius: 50px;
        background: rgba(255,255,255,0.1);
        border: 1px solid rgba(255,255,255,0.1);
        transition: 0.3s;
    }

    .service-nav a.active { opacity: 1; color: #000; font-weight: 800; transform: scale(1.02); }
    
    .service-nav a.ads-link.active { background: var(--cyan); border-color: var(--cyan); }
    .service-nav a.ai-link.active { background: var(--purple); border-color: var(--purple); color: #fff; }
    .service-nav a.media-link.active { background: var(--green); border-color: var(--green); }
    .service-nav a.sales-link.active { background: var(--orange); border-color: var(--orange); }
}

/* 3. MOBILE STYLE (<= 768px) */
@media (max-width: 768px) {
    .service-nav {
        background: rgba(10, 10, 10, 0.95) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }
}


/* --- Main Content --- */
.service-body { flex: 1; min-width: 0; }
.service-section { scroll-margin-top: 150px; }

.sec-header { display: flex; align-items: baseline; margin-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 20px; }
.sec-num { font-family: 'Montserrat', sans-serif; font-size: 3rem; font-weight: 900; color: rgba(255,255,255,0.1); margin-right: 20px; line-height: 1; }
.sec-title { font-family: 'Montserrat', sans-serif; font-size: 2rem; font-weight: 900; line-height: 1.2; }

#sec-ads .sec-num, #sec-ads .sec-title { color: var(--cyan); }
#sec-ai .sec-num, #sec-ai .sec-title { color: var(--purple); }
#sec-media .sec-num, #sec-media .sec-title { color: var(--green); }
#sec-sales .sec-num, #sec-sales .sec-title { color: var(--orange); }

.product-card, .concept-card {
    background: var(--dark-bg);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-radius: 20px; padding: 50px; margin-bottom: 40px;
    position: relative; overflow: hidden;
}
.highlight-cyan { border-left: 4px solid var(--cyan); }
.highlight-purple { border-left: 4px solid var(--purple); }
.highlight-green { border-left: 4px solid var(--green); }
.highlight-orange { border-left: 4px solid var(--orange); }

.badge { display: inline-block; background: #fff; color: #000; font-size: 0.75rem; padding: 4px 12px; border-radius: 50px; font-weight: 700; margin-bottom: 15px; }
.product-card h3, .concept-card h3 { font-family: 'Montserrat', sans-serif; font-size: 2.5rem; font-weight: 900; margin-bottom: 10px; }
.product-card h3 .jp-name { font-family: 'Noto Sans JP', sans-serif; font-size: 1rem; font-weight: 400; opacity: 0.7; margin-left: 10px; }
.catch { font-size: 1.2rem; font-weight: 700; margin-bottom: 30px; line-height: 1.6; }
.desc-box { font-size: 1rem; opacity: 0.9; line-height: 1.8; margin-bottom: 40px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-item { background: rgba(255,255,255,0.05); padding: 20px; border-radius: 10px; }
.feature-item h4 { font-size: 1rem; color: #fff; margin-bottom: 10px; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 10px; }
.feature-item p { font-size: 0.85rem; opacity: 0.8; line-height: 1.6; }

.sub-services, .service-list-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.sub-item, .list-card { background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1); padding: 30px; border-radius: 15px; }
.sub-item h4, .list-card h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 15px; color: #fff; }
.sub-item p, .list-card p { font-size: 0.9rem; opacity: 0.7; line-height: 1.8; }

.media-showcase-text { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.media-text-item { background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1); padding: 30px; border-radius: 15px; }
.media-text-item h4 { font-size: 1.2rem; font-weight: 700; margin-bottom: 15px; color: #fff; }
.media-text-item p { font-size: 0.9rem; opacity: 0.7; line-height: 1.8; }

/* ★追加: メディアサイトへのリンクスタイル */
.media-site-link {
    display: inline-block;
    margin-top: 15px;
    font-size: 0.9rem; font-weight: 700; color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding-bottom: 2px;
    transition: 0.3s;
}
.media-site-link:hover {
    color: var(--green);
    border-bottom-color: var(--green);
}

/* --- 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; }

/* CTA */
.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; }
}

@media (max-width: 991px) {
    .service-layout { flex-direction: column; gap: 40px; }
    .feature-grid { grid-template-columns: 1fr; }
    .sub-services, .service-list-grid, .media-showcase-text { grid-template-columns: 1fr; }
    .sec-num { font-size: 2rem; }
    .sec-title { font-size: 1.5rem; }
    .product-card, .concept-card { padding: 30px; }
    .product-card h3 { font-size: 1.8rem; }
    
    .product-card, .concept-card, .sub-item, .list-card, .media-text-item {
        backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
    }
    .split-layout { grid-template-columns: 1fr; gap: 30px; }
    .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;
    }
}