/* --- Service Hero --- */
.service-hero {
    background-color: #fcfcfc;
    padding: 160px 0 100px;
    text-align: center;
}
.page-title { font-family: "Afacad"; font-size: 6.4rem; margin-bottom: 20px; font-weight: 500; }
.page-intro { font-size: 1.6rem; margin-bottom: 80px; }

.service-nav-grid { display: flex; justify-content: center; gap: 40px; }
.service-nav-item {
    border: 1px solid #ccc;
    border-radius: 50%;
    width: 220px; height: 220px;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    transition: 0.3s; background: #fff; margin-left: -3rem;
}
.service-nav-item:hover { background: var(--main-dark); color: #fff; transform: translateY(-5px); }

/* --- Stacking Section (Sticky演出) --- */
.service-detail-section {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--main-dark);
    color: var(--white);
    overflow: hidden;
}

.detail-description {
font-size: 1.4rem;
}

/* 個別の重なり順 */
#real-estate { z-index: 10; }
#outsourcing { z-index: 20; }
#product     { z-index: 30; }

/* 幕(オーバーレイ)の設定 */
.service-detail-section::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 2;
}
.service-detail-section.is-dark::after { opacity: 1; }

/* コンテンツ */
.service-detail-section .container { position: relative; z-index: 1; }
.detail-label { font-family: "Afacad"; font-size: 1.6rem; color: #888; margin-bottom: 10px; display: block; }
.detail-title { font-size: 3.2rem; margin-bottom: 40px; font-weight: bold; }
.detail-content { display: flex; gap: 60px; align-items: flex-start; }
.detail-image { flex: 0 0 400px; height: 300px; background-color: #334155; }
.detail-image img { width: 100%; height: 100%; object-fit: cover; }

.btn-detail-view {
    display: inline-flex;
    align-items: center; gap: 30px;
    border: 1px solid #888; padding: 15px 40px; font-size: 1.4rem;
    margin-top: 40px;
}

@media screen and (max-width: 768px) {
    .service-detail-section { position: relative; height: auto; padding: 80px 0; top: auto; }
    .detail-content { flex-direction: column; }
    .detail-image { width: 100%; order: -1; margin-bottom: 30px; }
    .service-nav-grid { flex-direction: column; align-items: center; gap: 15px; }
    .service-nav-item { width: 100%; height: auto; border-radius: 8px; margin-left: 0; padding: 20px; flex-direction: row; }
}