/* サービスナビゲーション（デスクトップ専用 - 1040px超） */
.service-nav-wrapper {
    position: relative;
    background: white;
    padding: 1.5rem 0;
    margin: 0 auto 3rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-radius: 12px;
    transition: all 0.3s ease;
}

/* スクロール時のコンパクト表示（右側縦並び） */
.service-nav-wrapper.scrolled {
    position: fixed;
    top: 70px;
    right: 0;
    left: auto;
    transform: none;
    z-index: 100;
    width: auto;
    max-width: 180px;
    padding: 0.8rem 0.8rem 0.8rem 1rem;
    box-shadow: -4px 0 16px rgba(0,0,0,0.15);
    animation: slideInRight 0.3s ease;
    border-radius: 12px 0 0 12px;
}

.service-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    padding: 0 1rem;
}

/* スクロール時は縦並び */
.service-nav-wrapper.scrolled .service-nav-container {
    flex-direction: column;
    padding: 0;
    gap: 0.6rem;
}

.service-nav-button {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 0.6rem;
    background: white;
    border: 2px solid var(--accent-orange);
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    flex: 1;
    min-width: 0;
}

.service-nav-wrapper.scrolled .service-nav-button {
    padding: 0.6rem 0.8rem;
    flex: none;
    width: 100%;
    flex-direction: row;
    justify-content: flex-start;
    gap: 0.6rem;
}

.service-nav-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(237, 125, 49, 0.25);
    background: linear-gradient(135deg, #fff9f5 0%, #fff 100%);
    border-color: #d96a2f;
}

.service-nav-button img {
    width: 40px;
    height: 40px;
    margin-bottom: 0.5rem;
    object-fit: contain;
    transition: all 0.3s ease;
}

.service-nav-wrapper.scrolled .service-nav-button img {
    width: 32px;
    height: 32px;
    margin-bottom: 0;
    margin-right: 0;
}

.service-nav-button:hover img {
    transform: scale(1.1);
}

/* スクロール時のホバー動作を調整 */
.service-nav-wrapper.scrolled .service-nav-button:hover {
    transform: translateX(-3px);
}

.service-nav-button span {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-brown);
    text-align: center;
    line-height: 1.3;
}

/* 通常時は改行を非表示 */
.service-nav-br-scroll {
    display: none;
}

.service-nav-wrapper.scrolled .service-nav-button span {
    font-size: 0.85rem;
    text-align: left;
    line-height: 1.2;
}

/* スクロール時は改行を表示 */
.service-nav-wrapper.scrolled .service-nav-br-scroll {
    display: inline;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* サービスページコンテンツ */
.service-intro-text {
    text-align: center;
    font-size: 1.15rem;
    line-height: 2;
    max-width: 850px;
    margin: 0 auto 2rem;
    color: var(--text-medium);
    font-weight: 400;
    letter-spacing: 0.02em;
}

.service-content-container {
    max-width: 1000px;
    margin: 0 auto;
}

/* サービスカード */
.service-card {
    position: relative;
    padding: 2.5rem;
    margin-bottom: 2rem;
    border-left: 5px solid var(--accent-orange);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    scroll-margin-top: 150px;
}

.service-card-content {
    position: relative;
}

.service-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.service-card-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    flex-shrink: 0;
}

.service-card-title {
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: 0;
    color: var(--text-brown);
}

.service-card-lead {
    font-size: 1.08rem;
    line-height: 2;
    margin-bottom: 1.2rem;
    font-weight: 500;
    color: var(--text-brown);
}

.service-card-description {
    font-size: 1rem;
    line-height: 1.95;
    color: var(--text-medium);
    padding-left: 1rem;
    border-left: 2px solid rgba(237, 125, 49, 0.2);
}

.service-card-description-multi {
    font-size: 1rem;
    line-height: 1.95;
    margin-bottom: 1.2rem;
    color: var(--text-medium);
    padding-left: 1rem;
    border-left: 2px solid rgba(237, 125, 49, 0.2);
}

.service-highlight {
    color: var(--accent-orange);
    font-weight: 500;
}
